syzbot


general protection fault in __free_pages_ok (2)

Status: auto-obsoleted due to no activity on 2025/08/15 10:26
First crash: 102d, last: 102d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 general protection fault in __free_pages_ok 2 1 717d 717d 0/2 auto-obsoleted due to no activity on 2023/12/10 04:47

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3115 Comm: syz.3.827 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:section_to_usemap include/linux/mmzone.h:1263 [inline]
RIP: 0010:get_pageblock_bitmap mm/page_alloc.c:466 [inline]
RIP: 0010:__get_pfnblock_flags_mask mm/page_alloc.c:501 [inline]
RIP: 0010:get_pfnblock_migratetype mm/page_alloc.c:520 [inline]
RIP: 0010:__free_pages_ok+0x27e/0x910 mm/page_alloc.c:1441
Code: 44 89 f0 83 e0 7f c1 e0 05 48 01 c3 eb 02 31 db 4c 89 64 24 30 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 74 3a 04 00 4c 89 74 24 28 48 8b 03
RSP: 0018:ffff8881f6f09cf0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000000000ff RDI: fffce11f3f3b8e00
RBP: ffff8881f6f09d30 R08: 0000000000000004 R09: fffce11f3f3b8e00
R10: ffffed103ede1398 R11: 1ffff1103ede1398 R12: 000003fffff9e81e
R13: dffffc0000000000 R14: 0001fffffcf40f3f R15: fffffe7a079f9dc7
FS:  00007fb8f2a266c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000000 CR3: 00000001e0cee000 CR4: 00000000003406a0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 expire_timers kernel/time/timer.c:1493 [inline]
 __run_timers+0x81d/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:test_bit include/asm-generic/bitops-instrumented.h:237 [inline]
RIP: 0010:test_ti_thread_flag include/linux/thread_info.h:97 [inline]
RIP: 0010:need_resched include/linux/sched.h:1847 [inline]
RIP: 0010:bpf_test_run+0x24e/0x5d0 net/bpf/test_run.c:51
Code: 80 7c 25 00 00 74 08 4c 89 f7 e8 bd 0e 16 fe 4d 8b 26 4c 89 e6 48 83 e6 04 31 ff e8 4c 18 e8 fd 49 83 e4 04 0f 85 55 02 00 00 <4c> 89 f7 be 08 00 00 00 e8 95 e8 15 fe 49 bc 00 00 00 00 00 fc ff
RSP: 0018:ffff8881e74a7b60 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffffffff83776a64 RBX: 0000000000006b30 RCX: 0000000000000002
RDX: ffff8881f36ccec0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881e74a7c88 R08: dffffc0000000000 R09: ffffed103e6d99d9
R10: ffffed103e6d99d9 R11: 1ffff1103e6d99d8 R12: 0000000000000000
R13: 1ffff1103e6d99d8 R14: ffff8881f36ccec0 R15: ffffffecf4aaa0bd
 bpf_prog_test_run_skb+0x721/0xdc0 net/bpf/test_run.c:311
 bpf_prog_test_run+0x21a/0x2a0 kernel/bpf/syscall.c:2124
 __do_sys_bpf kernel/bpf/syscall.c:2909 [inline]
 __se_sys_bpf+0x49a/0x570 kernel/bpf/syscall.c:2849
 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:2849
 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7fb8f43bd969
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb8f2a26038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fb8f45e4fa0 RCX: 00007fb8f43bd969
RDX: 0000000000000050 RSI: 0000200000000000 RDI: 000000000000000a
RBP: 00007fb8f443fab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb8f45e4fa0 R15: 00007fff3bb66b48
Modules linked in:
---[ end trace f94a3f5a08171e04 ]---
RIP: 0010:section_to_usemap include/linux/mmzone.h:1263 [inline]
RIP: 0010:get_pageblock_bitmap mm/page_alloc.c:466 [inline]
RIP: 0010:__get_pfnblock_flags_mask mm/page_alloc.c:501 [inline]
RIP: 0010:get_pfnblock_migratetype mm/page_alloc.c:520 [inline]
RIP: 0010:__free_pages_ok+0x27e/0x910 mm/page_alloc.c:1441
Code: 44 89 f0 83 e0 7f c1 e0 05 48 01 c3 eb 02 31 db 4c 89 64 24 30 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 74 3a 04 00 4c 89 74 24 28 48 8b 03
RSP: 0018:ffff8881f6f09cf0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000000000ff RDI: fffce11f3f3b8e00
RBP: ffff8881f6f09d30 R08: 0000000000000004 R09: fffce11f3f3b8e00
R10: ffffed103ede1398 R11: 1ffff1103ede1398 R12: 000003fffff9e81e
R13: dffffc0000000000 R14: 0001fffffcf40f3f R15: fffffe7a079f9dc7
FS:  00007fb8f2a266c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000000 CR3: 00000001e0cee000 CR4: 00000000003406a0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	44 89 f0             	mov    %r14d,%eax
   3:	83 e0 7f             	and    $0x7f,%eax
   6:	c1 e0 05             	shl    $0x5,%eax
   9:	48 01 c3             	add    %rax,%rbx
   c:	eb 02                	jmp    0x10
   e:	31 db                	xor    %ebx,%ebx
  10:	4c 89 64 24 30       	mov    %r12,0x30(%rsp)
  15:	48 83 c3 08          	add    $0x8,%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 74 3a 04 00       	call   0x43aac
  38:	4c 89 74 24 28       	mov    %r14,0x28(%rsp)
  3d:	48 8b 03             	mov    (%rbx),%rax

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/17 10:22 android12-5.4 cd8e74fa0fa3 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in __free_pages_ok
* Struck through repros no longer work on HEAD.