Skip to content
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

ksmb crash on linux 6.5.3-arch1-1 #444

Open
mcirsta opened this issue Sep 19, 2023 · 5 comments
Open

ksmb crash on linux 6.5.3-arch1-1 #444

mcirsta opened this issue Sep 19, 2023 · 5 comments

Comments

@mcirsta
Copy link

mcirsta commented Sep 19, 2023

I've noticed that ksmb was not working and found the attached logs in dmesg.

Let me know if additional info is needed though I am not sure how exactly this occurred. I did delete some files on the samba file system though.

ksmb_crash.txt

@mcirsta
Copy link
Author

mcirsta commented Sep 19, 2023

Another crash using the exact same configuration and this one for sure occurred while deleting something.

ksmb_crash_1.txt

@namjaejeon
Copy link
Owner

@mcirsta share directory is located in usb storage ?

[  265.146628] usb 1-2: USB disconnect, device number 2
[  265.146666] usb 1-2.1: USB disconnect, device number 4
[  265.316473] usb 1-2.3: USB disconnect, device number 5

@namjaejeon
Copy link
Owner

@mcirsta

Another crash using the exact same configuration and this one for sure occurred while deleting something.

Could you please share how to reproduce this issue ?

  1. share your ksmbd.conf
  2. do you use mainline ksmbd or github ksmbd ?
  3. Is there testcase to reproduce it ? or Can you describe how to reproduce ?
  4. what is local filesystem of share directory ? ext4 ?

@namjaejeon
Copy link
Owner

@mcirsta

I did delete some files on the samba file system though.

What is samba file system ? smbclient ? or cifs.ko

@mcirsta
Copy link
Author

mcirsta commented Oct 4, 2023

@namjaejeon

  1. cat /etc/ksmbd/smb.conf
    [global]
    netbios name = SMBD
    server = SMBD
    browseable = yes
    server string = MiniPC
    workgroup = WORKGROUP
    [extdisk]
    path = /mnt/extdisk
    guest ok = yes
    writable = yes
    browseable = yes

  2. Whatever is shipped with the latest Arch kernel : 6.5.5-arch1-1

  3. Not really , it doesn't occur every time from what I can tell but the problems happen when deleting the files through the latest version of this Android app called NovaVideoPlayer. After several consecutive deletions the crash in the kernel module would occur

  4. It's an external HDD mounted as ntfs-3g:

UUID=70B08D67B08D351E /mnt/extdisk ntfs-3g defaults,uid=1000,gid=1000 0 0

As for the client it's whatever this NovaVideoPlayer uses.

I will try a bit more to see if I can consistently reproduce it when deleting files. One other thing to mention is that they are large files, sometimes even 50-60 GB so one delete operation might not finish before another is requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants