-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel Oops / General Protection Fault / NULL pointer dereference on write operations on samba smb:// mounts #2677
Comments
I'm not able to follow the reproduction steps. By default, mount.cifs is not setuid, so I need to use sudo to mount the samba share. Thus, my user is not able to create a file in the mounted directory. Do you have anything set up that allows your normal user to use the mount command as written? Also wanted to note that after mounting a samba share, I didn't see any errors in dmesg. |
I added a
The errors only show up after I attempt to write/delete on the mounted share; I have never seen things behave like this before, despite having used the exact same type of setup for literally as long as I've been maintaining Samba, because mounting shares like this gives higher throughput. |
Thanks for the updated reproduction steps. I also got errors in dmesg after trying to edit the text file I created, but not an oops. I got a general protection fault. Attaching. |
Today I can't even browse samba mounts with Dolphin. I see the error I see more general protection faults in the logs |
Is this an issue with the LTS kernel as well? |
I can't test on the XPS with the LTS kernel because Plasma won't start with that kernel I'm able to browse samba shares in Dolphin on my Flex, running the same kernel and version of Plasma and version of Dolphin (both systems are on unstable) Kernel 6.8.11-292.current Also, I remembered about this upstream bug which was opened in March. I'm adding debug info to it. I'll keep this issue open so if other Solus users have the problem, and don't search the KDE bug tracker, hopefully they can find this issue. |
Hey, I've been having similar issue as described by @TraceyC77, although for me it's a page fault caused by null pointer dereference. I have been using the same samba share for a long time and it suddenly stopped working a few weeks ago. Not sure what's the correct place where should I report this bug, as I don't think it's KDE related. I can provide the systemd/dmesg log documenting the kernel error, if relevant. |
Please do! And thanks for the report, +1 informative! |
Agreed, please do share the system logs (as text pasted in a message please so it can be found with searches). That will help us pinpoint the root cause. |
Okay, maybe I was a bit hasty with claiming it's a null ptr, but it is still an invalid address. I have two machines running Solus and both of them trigger this bug.
|
Huh, looking at the
I tried looking into it and discovered this Linux Mint forum post mentioning Ubuntu Launchpad report. But I don't understand this, as I believe |
I don't think gvfs is related to this particular failure. The upstream gvfs bug was fixed (apparently Ubuntu still has to implement it in their distro) Also, while I have those same gvfsd errors in my logs, they do not appear when I trigger the bug (by attempting to browse a Samba share in Dolphin). |
Please confirm there isn't an existing open bug report
Summary
Certain write operations to a mounted smb:// share in the Dolphin file manager appear to cause kernel BUG/Oops/GPF events.
Steps to reproduce
Server setup
/etc/samba/smb.conf
repro_share configuration on server:creation of repro_share on server filesystem
ensure samba picks up the new share definition
Client Setup
mount point setup
/etc/fstab line on client
Mount the share
Repro steps after doing the above
sudo eopkg it {linux-current,glibc,kate,kio,kio-fuse,kio-extras,kio-admin}-dbginfo
sudo dmesg
and check for a kernel oopskernel oops output from
dmesg
:Expected result
Mount a read/write smb share and create/save/delete files as normal with no observed hangs or Kernel BUG/Oops/GPF events.
Actual result
Mount a read/write smb share and create/save/delete files, Dolphin hangs and the system experiences reproducible Kernel BUG/Oops/GPF events.
Environment
Repo
Unstable
Desktop Environment
Plasma
System details
Operating System: Solus 4.5
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.8.10-291.current (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Other comments
No response
The text was updated successfully, but these errors were encountered: