ci starts bisection 2023-04-01 09:37:02.818247925 +0000 UTC m=+249163.264595903 bisecting cause commit starting from 4b0f4525dc4fe8af17b3daefe585f0c2eb0fe0a5 building syzkaller on f325deb023e4e2fb9197004be1b3da738680429c ensuring issue is reproducible on original commit 4b0f4525dc4fe8af17b3daefe585f0c2eb0fe0a5 testing commit 4b0f4525dc4fe8af17b3daefe585f0c2eb0fe0a5 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2a23572fd62e700319d6a3c71a3c2e7b8c21167a34765b340a3c4f7d27869d69 all runs: crashed: general protection fault in jhash testing release v6.2 testing commit c9c3395d5e3dcc6daee66c6908354d47bf98cb0c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 258b6bf6d69c72e060f6d49970f7edf97a3d3fcf19fb313acb02e63d028d826c all runs: OK # git bisect start 4b0f4525dc4fe8af17b3daefe585f0c2eb0fe0a5 c9c3395d5e3dcc6daee66c6908354d47bf98cb0c Bisecting: 11543 revisions left to test after this (roughly 14 steps) [84cc6674b76ba2cdac0df8037b4d8a22a6fc1b77] Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost testing commit 84cc6674b76ba2cdac0df8037b4d8a22a6fc1b77 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3572c2a21b4fad6322b14782367c73e78d222121e9155e9edd6275017ba32cef all runs: OK # git bisect good 84cc6674b76ba2cdac0df8037b4d8a22a6fc1b77 Bisecting: 5737 revisions left to test after this (roughly 13 steps) [3703dcdc5791ba3fab61f29fde775f9ae9af5d1d] Merge branch 'master' of git://linuxtv.org/mchehab/media-next.git testing commit 3703dcdc5791ba3fab61f29fde775f9ae9af5d1d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 99f03cbddb42588a4b06f2a449ea1e14ae7ad3b1da074418fd10853bbd567a70 all runs: OK # git bisect good 3703dcdc5791ba3fab61f29fde775f9ae9af5d1d Bisecting: 3077 revisions left to test after this (roughly 12 steps) [0b0bf95063e2234bdcc7e45421617f46ec0d0a32] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git testing commit 0b0bf95063e2234bdcc7e45421617f46ec0d0a32 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bde7ee7f502a587eaa286a658b52ab18d97bfabb50d08b6f61764b2a34614d80 all runs: crashed: general protection fault in jhash # git bisect bad 0b0bf95063e2234bdcc7e45421617f46ec0d0a32 Bisecting: 1311 revisions left to test after this (roughly 10 steps) [0f5cfd6616777a0a2ab35424dc2557bec8bfeb90] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git testing commit 0f5cfd6616777a0a2ab35424dc2557bec8bfeb90 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3e964f6731d92aae9d4d5f3c079ae8d4d0c4e55b0ab1a0e0dc77fadfaa48f1ca all runs: crashed: general protection fault in jhash # git bisect bad 0f5cfd6616777a0a2ab35424dc2557bec8bfeb90 Bisecting: 669 revisions left to test after this (roughly 9 steps) [4cee0fb9cc4b5477637fdeb2e965f5fc7d624622] Merge tag 'linux-can-next-for-6.4-20230327' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next testing commit 4cee0fb9cc4b5477637fdeb2e965f5fc7d624622 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7ab8c9900243d9d7d37c1dcc6bd2a2c55ca716f9b112447874340bbab8757c03 all runs: OK # git bisect good 4cee0fb9cc4b5477637fdeb2e965f5fc7d624622 Bisecting: 247 revisions left to test after this (roughly 8 steps) [2213a4c5228f6fb98bd66e467f08e30f59a3eb51] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git testing commit 2213a4c5228f6fb98bd66e467f08e30f59a3eb51 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 86e6bcadae2dc161a064c8d199729db3f1bd69f69a9c0a0d7e53549d295c8c5e all runs: OK # git bisect good 2213a4c5228f6fb98bd66e467f08e30f59a3eb51 Bisecting: 123 revisions left to test after this (roughly 7 steps) [56f4f12ba8f6d8cb52f776dfcd261f2e1040d38c] wifi: iwlwifi: mvm: unite sta_modify_disable_tx flows testing commit 56f4f12ba8f6d8cb52f776dfcd261f2e1040d38c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 656cbbae4c239ff817f03a80394a6e51194b186db212b3270388d8360665213b all runs: crashed: general protection fault in jhash # git bisect bad 56f4f12ba8f6d8cb52f776dfcd261f2e1040d38c Bisecting: 61 revisions left to test after this (roughly 6 steps) [6f71e90e65e9bb5d5e12199e19670bb4973a6e39] wifi: iwlwifi: mvm: add an unassign_vif_chanctx() callback for MLD mode testing commit 6f71e90e65e9bb5d5e12199e19670bb4973a6e39 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2fa83a66f7f15ef07a3335e1292031f3452f42133b1fb0f4682c91504694e7ca all runs: OK # git bisect good 6f71e90e65e9bb5d5e12199e19670bb4973a6e39 Bisecting: 30 revisions left to test after this (roughly 5 steps) [61587f1556fec39e8bafc40c8715f560639a4cf2] wifi: mac80211: add support for letting drivers register tc offload support testing commit 61587f1556fec39e8bafc40c8715f560639a4cf2 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a0086bd2ed825121920cc0fdb3097cc01a4a69cff452717c5d24ee9cc6b5b591 all runs: OK # git bisect good 61587f1556fec39e8bafc40c8715f560639a4cf2 Bisecting: 15 revisions left to test after this (roughly 4 steps) [92d13386ec55816b3bdd6d578e59a71226e12806] mac80211_hwsim: add PMSR capability support testing commit 92d13386ec55816b3bdd6d578e59a71226e12806 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f7e9fe186245d813f2934f73680d49f5e7f565de319c591403370688a45bf8c1 all runs: OK # git bisect good 92d13386ec55816b3bdd6d578e59a71226e12806 Bisecting: 7 revisions left to test after this (roughly 3 steps) [9a8aac92eba90b3b7c71d0531db535f5588388f5] wifi: nl80211: support advertising S1G capabilities testing commit 9a8aac92eba90b3b7c71d0531db535f5588388f5 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 382e91dbfd417c831f054897d6587dc938746f8b7e9e64ffb8fc0eba2f85fe5a all runs: crashed: general protection fault in jhash # git bisect bad 9a8aac92eba90b3b7c71d0531db535f5588388f5 Bisecting: 3 revisions left to test after this (roughly 2 steps) [2af3b2a631b194a43551ce119cb71559d8f6b54b] mac80211_hwsim: add PMSR report support via virtio testing commit 2af3b2a631b194a43551ce119cb71559d8f6b54b gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 66a18d5387dd387938d67265817a8e3136305956bf5888d23d6e1aa831e9801a all runs: crashed: general protection fault in jhash # git bisect bad 2af3b2a631b194a43551ce119cb71559d8f6b54b Bisecting: 1 revision left to test after this (roughly 1 step) [5530c04c87c5974d440ea95142e3e43ef7da4d5b] mac80211_hwsim: add PMSR request support via virtio testing commit 5530c04c87c5974d440ea95142e3e43ef7da4d5b gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e05019249794e325d5b5bc183f1b6434994effdf7af316d1a54d47c356af96a9 all runs: OK # git bisect good 5530c04c87c5974d440ea95142e3e43ef7da4d5b Bisecting: 0 revisions left to test after this (roughly 0 steps) [8ba1da95053e02d9cb4a6849356eae6dc5687f62] mac80211_hwsim: add PMSR abort support via virtio testing commit 8ba1da95053e02d9cb4a6849356eae6dc5687f62 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5cd609868a7f352a02a6fe64c17062668b8d8651294e9f1c38e94403f3eecde5 all runs: OK # git bisect good 8ba1da95053e02d9cb4a6849356eae6dc5687f62 2af3b2a631b194a43551ce119cb71559d8f6b54b is the first bad commit commit 2af3b2a631b194a43551ce119cb71559d8f6b54b Author: Jaewan Kim Date: Wed Mar 22 13:16:37 2023 +0000 mac80211_hwsim: add PMSR report support via virtio PMSR (a.k.a. peer measurement) is generalized measurement between two devices with Wi-Fi support. And currently FTM (a.k.a. fine time measurement or flight time measurement) is the one and only measurement. Add the necessary functionality to allow mac80211_hwsim to report PMSR result. The result would come from the wmediumd, where other Wi-Fi devices' information are kept. mac80211_hwsim only need to deliver the result to the userspace. In detail, add new mac80211_hwsim attributes HWSIM_CMD_REPORT_PMSR, and HWSIM_ATTR_PMSR_RESULT. When mac80211_hwsim receives the PMSR result with command HWSIM_CMD_REPORT_PMSR and detail with attribute HWSIM_ATTR_PMSR_RESULT, received data is parsed to cfg80211_pmsr_result and resent to the userspace by cfg80211_pmsr_report(). To help receive the details of PMSR result, hwsim_rate_info_attributes is added to receive rate_info without complex bitrate calculation. (i.e. send rate_info without adding inverse of nl80211_put_sta_rate()). Signed-off-by: Jaewan Kim Link: https://lore.kernel.org/r/20230322131637.2633968-6-jaewan@google.com [fix uninitialized return value when there are no reports] Signed-off-by: Johannes Berg drivers/net/wireless/virtual/mac80211_hwsim.c | 384 +++++++++++++++++++++++++- drivers/net/wireless/virtual/mac80211_hwsim.h | 51 +++- 2 files changed, 425 insertions(+), 10 deletions(-) culprit signature: 66a18d5387dd387938d67265817a8e3136305956bf5888d23d6e1aa831e9801a parent signature: 5cd609868a7f352a02a6fe64c17062668b8d8651294e9f1c38e94403f3eecde5 revisions tested: 16, total time: 5h22m30.213808979s (build: 3h30m45.899539444s, test: 1h48m24.06202405s) first bad commit: 2af3b2a631b194a43551ce119cb71559d8f6b54b mac80211_hwsim: add PMSR report support via virtio recipients (to): ["jaewan@google.com" "johannes.berg@intel.com"] recipients (cc): [] crash: general protection fault in jhash netlink: 240 bytes leftover after parsing attributes in process `syz-executor.0'. general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 5626 Comm: syz-executor.0 Not tainted 6.3.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:jhash+0x2d9/0x670 include/linux/jhash.h:95 Code: 41 5c 41 5d c3 83 fd 01 0f 84 7a ff ff ff eb ea 83 fd 05 74 35 48 8d 7b 05 48 b9 00 00 00 00 00 fc ff df 48 89 fe 48 c1 ee 03 <0f> b6 0c 0e 48 89 fe 83 e6 07 40 38 f1 7f 08 84 c9 0f 85 2e 03 00 RSP: 0018:ffffc90004dc72d0 EFLAGS: 00010202 RAX: 0000000032de2eca RBX: 0000000000000004 RCX: dffffc0000000000 RDX: 0000000032de2eca RSI: 0000000000000001 RDI: 0000000000000009 RBP: 0000000000000006 R08: 0000000000000001 R09: ffffffff905a8b87 R10: fffffbfff20b5170 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000032de2eca R14: ffffc90004dc7818 R15: ffffc90004dc7710 FS: 00007f65773a4700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000640 CR3: 0000000027902000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rht_key_hashfn include/linux/rhashtable.h:159 [inline] __rhashtable_lookup include/linux/rhashtable.h:604 [inline] rhashtable_lookup include/linux/rhashtable.h:646 [inline] rhashtable_lookup_fast include/linux/rhashtable.h:672 [inline] get_hwsim_data_ref_from_addr+0x90/0x400 drivers/net/wireless/virtual/mac80211_hwsim.c:757 hwsim_pmsr_report_nl+0xe1/0xca0 drivers/net/wireless/virtual/mac80211_hwsim.c:3764 genl_family_rcv_msg_doit.isra.0+0x1b8/0x290 net/netlink/genetlink.c:968 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline] genl_rcv_msg+0x3c9/0x6c0 net/netlink/genetlink.c:1065 netlink_rcv_skb+0x12a/0x390 net/netlink/af_netlink.c:2572 genl_rcv+0x23/0x30 net/netlink/genetlink.c:1076 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x437/0x710 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x790/0xc50 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xc0/0x150 net/socket.c:747 ____sys_sendmsg+0x5ff/0x8f0 net/socket.c:2501 ___sys_sendmsg+0xdb/0x160 net/socket.c:2555 __sys_sendmsg+0xc7/0x160 net/socket.c:2584 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:0x7f657668c0f9 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:00007f65773a4168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f65767abf80 RCX: 00007f657668c0f9 RDX: 0000000000000000 RSI: 0000000020001ac0 RDI: 0000000000000004 RBP: 00007f65766e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe7f2e1eef R14: 00007f65773a4300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:jhash+0x2d9/0x670 include/linux/jhash.h:95 Code: 41 5c 41 5d c3 83 fd 01 0f 84 7a ff ff ff eb ea 83 fd 05 74 35 48 8d 7b 05 48 b9 00 00 00 00 00 fc ff df 48 89 fe 48 c1 ee 03 <0f> b6 0c 0e 48 89 fe 83 e6 07 40 38 f1 7f 08 84 c9 0f 85 2e 03 00 RSP: 0018:ffffc90004dc72d0 EFLAGS: 00010202 RAX: 0000000032de2eca RBX: 0000000000000004 RCX: dffffc0000000000 RDX: 0000000032de2eca RSI: 0000000000000001 RDI: 0000000000000009 RBP: 0000000000000006 R08: 0000000000000001 R09: ffffffff905a8b87 R10: fffffbfff20b5170 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000032de2eca R14: ffffc90004dc7818 R15: ffffc90004dc7710 FS: 00007f65773a4700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561a20188950 CR3: 0000000027902000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 41 5c pop %r12 2: 41 5d pop %r13 4: c3 retq 5: 83 fd 01 cmp $0x1,%ebp 8: 0f 84 7a ff ff ff je 0xffffff88 e: eb ea jmp 0xfffffffa 10: 83 fd 05 cmp $0x5,%ebp 13: 74 35 je 0x4a 15: 48 8d 7b 05 lea 0x5(%rbx),%rdi 19: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 20: fc ff df 23: 48 89 fe mov %rdi,%rsi 26: 48 c1 ee 03 shr $0x3,%rsi * 2a: 0f b6 0c 0e movzbl (%rsi,%rcx,1),%ecx <-- trapping instruction 2e: 48 89 fe mov %rdi,%rsi 31: 83 e6 07 and $0x7,%esi 34: 40 38 f1 cmp %sil,%cl 37: 7f 08 jg 0x41 39: 84 c9 test %cl,%cl 3b: 0f .byte 0xf 3c: 85 2e test %ebp,(%rsi) 3e: 03 00 add (%rax),%eax