syzbot


WARNING: locking bug in __perf_event_task_sched_in (2)

Status: fixed on 2023/06/08 14:41
Subsystems: perf
[Documentation on labels]
Reported-by: syzbot+d94d214ea473e218fc89@syzkaller.appspotmail.com
Fix commit: 93e71edfd90c devlink: keep the instance mutex alive until references are gone
First crash: 534d, last: 512d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net-next] devlink: keep the instance mutex alive until references are gone 5 (5) 2023/01/12 05:00
[syzbot] WARNING: locking bug in __perf_event_task_sched_in (2) 1 (2) 2023/01/11 01:47
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in __perf_event_task_sched_in perf 2 1538d 1573d 0/27 auto-closed as invalid on 2020/08/05 16:27

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 1 PID: 28338 at kernel/locking/lockdep.c:231 hlock_class kernel/locking/lockdep.c:231 [inline]
WARNING: CPU: 1 PID: 28338 at kernel/locking/lockdep.c:231 hlock_class kernel/locking/lockdep.c:220 [inline]
WARNING: CPU: 1 PID: 28338 at kernel/locking/lockdep.c:231 check_wait_context kernel/locking/lockdep.c:4754 [inline]
WARNING: CPU: 1 PID: 28338 at kernel/locking/lockdep.c:231 __lock_acquire+0xecf/0x56d0 kernel/locking/lockdep.c:5005
Modules linked in:
CPU: 1 PID: 28338 Comm: kworker/u4:6 Not tainted 6.2.0-rc2-syzkaller-00435-g16809afdcbad #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: netns cleanup_net
RIP: 0010:hlock_class kernel/locking/lockdep.c:231 [inline]
RIP: 0010:hlock_class kernel/locking/lockdep.c:220 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4754 [inline]
RIP: 0010:__lock_acquire+0xecf/0x56d0 kernel/locking/lockdep.c:5005
Code: e8 1c 73 8e e8 42 04 6c 00 8b 05 94 82 0f 0d 85 c0 0f 85 79 f8 ff ff 48 c7 c6 40 51 4c 8a 48 c7 c7 a0 4a 4c 8a e8 91 27 5c 08 <0f> 0b 31 c0 e9 73 f7 ff ff 48 63 5c 24 18 be 08 00 00 00 48 89 d8
RSP: 0018:ffffc9000349f518 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 000000000000090c RCX: 0000000000000000
RDX: ffff8880210d8000 RSI: ffffffff8166710c RDI: fffff52000693e95
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000002 R11: 0000000000000001 R12: 0000000000000003
R13: ffff8880210d8000 R14: ffff8880210d8a38 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562fab777ab0 CR3: 00000000210cc000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire kernel/locking/lockdep.c:5668 [inline]
 lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633
 rcu_lock_acquire include/linux/rcupdate.h:325 [inline]
 rcu_read_lock include/linux/rcupdate.h:764 [inline]
 perf_event_context_sched_in kernel/events/core.c:3913 [inline]
 __perf_event_task_sched_in+0xe2/0x6c0 kernel/events/core.c:3980
 perf_event_task_sched_in include/linux/perf_event.h:1328 [inline]
 finish_task_switch.isra.0+0x5e5/0xc80 kernel/sched/core.c:5118
 context_switch kernel/sched/core.c:5247 [inline]
 __schedule+0xb92/0x5450 kernel/sched/core.c:6555
 schedule+0xde/0x1b0 kernel/sched/core.c:6631
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6690
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0xa48/0x1360 kernel/locking/mutex.c:747
 devl_lock net/devlink/core.c:54 [inline]
 devlink_pernet_pre_exit+0x10a/0x220 net/devlink/core.c:301
 ops_pre_exit_list net/core/net_namespace.c:159 [inline]
 cleanup_net+0x455/0xb10 net/core/net_namespace.c:594
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x669/0x1090 kernel/workqueue.c:2436
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (79):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/29 01:54 bpf-next 16809afdcbad 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/28 17:20 bpf-next 16809afdcbad 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/28 14:30 bpf-next 16809afdcbad 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/28 11:39 bpf-next d8285883fd41 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/28 04:37 bpf-next d8285883fd41 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/27 23:40 bpf-next d8285883fd41 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/26 10:19 bpf-next 0164776a2ce7 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/26 06:40 bpf-next 0164776a2ce7 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/25 18:05 bpf-next b613d335a743 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/25 15:43 bpf-next b613d335a743 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/25 09:56 bpf-next 0eb9d19e2201 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/25 02:12 bpf-next 0eb9d19e2201 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/24 15:24 bpf-next ea403bb7b315 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/24 10:38 bpf-next ea403bb7b315 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/23 23:19 bpf-next 74d23931f409 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/23 22:34 bpf-next 74d23931f409 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/23 14:41 bpf-next 84150795a49a 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/23 09:28 bpf-next 84150795a49a 44388686 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/22 20:08 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/22 15:22 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/22 01:04 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/21 20:19 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/21 13:27 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/21 12:01 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/21 05:14 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/21 01:57 bpf-next 00b8f39f1d15 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/20 22:14 bpf-next 00b8f39f1d15 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/20 07:16 bpf-next 00b8f39f1d15 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/20 05:00 bpf-next 00b8f39f1d15 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/19 20:01 bpf-next 92afc5329a5b 1b826a2f .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/19 16:09 bpf-next 92afc5329a5b 1b826a2f .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/19 14:25 bpf-next 92afc5329a5b 1b826a2f .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/19 14:04 bpf-next 92afc5329a5b 1b826a2f .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/19 13:38 bpf-next 92afc5329a5b 1b826a2f .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/19 12:04 bpf-next 92afc5329a5b 1b826a2f .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/19 00:21 bpf-next 92afc5329a5b 42660d9e .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/18 20:52 bpf-next c0f264e4edb6 42660d9e .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/18 00:43 bpf-next c1177979af9c aedf5331 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/17 22:17 bpf-next c1177979af9c aedf5331 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/17 16:04 bpf-next dfff86f8eb6a aedf5331 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/17 14:27 bpf-next dfff86f8eb6a a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/16 17:18 bpf-next dfff86f8eb6a a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/16 13:40 bpf-next dfff86f8eb6a a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/16 12:53 bpf-next dfff86f8eb6a a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/16 08:50 bpf-next 81bbbb697481 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/16 03:10 bpf-next 81bbbb697481 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/15 22:09 bpf-next 81bbbb697481 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/15 20:07 bpf-next 1c48391bc673 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/15 03:54 bpf-next 1c48391bc673 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/14 20:38 bpf-next 1c48391bc673 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/14 15:18 bpf-next 1c48391bc673 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/13 18:50 bpf-next 878625e1c7a1 529798b0 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/13 16:07 bpf-next db473df28906 529798b0 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/13 13:12 bpf-next db473df28906 96166539 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/12 09:02 bpf-next db473df28906 96166539 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/12 08:40 bpf-next db473df28906 96166539 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/12 08:18 bpf-next db473df28906 96166539 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/12 07:31 bpf-next db473df28906 96166539 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/11 19:45 bpf-next 6920b08661e3 96166539 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/11 16:41 bpf-next 6920b08661e3 96166539 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/11 10:17 bpf-next af0e26beaa69 1dac8c7a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/11 06:42 bpf-next af0e26beaa69 1dac8c7a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/11 00:40 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/08 08:38 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/08 06:19 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/08 03:17 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/07 10:52 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/07 09:18 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/07 07:53 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/07 04:16 bpf-next 6bd4755c7c49 1dac8c7a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
2023/01/06 20:45 bpf-next 6bd4755c7c49 1dac8c7a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING: locking bug in __perf_event_task_sched_in
* Struck through repros no longer work on HEAD.