syzbot


BUG: unable to handle kernel paging request in htab_map_alloc

Status: auto-obsoleted due to no activity on 2025/08/24 11:15
First crash: 93d, last: 93d
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in htab_map_alloc bpf 8 C 1 2594d 2594d 0/29 closed as invalid on 2018/09/05 12:51
upstream BUG: unable to handle kernel paging request in htab_map_alloc (2) bpf 8 C unreliable 8 1718d 1727d 19/29 fixed on 2021/03/10 01:49
upstream KASAN: slab-use-after-free Read in htab_map_alloc bpf 19 13 881d 879d 0/29 auto-obsoleted due to no activity on 2023/05/09 18:24
upstream KASAN: slab-use-after-free Read in htab_map_alloc (2) bpf 19 224 474d 480d 27/29 fixed on 2024/09/12 12:56

Sample crash report:
BUG: unable to handle page fault for address: 0000000081503d54
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 1d442a067 P4D 1d442a067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 591 Comm: syz.0.59 Not tainted 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:htab_map_alloc+0x677/0x940 kernel/bpf/hashtab.c:404
Code: 83 7d a4 00 4c 8b 7d b8 75 5e 4c 89 ff e8 21 6c 00 00 89 c3 31 ff 89 c6 e8 f6 3c f0 ff 85 db 74 4e e8 9d 39 f0 ff 48 8b 45 c0 <42> 80 3c 20 00 74 08 4c 89 ef e8 ba 33 1e 00 49 8b 7d 00 e8 31 17
RSP: 0018:ffff8881f6f09cf0 EFLAGS: 00010006
RAX: ffffffff8150a59c RBX: 000000008150a590 RCX: ffff8881e42acec0
RDX: 0000000000000100 RSI: 000000008150a590 RDI: 0000000000000000
RBP: ffff8881f6f09d30 R08: 0000000000000004 R09: 0000000000000003
R10: ffffed103ede1398 R11: 1ffff1103ede1398 R12: 00000000ffff97b8
R13: dffffc0000000000 R14: ffffffff816f452f R15: ffff8881e731b1c0
FS:  00007fb2117946c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000081503d54 CR3: 00000001d64d1000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 expire_timers kernel/time/timer.c:1488 [inline]
 __run_timers+0x84b/0xb60 kernel/time/timer.c:1817
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1830
 __do_softirq+0x236/0x660 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x197/0x1c0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:539 [inline]
 smp_apic_timer_interrupt+0x11d/0x490 arch/x86/kernel/apic/apic.c:1161
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
 </IRQ>
RIP: 0010:atomic_fetch_add_unless include/linux/compiler.h:268 [inline]
RIP: 0010:atomic_add_unless include/linux/atomic-fallback.h:1111 [inline]
RIP: 0010:page_ref_add_unless include/linux/page_ref.h:157 [inline]
RIP: 0010:__page_cache_add_speculative include/linux/pagemap.h:189 [inline]
RIP: 0010:page_cache_get_speculative include/linux/pagemap.h:205 [inline]
RIP: 0010:find_get_entries+0x18b/0x4d0 mm/filemap.c:1905
Code: be 04 00 00 00 e8 05 8d 13 00 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 0f 85 62 02 00 00 45 8b 27 <44> 89 64 24 40 31 ff 44 89 e6 e8 f6 bb e5 ff 45 85 e4 0f 84 2b 02
RSP: 0018:ffff8881e3467240 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 000000000000000f RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea00073c26f4
RBP: ffff8881e3467330 R08: dffffc0000000000 R09: fffff94000e784df
R10: fffff94000e784df R11: 1ffffd4000e784de R12: 0000000000000001
R13: 000000000000000a R14: ffffea00073c26c0 R15: ffffea00073c26f4
 shmem_undo_range+0x1cc/0x1860 mm/shmem.c:821
 shmem_truncate_range mm/shmem.c:997 [inline]
 shmem_evict_inode+0x204/0x9a0 mm/shmem.c:1097
 evict+0x465/0x880 fs/inode.c:610
 iput_final fs/inode.c:1652 [inline]
 iput+0x67d/0x810 fs/inode.c:1678
 dentry_unlink_inode+0x2ca/0x370 fs/dcache.c:378
 __dentry_kill+0x43e/0x640 fs/dcache.c:583
 dentry_kill+0xc0/0x2a0 fs/dcache.c:677
 dput+0x42/0x80 fs/dcache.c:864
 __fput+0x4ba/0x730 fs/file_table.c:294
 ____fput+0x15/0x20 fs/file_table.c:314
 task_work_run+0x146/0x170 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa43/0x2660 kernel/exit.c:861
 do_group_exit+0x13e/0x300 kernel/exit.c:984
 get_signal+0xdee/0x13d0 kernel/signal.c:2738
 do_signal+0xad/0xda0 arch/x86/kernel/signal.c:809
 exit_to_usermode_loop+0xc4/0x1b0 arch/x86/entry/common.c:159
 prepare_exit_to_usermode+0x18e/0x1f0 arch/x86/entry/common.c:194
 ret_from_intr+0x1c/0x1c
RIP: 0033:0x20c9ab06a538
Code: Bad RIP value.
RSP: 002b:0000200000000098 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fb213352fa0 RCX: 00007fb21312b969
RDX: 00002000000000c0 RSI: 0000200000000090 RDI: 0000000002000000
RBP: 00007fb2131adab1 R08: 0000200000000140 R09: 0000200000000140
R10: 0000200000000100 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb213352fa0 R15: 00007fff09582238
Modules linked in:
CR2: 0000000081503d54
---[ end trace 3bb113d2e31ea2da ]---
RIP: 0010:htab_map_alloc+0x677/0x940 kernel/bpf/hashtab.c:404
Code: 83 7d a4 00 4c 8b 7d b8 75 5e 4c 89 ff e8 21 6c 00 00 89 c3 31 ff 89 c6 e8 f6 3c f0 ff 85 db 74 4e e8 9d 39 f0 ff 48 8b 45 c0 <42> 80 3c 20 00 74 08 4c 89 ef e8 ba 33 1e 00 49 8b 7d 00 e8 31 17
RSP: 0018:ffff8881f6f09cf0 EFLAGS: 00010006
RAX: ffffffff8150a59c RBX: 000000008150a590 RCX: ffff8881e42acec0
RDX: 0000000000000100 RSI: 000000008150a590 RDI: 0000000000000000
RBP: ffff8881f6f09d30 R08: 0000000000000004 R09: 0000000000000003
R10: ffffed103ede1398 R11: 1ffff1103ede1398 R12: 00000000ffff97b8
R13: dffffc0000000000 R14: ffffffff816f452f R15: ffff8881e731b1c0
FS:  00007fb2117946c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020c9ab06a50e CR3: 00000001d64d1000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	83 7d a4 00          	cmpl   $0x0,-0x5c(%rbp)
   4:	4c 8b 7d b8          	mov    -0x48(%rbp),%r15
   8:	75 5e                	jne    0x68
   a:	4c 89 ff             	mov    %r15,%rdi
   d:	e8 21 6c 00 00       	call   0x6c33
  12:	89 c3                	mov    %eax,%ebx
  14:	31 ff                	xor    %edi,%edi
  16:	89 c6                	mov    %eax,%esi
  18:	e8 f6 3c f0 ff       	call   0xfff03d13
  1d:	85 db                	test   %ebx,%ebx
  1f:	74 4e                	je     0x6f
  21:	e8 9d 39 f0 ff       	call   0xfff039c3
  26:	48 8b 45 c0          	mov    -0x40(%rbp),%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 ba 33 1e 00       	call   0x1e33f3
  39:	49 8b 7d 00          	mov    0x0(%r13),%rdi
  3d:	e8                   	.byte 0xe8
  3e:	31 17                	xor    %edx,(%rdi)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/26 11:09 android12-5.4 cd8e74fa0fa3 2d4582d0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan BUG: unable to handle kernel paging request in htab_map_alloc
* Struck through repros no longer work on HEAD.