cifsd-team / ksmbd

ksmbd kernel server(SMB/CIFS server)
151 stars 23 forks source link

another crash log #480

Open ptpt52 opened 3 years ago

ptpt52 commented 3 years ago
<6>[52315.255453] usb 1-2: USB disconnect, device number 2
<6>[52320.987558] usb 1-2: new high-speed USB device number 3 using xhci-mtk
<6>[52321.187737] scsi host0: uas
<5>[52321.197381] scsi 0:0:0:0: Direct-Access     Seagate  BUP Slim         1707 PQ: 0 ANSI: 6
<5>[52325.544361] sd 0:0:0:0: [sda] 1953525167 512-byte logical blocks: (1.00 TB/932 GiB)
<5>[52325.559667] sd 0:0:0:0: [sda] 4096-byte physical blocks
<5>[52325.570479] sd 0:0:0:0: [sda] Write Protect is off
<7>[52325.580087] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
<5>[52325.590591] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<4>[52325.609128] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
<6>[52325.759395]  sda: sda1
<5>[52325.767799] sd 0:0:0:0: [sda] Attached SCSI disk
<3>[53546.686956] ksmbd: store_init_posix_acl:1337: Set posix acl(ACL_TYPE_ACCESS) failed, rc : -1
<1>[53577.572965] CPU 1 Unable to handle kernel paging request at virtual address 3f3601f8, epc == 86ac8a30, ra == 86ac8a18
<4>[53577.594482] Oops[#1]:
<4>[53577.599052] CPU: 1 PID: 28187 Comm: kworker/u4:0 Not tainted 5.4.83 #0
<4>[53577.612109] Workqueue: writeback wb_workfn (flush-8:1-fuseblk)
<4>[53577.623759] $ 0   : 00000000 00000001 3f3601d8 3f360200
<4>[53577.634172] $ 4   : 843d373c 00000000 00000000 00000001
<4>[53577.644570] $ 8   : ffffffff 0000000b 00000010 fefefeff
<4>[53577.654963] $12   : 00000000 00000000 5fec6a34 00000000
<4>[53577.665354] $16   : 843d3540 843d3540 00000000 00000003
<4>[53577.675746] $20   : 843d3638 86fdaa5c 838adc00 00000000
<4>[53577.686139] $24   : 00000010 80059f98                  
<4>[53577.696533] $28   : 86862000 86863c98 806a0000 86ac8a18
<4>[53577.706928] Hi    : 00000000
<4>[53577.712647] Lo    : 01377000
<4>[53577.718519] epc   : 86ac8a30 fuse_file_poll+0x658/0x7ac [fuse]
<4>[53577.730146] ra    : 86ac8a18 fuse_file_poll+0x640/0x7ac [fuse]
<4>[53577.741739] Status: 11007c03  KERNEL EXL IE 
<4>[53577.750057] Cause : 40800008 (ExcCode 02)
<4>[53577.758023] BadVA : 3f3601f8
<4>[53577.763741] PrId  : 0001992f (MIPS 1004Kc)
<4>[53577.771875] Modules linked in: ksmbd qcserial pppoe ppp_async option cdc_mbim usb_wwan sierra_net sierra rndis_host qmi_wwan pptp pppox ppp_mppe ppp_generic mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 ipt_REJECT huawei_cdc_ncm cfg80211 cdc_ncm cdc_ether xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_ipp2p xt_iface xt_hl xt_helper xt_hashlimit xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TPROXY xt_TCPMSS xt_REDIRECT xt_NFQUEUE xt_NETMAP xt_MASQUERADE xt_LOG xt_IPMARK xt_HL xt_DSCP xt_CT xt_CLASSIFY wireguard usbserial usbnet usblp ts_fsm ts_bm slhc sch_cake r8152 nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_objref nft_numgen nft_meta_bridge nft_log nft_limit nft_hash nft_fwd_netdev nft_dup_netdev nft_ct nft_counter nfnetlink_queue
<4>[53577.772067]  nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables_set nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_rtsp nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtsp nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conncount macvlan libcrc32c iptable_raw iptable_nat iptable_mangle iptable_filter ipt_ah ipt_ECN ipheth ip_tables crc_ccitt compat_xtables compat cdc_wdm br_netfilter asn1_decoder natflow natcap tcp_bbr sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ledtrig_usbport ledtrig_heartbeat xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac
<4>[53577.944552]  ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_NPT ip6t_rt ip6t_mh ip6t_ipv6header ip6t_hbh ip6t_frag ip6t_eui64 ip6t_ah nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 msdos ip6_gre ip_gre gre ifb ip6_udp_tunnel udp_tunnel sit ip6_tunnel tunnel6 tunnel4 ip_tunnel tun vfat fat autofs4 nls_utf8 nls_iso8859_1 nls_cp437 sha512_generic sha256_generic libsha256 sha1_generic seqiv jitterentropy_rng drbg md5 md4 hmac ghash_generic gf128mul gcm ecb des_generic libdes ctr cmac ccm arc4 fuse uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd ohci_platform ohci_hcd softdog fsl_mph_dr_of ehci_platform ehci_fsl sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 mbcache jbd2 exfat usbcore nls_base usb_common mii crc32c_generic
<4>[53578.291144] Process kworker/u4:0 (pid: 28187, threadinfo=068a2979, task=3aa082d0, tls=00000000)
<4>[53578.308448] Stack : 0007e884 00000000 00000001 81005dc0 843d3540 86acf100 86863d38 843d3540
<4>[53578.325072]         86863d20 86863e30 843d3540 843d3540 86863d20 80173f48 000004f8 86863d28
<4>[53578.341693]         00000400 857f7c00 87d98a40 00000000 843d35e4 86fdaa48 86863e30 843d3540
<4>[53578.358315]         80828ed8 8017435c 000004f8 86863d30 86863d30 00000000 00cb3d40 fffdffff
<4>[53578.374936]         00000400 843d35a8 00000400 00000000 00000000 00000000 ffffffff 7fffffff
<4>[53578.391556]         ...
<4>[53578.396552] Call Trace:
<4>[53578.401476] [<86ac8a30>] fuse_file_poll+0x658/0x7ac [fuse]
<4>[53578.412424] Code: 00001025  8e0301a8  2462ffd8 <c064fff8> 24840001  e064fff8  1080fffc  00000000  0000000f 
<4>[53578.431832] 
<4>[53578.437695] ---[ end trace 71ca07a825247020 ]---
neheb commented 3 years ago

That crash happens in fuse...

namjaejeon commented 3 years ago

@ptpt52 Can I see how often this problem occurs? And is there any relation between filesystem using fuse and ksmbd?

Neustradamus commented 3 years ago

@ptpt52: Any news? Have you seen previous comment?

namjaejeon commented 3 years ago

@ptpt52 I have released ksmbd 3.3.4 and ksmbd-tools 3.3.4 version. Could you take it to your project and check if same issue is coming again ? Thanks!

ptpt52 commented 3 years ago

@namjaejeon Thanks, i will do it

Neustradamus commented 3 years ago

@ptpt52: Have you looked?

ptpt52 commented 3 years ago

for days test, no related crash log found.

Neustradamus commented 3 years ago

@ptpt52: Thanks for your reply, have you updated the used code?

What is the version used?

3.3.4 is the last current build:

Look the last code, do not mix:

cifsd:

ksmbd-tools:

Note: I have requested the detachment of organization repositories from current upstreams to have a perfect place, code, releases and search feature, etc.

namjaejeon commented 3 years ago

@ptpt52 We have fixed similar issue on ksmbd 3.3.6 version. You can use it to avoid this issue from fuse driver.

ptpt52 commented 3 years ago

@namjaejeon
Yes, I will bump to the new release and test quickly great thanks

ptpt52 commented 3 years ago

@Neustradamus @namjaejeon Sorry it has not been updated for a long time. Did not catch the crash log, indicating that there is no problem recently

ptpt52 commented 3 years ago

I catch another crash log:

<6>[   53.305113] br-lan: port 5(wlan1) entered disabled state
<6>[   62.471909] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<6>[   62.472237] br-lan: port 4(wlan0) entered blocking state
<6>[   62.477339] br-lan: port 4(wlan0) entered forwarding state
<6>[   65.515431] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
<6>[   65.515817] br-lan: port 5(wlan1) entered blocking state
<6>[   65.520914] br-lan: port 5(wlan1) entered forwarding state
<4>[   65.565033] ath10k_ahb a000000.wifi: wmi: fixing invalid VHT TX rate code 0xff
<4>[  163.358934] ath10k_pci 0000:01:00.0: Invalid VHT mcs 15 peer stats
<6>[  404.716223] ksmbd: kill command received
<6>[  435.887085] usb 2-1.2: USB disconnect, device number 4
<5>[  435.892388] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
<6>[  436.517887] sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
<6>[  441.064595] usb 2-1.1: USB disconnect, device number 3
<5>[  441.078729] sd 0:0:0:0: [sda] Synchronizing SCSI cache
<6>[  441.706461] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
<6>[ 1548.660488] usb 2-1.1: new SuperSpeed Gen 1 USB device number 5 using xhci-hcd
<6>[ 1548.708726] scsi host0: uas
<5>[ 1548.710804] scsi 0:0:0:0: Direct-Access     Seagate  Expansion        0502 PQ: 0 ANSI: 6
<5>[ 1548.713417] sd 0:0:0:0: [sda] Spinning up disk...
<4>[ 1549.759211] ...ready
<5>[ 1551.840068] sd 0:0:0:0: [sda] 1953525167 512-byte logical blocks: (1.00 TB/932 GiB)
<5>[ 1551.840564] sd 0:0:0:0: [sda] 2048-byte physical blocks
<5>[ 1552.034125] sd 0:0:0:0: [sda] Write Protect is off
<7>[ 1552.034463] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
<5>[ 1552.037176] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<4>[ 1552.042650] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (2048 bytes)
<6>[ 1552.067022]  sda: sda1
<5>[ 1552.071208] sd 0:0:0:0: [sda] Attached SCSI disk
<6>[ 1555.741537] usb 2-1.2: new SuperSpeed Gen 1 USB device number 6 using xhci-hcd
<6>[ 1555.796872] scsi host1: uas
<5>[ 1555.810846] scsi 1:0:0:0: Direct-Access     TOSHIBA  MQ01ABD100       0    PQ: 0 ANSI: 6
<5>[ 1555.813714] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
<5>[ 1555.818064] sd 1:0:0:0: [sdb] 4096-byte physical blocks
<5>[ 1555.825970] sd 1:0:0:0: [sdb] Write Protect is off
<7>[ 1555.830739] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
<5>[ 1555.831278] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<4>[ 1555.835939] sd 1:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
<6>[ 1555.853510]  sdb: sdb1
<5>[ 1555.857819] sd 1:0:0:0: [sdb] Attached SCSI disk
<6>[ 1746.669359] usb 2-1.2: USB disconnect, device number 6
<5>[ 1746.673320] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
<6>[ 1747.284833] sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
<6>[ 1752.797514] usb 2-1.1: USB disconnect, device number 5
<5>[ 1752.801152] sd 0:0:0:0: [sda] Synchronizing SCSI cache
<6>[ 1753.395667] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
<6>[ 2196.225291] usb 2-1.1: new SuperSpeed Gen 1 USB device number 7 using xhci-hcd
<6>[ 2196.280285] scsi host0: uas
<5>[ 2196.281709] scsi 0:0:0:0: Direct-Access     Seagate  Expansion        0502 PQ: 0 ANSI: 6
<5>[ 2196.283727] sd 0:0:0:0: [sda] Spinning up disk...
<4>[ 2197.347083] ...ready
<5>[ 2199.427684] sd 0:0:0:0: [sda] 1953525167 512-byte logical blocks: (1.00 TB/932 GiB)
<5>[ 2199.427859] sd 0:0:0:0: [sda] 2048-byte physical blocks
<5>[ 2199.654440] sd 0:0:0:0: [sda] Write Protect is off
<7>[ 2199.654537] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
<5>[ 2199.655322] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<4>[ 2199.659421] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (2048 bytes)
<6>[ 2199.685707]  sda: sda1
<5>[ 2199.688023] sd 0:0:0:0: [sda] Attached SCSI disk
<6>[ 2204.025810] usb 2-1.2: new SuperSpeed Gen 1 USB device number 8 using xhci-hcd
<6>[ 2204.071493] scsi host1: uas
<5>[ 2204.107975] scsi 1:0:0:0: Direct-Access     TOSHIBA  MQ01ABD100       0    PQ: 0 ANSI: 6
<5>[ 2204.113158] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
<5>[ 2204.115216] sd 1:0:0:0: [sdb] 4096-byte physical blocks
<5>[ 2204.122806] sd 1:0:0:0: [sdb] Write Protect is off
<7>[ 2204.127894] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
<5>[ 2204.128364] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
<4>[ 2204.133046] sd 1:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
<6>[ 2204.150334]  sdb: sdb1
<5>[ 2204.154508] sd 1:0:0:0: [sdb] Attached SCSI disk
<4>[ 7040.618775] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
<4>[ 7040.618893] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
<4>[17628.507781] ath10k_ahb a000000.wifi: SWBA overrun on vdev 0, skipped old beacon
<4>[17628.508946] ath10k_ahb a000000.wifi: SWBA overrun on vdev 0, skipped old beacon
<4>[19343.360583] ath10k_pci 0000:01:00.0: htt tx: fixing invalid VHT TX rate code 0xff
<4>[119395.274377] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
<3>[131457.148845] ksmbd: __ipc_heartbeat:872: No IPC daemon response for 20s
<3>[132979.678613] ksmbd: __ipc_heartbeat:872: No IPC daemon response for 20s
<4>[170447.118090] ath10k_pci 0000:01:00.0: Invalid peer id 3 or peer stats buffer, peer: 00000000  sta: 00000000
<3>[220403.260254] ksmbd: __ipc_heartbeat:872: No IPC daemon response for 20s
<4>[231640.286306] warning: catch unregister event for dev=pppoe-wan
<4>[231640.351685] {natflow}:natflow_netdev_event(): catch NETDEV_UNREGISTER event for dev=pppoe-wan
<4>[231640.652673] warning: catch unregister event for dev=eth0.5
<4>[231640.722031] {natflow}:natflow_netdev_event(): catch NETDEV_UNREGISTER event for dev=eth0.5
<4>[231640.816382] warning: (zone_netdev_event:346)dev=eth0.5 set zone=127 type=0
<4>[231640.816433] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=eth0.5, add ingress hook
<6>[231641.343433] pppoe-wan: renamed from ppp0
<4>[231641.501946] warning: (zone_netdev_event:346)dev=pppoe-wan set zone=127 type=0
<3>[257829.097640] ksmbd: __ipc_heartbeat:872: No IPC daemon response for 20s
<3>[257829.298823] ksmbd: ksmbd_conn_handler_loop:339: sock_read failed: -108
<1>[257912.856519] 8<--- cut here ---
<1>[257912.856602] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
<1>[257912.858531] pgd = d19f2a08
<1>[257912.867363] [0000000c] *pgd=00000000
<0>[257912.869466] Internal error: Oops: 17 [#1] SMP ARM
<4>[257912.873260] Modules linked in: ksmbd qcserial pppoe ppp_async option cdc_mbim ath10k_pci ath10k_core ath wireguard usb_wwan sierra_net sierra rndis_host qmi_wwan pptp pppox ppp_mppe ppp_generic pl2303 mac80211 libchacha20poly1305 libblake2s ipt_REJECT huawei_cdc_ncm curve25519_neon cfg80211 cdc_ncm cdc_ether xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_ipp2p xt_iface xt_hl xt_helper xt_hashlimit xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TPROXY xt_TCPMSS xt_REDIRECT xt_NFQUEUE xt_NETMAP xt_MASQUERADE xt_LOG xt_IPMARK xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial usbnet usblp ts_fsm ts_bm tcp_hybla tcp_bbr slhc sch_cake r8152 poly1305_arm nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_objref nft_numgen nft_meta_bridge nft_log nft_limit nft_hash
<4>[257912.873901]  nft_fwd_netdev nft_dup_netdev nft_ct nft_counter nfnetlink_queue nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables_set nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_rtsp nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtsp nf_conntrack_rtcache nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conncount macvlan libcurve25519_generic libcrc32c libblake2s_generic iptable_raw iptable_nat iptable_mangle iptable_filter ipt_ah ipt_ECN ipheth ip_tables hwmon crc_ccitt compat_xtables compat chacha_neon cdc_wdm br_netfilter asn1_decoder natflow natcap fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred ledtrig_usbport xt_set ip_set_list_set
<4>[257912.942585]  ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_NPT ip6t_rt ip6t_mh ip6t_ipv6header ip6t_hbh ip6t_frag ip6t_eui64 ip6t_ah nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 msdos ip6_gre ip_gre gre ifb ip6_udp_tunnel udp_tunnel sit ip6_tunnel tunnel6 tunnel4 ip_tunnel tun vfat fat autofs4 nls_utf8 nls_iso8859_1 nls_cp437 sha512_generic sha512_arm sha1_generic sha1_arm_neon sha1_arm md5 md4 ghash_generic ghash_arm_ce gf128mul gcm cmac ccm arc4 uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4
<4>[257913.028538]  mbcache jbd2 exfat mii crc32c_generic [last unloaded: ksmbd]
<4>[257913.138020] CPU: 2 PID: 9320 Comm: kworker/2:1 Not tainted 5.4.109 #0
<4>[257913.144783] Hardware name: Generic DT based system
<4>[257913.151385] Workqueue: ksmbd-io handle_ksmbd_work [ksmbd]
<4>[257913.156074] PC is at idr_remove+0x0/0x10
<4>[257913.161671] LR is at session_fd_check+0x1a0/0x5f0 [ksmbd]
<4>[257913.165702] pc : [<c0825e24>]    lr : [<bf9e7028>]    psr: 40000013
<4>[257913.171085] sp : c56abe88  ip : 00000000  fp : bfa221f8
<4>[257913.177594] r10: c685cd00  r9 : bfa2226c  r8 : 00010000
<4>[257913.182891] r7 : cd362400  r6 : 00000000  r5 : c6cf4ecc  r4 : c685cd00
<4>[257913.188188] r3 : 80000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
<4>[257913.194526] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[257913.201124] Control: 10c5387d  Table: 8354006a  DAC: 00000051
<0>[257913.208416] Process kworker/2:1 (pid: 9320, stack limit = 0xb8562154)
<0>[257913.214229] Stack: (0xc56abe88 to 0xc56ac000)
<0>[257913.220741] be80:                   cd323780 c88d3e00 00000000 cd362400 00010000 bf9e7184
<0>[257913.225174] bea0: cd323780 bf9ff0c4 000043a1 00000000 60000013 cfdd6010 cd362400 00000000
<0>[257913.233420] bec0: 00000000 00010000 32a70000 00000000 00000000 c1d3f000 cd323780 cd3237d8
<0>[257913.241667] bee0: 00000008 bfa21854 bfa221f8 bfa194e8 bfa15bcc bf9eff1c c08daa34 c56abf14
<0>[257913.249914] bf00: bf9efd48 cd3237d8 cb9afd80 cfdd5580 ff7e2e00 00000000 00000080 00000000
<0>[257913.258160] bf20: ffffe000 c0337dcc 00000008 c0b03d00 cb9afd80 cb9afd94 cfdd5580 00000008
<0>[257913.266407] bf40: c0b03d00 cfdd5598 cfdd5580 c0338068 c0b0cea8 c08d9a90 c5819eac c791d41c
<0>[257913.274653] bf60: cb9afd80 c791d400 c56aa000 c71e7600 c5819eac c791d41c cb9afd80 c0338024
<0>[257913.282900] bf80: 00000000 c033d640 00004737 c71e7600 c033d510 00000000 00000000 00000000
<0>[257913.291147] bfa0: 00000000 00000000 00000000 c03010e8 00000000 00000000 00000000 00000000
<0>[257913.299393] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[257913.307639] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
<4>[257913.315954] [<c0825e24>] (idr_remove) from [<bf9e7028>] (session_fd_check+0x1a0/0x5f0 [ksmbd])
<4>[257913.324365] [<bf9e7028>] (session_fd_check [ksmbd]) from [<bf9e7184>] (session_fd_check+0x2fc/0x5f0 [ksmbd])
<4>[257913.332827] [<bf9e7184>] (session_fd_check [ksmbd]) from [<bf9ff0c4>] (smb2_read+0x254/0x53c [ksmbd])
<4>[257913.342901] [<bf9ff0c4>] (smb2_read [ksmbd]) from [<bf9eff1c>] (handle_ksmbd_work+0x1d4/0x4d8 [ksmbd])
<4>[257913.352059] [<bf9eff1c>] (handle_ksmbd_work [ksmbd]) from [<c0337dcc>] (process_one_work+0x218/0x470)
<4>[257913.361293] [<c0337dcc>] (process_one_work) from [<c0338068>] (worker_thread+0x44/0x5dc)
<4>[257913.370663] [<c0338068>] (worker_thread) from [<c033d640>] (kthread+0x130/0x134)
<4>[257913.378908] [<c033d640>] (kthread) from [<c03010e8>] (ret_from_fork+0x14/0x2c)
<4>[257913.386365] Exception stack(0xc56abfb0 to 0xc56abff8)
<4>[257913.393481] bfa0:                                     00000000 00000000 00000000 00000000
<4>[257913.398697] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[257913.406943] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
<0>[257913.415192] Code: e1a00004 e58d600c ebffff84 eaffffee (e590300c) 
<4>[257913.422619] ath10k_ahb a000000.wifi: SWBA overrun on vdev 0, skipped old beacon
<4>[257913.428395] ---[ end trace 47a65747947f7745 ]---
namjaejeon commented 3 years ago

@ptpt52 Can you tell me what version of ksmbd this issue happen ?

ptpt52 commented 3 years ago

@namjaejeon it is version 3.3.9

namjaejeon commented 3 years ago

@ptpt52 One more, Could you share your smb.conf ?

namjaejeon commented 3 years ago
<3>[257829.097640] ksmbd: __ipc_heartbeat:872: No IPC daemon response for 20s this error print is located in 872 line. but It seems to be different with the latest ksmbd source... 834 ksmbd_tools_pid = 0; 835 ksmbd_err("No IPC daemon response for %lus\n", delta / HZ); 836 mutex_unlock(&startup_lock); Do you know why error log line is different with source ?
ptpt52 commented 3 years ago

I don't know why the source shows diff and the smb.conf:

cat /etc/ksmbd/smb.conf
[global]
    netbios name = X-WRT
    server string = Ksmbd on OpenWrt
    workgroup = WORKGROUP
    interfaces = br-lan 
    bind interfaces only = yes
    ipc timeout = 20
    deadtime = 15
    map to guest = Bad User
    smb2 max read = 64K
    smb2 max write = 64K
    smb2 max trans = 64K
    cache read buffers = no
    cache trans buffers = no

######### Dynamic written config options #########

[sda1]
    path = /mnt/sda1
    valid users = xxxx
    create mask = 0666
    directory mask = 0777
    read only = no
    guest ok = no

[sdb1]
    path = /mnt/sdb1
    valid users = xxxx
    create mask = 0666
    directory mask = 0777
    read only = no
    guest ok = no
ptpt52 commented 3 years ago

sorry, this crash log seems to be old version @namjaejeon

namjaejeon commented 3 years ago

@ptpt52 Okay, If you find it on the latest version, Let me know it.