WARNING: locking bug in finish_task_switch (3)

Status: upstream: reported on 2026/09/10 22:34
Subsystems: kernel
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+b5ddc2aecb8d1b29c871@syzkaller.appspotmail.com
First crash: 4d13h, last: 4d13h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
311a7877 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING: locking bug in finish_task_switch (3) 2026/09/08 01:01 2026/09/08 01:01 2026/09/08 02:03 680aa3e1
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] WARNING: locking bug in finish_task_switch (3) 0 (1) 2026/09/10 22:34
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in finish_task_switch (2) net 4 1 259d 255d 0/29 auto-obsoleted due to no activity on 2026/04/04 14:03
upstream WARNING: locking bug in finish_task_switch bluetooth net 4 syz, C done inconclusive 131 1321d 2432d 0/29 auto-obsoleted due to no activity on 2023/05/29 00:22

Sample crash report:
usb 9-1: Quirk or no altset; falling back to MIDI 1.0
usb 9-1: USB disconnect, device number 97
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: kernel/locking/lockdep.c:238 at hlock_class kernel/locking/lockdep.c:238 [inline], CPU#0: kworker/0:10/9284
WARNING: kernel/locking/lockdep.c:238 at check_wait_context kernel/locking/lockdep.c:4895 [inline], CPU#0: kworker/0:10/9284
WARNING: kernel/locking/lockdep.c:238 at __lock_acquire+0x584/0x2e50 kernel/locking/lockdep.c:5204, CPU#0: kworker/0:10/9284
Modules linked in:
CPU: 0 UID: 0 PID: 9284 Comm: kworker/0:10 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: sock_diag_events sock_diag_broadcast_destroy_work
RIP: 0010:hlock_class kernel/locking/lockdep.c:238 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4895 [inline]
RIP: 0010:__lock_acquire+0x58b/0x2e50 kernel/locking/lockdep.c:5204
Code: fa 18 00 74 04 31 c9 eb 2d 90 e8 00 91 37 03 85 c0 74 1c 83 3d 89 26 d7 0e 00 75 13 48 8d 3d 3c 2f da 0e 48 c7 c6 5e d9 59 8e <67> 48 0f b9 3a 90 31 c9 48 8b 3c 24 0f b6 81 c4 00 00 00 84 c0 0f
RSP: 0018:ffffc900034373b8 EFLAGS: 00010046
RAX: 0000000000000001 RBX: ffff88802cb369e0 RCX: ffff88802cb35dc0
RDX: 0000000040000000 RSI: ffffffff8e59d95e RDI: ffffffff907d5240
RBP: 0000000000000002 R08: ffffffff907a4983 R09: 1ffffffff20f4930
R10: dffffc0000000000 R11: fffffbfff20f4931 R12: 00000000ffffff05
R13: 0000000000000000 R14: ffff88802cb369e8 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff888124cd8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000024c030 CR3: 000000007442c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000400
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908
 finish_lock_switch kernel/sched/core.c:5248 [inline]
 finish_task_switch+0x16e/0xc60 kernel/sched/core.c:5369
 context_switch kernel/sched/core.c:5523 [inline]
 __schedule+0x17e3/0x58f0 kernel/sched/core.c:7270
 preempt_schedule_irq+0x4b/0x90 kernel/sched/core.c:7592
 irqentry_exit_to_kernel_mode include/linux/irq-entry-common.h:539 [inline]
 irqentry_exit+0x14f/0x910 kernel/entry/common.c:167
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:679
RIP: 0010:lock_acquire+0x232/0x350 kernel/locking/lockdep.c:5913
Code: ff ff ff e8 20 39 41 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 72 64 f1 11 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 cf 3c 44 0a cc 48 8d 3d f7 35 da
RSP: 0018:ffffc90003437920 EFLAGS: 00000292
RAX: 4cc9e7c7ad94c500 RBX: 0000000000000001 RCX: 0000000000000046
RDX: ffffffff94482fa8 RSI: ffffffff8e6fd430 RDI: ffffffff8c6d9480
RBP: ffff88802cb35dc0 R08: 0000000000000008 R09: ffffffff96e17510
R10: 00000000ab51b954 R11: 000000009f2f398b R12: ffff888044880f60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246
 lock_sock_fast include/net/sock.h:1744 [inline]
 tcp_get_info+0x261/0x2b70 net/ipv4/tcp.c:4250
 inet_diag_handler_get_info+0x481/0x700 net/ipv4/inet_diag.c:1030
 sock_diag_broadcast_destroy_work+0x1f4/0x3d0 net/core/sock_diag.c:162
 process_one_work kernel/workqueue.c:3396 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
 kthread+0x38b/0x480 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	fa                   	cli
   1:	18 00                	sbb    %al,(%rax)
   3:	74 04                	je     0x9
   5:	31 c9                	xor    %ecx,%ecx
   7:	eb 2d                	jmp    0x36
   9:	90                   	nop
   a:	e8 00 91 37 03       	call   0x337910f
   f:	85 c0                	test   %eax,%eax
  11:	74 1c                	je     0x2f
  13:	83 3d 89 26 d7 0e 00 	cmpl   $0x0,0xed72689(%rip)        # 0xed726a3
  1a:	75 13                	jne    0x2f
  1c:	48 8d 3d 3c 2f da 0e 	lea    0xeda2f3c(%rip),%rdi        # 0xeda2f5f
  23:	48 c7 c6 5e d9 59 8e 	mov    $0xffffffff8e59d95e,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	90                   	nop
  30:	31 c9                	xor    %ecx,%ecx
  32:	48 8b 3c 24          	mov    (%rsp),%rdi
  36:	0f b6 81 c4 00 00 00 	movzbl 0xc4(%rcx),%eax
  3d:	84 c0                	test   %al,%al
  3f:	0f                   	.byte 0xf

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/06 22:23 upstream 1fc5a74b108f 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING: locking bug in finish_task_switch
* Struck through repros no longer work on HEAD.