cifsd-team / ksmbd

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

"ksmbd: cli req too short" all over dmesg #594

Closed raenye closed 9 months ago

raenye commented 11 months ago

Hello,

I started using ksmbd on a WD MyBookLive device running OpenWrt, and my logs are filled with this message (idle and transfer) File access seems to work fine. There is some periodicity in the timing, which changes over time (used to be three every 30 secconds, a few days later three every 40 secconds, in the logs below it's three plus one lagging. Clients are a few Win11 laptops and desktops.

Please advise.

Thanks, R.

Log excerpts:

[620694.461784] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:165334
[620694.469532] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:165336
[620694.480534] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:165339
[620700.360063] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:165461
[620728.240603] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:166231
[620728.248649] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:166234
[620728.260228] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:166237
[620735.200974] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:166382
[620766.322104] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:167215
[620766.329871] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:167217
[620766.340927] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:167220
[620773.323553] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:167577
[620800.920109] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:168138
[620800.927904] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:168140
[620800.939234] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:168144
[620805.545949] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:168448
[620837.146976] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:169278
[620837.158335] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:169281
[620837.167122] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:169284
[620845.234212] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:169448
[620872.064052] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:170186
[620872.071849] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:170188
[620872.083002] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:170191
[620882.833847] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:170405
[620910.268843] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:171172
[620910.276822] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:171174
[620910.287736] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:171177
[620917.741397] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:171329
[620946.614125] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:172117
[620946.621867] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:172119
[620946.632976] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:172122
[620951.444644] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:172226
[620980.439979] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:173013
[620980.447740] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:173015
[620980.458933] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:173018
[620984.687442] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:173319
[621017.568545] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:174186
[621017.576447] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:174188
[621017.588219] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:174191
[621023.580491] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:174310
[621029.182280] ksmbd: cli req too short, len 136 not 140. cmd:10 mid:174424
[621029.194229] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:174430
[621029.204044] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:174435
[621029.213465] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:174436
[621053.064136] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:175152
[621053.071907] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:175154
[621053.083540] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:175158
[621058.912054] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:175272
[621062.689447] ksmbd: cli req too short, len 136 not 140. cmd:10 mid:175354
[621062.699165] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:175360

Note that it's mostly len 112 not 116 but sometimes len 136 not 140. I haven't seen other numbers.

The mid counter resets very rarely, after a sock_read failed: -108:

[624662.572100] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:270317
[624689.400753] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:270699
[624689.408808] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:270701
[624689.419751] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:270704
[624696.382864] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:270756
[624696.390695] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:270758
[624696.401561] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:270761
[624730.715147] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:271195
[624730.722952] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:271197
[624730.735570] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:271201
[624733.964028] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:271229
[624733.971830] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:271231
[624733.980451] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:271234
[624734.268292] ksmbd: sock_read failed: -108
[624736.398035] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:14
[624777.071866] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:719
[624780.200529] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:743
[624780.208047] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:745
[624780.219478] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:748
[624807.626568] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1139
[624811.954000] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1172
[624811.961645] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1174
[624811.972180] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1177
[624841.796175] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1571
[624846.087050] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1609
[624846.094741] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1611
[624846.105363] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:1614

Config (3 out of 6 identically configured shares):

root@fenix:~# cat /etc/ksmbd/ksmbd.conf
[global]
        netbios name = fenix
        server string = Fenix File Server
        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 #########

[Install]
        path = /mnt/data/install/
        create mask = 0666
        directory mask = 0777
        read only = no
        guest ok = yes```

[Public]
        path = /mnt/data/public/
        create mask = 0666
        directory mask = 0777
        read only = no
        guest ok = yes

[Media]
        path = /mnt/data/media/
        create mask = 0666
        directory mask = 0777
        read only = no
        guest ok = yes
...

Version:

kmod-fs-ksmbd - 5.15.120-1
ksmbd-avahi-service - 3.4.8-1
ksmbd-server - 3.4.8-1
luci-app-ksmbd - git-22.313.71289-f6e2c72
namjaejeon commented 11 months ago

What is meaning ksmbd-server ? Does that mean ksmbd.mountd?

raenye commented 11 months ago

Versions of the relevant openwrt packages. But ksmbd.{mountd,control,addshare,adduser} -V all return ksmbd-tools version : 3.4.8.

namjaejeon commented 11 months ago

kmod-fs-ksmbd - 5.15.120-1

What ksmbd kernel module are you using ? Can you test it with the latest #master of ksmbd ?

https://github.com/cifsd-team/ksmbd

Thanks.

neheb commented 11 months ago

OpenWrt no longer uses the module but the upstream driver.

raenye commented 11 months ago

5.15.120. I could try with 5.15.123, but the kernel is compiled as part of the OpenWrt build process, and I'm not sure how to make it use a git tree.

root@fenix:~# strings /lib/modules/5.15.120/ksmbd.ko | grep 5.15
vermagic=5.15.120 mod_unload
raenye commented 11 months ago

the upstream driver.

Thanks. I was advised on the forum to open an issue here; where should I ask then?

neheb commented 11 months ago

This is the proper place.

raenye commented 11 months ago

So I'm not sure what is the difference between upstream and here, or between "module" and "driver" :(

neheb commented 11 months ago

Upstream I meant by kernel.org.

raenye commented 11 months ago

Anyway, I'll gladly build with debug options, test, and provide more information if you could tell me what is needed. Thanks.

namjaejeon commented 11 months ago

@raenye Can you give me wireshark dump (or tcpdump) after capturing packets on problem situation ?

raenye commented 11 months ago

@namjaejeon I narrowed it down to OneNote for Microsoft 365 running on one particular Win11 PC. The client has several open notebooks that reside on the server running ksmbd, tcpdump shows some client-server synchronization of cached copies over SMB. For instance, the log messages

Mon Jul 31 01:25:55 2023 kern.err kernel: [823130.727969] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:186162
Mon Jul 31 01:25:55 2023 kern.err kernel: [823130.735827] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:186164
Mon Jul 31 01:25:55 2023 kern.err kernel: [823130.746769] ksmbd: cli req too short, len 112 not 116. cmd:10 mid:186167

seem to relate to the following packets captured with tcpdump -A port 445:

dump ``` 01:25:55.417927 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 8858:9054, ack 53989, win 8207, length 196 E...gB@....... i.. .......6./.g.P. ..v.......SMB@...........0.......*.......................................9......................................... .x.......0...O.n.e.N.o.t.e.\.........................MxAc....................QFid.... 01:25:55.418246 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 53989:54233, ack 9054, win 1812, length 244 E.....@.@.$O.. ... i..../.g...7.P............SMB@...................*.......................................Y.......B"...z.............oU......oU...................................f...........X... ...............MxAc........................ ...QFid.................................... 01:25:55.418691 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 9054:9146, ack 54233, win 8212, length 92 E...gC@....k.. i.. .......7./.h.P. ........X.SMB@...........0.......+.......................................................f....... 01:25:55.418837 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 54233:54361, ack 9146, win 1812, length 128 E.....@.@.$... ... i..../.h...8.P...._.....|.SMB@...................+.......................................<.......B"...z.............oU......oU....................... 01:25:55.421315 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 9146:9390, ack 54361, win 8212, length 244 E...gD@....... i.. .......8./.h.P. .au.......SMB@...........0.......,.......................................9......................................... .x.B.....0...O.n.e.N.o.t.e.\.......\.O.p.e.n. .N.o.t.e.b.o.o.k...o.n.e.t.o.c.2.......................MxAc....................QFid.... 01:25:55.421517 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 54361:54605, ack 9390, win 1812, length 244 E.....@.@.$M.. ... i..../.h...8.P............SMB@...................,.......................................Y.......b....z...:...z....h..c..H ...z... ......0....... ...............g...........X... ...............MxAc........................ ...QFid.................................... 01:25:55.421923 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 9390:9482, ack 54605, win 8211, length 92 E...gE@....i.. i.. .......8./.i.P. ........X.SMB@...........0.......-.......................................................g....... 01:25:55.422052 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 54605:54733, ack 9482, win 1812, length 128 E.....@.@.$... ... i..../.i...9SP...._.....|.SMB@...................-.......................................<.......b....z...:...z....h..c..H ...z... ......0....... ... 01:25:55.422602 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 9482:9782, ack 54733, win 8210, length 300 E..TgF@....... i.. .......9S/.jsP. .t......(.SMB@...........0...............................................9.. ....................................b.@.x.B.....h...O.n.e.N.o.t.e.\.......\.O.p.e.n. .N.o.t.e.b.o.o.k...o.n.e.t.o.c.2.......8........... ...DH2Q........................%/.....S`2..................MxAc....................QFid.... 01:25:55.422797 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 54733:54977, ack 9782, win 1812, length 244 E.....@.@.$K.. ... i..../.js..:.P............SMB@...........................................................Y. .....b....z...:...z....h..c..H ...z... ......0....... ...............h...........X... ...............MxAc........................ ...QFid.................................... 01:25:55.423191 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 9782:9890, ack 54977, win 8209, length 108 E...gG@....W.. i.. .......:./.kgP. .b......h.SMB@...........0......./.......................................).......h.......................h....... 01:25:55.425098 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 54977:55073, ack 9890, win 1812, length 96 E.....@.@.$... ... i..../.kg..:.P....?.....\.SMB@.................../....................................... .H......................... 01:25:55.425858 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 9890:10007, ack 55073, win 8209, length 117 E...gH@....M.. i.. .......:./.k.P. .Z .....q.SMB@...........0.......0.......................................1.P.0...................h........................ 01:25:55.426071 IP fenix.lan.445 > NUC.lan.57984: Flags [.], seq 55073:56533, ack 10007, win 1812, length 1460 E.....@.@..... ... i..../.k...;`P............SMB@...................0.........................................P.0............/.C..vL....W"v_..u.. .F...$_.x.................?......I................................................................................................................h ..........................0....................$.J..O5.,.@........=V.....I.....2x.............................&..:&..:&..:&..:.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................zV..........l..-.$..vA.x.C.......P.....`....vA.x.C.......P................................................................................................................................................................................................................................................................................................. 01:25:55.426080 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 56533:57993, ack 10007, win 1812, length 1460 E.....@.@..... ... i..../.q{..;`P...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.3....................P....................g..M.................... NUC.lan.57984: Flags [.], seq 57993:59453, ack 10007, win 1812, length 1460 E.....@.@..... ... i..../.w/..;`P........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 01:25:55.426144 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 59453:60913, ack 10007, win 1812, length 1460 E.....@.@..... ... i..../.|...;`P............................................................................................................................................................................zV..........`....vA.x.C.......P........Q.$.........................................................................................................................................................................................................................................K.3..........zV..........p....vA.x.C.......P..................KN...k............................0.JN..........!....$`......V.a....F.:.)E...$`........<...*I.P.....t$`.......V8%.T/F......K.$`.......Q...h.N...3....$`.......?.....B.e..5:..$`......\#"].@.F..2)._...................0...........K.3...................k..............|..OA..Y.<.......$...N.e.w. .S.e.c.t.i.o.n. .2...o.n.e...........................k...........M..J.T.A....7..{....................o.n.e................. ... ... ... ....................... ... ... ... ........$..........i.....................k............0...`.I.l:..3.. .................o.n.e.....................k.......?......@.UY....Q....&...O.n.e.N.o.t.e._.R.e.c.y.c.l.e.B.i.n.....................k............ ....gA.#.}x).|....$...N.e.w. .S.e.c.t.i.o.n. .1...o.n.e...........................k............i[W.(.F............................o.n.e...........................k..............$.KVH.=..6\.S................o.n.e.......................k.............~....E......H................... 01:25:55.426194 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 60913:62373, ack 10007, win 1812, length 1460 E.....@.@..... ... i..../.....;`P.........o.n.e...........................k...........3..I.o.L.....,Je ............. ...........o.n.e.....................k..............".>.G..3.>.........................o.n.e.........................k...........E....I.N.<..;.......$............... ...............o.n.e...........................k...........U.r. g,D..N...GG....................o.n.e...........................k............ ...AkD.._/H...........................o.n.e..............zV.........$`......>."..}.E...|....$`.......:[..=.A.E......$`......y.O.G..B..b<..C.(....`..?R.D...K..X.#.......-H.... ..........-H.... ..........-H.... ...........-H..... ..........-H.... ..........-H.... ..........-H.... ...........-H.... ..........-H.... ...........-H.... ..........-H................-H..... ..........-H..u.. ..........-H.... ............d.....................2.Y0.. ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.3..... 01:25:55.426306 IP NUC.lan.57984 > fenix.lan.445: Flags [.], ack 60913, win 8212, length 0 E..(gI@....... i.. .......;`/...P. .v......... 01:25:55.427992 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 10007:10283, ack 62373, win 8212, length 276 E.. NUC.lan.57984: Flags [P.], seq 62373:62465, ack 10283, win 1812, length 92 E.....@.@.$... ... i..../..K.. fenix.lan.445: Flags [P.], seq 10283:10399, ack 62465, win 8212, length 116 E...gK@....K.. i.. ....... NUC.lan.57984: Flags [P.], seq 62465:62533, ack 10399, win 1812, length 68 E..l..@.@.$... ... i..../.....<.P....#.....@.SMB@....... ...........2....................................... 01:25:55.435839 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 10399:10491, ack 62533, win 8211, length 92 E...gL@....b.. i.. .......<./...P. ..4.....X.SMB@...................3.......................................................h....... 01:25:55.435954 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 62533:62625, ack 10491, win 1812, length 92 E.....@.@.$... ... i..../.....=DP....;.....X.SMB@...................3.......................................................h....... 01:25:55.436057 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 62625:62813, ack 10491, win 1812, length 188 E.....@.@.$y.. ... i..../..G..=DP............SMB@...................1.......................................Y.......b....z...:...z....h..c..H ...z... ......0....... ...............i........... ...................MxAc............ 01:25:55.436321 IP NUC.lan.57984 > fenix.lan.445: Flags [.], ack 62813, win 8210, length 0 E..(gM@....... i.. .......=D/...P. .m1........ 01:25:55.436511 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 10491:10607, ack 62813, win 8210, length 116 E...gN@....H.. i.. .......=D/...P. ........p.SMB@....... ...0.......4.......................................0...............i............................... 01:25:55.443386 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 62813:62881, ack 10607, win 1812, length 68 E..l..@.@.$... ... i..../.....=.P....#.....@.SMB@....... ...........4....................................... 01:25:55.443742 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 10607:10699, ack 62881, win 8210, length 92 E...gO@...._.. i.. .......=./..GP. .. .....X.SMB@...........0.......5.......................................................i....... 01:25:55.443850 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 62881:63009, ack 10699, win 1812, length 128 E.....@.@.$... ... i..../..G..>.P...._.....|.SMB@...................5.......................................<........................................................... 01:25:55.444600 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 10699:10816, ack 63009, win 8210, length 117 E...gP@....E.. i.. .......>./...P. .d......q.SMB@...........0.......6.......................................1.P.(...................h........................ 01:25:55.447042 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 63009:63133, ack 10816, win 1812, length 124 E.....@.@.$... ... i..../.....>.P....[.....x.SMB@...................6.........................................P.(................$.J..O5.,.@........=V.....I.....2x. 01:25:55.447405 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 10816:10932, ack 63133, win 8209, length 116 E...gQ@....E.. i.. .......>./..CP. ........p.SMB@....... ...0.......7.......................................0...............h............................... 01:25:55.454378 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 63133:63201, ack 10932, win 1812, length 68 E..l..@.@.$... ... i..../..C..>.P....#.....@.SMB@....... ...........7....................................... 01:25:55.454810 IP NUC.lan.57984 > fenix.lan.445: Flags [P.], seq 10932:11024, ack 63201, win 8209, length 92 E...gR@....\.. i.. .......>./...P. ........X.SMB@...........0.......8.......................................................h....... 01:25:55.454932 IP fenix.lan.445 > NUC.lan.57984: Flags [P.], seq 63201:63329, ack 11024, win 1812, length 128 E.....@.@.$... ... i..../.....?YP...._.....|.SMB@...................8.......................................<........................................................... 01:25:55.495225 IP NUC.lan.57984 > fenix.lan.445: Flags [.], ack 63329, win 8208, length 0 E..(gS@....... i.. .......?Y/...P. .i......... ```

Hoping this helps to reproduce an equivalent setup; alternatively, perhaps could you kindly write which tcpdump parameters would be useful for debugging.

Thanks!

namjaejeon commented 11 months ago

Okay. I could not reproduce it using windows 10 client. I will try OneNote for Microsoft 365.

raenye commented 11 months ago

OneNote for Windows 10 is a different program, it's cloud only; only OneNote desktop (was 2016, then 365) can do local notebooks. Please let me know if further information is needed. Thanks.

raenye commented 9 months ago

Update: I upgraded from kernel 5.15.133 to 6.1.55 and the problem disappeared. No change in clients. Should I closed as resolved?

namjaejeon commented 9 months ago

@raenye Yes, You can close this ISSUE. Thanks!

Luckyparty commented 6 months ago

I just like to leave a comment here telling that I experience currently the same issue with OneNote365 running on a Win11 PC. The notebooks are stored on the ksmbd share. The log is spammed with the same error messages as described in the first post by @raenye.

Beside the anoying error messages there is a really nasty problem. The OneNote notebooks are not syncing properly anymore. As soon as you add a new chapter to a notebook it starts complaining. So basically OneNote is not useable anymore with ksmbd running on kernel 5.15 and as this is the current stable in OpenWrt it is a really bad situation. I can imagine that it takes quite some time until the 6.1.55 will become the next stable release.

I found out that creating a new tab in OneNote typically creates a new file where the notebook is stored. The file on the ksmbd share is only half the size compared to the size when the notebook is on a different share. On the different share no complains about syncing.

It would really be beneficial if anyone knows how to bypass this issue.

namjaejeon commented 6 months ago

@Luckyparty I am backported ksmbd patches to new linux-5.15.145. It is not released yet. I think that openWRT can pull linux-5.15.145 after it is released.

If you want to check your issue with ksmbd backport patches right now, you can use the following kernel.

git clone https://github.com/namjaejeon/stable-linux-5.15-ksmbd

Thanks.