bisecting cause commit starting from 6cf7a1ac0fedad8a70c050ade8a27a2071638500 building syzkaller on f752fb536b579822da36383d50f78ff6f912a637 testing commit 6cf7a1ac0fedad8a70c050ade8a27a2071638500 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c19c7fb9773ebae86c575de9de804883912bd49c13da9d2e0711e139ba1f1675 all runs: crashed: WARNING in ref_tracker_dir_exit testing release v5.15 testing commit 8bb7eca972ad531c9b149c0a51ab43a417385813 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 71323c101898a9d6190815ff9f0f1d0fc16010a2b4108dab910da9879ec0438d all runs: OK # git bisect start 6cf7a1ac0fedad8a70c050ade8a27a2071638500 8bb7eca972ad531c9b149c0a51ab43a417385813 Bisecting: 7990 revisions left to test after this (roughly 13 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [2219b0ceefe835b92a8a74a73fe964aa052742a2] Merge tag 'soc-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit 2219b0ceefe835b92a8a74a73fe964aa052742a2 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 785815b5e49062bdd4dfbd45e2ff9b51cb2ced0839d251b61500c50ceefe9473 all runs: OK # git bisect good 2219b0ceefe835b92a8a74a73fe964aa052742a2 Bisecting: 3981 revisions left to test after this (roughly 12 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [dd72945c43d34bee496b847e021069dc31f7398f] Merge tag 'cxl-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl testing commit dd72945c43d34bee496b847e021069dc31f7398f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d9e7372701565a8dfbe9a020e0f3c8ef6b17d35311c472a2a72596407d7c0e56 all runs: OK # git bisect good dd72945c43d34bee496b847e021069dc31f7398f Bisecting: 1985 revisions left to test after this (roughly 11 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [75603b14ed142fa142976bd962c1b44b8e0d2714] Merge tag 'powerpc-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux testing commit 75603b14ed142fa142976bd962c1b44b8e0d2714 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 382c1adf7784a82596b9fde2147dac5a996d6cfe8c1fac0a247ea008b5c0415d all runs: OK # git bisect good 75603b14ed142fa142976bd962c1b44b8e0d2714 Bisecting: 1004 revisions left to test after this (roughly 10 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [36d7d36fcf69e7f95068307f8bc519af31085431] selftests: net: remove meaningless help option testing commit 36d7d36fcf69e7f95068307f8bc519af31085431 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ae4f2e5f1a14a579a93b84eee5f463280643104c2378e34133dc20a57e7b674f all runs: OK # git bisect good 36d7d36fcf69e7f95068307f8bc519af31085431 Bisecting: 505 revisions left to test after this (roughly 9 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [1a2fb220edca98d18f90e3ef5bd6853a6b22b1b8] skbuff: Extract list pointers to silence compiler warnings testing commit 1a2fb220edca98d18f90e3ef5bd6853a6b22b1b8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d9444a04e5b533eca491c64fa1f5273230a06e2cf314daba688901074887d385 all runs: crashed: WARNING in ref_tracker_dir_exit # git bisect bad 1a2fb220edca98d18f90e3ef5bd6853a6b22b1b8 Bisecting: 233 revisions left to test after this (roughly 8 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [a51e3ac43ddbad891c2b1a4f3aa52371d6939570] Merge tag 'net-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit a51e3ac43ddbad891c2b1a4f3aa52371d6939570 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9bb1111a8be698ee680b00fb8d9ead419fe4e37ba12b7c8d9857d260c9a18346 all runs: OK # git bisect good a51e3ac43ddbad891c2b1a4f3aa52371d6939570 Bisecting: 143 revisions left to test after this (roughly 7 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [adc76fc97bd8bd7236c57569650bbe6f9c2be024] Merge branch 'net-second-round-of-netdevice-refcount-tracking' testing commit adc76fc97bd8bd7236c57569650bbe6f9c2be024 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f216c202649a270ab366d97f6d8d3cdcc19c3bc9167841991cdbff1a8cbe2910 all runs: crashed: WARNING in ref_tracker_dir_exit # git bisect bad adc76fc97bd8bd7236c57569650bbe6f9c2be024 Bisecting: 44 revisions left to test after this (roughly 6 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [fb67510ba9bd3ed1f8a2db4946e847ca0418f8dc] ipv6: add net device refcount tracker to rt6_probe_deferred() testing commit fb67510ba9bd3ed1f8a2db4946e847ca0418f8dc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 784acc4c52e5a870d5a59cdf747cb1db2121640f22e3b8db4dc6b85685a49d4f all runs: OK # git bisect good fb67510ba9bd3ed1f8a2db4946e847ca0418f8dc Bisecting: 22 revisions left to test after this (roughly 5 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [5cbd886ce2a9f4627ff9cdab1bc97a401a24b309] selftests: mptcp: add TCP_INQ support testing commit 5cbd886ce2a9f4627ff9cdab1bc97a401a24b309 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7ce50d26bb8f5855a876a617893cea15e07b5323fa05663f5887e5852bc4db8b all runs: OK # git bisect good 5cbd886ce2a9f4627ff9cdab1bc97a401a24b309 Bisecting: 11 revisions left to test after this (roughly 4 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [19c9ebf6ed70856385296a65e78c1699081b152f] vlan: add net device refcount tracker testing commit 19c9ebf6ed70856385296a65e78c1699081b152f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8ac1eca4f1a4b1c17902ba1be56a6ca52301e03ef5817a4b93378f936b7406c1 all runs: OK # git bisect good 19c9ebf6ed70856385296a65e78c1699081b152f Bisecting: 5 revisions left to test after this (roughly 3 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [615d069dcf1207462ce30c05a2f47d461be8f6c8] llc: add net device refcount tracker testing commit 615d069dcf1207462ce30c05a2f47d461be8f6c8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 55a654ecf5587139cbc4f1a99e13a42a1dc91a1ab9fb11e76a19ff5ad3bacc41 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: exit status NUM run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 615d069dcf1207462ce30c05a2f47d461be8f6c8 Bisecting: 2 revisions left to test after this (roughly 2 steps) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [e4b8954074f6d0db01c8c97d338a67f9389c042f] netlink: add net device refcount tracker to struct ethnl_req_info testing commit e4b8954074f6d0db01c8c97d338a67f9389c042f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a3d438ad1f15baee6f36398ca9f3013c4008f94889975b5d2a5517adcedf1b01 all runs: crashed: WARNING in ref_tracker_dir_exit # git bisect bad e4b8954074f6d0db01c8c97d338a67f9389c042f Bisecting: 0 revisions left to test after this (roughly 1 step) warning: unable to access '/syzkaller/.config/git/ignore': Permission denied warning: unable to access '/syzkaller/.config/git/attributes': Permission denied [b60645248af3b2485c7695f04e5ecfbc129eb1f7] net/smc: add net device tracker to struct smc_pnetentry testing commit b60645248af3b2485c7695f04e5ecfbc129eb1f7 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5ab64a4c12bfbe4c9276c84d01eb066e62462ed1000c46196fbd7a7e040ce6c2 all runs: OK # git bisect good b60645248af3b2485c7695f04e5ecfbc129eb1f7 warning: unable to access '/syzkaller/.config/git/attributes': Permission denied e4b8954074f6d0db01c8c97d338a67f9389c042f is the first bad commit commit e4b8954074f6d0db01c8c97d338a67f9389c042f Author: Eric Dumazet Date: Mon Dec 6 17:30:37 2021 -0800 netlink: add net device refcount tracker to struct ethnl_req_info Signed-off-by: Eric Dumazet Signed-off-by: Jakub Kicinski net/ethtool/netlink.c | 8 +++++--- net/ethtool/netlink.h | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) culprit signature: a3d438ad1f15baee6f36398ca9f3013c4008f94889975b5d2a5517adcedf1b01 parent signature: 5ab64a4c12bfbe4c9276c84d01eb066e62462ed1000c46196fbd7a7e040ce6c2 revisions tested: 15, total time: 3h13m18.392463383s (build: 2h2m39.281600774s, test: 1h9m9.941580818s) first bad commit: e4b8954074f6d0db01c8c97d338a67f9389c042f netlink: add net device refcount tracker to struct ethnl_req_info recipients (to): ["davem@davemloft.net" "edumazet@google.com" "kuba@kernel.org" "kuba@kernel.org" "netdev@vger.kernel.org"] recipients (cc): ["hkallweit1@gmail.com" "linux-kernel@vger.kernel.org"] crash: WARNING in ref_tracker_dir_exit call_netdevice_notifiers_extack net/core/dev.c:1931 [inline] call_netdevice_notifiers net/core/dev.c:1945 [inline] netdev_features_change net/core/dev.c:1290 [inline] netdev_update_features net/core/dev.c:9385 [inline] netdev_update_features+0xa3/0xb0 net/core/dev.c:9382 hsr_add_port+0x3a1/0x670 net/hsr/hsr_slave.c:193 hsr_dev_finalize+0x439/0x700 net/hsr/hsr_device.c:531 hsr_newlink+0x29b/0x660 net/hsr/hsr_netlink.c:102 __rtnl_newlink+0xd16/0x13e0 net/core/rtnetlink.c:3457 rtnl_newlink+0x5a/0x90 net/core/rtnetlink.c:3505 rtnetlink_rcv_msg+0x31d/0x8d0 net/core/rtnetlink.c:5570 netlink_rcv_skb+0x118/0x370 net/netlink/af_netlink.c:2492 netlink_unicast_kernel net/netlink/af_netlink.c:1315 [inline] netlink_unicast+0x42e/0x700 net/netlink/af_netlink.c:1341 netlink_sendmsg+0x775/0xc10 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xab/0xe0 net/socket.c:724 __sys_sendto+0x1a4/0x270 net/socket.c:2036 __do_sys_sendto net/socket.c:2048 [inline] __se_sys_sendto net/socket.c:2044 [inline] __x64_sys_sendto+0xd8/0x1b0 net/socket.c:2044 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1294 at lib/ref_tracker.c:38 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline] WARNING: CPU: 1 PID: 1294 at lib/ref_tracker.c:38 ref_tracker_dir_exit.cold+0x163/0x1b4 lib/ref_tracker.c:37 Modules linked in: CPU: 0 PID: 1294 Comm: kworker/u4:6 Not tainted 5.16.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:ref_tracker_dir_exit.cold+0x163/0x1b4 lib/ref_tracker.c:38 Code: c1 e8 03 80 3c 18 00 74 08 4c 89 e7 e8 bd 66 60 f9 4d 39 f4 49 8b 04 24 4d 89 e7 75 3f 48 8b 74 24 08 48 89 ef e8 34 8e 33 00 <0f> 0b e9 57 8c 62 fb 4c 89 ff e8 95 66 60 f9 e9 a3 fe ff ff e8 7b RSP: 0018:ffffc900056c79c0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff88cb5680 RDI: 0000000000000001 RBP: ffff88801e9045b8 R08: 0000000000000001 R09: ffffffff8ee6ea0f R10: 0000000000000001 R11: 000000000007a08a R12: ffff88801e904600 R13: ffff88801e904600 R14: ffff88801e904600 R15: ffff88801e904600 FS: 0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556083f7d950 CR3: 0000000021347000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: free_netdev+0x293/0x4f0 net/core/dev.c:10276 netdev_run_todo+0x74c/0x930 net/core/dev.c:9953 default_device_exit_batch+0x2aa/0x360 net/core/dev.c:10934 cleanup_net+0x423/0x980 net/core/net_namespace.c:593 process_one_work+0x87f/0x1450 kernel/workqueue.c:2298 worker_thread+0x598/0x1040 kernel/workqueue.c:2445 kthread+0x3ab/0x480 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295