Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#14726 closed bug (fixed)

KDL: SMAP violation (sshfs_fuse)

Reported by: diver Owned by: korli
Priority: normal Milestone: Unscheduled
Component: File Systems/UserlandFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

hrev52597.

To reproduce:

pkgman ins ssh_fuse
mkdir /mnt
echo password | /system/servers/userlandfs_server sshfs

In another console:

mount -t userlandfs -o 'sshfs user@server:./ -o password_stdin' /mnt

Double click newly mounted volume on the Desktop.

Attachments (3)

smap.png (35.3 KB ) - added by diver 12 months ago.
area.png (26.5 KB ) - added by diver 12 months ago.
area2.png (15.1 KB ) - added by diver 12 months ago.

Download all attachments as: .zip

Change History (18)

by diver, 12 months ago

Attachment: smap.png added

comment:1 by waddlesplash, 12 months ago

I'm not sure why this ticket is assigned to me...

Anyway, I've seen the "read fault" in a backtrace only once before, in a KDL in the USB MIDI driver. Any other evidence of it? Because i have no idea where to begin investigating that.

comment:2 by waddlesplash, 12 months ago

Owner: changed from waddlesplash to korli

comment:3 by korli, 12 months ago

diver, you can probably give more information:

Here is the help for the area debugger command: https://github.com/haiku/haiku/blob/9cc0f06a015202f58ae669f0bf7653e66161d7e2/src/system/kernel/vm/vm.cpp#L3319

"area contains <address>" should show which area is causing SMAP to trigger.

Thanks!

by diver, 12 months ago

Attachment: area.png added

comment:4 by diver, 12 months ago

Since I didn't know what address to use I used both from the panic message.

comment:6 by diver, 12 months ago

Thanks! I only needed to add #include <vm/vm.h> to make it to compile with jam userland_fs.hpkg and now it works just fine!

comment:7 by diver, 12 months ago

Component: - GeneralFile Systems/UserlandFS

comment:9 by axeld, 12 months ago

Please try again with hrev52604 or later.

comment:10 by diver, 12 months ago

Listing files works now, however trying to open a file results in another crash.

by diver, 12 months ago

Attachment: area2.png added

comment:11 by korli, 12 months ago

Isn't there a complete stack trace?

comment:12 by diver, 12 months ago

Unfortunately no, stack trace just suddenly ends with [*** READ/WIRITE FAULT (?)]. Running bt about 5 times simply reboots VMware VM.

comment:13 by korli, 12 months ago

Please check with hrev52612 or newer.

About the stacktrace, I disabled locally print_demangled_call() in src/system/kernel/arch/x86/arch_debug.cpp to workaround the effect of SMAP. Needs more investigation.

comment:14 by diver, 12 months ago

Resolution: fixed
Status: assignedclosed

Confirmed fixed. Thanks!

comment:15 by korli, 12 months ago

For reference, the follow-up on the stacktrace problem is https://review.haiku-os.org/#/c/haiku/+/742/ (not SMAP related after all).

Note: See TracTickets for help on using tickets.