syzbot


general protection fault in apply_wqattrs_cleanup

Status: upstream: reported on 2024/06/03 13:56
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+1b5f11df288ca3853de9@syzkaller.appspotmail.com
First crash: 26d, last: 13d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] general protection fault in apply_wqattrs_cleanup 0 (1) 2024/06/03 13:56

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 3 PID: 10585 Comm: syz-executor.1 Not tainted 6.10.0-rc2-syzkaller-00007-gf06ce441457d #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:put_pwq_unlocked kernel/workqueue.c:1662 [inline]
RIP: 0010:put_pwq_unlocked kernel/workqueue.c:1655 [inline]
RIP: 0010:apply_wqattrs_cleanup.part.0+0xbc/0x2b0 kernel/workqueue.c:5223
Code: dd 28 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 8e 01 00 00 48 8b 5c dd 28 48 85 db 74 41 e8 4b ce 35 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 92 01 00 00 48 8b 3b e8 21 70 87 09 48 89 df
RSP: 0018:ffffc900030a70c8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8158b0d7
RDX: ffff888057892440 RSI: ffffffff8158b125 RDI: ffff8880644b8028
RBP: ffff8880644b8000 R08: 0000000000000005 R09: 0000000000000007
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffbfff1a92c7d R14: 0000000000000001 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88802c300000(0063) knlGS:0000000057549400
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 000056358cdf0f48 CR3: 000000005beaa000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 apply_wqattrs_cleanup kernel/workqueue.c:5222 [inline]
 apply_workqueue_attrs_locked+0x9e/0xe0 kernel/workqueue.c:5344
 apply_workqueue_attrs kernel/workqueue.c:5374 [inline]
 alloc_and_link_pwqs kernel/workqueue.c:5495 [inline]
 alloc_workqueue+0x1256/0x1ca0 kernel/workqueue.c:5717
 ieee80211_register_hw+0x1fb5/0x4390 net/mac80211/main.c:1460
 mac80211_hwsim_new_radio+0x265b/0x5150 drivers/net/wireless/virtual/mac80211_hwsim.c:5470
 hwsim_new_radio_nl+0xaf9/0x1240 drivers/net/wireless/virtual/mac80211_hwsim.c:6151
 genl_family_rcv_msg_doit+0x202/0x2f0 net/netlink/genetlink.c:1115
 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline]
 genl_rcv_msg+0x565/0x800 net/netlink/genetlink.c:1210
 netlink_rcv_skb+0x165/0x410 net/netlink/af_netlink.c:2564
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219
 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
 netlink_unicast+0x542/0x820 net/netlink/af_netlink.c:1361
 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1905
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 __sys_sendto+0x47f/0x4e0 net/socket.c:2192
 __do_compat_sys_socketcall+0x5e2/0x700 net/compat.c:475
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386
 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411
 entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf72e9579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000ff9be150 EFLAGS: 00000293 ORIG_RAX: 0000000000000066
RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00000000ff9be164
RDX: 0000000000000000 RSI: 00000000f7f8f568 RDI: 00000000f743fff4
RBP: 00000000f7f8f568 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:put_pwq_unlocked kernel/workqueue.c:1662 [inline]
RIP: 0010:put_pwq_unlocked kernel/workqueue.c:1655 [inline]
RIP: 0010:apply_wqattrs_cleanup.part.0+0xbc/0x2b0 kernel/workqueue.c:5223
Code: dd 28 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 8e 01 00 00 48 8b 5c dd 28 48 85 db 74 41 e8 4b ce 35 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 92 01 00 00 48 8b 3b e8 21 70 87 09 48 89 df
RSP: 0018:ffffc900030a70c8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8158b0d7
RDX: ffff888057892440 RSI: ffffffff8158b125 RDI: ffff8880644b8028
RBP: ffff8880644b8000 R08: 0000000000000005 R09: 0000000000000007
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffbfff1a92c7d R14: 0000000000000001 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:0000000057549400
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00007ffdcf65f9f8 CR3: 000000005beaa000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	dd 28                	(bad)  (%rax)
   2:	48 89 f8             	mov    %rdi,%rax
   5:	48 c1 e8 03          	shr    $0x3,%rax
   9:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   e:	0f 85 8e 01 00 00    	jne    0x1a2
  14:	48 8b 5c dd 28       	mov    0x28(%rbp,%rbx,8),%rbx
  19:	48 85 db             	test   %rbx,%rbx
  1c:	74 41                	je     0x5f
  1e:	e8 4b ce 35 00       	call   0x35ce6e
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	0f 85 92 01 00 00    	jne    0x1c7
  35:	48 8b 3b             	mov    (%rbx),%rdi
  38:	e8 21 70 87 09       	call   0x987705e
  3d:	48 89 df             	mov    %rbx,%rdi

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/03 20:53 upstream f06ce441457d c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in apply_wqattrs_cleanup
2024/06/03 13:55 upstream c3f38fa61af7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in apply_wqattrs_cleanup
2024/05/30 21:14 upstream 4a4be1ad3a6e c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in apply_wqattrs_cleanup
2024/05/29 04:03 upstream e0cce98fe279 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in apply_wqattrs_cleanup
2024/05/22 14:38 upstream 29c73fc794c8 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in apply_wqattrs_cleanup
2024/05/21 22:21 upstream 2a8120d7b482 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in apply_wqattrs_cleanup
* Struck through repros no longer work on HEAD.