bisecting cause commit starting from 158b515f703e75e7d68289bf4d98c664e1d632df building syzkaller on 44068e196185e2f5a7c94629b6245cdde008b140 testing commit 158b515f703e75e7d68289bf4d98c664e1d632df compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8cc4c50323e9762733b2ce3693f049a310b85d3d92757b1bd26d6c99ab5a6a2c all runs: crashed: WARNING in page_counter_cancel 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 158b515f703e75e7d68289bf4d98c664e1d632df 8bb7eca972ad531c9b149c0a51ab43a417385813 Bisecting: 7440 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 [d4ec3d5535c784c3adbc41c2bbc5d17a00a4a898] Merge tag 'vfio-v5.16-rc1' of git://github.com/awilliam/linux-vfio testing commit d4ec3d5535c784c3adbc41c2bbc5d17a00a4a898 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: eb61a4246fea853a845b7db85dc25b5c22f392a85f26f3f7741e0eb8873e08d3 all runs: crashed: WARNING in page_counter_cancel # git bisect bad d4ec3d5535c784c3adbc41c2bbc5d17a00a4a898 Bisecting: 2864 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 [fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4] Merge tag 'net-next-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 01b7cdf53ecdccaf832bca09f6796b0c07689e823a30c9c6f3834d2c5f22dacb all runs: crashed: WARNING in page_counter_cancel # git bisect bad fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4 Bisecting: 2251 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 [b7b98f868987cd3e86c9bd9a6db048614933d7a0] Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit b7b98f868987cd3e86c9bd9a6db048614933d7a0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d6fedbb463195cce0356b83bd6e54899147880ea6411debadf54f04ed5b3dd59 all runs: crashed: WARNING in page_counter_cancel # git bisect bad b7b98f868987cd3e86c9bd9a6db048614933d7a0 Bisecting: 1156 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 [9fd3d5dced976640f588e0a866b9611db2d2cb37] net: ethernet: ave: Add compatible string and SoC-dependent data for NX1 SoC testing commit 9fd3d5dced976640f588e0a866b9611db2d2cb37 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b44aea5446433e2e27c967bf44fe8dc23e11f9305fdaa159ae39a7022ed92881 all runs: OK # git bisect good 9fd3d5dced976640f588e0a866b9611db2d2cb37 Bisecting: 578 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 [1c375ffb2efab992b74fb1801c2e0bb2051a6e6e] mlxsw: spectrum_router: Expose RIF MAC profiles to devlink resource testing commit 1c375ffb2efab992b74fb1801c2e0bb2051a6e6e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f7a7ae91be070389021b5c58be7e96fff30feaae5aa5b708a21863881cc5e03e all runs: crashed: WARNING in nsim_dev_reload_destroy # git bisect bad 1c375ffb2efab992b74fb1801c2e0bb2051a6e6e Bisecting: 362 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 [9bc0b1aa8b7e54d62082749fc5404660690d17ce] Merge tag 'mt76-for-kvalo-2021-10-20' of https://github.com/nbd168/wireless testing commit 9bc0b1aa8b7e54d62082749fc5404660690d17ce compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9ad53697c6770ced0945669646ae645f937b74e26c044b2c650355daaf49a25b all runs: OK # git bisect good 9bc0b1aa8b7e54d62082749fc5404660690d17ce Bisecting: 194 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 [07591ebec3cf2d6b78cb9b51a5a6f3ca731ec375] Merge branch 'net-don-t-write-directly-to-netdev-dev_addr' testing commit 07591ebec3cf2d6b78cb9b51a5a6f3ca731ec375 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bc439132ba0947f93dd81074f2bfe527d0ff4ddd1cce176770dcec9ac7545a8c all runs: OK # git bisect good 07591ebec3cf2d6b78cb9b51a5a6f3ca731ec375 Bisecting: 97 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 [cf231b436f7ceaf0d87016eedf830677c0c1f7dc] net: dsa: lantiq_gswip: serialize access to the PCE registers testing commit cf231b436f7ceaf0d87016eedf830677c0c1f7dc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fc08b3499f99e2229a55959249b4b42a80c66a853c17c07251d29d22953219fa all runs: crashed: WARNING in nsim_dev_reload_destroy # git bisect bad cf231b436f7ceaf0d87016eedf830677c0c1f7dc Bisecting: 48 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 [c8fb89a7a7d117fc1e2cbce6f0d3fd58008878fe] net: phylink: Convert some users of mdiobus_* to mdiodev_* testing commit c8fb89a7a7d117fc1e2cbce6f0d3fd58008878fe compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 06b88494ef03050f4e41b1c85e0b60e9ae7bd9cf8575d609df9c80d9aeb7d5f4 all runs: crashed: WARNING in nsim_dev_reload_destroy # git bisect bad c8fb89a7a7d117fc1e2cbce6f0d3fd58008878fe Bisecting: 23 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 [10de5a599f92ef776886073a33ca7bbbe6b14d37] cfg80211: prepare for const netdev->dev_addr testing commit 10de5a599f92ef776886073a33ca7bbbe6b14d37 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c44c5f32f8a1a3e16ba952150b3e8ea1d583d283c2e1d989531e5dd5a3abd09d all runs: OK # git bisect good 10de5a599f92ef776886073a33ca7bbbe6b14d37 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 [24f7cf9b851ee9c395225481308af4ab5065e20a] Merge tag 'mac80211-next-for-net-next-2021-10-21' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next testing commit 24f7cf9b851ee9c395225481308af4ab5065e20a compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 516994347a3b1786f514b281ed54ec1807bd5b83c8978179450817dec2342b84 all runs: OK # git bisect good 24f7cf9b851ee9c395225481308af4ab5065e20a 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 [22849b5ea5952d853547cc5e0651f34a246b2a4f] devlink: Remove not-executed trap policer notifications testing commit 22849b5ea5952d853547cc5e0651f34a246b2a4f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3beb5c9a8239ea2589c5c6c28870f01fe94c45ce6d493187ca6436116d7bc343 all runs: crashed: WARNING in nsim_dev_reload_destroy # git bisect bad 22849b5ea5952d853547cc5e0651f34a246b2a4f 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 [f3956e309ecc57940de031987e49a92b131315f7] net: dsa: sja1105: Add of_node_put() before return testing commit f3956e309ecc57940de031987e49a92b131315f7 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7b3a0d44f7a12cbfafc51adf84f7bc1088f59f345bb935c4efa1c66435aeba2c all runs: OK # git bisect good f3956e309ecc57940de031987e49a92b131315f7 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 [99ad92eff76491331a90d839dd6b7225cf8dd53e] devlink: Delete obsolete parameters publish API testing commit 99ad92eff76491331a90d839dd6b7225cf8dd53e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f4a92ffe01ae92a6f7412d51d5d217bec5fba145c9f0a7e8cda49de97510fc15 all runs: OK # git bisect good 99ad92eff76491331a90d839dd6b7225cf8dd53e warning: unable to access '/syzkaller/.config/git/attributes': Permission denied 22849b5ea5952d853547cc5e0651f34a246b2a4f is the first bad commit commit 22849b5ea5952d853547cc5e0651f34a246b2a4f Author: Leon Romanovsky Date: Thu Oct 21 17:16:14 2021 +0300 devlink: Remove not-executed trap policer notifications The trap policer logic is registered before devlink_register() and all the notifications are delayed. This patch removes not-possible notifications along with addition of code annotation logic. Signed-off-by: Leon Romanovsky Signed-off-by: Jakub Kicinski net/core/devlink.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) culprit signature: 3beb5c9a8239ea2589c5c6c28870f01fe94c45ce6d493187ca6436116d7bc343 parent signature: f4a92ffe01ae92a6f7412d51d5d217bec5fba145c9f0a7e8cda49de97510fc15 revisions tested: 16, total time: 3h4m59.426945387s (build: 1h57m30.671078664s, test: 1h5m53.454717836s) first bad commit: 22849b5ea5952d853547cc5e0651f34a246b2a4f devlink: Remove not-executed trap policer notifications recipients (to): ["davem@davemloft.net" "jiri@nvidia.com" "kuba@kernel.org" "kuba@kernel.org" "leonro@nvidia.com" "netdev@vger.kernel.org"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: WARNING in nsim_dev_reload_destroy netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1134 at net/core/devlink.c:11299 devlink_trap_policers_unregister+0x8b/0xa0 net/core/devlink.c:11304 Modules linked in: CPU: 1 PID: 1134 Comm: kworker/u4:5 Not tainted 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:devlink_trap_policers_unregister+0x8b/0xa0 net/core/devlink.c:11299 Code: f6 38 48 01 f5 48 89 ee 4c 89 e7 83 eb 01 e8 2c fc ff ff 48 83 ed 38 83 fb ff 75 e9 5b 4c 89 ef 5d 41 5c 41 5d e9 85 05 d6 01 <0f> 0b eb b6 e8 cc 72 10 fb eb 96 66 2e 0f 1f 84 00 00 00 00 00 41 RSP: 0018:ffffc90004fbfa18 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000003 RCX: ffffc90004fbf8b8 RDX: 1ffff110036d9142 RSI: ffffffff88cb4ce0 RDI: ffffffff892070e0 RBP: ffffffff895eb580 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000007a089 R12: ffff88801cebc000 R13: ffff88801cebc000 R14: dffffc0000000000 R15: ffff88801cebc398 FS: 0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564c46011f80 CR3: 0000000024a75000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nsim_dev_traps_exit+0x73/0x170 drivers/net/netdevsim/dev.c:851 nsim_dev_reload_destroy+0x1d0/0x2b0 drivers/net/netdevsim/dev.c:1559 nsim_dev_reload_down+0xab/0x130 drivers/net/netdevsim/dev.c:883 devlink_reload+0x1ae/0x5e0 net/core/devlink.c:4040 devlink_pernet_pre_exit+0x1cf/0x270 net/core/devlink.c:11472 ops_pre_exit_list net/core/net_namespace.c:158 [inline] cleanup_net+0x3a4/0x980 net/core/net_namespace.c:581 process_one_work+0x87f/0x1450 kernel/workqueue.c:2297 worker_thread+0x598/0x1040 kernel/workqueue.c:2444 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295