bisecting fixing commit since f6e27dbb1afabcba436e346d6aa88a592a1436bb building syzkaller on 2e29b534005e52c57d726201644ea28ba33a9a3d testing commit f6e27dbb1afabcba436e346d6aa88a592a1436bb with gcc (GCC) 8.1.0 kernel signature: 65d64673a3b4bbe893a45b61b18265a27ad0a902 run #0: crashed: WARNING: refcount bug in cdev_get 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 testing current HEAD 8bac50406cca10a219aa899243d49c57ddaf7c5b testing commit 8bac50406cca10a219aa899243d49c57ddaf7c5b with gcc (GCC) 8.1.0 kernel signature: 098e9e066327f6e342b83e1c2de35b3ce3bed4fc all runs: OK # git bisect start 8bac50406cca10a219aa899243d49c57ddaf7c5b f6e27dbb1afabcba436e346d6aa88a592a1436bb Bisecting: 1235 revisions left to test after this (roughly 10 steps) [830f3b829f5a2edfef1050a3eb6068b31241813a] kprobes, x86/ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack testing commit 830f3b829f5a2edfef1050a3eb6068b31241813a with gcc (GCC) 8.1.0 kernel signature: 260ac27590e990988e8e7ce9a1f50f5e35573779 all runs: OK # git bisect bad 830f3b829f5a2edfef1050a3eb6068b31241813a Bisecting: 617 revisions left to test after this (roughly 9 steps) [6e57ba09b35bd189b43da1019b3698b3e0b0d501] nbd: handle racing with error'ed out commands testing commit 6e57ba09b35bd189b43da1019b3698b3e0b0d501 with gcc (GCC) 8.1.0 kernel signature: 3a0529aeca27403dd9518c92323991e4116e47c8 run #0: crashed: WARNING: refcount bug in cdev_get run #1: crashed: WARNING: refcount bug in cdev_get 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 6e57ba09b35bd189b43da1019b3698b3e0b0d501 Bisecting: 308 revisions left to test after this (roughly 8 steps) [58b03626a7b19e6f03533cf728a9790241c3362a] soc: qcom: wcnss_ctrl: Avoid string overflow testing commit 58b03626a7b19e6f03533cf728a9790241c3362a with gcc (GCC) 8.1.0 kernel signature: 2be48b5dcb7983f1ac9a92c6f79ef89faa2bbe53 all runs: OK # git bisect bad 58b03626a7b19e6f03533cf728a9790241c3362a Bisecting: 154 revisions left to test after this (roughly 7 steps) [738878ada16538c664a3ae032474fdd845765249] drm/i915: Silence smatch for cmdparser testing commit 738878ada16538c664a3ae032474fdd845765249 with gcc (GCC) 8.1.0 kernel signature: f9bb0eaa0bb1e61403a83c3a996588a93e8a9cb8 all runs: OK # git bisect bad 738878ada16538c664a3ae032474fdd845765249 Bisecting: 76 revisions left to test after this (roughly 6 steps) [3f5e99731cd55f9be6468e9af7985a838ce7255b] can: gs_usb: gs_can_open(): prevent memory leak testing commit 3f5e99731cd55f9be6468e9af7985a838ce7255b with gcc (GCC) 8.1.0 kernel signature: 2d6bc8c356ab463d7d4c3641bd87a21a1d4ee32c all runs: OK # git bisect bad 3f5e99731cd55f9be6468e9af7985a838ce7255b Bisecting: 38 revisions left to test after this (roughly 5 steps) [ae11e9fddd4107926d0671a255f49577a1291d7d] powerpc/mm: Fixup tlbie vs mtpidr/mtlpidr ordering issue on POWER9 testing commit ae11e9fddd4107926d0671a255f49577a1291d7d with gcc (GCC) 8.1.0 kernel signature: d61ab33cc2bf3ead06db2bf2316c9cbb17a2ee18 all runs: OK # git bisect bad ae11e9fddd4107926d0671a255f49577a1291d7d Bisecting: 18 revisions left to test after this (roughly 4 steps) [761f73c166c3b0fecf43692762ee0e03092480f0] net: bcmgenet: reset 40nm EPHY on energy detect testing commit 761f73c166c3b0fecf43692762ee0e03092480f0 with gcc (GCC) 8.1.0 kernel signature: 33e2a4a844de7657a49e5564c0ee63b7dd6b8e00 all runs: OK # git bisect bad 761f73c166c3b0fecf43692762ee0e03092480f0 Bisecting: 9 revisions left to test after this (roughly 3 steps) [77da9481248c717f2538587dbdabb297f513ebc5] net/mlx4_core: Dynamically set guaranteed amount of counters per VF testing commit 77da9481248c717f2538587dbdabb297f513ebc5 with gcc (GCC) 8.1.0 kernel signature: 0a8c078d76fdf2319b945f3ef3b02ea98a55c378 run #0: crashed: WARNING: refcount bug in cdev_get run #1: crashed: WARNING: refcount bug in cdev_get 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 77da9481248c717f2538587dbdabb297f513ebc5 Bisecting: 4 revisions left to test after this (roughly 2 steps) [bc8f227bdb31a2d1640430bd6fe6695527c37d96] net/mlx5e: Fix handling of compressed CQEs in case of low NAPI budget testing commit bc8f227bdb31a2d1640430bd6fe6695527c37d96 with gcc (GCC) 8.1.0 kernel signature: d16aa7b09bcfdb9db44d9161e6b83cd171f5897e run #0: crashed: WARNING: refcount bug in cdev_get run #1: crashed: WARNING: refcount bug in cdev_get 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 bc8f227bdb31a2d1640430bd6fe6695527c37d96 Bisecting: 2 revisions left to test after this (roughly 1 step) [03a70959304028f2eed3713f03bd1c92585699b0] net: usb: lan78xx: Connect PHY before registering MAC testing commit 03a70959304028f2eed3713f03bd1c92585699b0 with gcc (GCC) 8.1.0 kernel signature: 53cac402a73a26bb8d041d47319a44c7c1c9b6ff all runs: OK # git bisect bad 03a70959304028f2eed3713f03bd1c92585699b0 Bisecting: 0 revisions left to test after this (roughly 0 steps) [12300056a6e98f7d845ae8952bd958c4f906b784] net: dsa: b53: Do not clear existing mirrored port mask testing commit 12300056a6e98f7d845ae8952bd958c4f906b784 with gcc (GCC) 8.1.0 kernel signature: 9b34c0487a44a16f4a141b94535f2e288c308b49 run #0: OK run #1: crashed: WARNING: refcount bug in cdev_get 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 12300056a6e98f7d845ae8952bd958c4f906b784 03a70959304028f2eed3713f03bd1c92585699b0 is the first bad commit commit 03a70959304028f2eed3713f03bd1c92585699b0 Author: Andrew Lunn Date: Thu Oct 17 21:29:26 2019 +0200 net: usb: lan78xx: Connect PHY before registering MAC [ Upstream commit 38b4fe320119859c11b1dc06f6b4987a16344fa1 ] As soon as the netdev is registers, the kernel can start using the interface. If the driver connects the MAC to the PHY after the netdev is registered, there is a race condition where the interface can be opened without having the PHY connected. Change the order to close this race condition. Fixes: 92571a1aae40 ("lan78xx: Connect phy early") Reported-by: Daniel Wagner Signed-off-by: Andrew Lunn Tested-by: Daniel Wagner Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman drivers/net/usb/lan78xx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) culprit signature: 53cac402a73a26bb8d041d47319a44c7c1c9b6ff parent signature: 9b34c0487a44a16f4a141b94535f2e288c308b49 revisions tested: 13, total time: 4h23m35.355949293s (build: 1h54m31.753025829s, test: 2h27m21.658581344s) first good commit: 03a70959304028f2eed3713f03bd1c92585699b0 net: usb: lan78xx: Connect PHY before registering MAC cc: ["andrew@lunn.ch" "davem@davemloft.net" "dwagner@suse.de" "gregkh@linuxfoundation.org"]