bisecting cause commit starting from 01f4685797a5723b0046da03c30185ac9ff42b30 building syzkaller on beb0b407180f93f1c6acb56cbcf4a30c0ef50f25 testing commit 01f4685797a5723b0046da03c30185ac9ff42b30 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a1d94f7f5a07abbbcf43e69ce9b42b2e6ae9f088fe4decb15bdccadf054d36a3 all runs: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info testing release v5.17 testing commit f443e374ae131c168a065ea1748feac6b2e76613 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: dfaa871ab204f09d43deb189c8f9433f76a24c9ef58443965d68e56c1320efb4 all runs: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info testing release v5.16 testing commit df0cc57e057f18e44dac8e6c18aba47ab53202f9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8c8cd11e872a84dc6a3cb86b506878660a558b377c59d0da9c8fdbff10fb7acd all runs: OK # git bisect start f443e374ae131c168a065ea1748feac6b2e76613 df0cc57e057f18e44dac8e6c18aba47ab53202f9 Bisecting: 6995 revisions left to test after this (roughly 13 steps) [22ef12195e13c5ec58320dbf99ef85059a2c0820] Merge tag 'staging-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging testing commit 22ef12195e13c5ec58320dbf99ef85059a2c0820 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c00c1fb0b57dae601abf3b6e5789d24150995dfe21def5e0d0cd6d8be9c7d9b5 all runs: OK # git bisect good 22ef12195e13c5ec58320dbf99ef85059a2c0820 Bisecting: 3520 revisions left to test after this (roughly 12 steps) [51620150ca2df62f8ea472ab8962be590c957288] cifs: update internal module number testing commit 51620150ca2df62f8ea472ab8962be590c957288 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c8a7c0bbbcdffc1d5be0cf73bbe976af3df1daef8e4ff0bc796b70e10b578391 all runs: OK # git bisect good 51620150ca2df62f8ea472ab8962be590c957288 Bisecting: 1760 revisions left to test after this (roughly 11 steps) [d1ca60efc53d665cf89ed847a14a510a81770b81] netfilter: ctnetlink: disable helper autoassign testing commit d1ca60efc53d665cf89ed847a14a510a81770b81 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3b1fea39a4b488592bbc70c831ecdae039f8870d98ac430e629971abad4b76d2 failed: failed to create VM pool: failed to create GCE image: create image operation failed: &{Code:PERMISSIONS_ERROR Location: Message:Required 'read' permission for 'disks/ci-upstream-net-kasan-gce-bisect-job-bisect-job-image.tar.gz' ForceSendFields:[] NullFields:[]}. # git bisect skip d1ca60efc53d665cf89ed847a14a510a81770b81 Bisecting: 1760 revisions left to test after this (roughly 11 steps) [f8ae3a489b21b05c39a0a1a7734f2a0188852177] vdpa/mlx5: Fix is_index_valid() to refer to features testing commit f8ae3a489b21b05c39a0a1a7734f2a0188852177 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e947cb6209bc7f3368ddca1b73ecf1c74e42153ea010a1ab76cf85393dab4475 all runs: OK # git bisect good f8ae3a489b21b05c39a0a1a7734f2a0188852177 Bisecting: 1739 revisions left to test after this (roughly 11 steps) [5611a00697c8ecc5aad04392bea629e9d6a20463] ipmr,ip6mr: acquire RTNL before calling ip[6]mr_free_table() on failure path testing commit 5611a00697c8ecc5aad04392bea629e9d6a20463 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6c7bb3725458c66f217dc1360461c7812ffa1518aa0e61922008734e8418f740 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: exit status NUM run #1: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #2: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #3: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #4: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #5: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #6: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #7: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #8: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #9: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info # git bisect bad 5611a00697c8ecc5aad04392bea629e9d6a20463 Bisecting: 869 revisions left to test after this (roughly 10 steps) [b475d42d2c43321d8bea685f54916220cb76b511] zsmalloc: replace per zpage lock with pool->migrate_lock testing commit b475d42d2c43321d8bea685f54916220cb76b511 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ac14d012de2b49604a78e308353a3d6dd72ca8d602beb3755050511b80e48d55 all runs: OK # git bisect good b475d42d2c43321d8bea685f54916220cb76b511 Bisecting: 434 revisions left to test after this (roughly 9 steps) [3d2504663c41104b4359a15f35670cfa82de1bbf] i40e: Fix reset bw limit when DCB enabled with 1 TC testing commit 3d2504663c41104b4359a15f35670cfa82de1bbf compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e592b8dcee1c0ba9ef48a0ba39ff7ceab2459e5bf85ba183e6e03a2fce48a9a9 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: exit status NUM run #1: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #2: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #3: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #4: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #5: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #6: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #7: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #8: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info run #9: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info # git bisect bad 3d2504663c41104b4359a15f35670cfa82de1bbf Bisecting: 212 revisions left to test after this (roughly 8 steps) [40c843218f11625722e9a7c3ced81a83b95ecf05] Merge tag 'perf-tools-for-v5.17-2022-01-22' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux testing commit 40c843218f11625722e9a7c3ced81a83b95ecf05 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: af24326c8932bd0468217570451523e8ed8693fbc24726e8cdad0bd1de029c40 all runs: OK # git bisect good 40c843218f11625722e9a7c3ced81a83b95ecf05 Bisecting: 114 revisions left to test after this (roughly 7 steps) [fd20d9738395cf8e27d0a17eba34169699fccdff] net: bridge: vlan: fix memory leak in __allowed_ingress testing commit fd20d9738395cf8e27d0a17eba34169699fccdff compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c39e85a0557f0a6c54f0dd77b1e9a727cfaee9c91aca99e9a8881b8098b92d8e all runs: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info # git bisect bad fd20d9738395cf8e27d0a17eba34169699fccdff Bisecting: 48 revisions left to test after this (roughly 6 steps) [db9f0e8bf79e6da7068b5818fea0ffd9d0d4b4da] ibmvnic: Allow extra failures before disabling testing commit db9f0e8bf79e6da7068b5818fea0ffd9d0d4b4da compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 37b89311cc459100c9330220c5d296f29589661815666cbe62b7eba35898b3d1 all runs: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info # git bisect bad db9f0e8bf79e6da7068b5818fea0ffd9d0d4b4da Bisecting: 26 revisions left to test after this (roughly 5 steps) [276c7635d7be3aa233251354bd7e8b77ab5dcf9c] Merge branch 'mptcp-a-few-fixes' testing commit 276c7635d7be3aa233251354bd7e8b77ab5dcf9c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 65309fe7a7c6404a655fe6a2bb63521cf7cc4a4ef724e116681dc24f95c7e3ff all runs: OK # git bisect good 276c7635d7be3aa233251354bd7e8b77ab5dcf9c Bisecting: 12 revisions left to test after this (roughly 4 steps) [c5d731c54a17677939bd59ee8be4ed74d7485ba4] octeontx2-pf: cn10k: Ensure valid pointers are freed to aura testing commit c5d731c54a17677939bd59ee8be4ed74d7485ba4 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 88ce7e77b3739d66a6c6a49d90cb033df3154326e36a5a5d405c73f6cf93550d all runs: OK # git bisect good c5d731c54a17677939bd59ee8be4ed74d7485ba4 Bisecting: 6 revisions left to test after this (roughly 3 steps) [2c13c05c5ff4b9fc907b07f7311821910ebaaf8a] rxrpc: Adjust retransmission backoff testing commit 2c13c05c5ff4b9fc907b07f7311821910ebaaf8a compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e535dcf61e23b2cde0af4587e94631f79efbc6048b21f9c5dbe2651388342bc9 all runs: OK # git bisect good 2c13c05c5ff4b9fc907b07f7311821910ebaaf8a Bisecting: 3 revisions left to test after this (roughly 2 steps) [2148927e6ed43a1667baf7c2ae3e0e05a44b51a0] net: sfp: ignore disabled SFP node testing commit 2148927e6ed43a1667baf7c2ae3e0e05a44b51a0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2f04af00d56429a548b40d72417c5406e130fee10a2052418847ce902d7098e7 all runs: OK # git bisect good 2148927e6ed43a1667baf7c2ae3e0e05a44b51a0 Bisecting: 1 revision left to test after this (roughly 1 step) [1d10f8a1f40b965d449e8f2d5ed7b96a7c138b77] net-procfs: show net devices bound packet types testing commit 1d10f8a1f40b965d449e8f2d5ed7b96a7c138b77 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7f3f42aeea907123600ed7579e4ce40cfc6280c9d07f1b1c5b26c4873a19e7d5 all runs: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info # git bisect bad 1d10f8a1f40b965d449e8f2d5ed7b96a7c138b77 Bisecting: 0 revisions left to test after this (roughly 0 steps) [aa6034678e873db8bd5c5a4b73f8b88c469374d6] bonding: use rcu_dereference_rtnl when get bonding active slave testing commit aa6034678e873db8bd5c5a4b73f8b88c469374d6 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 65ec52550f29d303a78678382887377e99863cbbcf98c450bd8f016eb38d7b97 all runs: crashed: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info # git bisect bad aa6034678e873db8bd5c5a4b73f8b88c469374d6 aa6034678e873db8bd5c5a4b73f8b88c469374d6 is the first bad commit commit aa6034678e873db8bd5c5a4b73f8b88c469374d6 Author: Hangbin Liu Date: Fri Jan 21 16:25:18 2022 +0800 bonding: use rcu_dereference_rtnl when get bonding active slave bond_option_active_slave_get_rcu() should not be used in rtnl_mutex as it use rcu_dereference(). Replace to rcu_dereference_rtnl() so we also can use this function in rtnl protected context. With this update, we can rmeove the rcu_read_lock/unlock in bonding .ndo_eth_ioctl and .get_ts_info. Reported-by: Vladimir Oltean Fixes: 94dd016ae538 ("bond: pass get_ts_info and SIOC[SG]HWTSTAMP ioctl to active device") Signed-off-by: Hangbin Liu Signed-off-by: David S. Miller drivers/net/bonding/bond_main.c | 4 ---- include/net/bonding.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) culprit signature: 65ec52550f29d303a78678382887377e99863cbbcf98c450bd8f016eb38d7b97 parent signature: 2f04af00d56429a548b40d72417c5406e130fee10a2052418847ce902d7098e7 revisions tested: 19, total time: 3h48m35.439637166s (build: 1h55m0.9283417s, test: 1h51m43.651111705s) first bad commit: aa6034678e873db8bd5c5a4b73f8b88c469374d6 bonding: use rcu_dereference_rtnl when get bonding active slave recipients (to): ["andy@greyhouse.net" "davem@davemloft.net" "davem@davemloft.net" "j.vosburgh@gmail.com" "kuba@kernel.org" "liuhangbin@gmail.com" "netdev@vger.kernel.org" "vfalico@gmail.com"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: WARNING: suspicious RCU usage in bond_ethtool_get_ts_info ============================= WARNING: suspicious RCU usage 5.16.0-syzkaller #0 Not tainted ----------------------------- include/net/bonding.h:349 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 1 lock held by syz-executor.0/4097: #0: ffff8880761b2830 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1668 [inline] #0: ffff8880761b2830 (sk_lock-AF_INET){+.+.}-{0:0}, at: sock_setsockopt+0x192/0x2330 net/core/sock.c:1043 stack backtrace: CPU: 0 PID: 4097 Comm: syz-executor.0 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 bond_option_active_slave_get_rcu include/net/bonding.h:349 [inline] bond_ethtool_get_ts_info+0x25a/0x2d0 drivers/net/bonding/bond_main.c:5383 ethtool_get_phc_vclocks+0x8b/0xf0 net/ethtool/common.c:565 sock_timestamping_bind_phc net/core/sock.c:846 [inline] sock_set_timestamping+0x23f/0x5d0 net/core/sock.c:893 sock_setsockopt+0x429/0x2330 net/core/sock.c:1198 __sys_setsockopt+0x336/0x470 net/socket.c:2176 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0xb5/0x150 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f9bbd8020e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f9bbcf77168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f9bbd914f60 RCX: 00007f9bbd8020e9 RDX: 0000000000000041 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 00007f9bbd85c08d R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9cda672f R14: 00007f9bbcf77300 R15: 0000000000022000