syzbot


general protection fault in pcpu_alloc

Status: upstream: reported syz repro on 2024/12/04 20:43
Subsystems: wireless ext4
[Documentation on labels]
Reported-by: syzbot+e874685d80aae83785cc@syzkaller.appspotmail.com
First crash: 19d, last: 19d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [wireless?] [ext4?] general protection fault in pcpu_alloc 0 (1) 2024/12/04 20:43
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/12/17 13:37 40m retest repro upstream report log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xec2c282c2c2c2c2d: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: maybe wild-memory-access in range [0x6161616161616168-0x616161616161616f]
CPU: 0 UID: 0 PID: 5926 Comm: syz-executor Not tainted 6.12.0-syzkaller-12113-gbcc8eda6d349 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__hlist_del include/linux/list.h:982 [inline]
RIP: 0010:hlist_del include/linux/list.h:994 [inline]
RIP: 0010:__alloc_object lib/debugobjects.c:232 [inline]
RIP: 0010:pcpu_alloc+0x1a8/0x300 lib/debugobjects.c:256
Code: 2e 4c 89 e8 48 c1 e8 03 80 3c 28 00 74 08 4c 89 ef e8 0c d2 3e fd 49 89 5d 00 48 85 db 74 1c 48 83 c3 08 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 ea d1 3e fd 4c 89 2b 41 80 3c 2f 00
RSP: 0018:ffffc900038a6f60 EFLAGS: 00010006
RAX: 0c2c2c2c2c2c2c2d RBX: 6161616161616169 RCX: 0000000000000001
RDX: ffffffff8c09c480 RSI: ffffffff8c5e9080 RDI: ffffffff8c5e9040
RBP: dffffc0000000000 R08: 0000000000000003 R09: fffff52000714ddc
R10: dffffc0000000000 R11: fffff52000714ddc R12: 1ffff1100f228801
R13: ffff8880b863fe00 R14: ffff888079144008 R15: 1ffff1100f228800
FS:  000055555fac2500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555915bb808 CR3: 000000001cad4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 alloc_object+0xbf/0x310 lib/debugobjects.c:458
 lookup_object_or_alloc lib/debugobjects.c:685 [inline]
 __debug_object_init+0x185/0x470 lib/debugobjects.c:743
 ieee80211_alloc_hw_nm+0x126e/0x1ea0 net/mac80211/main.c:976
 mac80211_hwsim_new_radio+0x1db/0x4a90 drivers/net/wireless/virtual/mac80211_hwsim.c:5146
 hwsim_new_radio_nl+0xece/0x2290 drivers/net/wireless/virtual/mac80211_hwsim.c:6203
 genl_family_rcv_msg_doit net/netlink/genetlink.c:1115 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline]
 genl_rcv_msg+0xb14/0xec0 net/netlink/genetlink.c:1210
 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2542
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219
 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline]
 netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1347
 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1891
 sock_sendmsg_nosec net/socket.c:711 [inline]
 __sock_sendmsg+0x221/0x270 net/socket.c:726
 __sys_sendto+0x363/0x4c0 net/socket.c:2197
 __do_sys_sendto net/socket.c:2204 [inline]
 __se_sys_sendto net/socket.c:2200 [inline]
 __x64_sys_sendto+0xde/0x100 net/socket.c:2200
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f811ad826dc
Code: 2a 5a 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 70 5a 02 00 48 8b
RSP: 002b:00007ffd7f24e760 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f811ba74620 RCX: 00007f811ad826dc
RDX: 0000000000000024 RSI: 00007f811ba74670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffd7f24e7b4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f811ba74670 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__hlist_del include/linux/list.h:982 [inline]
RIP: 0010:hlist_del include/linux/list.h:994 [inline]
RIP: 0010:__alloc_object lib/debugobjects.c:232 [inline]
RIP: 0010:pcpu_alloc+0x1a8/0x300 lib/debugobjects.c:256
Code: 2e 4c 89 e8 48 c1 e8 03 80 3c 28 00 74 08 4c 89 ef e8 0c d2 3e fd 49 89 5d 00 48 85 db 74 1c 48 83 c3 08 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 ea d1 3e fd 4c 89 2b 41 80 3c 2f 00
RSP: 0018:ffffc900038a6f60 EFLAGS: 00010006
RAX: 0c2c2c2c2c2c2c2d RBX: 6161616161616169 RCX: 0000000000000001
RDX: ffffffff8c09c480 RSI: ffffffff8c5e9080 RDI: ffffffff8c5e9040
RBP: dffffc0000000000 R08: 0000000000000003 R09: fffff52000714ddc
R10: dffffc0000000000 R11: fffff52000714ddc R12: 1ffff1100f228801
R13: ffff8880b863fe00 R14: ffff888079144008 R15: 1ffff1100f228800
FS:  000055555fac2500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555915bb808 CR3: 000000001cad4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	2e 4c 89 e8          	cs mov %r13,%rax
   4:	48 c1 e8 03          	shr    $0x3,%rax
   8:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
   c:	74 08                	je     0x16
   e:	4c 89 ef             	mov    %r13,%rdi
  11:	e8 0c d2 3e fd       	call   0xfd3ed222
  16:	49 89 5d 00          	mov    %rbx,0x0(%r13)
  1a:	48 85 db             	test   %rbx,%rbx
  1d:	74 1c                	je     0x3b
  1f:	48 83 c3 08          	add    $0x8,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 ea d1 3e fd       	call   0xfd3ed222
  38:	4c 89 2b             	mov    %r13,(%rbx)
  3b:	41 80 3c 2f 00       	cmpb   $0x0,(%r15,%rbp,1)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 20:34 upstream bcc8eda6d349 68914665 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in pcpu_alloc
* Struck through repros no longer work on HEAD.