Oops: general protection fault, probably for non-canonical address 0xdffffc001fffffff: 0000 [#1] SMP KASAN NOPTI
KASAN: probably user-memory-access in range [0x00000000fffffff8-0x00000000ffffffff]
CPU: 1 UID: 0 PID: 3967 Comm: syz-executor.1 Tainted: G W 6.17.0-rc3-next-20250829 #1 PREEMPT(voluntary)
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
RIP: 0010:apply_wqattrs_cleanup.part.0+0xbd/0x2b0
Code: dd 28 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 95 01 00 00 48 8b 5c dd 28 48 85 db 74 41 e8 8a af 32 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 a6 01 00 00 48 8b 3b e8 50 a8 7c 03 48 89 df
RSP: 0018:ffff8880493676b8 EFLAGS: 00010217
RAX: 000000001fffffff RBX: 00000000ffffffff RCX: ffffc90005eb9000
RDX: 0000000000040000 RSI: ffffffff814137f6 RDI: ffff88800c294428
RBP: ffff88800c294400 R08: 0000000000000001 R09: ffffed100926cec7
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffbfff0b0a4ac R14: ffffffffffffffff R15: 0000000000000000
FS: 00007fb3ac7a4700(0000) GS:ffff8880e56dd000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb3ac7a3fe8 CR3: 000000000c0ed000 CR4: 0000000000350ef0
Call Trace:
apply_workqueue_attrs_locked+0xa1/0xf0
__alloc_workqueue+0x1065/0x1820
alloc_workqueue_noprof+0xc7/0x200
loop_configure+0xf73/0x1590
lo_ioctl+0x66d/0x1c70
blkdev_ioctl+0x27c/0x6c0
__x64_sys_ioctl+0x18f/0x210
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb3af22e8d7
Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 a4 54 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb3ac7a3f48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb3af278970 RCX: 00007fb3af22e8d7
RDX: 0000000000000006 RSI: 0000000000004c00 RDI: 0000000000000007
RBP: 0000000000000007 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 0000000000000006 R14: 0000000020000218 R15: 0000000000000001
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:apply_wqattrs_cleanup.part.0+0xbd/0x2b0
Code: dd 28 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 95 01 00 00 48 8b 5c dd 28 48 85 db 74 41 e8 8a af 32 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 a6 01 00 00 48 8b 3b e8 50 a8 7c 03 48 89 df
RSP: 0018:ffff8880493676b8 EFLAGS: 00010217
RAX: 000000001fffffff RBX: 00000000ffffffff RCX: ffffc90005eb9000
RDX: 0000000000040000 RSI: ffffffff814137f6 RDI: ffff88800c294428
RBP: ffff88800c294400 R08: 0000000000000001 R09: ffffed100926cec7
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: fffffbfff0b0a4ac R14: ffffffffffffffff R15: 0000000000000000
FS: 00007fb3ac7a4700(0000) GS:ffff8880e56dd000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb3ac7a3fe8 CR3: 000000000c0ed000 CR4: 0000000000350ef0
==================================================================
BUG: KASAN: slab-use-after-free in __mutex_lock+0xc72/0x1020
Read of size 4 at addr ffff88800a6f52b4 by task syz-executor.1/3998
CPU: 1 UID: 0 PID: 3998 Comm: syz-executor.1 Tainted: G D W 6.17.0-rc3-next-20250829 #1 PREEMPT(voluntary)
Tainted: [D]=DIE, [W]=WARN
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Call Trace:
dump_stack_lvl+0xca/0x120
print_report+0xcb/0x610
kasan_report+0xca/0x100
__mutex_lock+0xc72/0x1020
lo_open+0x4e/0xe0
blkdev_get_whole+0x97/0x290
bdev_open+0x2c7/0xe40
blkdev_open+0x277/0x400
do_dentry_open+0x71c/0x1420
vfs_open+0x82/0x3f0
path_openat+0x1c3f/0x2880
do_filp_open+0x1e8/0x450
do_sys_openat2+0x104/0x1b0
__x64_sys_openat+0x142/0x200
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb3af1e1a04
Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44
RSP: 002b:00007fb3ac761ed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fb3af278970 RCX: 00007fb3af1e1a04
RDX: 0000000000000002 RSI: 00007fb3ac762000 RDI: 00000000ffffff9c
RBP: 00007fb3ac762000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 0000000000000006 R14: 0000000020000218 R15: 0000000000000001
Allocated by task 3965:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
__kasan_slab_alloc+0x59/0x70
kmem_cache_alloc_node_noprof+0x21a/0x690
copy_process+0x461/0x73c0
kernel_clone+0xea/0x7f0
__do_sys_clone+0xce/0x120
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 3965:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
__kasan_save_free_info+0x3a/0x60
__kasan_slab_free+0x3f/0x50
kmem_cache_free+0x2a1/0x540
rcu_core+0x7c8/0x1800
handle_softirqs+0x1b1/0x770
__irq_exit_rcu+0xc4/0x100
irq_exit_rcu+0x9/0x20
sysvec_apic_timer_interrupt+0x70/0x80
asm_sysvec_apic_timer_interrupt+0x1a/0x20
Last potentially related work creation:
kasan_save_stack+0x24/0x50
kasan_record_aux_stack+0x89/0xa0
__call_rcu_common.constprop.0+0x70/0x960
__free_event+0x411/0xc20
perf_event_release_kernel+0x3ef/0x540
perf_release+0x31/0x40
__fput+0x401/0xb50
fput_close_sync+0x10f/0x240
__x64_sys_close+0x8f/0x120
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Second to last potentially related work creation:
kasan_save_stack+0x24/0x50
kasan_record_aux_stack+0x89/0xa0
__call_rcu_common.constprop.0+0x70/0x960
put_task_struct_rcu_user+0x75/0xc0
__schedule+0xe86/0x3590
schedule+0xdb/0x390
do_nanosleep+0x15e/0x560
hrtimer_nanosleep+0x13a/0x340
common_nsleep+0xaa/0xd0
__x64_sys_clock_nanosleep+0x331/0x470
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88800a6f5280
which belongs to the cache task_struct of size 6784
The buggy address is located 52 bytes inside of
freed 6784-byte region [ffff88800a6f5280, ffff88800a6f6d00)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88800a6f0000 pfn:0xa6f0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88800e669fc1
flags: 0x100000000000240(workingset|head|node=0|zone=1)
page_type: f5(slab)
raw: 0100000000000240 ffff888008ff7640 ffffea0000272c10 ffffea000117ec10
raw: ffff88800a6f0000 0000000000040002 00000000f5000000 ffff88800e669fc1
head: 0100000000000240 ffff888008ff7640 ffffea0000272c10 ffffea000117ec10
head: ffff88800a6f0000 0000000000040002 00000000f5000000 ffff88800e669fc1
head: 0100000000000003 ffffea000029bc01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88800a6f5180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88800a6f5200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88800a6f5280: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88800a6f5300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88800a6f5380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Bluetooth: hci0: command tx timeout
Bluetooth: hci0: command tx timeout
----------------
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 95 01 00 00 jne 0x1a9
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 8a af 32 00 callq 0x32afad
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 a6 01 00 00 jne 0x1db
35: 48 8b 3b mov (%rbx),%rdi
38: e8 50 a8 7c 03 callq 0x37ca88d
3d: 48 89 df mov %rbx,%rdi