ci starts bisection 2023-06-15 15:05:11.342113261 +0000 UTC m=+9851.174010799 bisecting cause commit starting from 97c5209b3d374a25ebdb4c2ea9e9c1b121768da0 building syzkaller on 757d26edba7d7de8c564a87a262a0b1321ddf804 ensuring issue is reproducible on original commit 97c5209b3d374a25ebdb4c2ea9e9c1b121768da0 testing commit 97c5209b3d374a25ebdb4c2ea9e9c1b121768da0 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: becad7edf130ce1f5ae3a56b760a09a0ad55ca456378fa170df7687a3419f3ce all runs: crashed: WARNING: refcount bug in fib6_nh_init 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: f2a061cbcec3acfcdc78315777e7e0923017d4c1588612f8bf7bf059146f69d6 all runs: OK too many neither good nor bad results, skipping this commit # git bisect start 97c5209b3d374a25ebdb4c2ea9e9c1b121768da0 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 8300 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: 11a163e5ca7d47e4d7b75642a2957a807b8429e4a591aa0b28c0eff7dbd14691 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 34b62f186db9614e55d021f8c58d22fc44c57911 Bisecting: 4257 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: cf916586f01b62f4f9f0dbef579485643d2c9dd0d53c9d94cd01420818703f3a all runs: OK too many neither good nor bad results, skipping this commit # git bisect good d75439d64a1e2b35e0f08906205b00279753cbed Bisecting: 2129 revisions left to test after this (roughly 11 steps) [1444f58931ef5227532cf5436bb55c1dd511d9a2] wifi: mac80211: use wiphy work for SMPS testing commit 1444f58931ef5227532cf5436bb55c1dd511d9a2 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 01a1449063c63053023e069e2e79bca94d42ece19679958a16e2f9e2e0bfd130 all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip 1444f58931ef5227532cf5436bb55c1dd511d9a2 Bisecting: 2128 revisions left to test after this (roughly 11 steps) [ec3252bff7b60fd2ee1a51a11054c54d63435ed2] wifi: mac80211: use wiphy work for channel switch testing commit ec3252bff7b60fd2ee1a51a11054c54d63435ed2 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 64f20a172171e1badb2ed1da6e4f769821454ec142142bf78c55a62f771c3a4b all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip ec3252bff7b60fd2ee1a51a11054c54d63435ed2 Bisecting: 2128 revisions left to test after this (roughly 11 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: abbb657d71d5053ccf13799da0dfb6c90969620f4b125cc055417e8279033e55 all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip a3df43b16fc49213ab4b925711d4725e1e2f2305 Bisecting: 2128 revisions left to test after this (roughly 11 steps) [f85fa45d4a9408d98c46c8fa45ba2e3b2f4bf219] net/sched: Reserve TC_H_INGRESS (TC_H_CLSACT) for ingress (clsact) Qdiscs testing commit f85fa45d4a9408d98c46c8fa45ba2e3b2f4bf219 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d94f134853fd1db0667a65221438b27bbc421894a03d8055d94a7aacaaadaa99 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good f85fa45d4a9408d98c46c8fa45ba2e3b2f4bf219 Bisecting: 830 revisions left to test after this (roughly 10 steps) [a03a91bd68cb00c615e602cf605e6be12bedaa90] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit a03a91bd68cb00c615e602cf605e6be12bedaa90 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6817a19fb0869f71250dac01878217b25ec2fcf0c9c58c147a5b8bc4a5ea9c3e all runs: OK too many neither good nor bad results, skipping this commit # git bisect good a03a91bd68cb00c615e602cf605e6be12bedaa90 Bisecting: 382 revisions left to test after this (roughly 9 steps) [449f6bc17a51e68b06cfd742898e5ff3fe6e04d7] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 449f6bc17a51e68b06cfd742898e5ff3fe6e04d7 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e8af84a786a8724ecc3d5bd1cba24077183e76bf051dbe9f2bb1b71de59b230b all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 449f6bc17a51e68b06cfd742898e5ff3fe6e04d7 Bisecting: 218 revisions left to test after this (roughly 8 steps) [fef0f427f71224442698ea4e052315a894d9de69] wifi: rtlwifi: remove misused flag from HAL data testing commit fef0f427f71224442698ea4e052315a894d9de69 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 49d82d192ac5893cb80d44b26abec02d44939442df0e92d5501d6571b787e334 all runs: basic kernel testing failed: WARNING in register_net_sysctl # git bisect skip fef0f427f71224442698ea4e052315a894d9de69 Bisecting: 218 revisions left to test after this (roughly 8 steps) [a3bbdc52c38fa95488ca713e54bcb40699c26acf] Remove file->f_op->sendpage testing commit a3bbdc52c38fa95488ca713e54bcb40699c26acf gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e906b4407bd5dae565c4e279d86d4d8cb2f065803539f31b572eb49d191d0498 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good a3bbdc52c38fa95488ca713e54bcb40699c26acf Bisecting: 20 revisions left to test after this (roughly 4 steps) [e0db883b6949bd0b5b221893e30afd5f838783b1] mlxsw: spectrum_router: Extract a helper from mlxsw_sp_port_vlan_router_join() testing commit e0db883b6949bd0b5b221893e30afd5f838783b1 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b4d17a8c1469a05fa5cc6c3b11eaa2ad723b008e81b8233ff0286b077d432c7e all runs: OK too many neither good nor bad results, skipping this commit # git bisect good e0db883b6949bd0b5b221893e30afd5f838783b1 Bisecting: 10 revisions left to test after this (roughly 3 steps) [c180f85825e577225372b983fc86dd8d4be89de6] Merge branch 'mlxsw-preparations-for-out-of-order-operations-patches' testing commit c180f85825e577225372b983fc86dd8d4be89de6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4ce6db4c18f1adacb237502af465b3cad66d63646ec97ebb263370a7efc8bb8e all runs: OK too many neither good nor bad results, skipping this commit # git bisect good c180f85825e577225372b983fc86dd8d4be89de6 Bisecting: 5 revisions left to test after this (roughly 3 steps) [473f5e13b38b9533bd3ae0758418581eabf69b50] Merge branch 'netdev-tracking' testing commit 473f5e13b38b9533bd3ae0758418581eabf69b50 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cc2916ea60a6ead35560f8444b732489e1dc86a55036f848a0152957008bcae9 all runs: crashed: WARNING: refcount bug in fib6_nh_init # git bisect bad 473f5e13b38b9533bd3ae0758418581eabf69b50 Bisecting: 1 revision left to test after this (roughly 1 step) [70f7457ad6d655e65f1b93cbba2a519e4b11c946] net: create device lookup API with reference tracking testing commit 70f7457ad6d655e65f1b93cbba2a519e4b11c946 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: eba1054db9adfe2874005d3a941e9de98fe6c5b65774676eae7210f2c2fd0fd5 all runs: crashed: WARNING: refcount bug in fib6_nh_init # git bisect bad 70f7457ad6d655e65f1b93cbba2a519e4b11c946 Bisecting: 0 revisions left to test after this (roughly 1 step) [89da780aa4c7667c8b1a144959206262aebdeabe] rtnetlink: move validate_linkmsg out of do_setlink testing commit 89da780aa4c7667c8b1a144959206262aebdeabe gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 27b26c65d30b9f4cdd3aba833ed49433e5e7b6b3c002d57fcfd63a76dc590373 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 89da780aa4c7667c8b1a144959206262aebdeabe 70f7457ad6d655e65f1b93cbba2a519e4b11c946 is the first bad commit commit 70f7457ad6d655e65f1b93cbba2a519e4b11c946 Author: Jakub Kicinski Date: Mon Jun 12 14:49:43 2023 -0700 net: create device lookup API with reference tracking New users of dev_get_by_index() and dev_get_by_name() keep getting added and it would be nice to steer them towards the APIs with reference tracking. Add variants of those calls which allocate the reference tracker and use them in a couple of places. Signed-off-by: Jakub Kicinski Reviewed-by: Eric Dumazet Reviewed-by: David Ahern Signed-off-by: David S. Miller include/linux/netdevice.h | 4 +++ net/core/dev.c | 63 +++++++++++++++++++++++++++++++++-------------- net/ethtool/netlink.c | 10 ++++---- net/ipv6/route.c | 12 ++++----- 4 files changed, 60 insertions(+), 29 deletions(-) culprit signature: eba1054db9adfe2874005d3a941e9de98fe6c5b65774676eae7210f2c2fd0fd5 parent signature: 27b26c65d30b9f4cdd3aba833ed49433e5e7b6b3c002d57fcfd63a76dc590373 revisions tested: 17, total time: 4h38m42.898416759s (build: 2h36m14.045897103s, test: 1h57m54.519188353s) first bad commit: 70f7457ad6d655e65f1b93cbba2a519e4b11c946 net: create device lookup API with reference tracking recipients (to): ["davem@davemloft.net" "dsahern@kernel.org" "edumazet@google.com" "kuba@kernel.org"] recipients (cc): [] crash: WARNING: refcount bug in fib6_nh_init ------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 1 PID: 5430 at lib/refcount.c:31 refcount_warn_saturate+0x12f/0x150 lib/refcount.c:31 Modules linked in: CPU: 1 PID: 5430 Comm: syz-executor.0 Not tainted 6.4.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:refcount_warn_saturate+0x12f/0x150 lib/refcount.c:31 Code: 60 80 c2 89 c6 05 5e 31 96 09 01 e8 bb b4 87 fd 0f 0b e9 4b ff ff ff 48 c7 c7 c0 81 c2 89 c6 05 40 31 96 09 01 e8 a1 b4 87 fd <0f> 0b e9 31 ff ff ff 48 89 df e8 e2 f9 01 fe e9 fc fe ff ff 66 66 RSP: 0018:ffffc90004ccef38 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888079d285fc RCX: 0000000000000000 RDX: 0000000000000002 RSI: 0000000000000008 RDI: 0000000000000001 RBP: 0000000000000004 R08: 0000000000000000 R09: ffffc90004ccec67 R10: fffff52000999d8c R11: 0000000000000001 R12: 1ffff92000999deb R13: 00000000ffffffef R14: ffff888079d285fc R15: ffff88802144c8c0 FS: 00007f33ef32f700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f56f472fb10 CR3: 000000001f6c8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_dec include/linux/refcount.h:344 [inline] refcount_dec include/linux/refcount.h:359 [inline] ref_tracker_free+0x485/0x740 lib/ref_tracker.c:236 netdev_tracker_free include/linux/netdevice.h:4097 [inline] netdev_put include/linux/netdevice.h:4114 [inline] netdev_put include/linux/netdevice.h:4110 [inline] fib6_nh_init+0x92b/0x1890 net/ipv6/route.c:3624 ip6_route_info_create+0xe9a/0x1830 net/ipv6/route.c:3791 ip6_route_add+0x17/0x100 net/ipv6/route.c:3835 inet6_rtm_newroute+0xfb/0x110 net/ipv6/route.c:5504 rtnetlink_rcv_msg+0x331/0x9f0 net/core/rtnetlink.c:6424 netlink_rcv_skb+0x12a/0x390 net/netlink/af_netlink.c:2548 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:1913 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xc0/0x150 net/socket.c:747 splice_to_socket+0x738/0xd70 fs/splice.c:917 do_splice_from fs/splice.c:969 [inline] direct_splice_actor+0xff/0x1d0 fs/splice.c:1157 splice_direct_to_actor+0x2c2/0x820 fs/splice.c:1103 do_splice_direct+0x14e/0x260 fs/splice.c:1209 do_sendfile+0x93d/0x1170 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x18a/0x1d0 fs/read_write.c:1308 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:0x7f33ee68c389 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:00007f33ef32f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f33ee7abf80 RCX: 00007f33ee68c389 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f33ee6d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 00000800000017fc R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe6944cd3f R14: 00007f33ef32f300 R15: 0000000000022000