ci starts bisection 2023-06-13 16:31:28.273717606 +0000 UTC m=+838.609641567 bisecting cause commit starting from c29e012eae29c13f092a95f1ffab40a269fe5bc2 building syzkaller on 749afb64a55dba8e4a50d96bc287ae06346b4244 ensuring issue is reproducible on original commit c29e012eae29c13f092a95f1ffab40a269fe5bc2 testing commit c29e012eae29c13f092a95f1ffab40a269fe5bc2 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5385d960cfc04e5644e74bead1b5ebeadc1b6c18283a87389ecb70e6ac11eb5f all runs: crashed: WARNING in unreserve_psock testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 64941b22355956d6986c34618b2a7e9b55171e5a35802e9d0af3de3c64562826 all runs: OK # git bisect start c29e012eae29c13f092a95f1ffab40a269fe5bc2 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 8265 revisions left to test after this (roughly 13 steps) [34b62f186db9614e55d021f8c58d22fc44c57911] Merge tag 'pci-v6.4-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci testing commit 34b62f186db9614e55d021f8c58d22fc44c57911 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 80e41257a4077a90d22c64612d4b1f55f71b8b4a1fd32ee47f73c87fb3a9c546 all runs: OK # git bisect good 34b62f186db9614e55d021f8c58d22fc44c57911 Bisecting: 4222 revisions left to test after this (roughly 12 steps) [d75439d64a1e2b35e0f08906205b00279753cbed] Merge tag 'for-linus' of https://github.com/openrisc/linux testing commit d75439d64a1e2b35e0f08906205b00279753cbed gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7f3ddb7dbb4840c44913528c7baf13a423a4866b160ae93c611301f68b8e2145 all runs: OK # git bisect good d75439d64a1e2b35e0f08906205b00279753cbed Bisecting: 2112 revisions left to test after this (roughly 11 steps) [2be5bd42a5bba1a05daedc86cf0e248210009669] net/mlx5: Handle pairing of E-switch via uplink un/load APIs testing commit 2be5bd42a5bba1a05daedc86cf0e248210009669 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 09038a3d11521ff0fb26114dbccfe19ced8f02cb68c8032b5ba875c5dc35b6ec all runs: OK # git bisect good 2be5bd42a5bba1a05daedc86cf0e248210009669 Bisecting: 1060 revisions left to test after this (roughly 10 steps) [25041a4c02c7cf774d8b6ed60586fd64f1cdaa81] Merge tag 'net-6.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 25041a4c02c7cf774d8b6ed60586fd64f1cdaa81 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fbcfdb2da3e04b512e22cbfed2bab7daa9dd8f96531be87eef42e306b4704a39 all runs: OK # git bisect good 25041a4c02c7cf774d8b6ed60586fd64f1cdaa81 Bisecting: 530 revisions left to test after this (roughly 9 steps) [7b4858df3bf7a8d43ed6b58f411543a040c56f10] skbuff: bridge: Add layer 2 miss indication testing commit 7b4858df3bf7a8d43ed6b58f411543a040c56f10 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ca686a820009fbc7e8b22c830b0a09d12005721f99a3540d1f0699d6e93a5e5b all runs: OK # git bisect good 7b4858df3bf7a8d43ed6b58f411543a040c56f10 Bisecting: 264 revisions left to test after this (roughly 8 steps) [ded5c1a16ec69bb815f2b7d9ea4028913ebffca4] Merge branch 'tools-ynl-gen-code-gen-improvements-before-ethtool' testing commit ded5c1a16ec69bb815f2b7d9ea4028913ebffca4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5f29715c96b76f2168a5b2fca20936e40336501b8c7b6c5a581058f96e272e69 all runs: OK # git bisect good ded5c1a16ec69bb815f2b7d9ea4028913ebffca4 Bisecting: 132 revisions left to test after this (roughly 7 steps) [10f5ae21940cc754f82828d81b8009f2e8ae2c64] Merge wireless into wireless-next testing commit 10f5ae21940cc754f82828d81b8009f2e8ae2c64 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f59d08a7b1d2656294797fa8d0d489b4ce41456869b64aea708f8a4c08af136c all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip 10f5ae21940cc754f82828d81b8009f2e8ae2c64 Bisecting: 132 revisions left to test after this (roughly 7 steps) [925244325159824385209e3e0e3f91fa6bf0646c] wifi: orinoco: Fix an error handling path in spectrum_cs_probe() testing commit 925244325159824385209e3e0e3f91fa6bf0646c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b5b4dbea5005f2a1720019030c388eab8f574faa1c678431cc1c78edd35530dc all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip 925244325159824385209e3e0e3f91fa6bf0646c Bisecting: 132 revisions left to test after this (roughly 7 steps) [a3df43b16fc49213ab4b925711d4725e1e2f2305] wifi: mac80211: unregister netdevs through cfg80211 testing commit a3df43b16fc49213ab4b925711d4725e1e2f2305 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ad49342ff138c2c266b18aac7ae98c41df5c5e8b77ff9137a6f440f2eba83972 all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip a3df43b16fc49213ab4b925711d4725e1e2f2305 Bisecting: 132 revisions left to test after this (roughly 7 steps) [daef020558bc34e8031263aa7cf9e803d709f93a] wifi: ray_cs: remove one redundant del_timer testing commit daef020558bc34e8031263aa7cf9e803d709f93a gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fab8ab15b576d5881bfd427339caa27a128ed4b5a6fd470dbbe1ae36d6b33a0d all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip daef020558bc34e8031263aa7cf9e803d709f93a Bisecting: 132 revisions left to test after this (roughly 7 steps) [a3ee4dc84c4e9d14cb34dad095fd678127aca5b6] wifi: cfg80211: add a work abstraction with special semantics testing commit a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 040365e352f9802e6baeaa55424c9dde8c10a734e3ab15bc65ea9d9277c6e177 all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 Bisecting: 132 revisions left to test after this (roughly 7 steps) [f1e668d29c57499f734a291bfb96a82142322f41] net: enetc: reset taprio stats when taprio is deleted testing commit f1e668d29c57499f734a291bfb96a82142322f41 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: dfb704974ee196602fd62393ae14ac16ab03fca9b09996760fa0087fa3e48983 all runs: OK # git bisect good f1e668d29c57499f734a291bfb96a82142322f41 Bisecting: 33 revisions left to test after this (roughly 5 steps) [f2f069da4c40dcf136db731c9fece17c3bbf7cdc] Merge branch 'ethtool-extack' testing commit f2f069da4c40dcf136db731c9fece17c3bbf7cdc gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e1a60785e8a6f5f01323f1c3540c708f6bb71e95a16eebfa2d93c1f1708d4bbf all runs: OK # git bisect good f2f069da4c40dcf136db731c9fece17c3bbf7cdc Bisecting: 18 revisions left to test after this (roughly 4 steps) [978015f7ef9240acfb078f4c1c0d79459b42f951] net/mlx5e: Remove a useless function call testing commit 978015f7ef9240acfb078f4c1c0d79459b42f951 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 05cf3a84a570cdd54116afd75e98087c7e3195aeb33c1f7d436ec1d26f6a758e all runs: OK # git bisect good 978015f7ef9240acfb078f4c1c0d79459b42f951 Bisecting: 8 revisions left to test after this (roughly 3 steps) [1668a55a73f5a3ddde1019695223eed8e23b9436] selftests: net: add tc flower cfm test testing commit 1668a55a73f5a3ddde1019695223eed8e23b9436 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b6b9a8d7c72de04178e02665b97f589219e6957d0de41a3fdc1d00088a07e6cb all runs: OK # git bisect good 1668a55a73f5a3ddde1019695223eed8e23b9436 Bisecting: 4 revisions left to test after this (roughly 2 steps) [5df5dd03a8f71ca9640f208d8f523856e1069ee7] sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage testing commit 5df5dd03a8f71ca9640f208d8f523856e1069ee7 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 49fddd1e8e0aadf0bb9c049ad1f35349bef0762c5c2097a39447f825826c098d all runs: OK # git bisect good 5df5dd03a8f71ca9640f208d8f523856e1069ee7 Bisecting: 2 revisions left to test after this (roughly 1 step) [264ba53fac79b03ff754bce62da5027ee3c57b8f] kcm: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage testing commit 264ba53fac79b03ff754bce62da5027ee3c57b8f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bc64a1fb39da3983d5942f77654517e60d4890ad314ab870d8577ecf3986a712 all runs: OK # git bisect good 264ba53fac79b03ff754bce62da5027ee3c57b8f Bisecting: 0 revisions left to test after this (roughly 1 step) [7d4e87e97382848affe0000eefef1a9b176f3b5c] Merge branch 'splice-net-some-miscellaneous-msg_splice_pages-changes' testing commit 7d4e87e97382848affe0000eefef1a9b176f3b5c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fe9bacb1a50dc682911d829f1aeae88735de058734682bfb7167a1051e9f77ee all runs: crashed: WARNING in unreserve_psock # git bisect bad 7d4e87e97382848affe0000eefef1a9b176f3b5c Bisecting: 0 revisions left to test after this (roughly 0 steps) [c31a25e1db486f36a0ffe3c849b0a82cda3db7db] kcm: Send multiple frags in one sendmsg() testing commit c31a25e1db486f36a0ffe3c849b0a82cda3db7db gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8719d48ac0f1319345ec36676e74fdf71fc7c7d30b71f8196b5397ab15a4627a all runs: crashed: WARNING in unreserve_psock # git bisect bad c31a25e1db486f36a0ffe3c849b0a82cda3db7db c31a25e1db486f36a0ffe3c849b0a82cda3db7db is the first bad commit commit c31a25e1db486f36a0ffe3c849b0a82cda3db7db Author: David Howells Date: Fri Jun 9 11:02:21 2023 +0100 kcm: Send multiple frags in one sendmsg() Rewrite the AF_KCM transmission loop to send all the fragments in a single skb or frag_list-skb in one sendmsg() with MSG_SPLICE_PAGES set. The list of fragments in each skb is conveniently a bio_vec[] that can just be attached to a BVEC iter. Note: I'm working out the size of each fragment-skb by adding up bv_len for all the bio_vecs in skb->frags[] - but surely this information is recorded somewhere? For the skbs in head->frag_list, this is equal to skb->data_len, but not for the head. head->data_len includes all the tail frags too. Signed-off-by: David Howells cc: Tom Herbert cc: Tom Herbert cc: Jens Axboe cc: Matthew Wilcox Signed-off-by: Jakub Kicinski include/net/kcm.h | 2 +- net/kcm/kcmsock.c | 126 ++++++++++++++++++++++-------------------------------- 2 files changed, 51 insertions(+), 77 deletions(-) culprit signature: 8719d48ac0f1319345ec36676e74fdf71fc7c7d30b71f8196b5397ab15a4627a parent signature: bc64a1fb39da3983d5942f77654517e60d4890ad314ab870d8577ecf3986a712 revisions tested: 21, total time: 8h11m5.475968114s (build: 5h41m54.307871597s, test: 2h25m21.790104381s) first bad commit: c31a25e1db486f36a0ffe3c849b0a82cda3db7db kcm: Send multiple frags in one sendmsg() recipients (to): ["dhowells@redhat.com" "kuba@kernel.org"] recipients (cc): [] crash: WARNING in unreserve_psock ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5426 at net/kcm/kcmsock.c:533 spin_unlock_bh include/linux/spinlock.h:395 [inline] WARNING: CPU: 1 PID: 5426 at net/kcm/kcmsock.c:533 unreserve_psock+0x2a5/0x610 net/kcm/kcmsock.c:567 Modules linked in: CPU: 1 PID: 5426 Comm: syz-executor.0 Not tainted 6.4.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:unreserve_psock+0x2a5/0x610 net/kcm/kcmsock.c:533 Code: 00 0f b6 85 84 01 00 00 a8 01 75 29 48 89 ef e8 c1 b2 ff ff 48 83 c4 08 4c 89 f7 5b 5d 41 5c 41 5d 41 5e 41 5f e9 4b fb bd 00 <0f> 0b eb e6 0f 0b e9 21 ff ff ff a8 02 74 db 4c 8d ad a0 01 00 00 RSP: 0018:ffffc900044df6a0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888077618000 RCX: ffffffff815d61f4 RDX: 1ffff1100eec30b3 RSI: 0000000000000004 RDI: ffffc900044df630 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003 R10: fffff5200089bec6 R11: 1ffffffff1f6a3a0 R12: ffff8880730f8000 R13: ffff888077618288 R14: ffff8880730f81c0 R15: ffff888077618598 FS: 00007f8ffc49d700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200006c0 CR3: 0000000072fbf000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kcm_write_msgs+0x4bd/0x1470 net/kcm/kcmsock.c:699 kcm_sendmsg+0x1222/0x27b0 net/kcm/kcmsock.c:903 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xc0/0x150 net/socket.c:747 ____sys_sendmsg+0x38e/0x880 net/socket.c:2493 ___sys_sendmsg+0xdb/0x160 net/socket.c:2547 __sys_sendmmsg+0x13e/0x300 net/socket.c:2633 __do_sys_sendmmsg net/socket.c:2662 [inline] __se_sys_sendmmsg net/socket.c:2659 [inline] __x64_sys_sendmmsg+0x98/0x100 net/socket.c:2659 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f8ffb68c199 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8ffc49d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f8ffb7abf80 RCX: 00007f8ffb68c199 RDX: 0000000000000001 RSI: 00000000200006c0 RDI: 0000000000000003 RBP: 00007f8ffb6e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde3dc1f2f R14: 00007f8ffc49d300 R15: 0000000000022000