ci starts bisection 2024-09-11 00:59:12.466674875 +0000 UTC m=+20304.918508787 bisecting cause commit starting from a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 building syzkaller on 784df80e01554d5cd451f0b4e23171297863e115 ensuring issue is reproducible on original commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 testing commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9618a266944e9e3e55591f08eb59e7ef75d515684382b4d7cf6c648602e400d6 run #0: basic kernel testing failed: WARNING in call_timer_fn run #1: crashed: WARNING: refcount bug in ethnl_phy_done run #2: crashed: WARNING: refcount bug in ethnl_phy_done run #3: crashed: WARNING: refcount bug in ethnl_phy_done run #4: crashed: WARNING: refcount bug in ethnl_phy_done run #5: crashed: WARNING: refcount bug in ethnl_phy_done run #6: crashed: WARNING: refcount bug in ethnl_phy_done run #7: crashed: WARNING: refcount bug in ethnl_phy_done run #8: crashed: WARNING: refcount bug in ethnl_phy_done run #9: crashed: WARNING: refcount bug in ethnl_phy_done run #10: crashed: WARNING: refcount bug in ethnl_phy_done run #11: crashed: WARNING: refcount bug in ethnl_phy_done run #12: crashed: WARNING: refcount bug in ethnl_phy_done run #13: crashed: WARNING: refcount bug in ethnl_phy_done run #14: crashed: WARNING: refcount bug in ethnl_phy_done run #15: crashed: WARNING: refcount bug in ethnl_phy_done run #16: crashed: WARNING: refcount bug in ethnl_phy_done run #17: crashed: WARNING: refcount bug in ethnl_phy_done run #18: crashed: WARNING: refcount bug in ethnl_phy_done run #19: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN KASAN], they are not needed testing commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6ca9502d14f97b7e87fd38d80be998e4344d3e2aa78afa2a61f430b37ccef719 all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN KASAN LOCKDEP], they are not needed kconfig minimization: base=4045 full=8138 leaves diff=2106 split chunks (needed=false): <2106> split chunk #0 of len 2106 into 5 parts testing without sub-chunk 1/5 disabling configs for [KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3277af00cb60469d52b5cafba8deb32aa8c7289d11d219ef3e8dfd3e858c2734 all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LEAK UBSAN KASAN LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8d4818d6620648bca7a9d52fecdbd275172d6c3bb35f934c11dac22e51c64ceb all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: da34f73e3095dbc593aa069df2313ce901ab80f0f35989573d5fe62a1ebcced8 all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d31dfc18ad6d23276aa702f85894383a188078fb54e7d84bcf72fadb4ca435a2 all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN KASAN LOCKDEP ATOMIC_SLEEP], they are not needed testing commit a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2bf6ba64eaeca5b9ea91c93f08269f0a8c4bcabc5bf3a77539154126f9159a18 all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] the chunk can be dropped disabling configs for [LEAK UBSAN KASAN LOCKDEP ATOMIC_SLEEP HANG], they are not needed picked [v6.10 v6.9 v6.8 v6.6 v6.4 v6.2 v6.0 v5.18 v5.15 v5.12 v5.9 v5.6 v5.3 v5.0 v4.19] out of 33 release tags testing release v6.10 testing commit 0c3836482481200ead7b416ca80c68a29cfdaabd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8a9508945f229397f402c86a632e3b7867f5532dfc7e7df302c2c045c0a9d992 all runs: OK false negative chance: 0.000 # git bisect start a9b1fab3b69f163bbe7a012d0c3f6b5204500c05 0c3836482481200ead7b416ca80c68a29cfdaabd Bisecting: 7795 revisions left to test after this (roughly 13 steps) [b3ce7a30847a54a7f96a35e609303d8afecd460b] Merge tag 'drm-next-2024-07-18' of https://gitlab.freedesktop.org/drm/kernel testing commit b3ce7a30847a54a7f96a35e609303d8afecd460b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d0d822781a5090e725a9a26e411f62431d01977c43a4cb3e43f9ab628371b9e9 all runs: OK false negative chance: 0.000 # git bisect good b3ce7a30847a54a7f96a35e609303d8afecd460b Bisecting: 3896 revisions left to test after this (roughly 12 steps) [a362ade892e3e4de69296cddb1a23a1efe701428] Merge tag 'loongarch-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson testing commit a362ade892e3e4de69296cddb1a23a1efe701428 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 19335c485e3281f9e12ddd7912aff9b9b5e1da0ef43d3166238f0046d415d719 all runs: OK false negative chance: 0.000 # git bisect good a362ade892e3e4de69296cddb1a23a1efe701428 Bisecting: 1955 revisions left to test after this (roughly 11 steps) [e5fa841af679cb830da6c609c740a37bdc0b8b35] Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs testing commit e5fa841af679cb830da6c609c740a37bdc0b8b35 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 27b941ab09b08352230047d60ab04755933ef1f7821bac5481caa41b98955fe3 all runs: OK false negative chance: 0.000 # git bisect good e5fa841af679cb830da6c609c740a37bdc0b8b35 Bisecting: 1056 revisions left to test after this (roughly 10 steps) [d759ee240d3c0c4a19f4d984eb21c36da76bc6ce] Merge tag 'net-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit d759ee240d3c0c4a19f4d984eb21c36da76bc6ce gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ea7d9699db17d64b21f657dcae655042a725439b172873a382283a80d65b6297 all runs: OK false negative chance: 0.000 # git bisect good d759ee240d3c0c4a19f4d984eb21c36da76bc6ce Bisecting: 528 revisions left to test after this (roughly 9 steps) [2e25147a6560b684917d7f7142422c9901badfdd] net: dm9051: fix module autoloading testing commit 2e25147a6560b684917d7f7142422c9901badfdd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e1433c2a14b972d7f38dd7efef92a7a881ef7e603d56de3b998d04336c6b362f all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] # git bisect bad 2e25147a6560b684917d7f7142422c9901badfdd Bisecting: 263 revisions left to test after this (roughly 8 steps) [2c9c2a3d1aeb1c1c598dcb9a75daf4f2247f9007] Merge branch 'net-netconsole-fix-netconsole-unsafe-locking' testing commit 2c9c2a3d1aeb1c1c598dcb9a75daf4f2247f9007 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6af3855820408a81706626185c1a761f8b29bab5b08a438b27c1ef7be9c106cb all runs: OK false negative chance: 0.000 # git bisect good 2c9c2a3d1aeb1c1c598dcb9a75daf4f2247f9007 Bisecting: 131 revisions left to test after this (roughly 7 steps) [338385e059c5d299556fa341d10601ae72c6e932] netfilter: nft_fib: Unmask upper DSCP bits testing commit 338385e059c5d299556fa341d10601ae72c6e932 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ed56a6e34a2323162c7c31ebadf73066ea267f5990b73da53cc66ae97274242d all runs: OK false negative chance: 0.000 # git bisect good 338385e059c5d299556fa341d10601ae72c6e932 Bisecting: 65 revisions left to test after this (roughly 6 steps) [b494b1673889c95ead43fb6978687fb61bb042d5] net: netconsole: selftests: Create a new netconsole selftest testing commit b494b1673889c95ead43fb6978687fb61bb042d5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1c0fb0238d12b60b903385e2449dd787e5afdab0f2a38df6046b682adafe4085 all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] # git bisect bad b494b1673889c95ead43fb6978687fb61bb042d5 Bisecting: 32 revisions left to test after this (roughly 5 steps) [fb8e83cf443a98297cd15b58b5529f8d259b22f5] net: mpls: delete redundant judgment statements testing commit fb8e83cf443a98297cd15b58b5529f8d259b22f5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 770964fac0a24e8f4f321cd6c3b457d68ce9ac4aad8846127ff05b60dc3082da all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] # git bisect bad fb8e83cf443a98297cd15b58b5529f8d259b22f5 Bisecting: 16 revisions left to test after this (roughly 4 steps) [17194be4c8e1e82d8b484e58cdcb495c0714d1fd] net: ethtool: Introduce a command to list PHYs on an interface testing commit 17194be4c8e1e82d8b484e58cdcb495c0714d1fd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5f2f56b949ef0b427481788494311c10bd2cd22c863faf0958c0e3b52fa6e533 all runs: crashed: WARNING: refcount bug in ethnl_phy_done representative crash: WARNING: refcount bug in ethnl_phy_done, types: [WARNING] # git bisect bad 17194be4c8e1e82d8b484e58cdcb495c0714d1fd Bisecting: 7 revisions left to test after this (roughly 3 steps) [bfc52deef5ed58d92cfbe68dbceee3102617a8df] Merge branch 'unmask-upper-dscp-bits-part-1' testing commit bfc52deef5ed58d92cfbe68dbceee3102617a8df gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ba7bcdd6906fe9d0109918760dbeb80ff9018a9cd1347e1e86739c3afa1c95d3 run #0: crashed: lost connection to test machine 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 representative crash: lost connection to test machine, types: [UNKNOWN] unable to determine the verdict: 9 good runs (wanted 5), for bad wanted 5 in total, got 10 # git bisect skip bfc52deef5ed58d92cfbe68dbceee3102617a8df Bisecting: 7 revisions left to test after this (roughly 3 steps) [0a2f7de0f3b96c4a30e56d2c79f8d812f89599a1] net: sfp: Add helper to return the SFP bus name testing commit 0a2f7de0f3b96c4a30e56d2c79f8d812f89599a1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b5693ff78290356c488f6c3828dde197c033669a3ccc25ea191567702017e2cb all runs: OK false negative chance: 0.000 # git bisect good 0a2f7de0f3b96c4a30e56d2c79f8d812f89599a1 Bisecting: 0 revisions left to test after this (roughly 1 step) [9af0e89d6c2433afd3e5e7cc52c7592ef23526c0] netlink: specs: add phy-index as a header parameter testing commit 9af0e89d6c2433afd3e5e7cc52c7592ef23526c0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 16d4841abd8332deff42f9e218ca4cc5c199bb941e49b91e4dd7bc678cf7ebda all runs: OK false negative chance: 0.000 # git bisect good 9af0e89d6c2433afd3e5e7cc52c7592ef23526c0 17194be4c8e1e82d8b484e58cdcb495c0714d1fd is the first bad commit commit 17194be4c8e1e82d8b484e58cdcb495c0714d1fd Author: Maxime Chevallier Date: Wed Aug 21 17:10:01 2024 +0200 net: ethtool: Introduce a command to list PHYs on an interface As we have the ability to track the PHYs connected to a net_device through the link_topology, we can expose this list to userspace. This allows userspace to use these identifiers for phy-specific commands and take the decision of which PHY to target by knowing the link topology. Add PHY_GET and PHY_DUMP, which can be a filtered DUMP operation to list devices on only one interface. Signed-off-by: Maxime Chevallier Reviewed-by: Christophe Leroy Tested-by: Christophe Leroy Signed-off-by: David S. Miller Documentation/networking/ethtool-netlink.rst | 41 ++++ include/uapi/linux/ethtool_netlink.h | 19 ++ net/ethtool/Makefile | 3 +- net/ethtool/netlink.c | 9 + net/ethtool/netlink.h | 5 + net/ethtool/phy.c | 308 +++++++++++++++++++++++++++ 6 files changed, 384 insertions(+), 1 deletion(-) create mode 100644 net/ethtool/phy.c accumulated error probability: 0.00 culprit signature: 5f2f56b949ef0b427481788494311c10bd2cd22c863faf0958c0e3b52fa6e533 parent signature: 16d4841abd8332deff42f9e218ca4cc5c199bb941e49b91e4dd7bc678cf7ebda revisions tested: 21, total time: 6h42m35.234411349s (build: 3h3m39.028739391s, test: 3h20m32.061960226s) first bad commit: 17194be4c8e1e82d8b484e58cdcb495c0714d1fd net: ethtool: Introduce a command to list PHYs on an interface recipients (to): ["christophe.leroy@csgroup.eu" "davem@davemloft.net" "maxime.chevallier@bootlin.com"] recipients (cc): [] crash: WARNING: refcount bug in ethnl_phy_done ------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 1 PID: 2809 at lib/refcount.c:31 refcount_warn_saturate+0x121/0x130 lib/refcount.c:31 Modules linked in: CPU: 1 UID: 0 PID: 2809 Comm: syz.0.15 Not tainted 6.11.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:refcount_warn_saturate+0x121/0x130 lib/refcount.c:31 Code: c7 c7 48 4f 45 82 e8 4e 9d a4 ff 90 0f 0b 90 90 c3 cc cc cc cc c6 05 26 89 25 01 01 90 48 c7 c7 1a 4f 45 82 e8 30 9d a4 ff 90 <0f> 0b 90 90 c3 cc cc cc cc 66 0f 1f 44 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc90001e4f828 EFLAGS: 00010246 RAX: 431aa185d0ff9800 RBX: 00000000ffffffef RCX: 0000000000000002 RDX: 0000000000000002 RSI: 00000000ffffdfff RDI: 00000000ffffffff RBP: ffffc90001e4f8e8 R08: 0000000000000000 R09: ffffffff826c5f90 R10: ffffc90001e4f6f8 R11: ffffc90001e4f6a0 R12: ffff888101fa6580 R13: ffff88810d6d3000 R14: ffff888101fa6580 R15: ffff888108baa604 FS: 00007f8dd80ef6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9340cce440 CR3: 0000000100aca000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ref_tracker_free+0x299/0x2a0 netdev_tracker_free include/linux/netdevice.h:4042 [inline] netdev_put include/linux/netdevice.h:4059 [inline] ethnl_parse_header_dev_put net/ethtool/netlink.h:271 [inline] ethnl_phy_done+0x26/0x70 net/ethtool/phy.c:238 genl_done+0x40/0x80 net/netlink/genetlink.c:1043 netlink_dump+0x3eb/0x440 net/netlink/af_netlink.c:2370 __netlink_dump_start+0x258/0x2d0 net/netlink/af_netlink.c:2440 genl_family_rcv_msg_dumpit net/netlink/genetlink.c:1076 [inline] genl_family_rcv_msg net/netlink/genetlink.c:1192 [inline] genl_rcv_msg+0x216/0x3d0 net/netlink/genetlink.c:1210 netlink_rcv_skb+0xe0/0x110 net/netlink/af_netlink.c:2550 genl_rcv+0x23/0x30 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x1de/0x2d0 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x33c/0x3e0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x8e/0xb0 net/socket.c:745 ____sys_sendmsg+0x1a7/0x200 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2c7/0x310 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe0/0x1f0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8dd866def9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8dd80ef038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f8dd8825f80 RCX: 00007f8dd866def9 RDX: 0000000000000000 RSI: 0000000020001900 RDI: 0000000000000003 RBP: 00007f8dd86e09f6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8dd8825f80 R15: 00007ffda7e68488