syzbot


inconsistent lock state in htab_lock_bucket

Status: upstream: reported C repro on 2025/11/30 04:04
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+0057e0c996f6b53410fd@syzkaller.appspotmail.com
First crash: 139d, last: 6h03m
Bug presence (2)
Date Name Commit Repro Result
2025/11/30 linux-6.6.y (ToT) 1e89a1be4fe9 C [report] inconsistent lock state in htab_lock_bucket
2025/11/30 upstream (ToT) 6bda50f4333f C Didn't crash
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 inconsistent lock state in htab_lock_bucket origin:lts-only 4 C inconclusive 641 1d09h 139d 0/3 upstream: reported C repro on 2025/11/29 23:34
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/12/03 21:34 1h27m fix candidate upstream OK (0) job log

Sample crash report:
================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {INITIAL USE} -> {IN-NMI} usage.
syz.0.17/5911 [HC1[1]:SC0[0]:HE0:SE1] takes:
ffff888023a7f1a0 (&htab->lockdep_key){....}-{2:2}, at: htab_lock_bucket+0x17d/0x300 kernel/bpf/hashtab.c:166
{INITIAL USE} state was registered at:
  lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754
  __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
  _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
  htab_lock_bucket+0x17d/0x300 kernel/bpf/hashtab.c:166
  htab_lru_map_delete_elem+0x1a4/0x650 kernel/bpf/hashtab.c:1485
  bpf_prog_2c29ac5cdc6b1842+0x42/0x46
  bpf_dispatcher_nop_func include/linux/bpf.h:1224 [inline]
  __bpf_prog_run include/linux/filter.h:616 [inline]
  bpf_prog_run include/linux/filter.h:623 [inline]
  bpf_overflow_handler+0x1fc/0x510 kernel/events/core.c:10584
  __perf_event_overflow+0x447/0x630 kernel/events/core.c:9720
  perf_swevent_overflow kernel/events/core.c:9803 [inline]
  perf_swevent_event+0x319/0x570 kernel/events/core.c:9854
  perf_bp_event+0x319/0x430 kernel/events/core.c:10781
  hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline]
  hw_breakpoint_exceptions_notify+0x23e/0x670 arch/x86/kernel/hw_breakpoint.c:586
  notifier_call_chain+0x197/0x380 kernel/notifier.c:93
  atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:231
  notify_die+0x145/0x1a0 kernel/notifier.c:596
  notify_debug+0x2e/0x50 arch/x86/kernel/traps.c:1042
  exc_debug_user arch/x86/kernel/traps.c:1168 [inline]
  noist_exc_debug+0x77/0x120 arch/x86/kernel/traps.c:1205
  asm_exc_debug+0x33/0x40 arch/x86/include/asm/idtentry.h:644
irq event stamp: 2194
hardirqs last  enabled at (2193): [<ffffffff8a862c05>] syscall_enter_from_user_mode+0x25/0x80 kernel/entry/common.c:117
hardirqs last disabled at (2194): [<ffffffff8a85f383>] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline]
hardirqs last disabled at (2194): [<ffffffff8a85f383>] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199
softirqs last  enabled at (1902): [<ffffffff819660a6>] bpf_prog_load+0x1266/0x1670 kernel/bpf/syscall.c:2779
softirqs last disabled at (1900): [<ffffffff8194699d>] spin_lock_bh include/linux/spinlock.h:356 [inline]
softirqs last disabled at (1900): [<ffffffff8194699d>] bpf_ksym_add+0x2d/0x340 kernel/bpf/core.c:655

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&htab->lockdep_key);
  <Interrupt>
    lock(&htab->lockdep_key);

 *** DEADLOCK ***

no locks held by syz.0.17/5911.

stack backtrace:
CPU: 0 PID: 5911 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
Call Trace:
 <#DB>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 lock_acquire+0x2c2/0x420 kernel/locking/lockdep.c:5745
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 htab_lock_bucket+0x17d/0x300 kernel/bpf/hashtab.c:166
 htab_lru_map_delete_elem+0x1a4/0x650 kernel/bpf/hashtab.c:1485
 bpf_prog_2c29ac5cdc6b1842+0x42/0x46
 bpf_dispatcher_nop_func include/linux/bpf.h:1224 [inline]
 __bpf_prog_run include/linux/filter.h:616 [inline]
 bpf_prog_run include/linux/filter.h:623 [inline]
 bpf_overflow_handler+0x1fc/0x510 kernel/events/core.c:10584
 __perf_event_overflow+0x447/0x630 kernel/events/core.c:9720
 perf_swevent_overflow kernel/events/core.c:9803 [inline]
 perf_swevent_event+0x319/0x570 kernel/events/core.c:9854
 perf_bp_event+0x319/0x430 kernel/events/core.c:10781
 hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline]
 hw_breakpoint_exceptions_notify+0x23e/0x670 arch/x86/kernel/hw_breakpoint.c:586
 notifier_call_chain+0x197/0x380 kernel/notifier.c:93
 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:231
 notify_die+0x145/0x1a0 kernel/notifier.c:596
 notify_debug+0x2e/0x50 arch/x86/kernel/traps.c:1042
 exc_debug_kernel arch/x86/kernel/traps.c:1099 [inline]
 exc_debug+0xde/0x140 arch/x86/kernel/traps.c:1199
 asm_exc_debug+0x1e/0x40 arch/x86/include/asm/idtentry.h:644
RIP: 0010:rep_movs_alternative+0x4a/0x90 arch/x86/lib/copy_user_64.S:71
Code: 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 <f3> a4 c3 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 29 f8 48 01
RSP: 0018:ffffc90004527cb8 EFLAGS: 00050202
RAX: ffffffff842a1f01 RBX: 0000000000000080 RCX: 000000000000007f
RDX: 0000000000000001 RSI: 0000200000000301 RDI: ffffc90004527de1
RBP: 0000000000000008 R08: ffffc90004527e5f R09: 1ffff920008a4fcb
R10: dffffc0000000000 R11: fffff520008a4fcc R12: 0000200000000380
R13: 0000200000000304 R14: ffffc90004527de0 R15: 0000200000000300
 </#DB>
 <TASK>
 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:127 [inline]
 _copy_from_user+0x8b/0xe0 lib/usercopy.c:23
 copy_from_user include/linux/uaccess.h:183 [inline]
 copy_struct_from_user include/linux/uaccess.h:367 [inline]
 perf_copy_attr+0x16a/0x840 kernel/events/core.c:12331
 __do_sys_perf_event_open kernel/events/core.c:12632 [inline]
 __se_sys_perf_event_open+0x11b/0x1c50 kernel/events/core.c:12609
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f678dd9c819
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffdb2f98a8 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f678e015fa0 RCX: 00007f678dd9c819
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000200000000300
RBP: 00007f678de32c91 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f678e015fac R14: 00007f678e015fa0 R15: 00007f678e015fa0
 </TASK>
----------------
Code disassembly (best guess):
   0:	75 f1                	jne    0xfffffff3
   2:	c3                   	ret
   3:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
   a:	00 00 00
   d:	0f 1f 00             	nopl   (%rax)
  10:	48 8b 06             	mov    (%rsi),%rax
  13:	48 89 07             	mov    %rax,(%rdi)
  16:	48 83 c6 08          	add    $0x8,%rsi
  1a:	48 83 c7 08          	add    $0x8,%rdi
  1e:	83 e9 08             	sub    $0x8,%ecx
  21:	74 df                	je     0x2
  23:	83 f9 08             	cmp    $0x8,%ecx
  26:	73 e8                	jae    0x10
  28:	eb c9                	jmp    0xfffffff3
* 2a:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction
  2c:	c3                   	ret
  2d:	48 8b 06             	mov    (%rsi),%rax
  30:	48 89 07             	mov    %rax,(%rdi)
  33:	48 8d 47 08          	lea    0x8(%rdi),%rax
  37:	48 83 e0 f8          	and    $0xfffffffffffffff8,%rax
  3b:	48 29 f8             	sub    %rdi,%rax
  3e:	48                   	rex.W
  3f:	01                   	.byte 0x1

Crashes (691):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/09 14:54 linux-6.6.y 80de0a958133 38c8e246 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/03/17 00:21 linux-6.6.y 4fc00fe35d46 0737c18f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/27 21:16 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/26 18:50 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/23 04:50 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/06 08:26 linux-6.6.y 4791134e4aeb d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/02 02:45 linux-6.6.y 4791134e4aeb d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/11/30 04:04 linux-6.6.y 1e89a1be4fe9 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/30 14:10 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/23 12:41 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/23 09:50 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/23 07:08 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/23 01:47 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/23 01:00 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2025/12/22 23:44 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/18 00:20 linux-6.6.y 8cee53b8eaeb 24ecfc1e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/17 09:52 linux-6.6.y 8cee53b8eaeb de0a551d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/17 08:06 linux-6.6.y 8cee53b8eaeb de0a551d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/17 06:47 linux-6.6.y 8cee53b8eaeb de0a551d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/16 20:06 linux-6.6.y 8cee53b8eaeb 4743f87d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/16 17:40 linux-6.6.y 8cee53b8eaeb 4743f87d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/16 06:59 linux-6.6.y 8cee53b8eaeb df15c5f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/16 04:35 linux-6.6.y 8cee53b8eaeb df15c5f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/14 21:02 linux-6.6.y 8cee53b8eaeb 362d1323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/14 20:29 linux-6.6.y 8cee53b8eaeb 362d1323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/14 19:19 linux-6.6.y 8cee53b8eaeb 362d1323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/14 18:01 linux-6.6.y 8cee53b8eaeb 362d1323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/14 15:51 linux-6.6.y 8cee53b8eaeb 362d1323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/14 04:53 linux-6.6.y 8cee53b8eaeb 1a086e7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 21:08 linux-6.6.y 8cee53b8eaeb 9530ccf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 19:08 linux-6.6.y 8cee53b8eaeb 9530ccf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 16:59 linux-6.6.y 8cee53b8eaeb 9530ccf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 15:51 linux-6.6.y 8cee53b8eaeb 9530ccf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 09:01 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 08:00 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 06:41 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 03:11 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 02:15 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/13 01:07 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/12 20:18 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/11 22:29 linux-6.6.y 8cee53b8eaeb 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/11 11:59 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/11 09:22 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/11 06:58 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/11 05:26 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/11 03:54 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/10 22:35 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/10 19:08 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/10 18:07 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/10 15:48 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/10 11:41 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/09 19:41 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/09 17:29 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/09 16:06 linux-6.6.y 80de0a958133 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/08 23:27 linux-6.6.y 80de0a958133 d9b7f621 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/08 18:50 linux-6.6.y 80de0a958133 d9b7f621 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
2026/04/08 17:14 linux-6.6.y 80de0a958133 d9b7f621 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf inconsistent lock state in htab_lock_bucket
* Struck through repros no longer work on HEAD.