bisecting cause commit starting from f49aa1de98363b6c5fba4637678d6b0ba3d18065 building syzkaller on 8285069f89c9942f65ce760a8f0a5a12254bfeeb testing commit f49aa1de98363b6c5fba4637678d6b0ba3d18065 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind run #1: crashed: WARNING: locking bug in inet_autobind 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 release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: crashed: WARNING: locking bug in ip6_datagram_connect run #7: OK run #8: OK run #9: OK testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.1.0 all runs: OK # git bisect start v5.1 v5.0 Bisecting: 7074 revisions left to test after this (roughly 13 steps) [b5dd0c658c31b469ccff1b637e5124851e7a4a1c] Merge branch 'akpm' (patches from Andrew) testing commit b5dd0c658c31b469ccff1b637e5124851e7a4a1c with gcc (GCC) 8.1.0 all runs: OK # git bisect good b5dd0c658c31b469ccff1b637e5124851e7a4a1c Bisecting: 3573 revisions left to test after this (roughly 12 steps) [4f0237062ca70c8e34e16e518aee4b84c30d1832] Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input testing commit 4f0237062ca70c8e34e16e518aee4b84c30d1832 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in do_ipv6_setsockopt 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 bad 4f0237062ca70c8e34e16e518aee4b84c30d1832 Bisecting: 1707 revisions left to test after this (roughly 11 steps) [80201fe175cbf7f3e372f53eba0a881a702ad926] Merge tag 'for-5.1/block-20190302' of git://git.kernel.dk/linux-block testing commit 80201fe175cbf7f3e372f53eba0a881a702ad926 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind run #1: crashed: WARNING: locking bug in inet_autobind run #2: crashed: WARNING: locking bug in inet_autobind run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad 80201fe175cbf7f3e372f53eba0a881a702ad926 Bisecting: 888 revisions left to test after this (roughly 10 steps) [5ea3998d56346975c2701df18fb5b6e3ab5c8d9e] Merge tag 'drm-intel-next-2019-02-07' of git://anongit.freedesktop.org/drm/drm-intel into drm-next testing commit 5ea3998d56346975c2701df18fb5b6e3ab5c8d9e with gcc (GCC) 8.1.0 all runs: OK # git bisect good 5ea3998d56346975c2701df18fb5b6e3ab5c8d9e Bisecting: 467 revisions left to test after this (roughly 9 steps) [1cabd3e0bd88d7ba9854cbb9213ef40eccad603b] Merge tag 'for-v5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply testing commit 1cabd3e0bd88d7ba9854cbb9213ef40eccad603b with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind 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 bad 1cabd3e0bd88d7ba9854cbb9213ef40eccad603b Bisecting: 227 revisions left to test after this (roughly 8 steps) [a5f2fafece141ef3509e686cea576366d55cabb6] Merge https://gitlab.freedesktop.org/drm/msm into drm-next testing commit a5f2fafece141ef3509e686cea576366d55cabb6 with gcc (GCC) 8.1.0 all runs: OK # git bisect good a5f2fafece141ef3509e686cea576366d55cabb6 Bisecting: 132 revisions left to test after this (roughly 7 steps) [b7af27bf9471f5d54d71dc2e4228d6bc065bdb57] Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching testing commit b7af27bf9471f5d54d71dc2e4228d6bc065bdb57 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind 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 bad b7af27bf9471f5d54d71dc2e4228d6bc065bdb57 Bisecting: 47 revisions left to test after this (roughly 6 steps) [41d3ae4b9ab720e4b3a1f220f1c9a882d3c94123] drm/amdgpu/powerplay: fix return codes in BACO code testing commit 41d3ae4b9ab720e4b3a1f220f1c9a882d3c94123 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind 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 bad 41d3ae4b9ab720e4b3a1f220f1c9a882d3c94123 Bisecting: 23 revisions left to test after this (roughly 5 steps) [8328691d3b882d6b34d0928633efd4dbc1249c9d] drm/radeon/si_dpm: Mark expected switch fall-throughs testing commit 8328691d3b882d6b34d0928633efd4dbc1249c9d with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind 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 bad 8328691d3b882d6b34d0928633efd4dbc1249c9d Bisecting: 11 revisions left to test after this (roughly 4 steps) [9b49c19766a854feefa7fe5288c1915658a939f5] drm/amdgpu: fix several indentation issues testing commit 9b49c19766a854feefa7fe5288c1915658a939f5 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind 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 bad 9b49c19766a854feefa7fe5288c1915658a939f5 Bisecting: 5 revisions left to test after this (roughly 3 steps) [8db588d5d35e6ab0f8fa404c0d3eade6bbd272bc] drm/amdgpu: Avoid setting off KFD eviction fences in amdgpu_vm testing commit 8db588d5d35e6ab0f8fa404c0d3eade6bbd272bc with gcc (GCC) 8.1.0 all runs: OK # git bisect good 8db588d5d35e6ab0f8fa404c0d3eade6bbd272bc Bisecting: 2 revisions left to test after this (roughly 2 steps) [c0d9271ecbd891cdeb0fad1edcdd99ee717a655f] drm/amdgpu: Delete user queue doorbell variables testing commit c0d9271ecbd891cdeb0fad1edcdd99ee717a655f with gcc (GCC) 8.1.0 run #0: crashed: WARNING: locking bug in inet_autobind 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 bad c0d9271ecbd891cdeb0fad1edcdd99ee717a655f Bisecting: 0 revisions left to test after this (roughly 1 step) [74b9b3ea0cb355d668eb0309d1ab57f403d52c69] drm/amdgpu: Fix bugs in setting CP RB/MEC DOORBELL_RANGE registers testing commit 74b9b3ea0cb355d668eb0309d1ab57f403d52c69 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 74b9b3ea0cb355d668eb0309d1ab57f403d52c69 c0d9271ecbd891cdeb0fad1edcdd99ee717a655f is the first bad commit commit c0d9271ecbd891cdeb0fad1edcdd99ee717a655f Author: Yong Zhao Date: Fri Feb 1 18:36:21 2019 -0500 drm/amdgpu: Delete user queue doorbell variables They are no longer used, so delete them to avoid confusion. Signed-off-by: Yong Zhao Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher :040000 040000 569c04b64784a4ac899894f4ad7a9d11473388db 52ce71bf044861df1d77729a92d3754af13f898e M drivers revisions tested: 16, total time: 5h26m1.742714406s (build: 2h29m55.600036048s, test: 2h47m59.047480403s) first bad commit: c0d9271ecbd891cdeb0fad1edcdd99ee717a655f drm/amdgpu: Delete user queue doorbell variables cc: ["airlied@linux.ie" "alexander.deucher@amd.com" "amd-gfx@lists.freedesktop.org" "christian.koenig@amd.com" "daniel@ffwll.ch" "david1.zhou@amd.com" "dri-devel@lists.freedesktop.org" "evan.quan@amd.com" "felix.kuehling@amd.com" "harry.wentland@amd.com" "linux-kernel@vger.kernel.org" "ozeng@amd.com" "ray.huang@amd.com" "rex.zhu@amd.com" "yong.zhao@amd.com"] crash: WARNING: locking bug in inet_autobind WARNING: CPU: 0 PID: 11470 at kernel/locking/lockdep.c:702 arch_local_save_flags arch/x86/include/asm/paravirt.h:761 [inline] WARNING: CPU: 0 PID: 11470 at kernel/locking/lockdep.c:702 look_up_lock_class kernel/locking/lockdep.c:693 [inline] WARNING: CPU: 0 PID: 11470 at kernel/locking/lockdep.c:702 register_lock_class+0xb94/0x2240 kernel/locking/lockdep.c:752 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 11470 Comm: syz-executor.3 Not tainted 5.0.0-rc1+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x113/0x167 lib/dump_stack.c:113 panic+0x212/0x40b kernel/panic.c:214 __warn.cold.8+0x1b/0x38 kernel/panic.c:571 report_bug+0x1a4/0x200 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:271 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:290 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973 RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:702 [inline] RIP: 0010:register_lock_class+0xb94/0x2240 kernel/locking/lockdep.c:752 Code: 00 48 89 ca 4d 8b 76 c0 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 cb 11 00 00 4c 89 31 e9 f9 f7 ff ff 0f 0b <0f> 0b e9 db f6 ff ff 4c 8d 3c 80 48 8d 70 01 49 c1 e7 06 48 b8 00 RSP: 0018:ffff88808e297950 EFLAGS: 00010087 RAX: 0000000000000004 RBX: ffffffff897edc80 RCX: ffff8880a83077e0 RDX: 1ffffffff1389f44 RSI: 0000000000000000 RDI: ffff8880a83077f8 RBP: ffff88808e297a20 R08: 1ffff11011c52f33 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000003 R13: 0000000000000000 R14: ffffffff87855c00 R15: ffffffff877420a0 __lock_acquire+0x129/0x4760 kernel/locking/lockdep.c:3224 lock_acquire+0x173/0x3d0 kernel/locking/lockdep.c:3841 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] lock_sock_nested+0x3a/0x100 net/core/sock.c:2783 kobject: 'loop4' (0000000014da3874): kobject_uevent_env lock_sock include/net/sock.h:1506 [inline] inet_autobind+0x13/0x160 net/ipv4/af_inet.c:179 inet_dgram_connect+0x1db/0x270 net/ipv4/af_inet.c:569 __sys_connect+0x20d/0x2d0 net/socket.c:1664 __do_sys_connect net/socket.c:1675 [inline] __se_sys_connect net/socket.c:1672 [inline] __x64_sys_connect+0x6e/0xb0 net/socket.c:1672 do_syscall_64+0xd0/0x4d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f08b0f14c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459279 RDX: 000000000000001c RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f08b0f156d4 R13: 00000000004bf74d R14: 00000000004d0c18 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..