blkdev_ioctl+0x27c/0x6c0
__x64_sys_ioctl+0x18f/0x210
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
loop3: detected capacity change from 0 to 32767
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 3998 Comm: syz-executor.3 Tainted: G W 6.17.0-rc4-next-20250901 #1 PREEMPT(voluntary)
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
RIP: 0010:__queue_work+0x202/0x1240
Code: 48 8b 6d 00 e8 4f ee 79 03 31 ff 41 89 c5 89 c6 e8 c3 02 32 00 45 85 ed 0f 85 e1 05 00 00 e8 85 07 32 00 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 a0 0e 00 00 4c 8b 75 00 48 89 df 4c 89 34 24
RSP: 0018:ffff88800a00eec0 EFLAGS: 00010056
RAX: 0000000000000000 RBX: ffff88800c78b318 RCX: ffffc90006a16000
RDX: 0000000000040000 RSI: ffffffff8141ef2b RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000001 R09: fffffbfff0f128f4
R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000
R13: 0000000000000001 R14: 0000000000000001 R15: ffff888016b6e800
FS: 00007f59ad75d700(0000) GS:ffff8880e56d8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000021000000 CR3: 0000000018711000 CR4: 0000000000350ef0
Call Trace:
queue_work_on+0xd0/0xe0
loop_queue_rq+0x5c8/0x1180
__blk_mq_issue_directly+0xd5/0x260
blk_mq_request_issue_directly+0x11c/0x1e0
blk_mq_issue_direct+0x192/0x640
blk_mq_dispatch_queue_requests+0x4b0/0x7c0
blk_mq_flush_plug_list+0x1ec/0x5b0
__blk_flush_plug+0x25c/0x460
__submit_bio+0x480/0x5b0
submit_bio_noacct_nocheck+0x68e/0xcb0
submit_bio_noacct+0x359/0x1350
block_read_full_folio+0x457/0x760
filemap_read_folio+0x4a/0x1e0
do_read_cache_folio+0x1d6/0x500
read_part_sector+0xd1/0x2f0
read_lba+0x1b8/0x380
efi_partition+0x281/0x28e0
bdev_disk_changed+0x78b/0x1440
loop_reread_partitions+0x70/0x140
loop_set_status+0x697/0xa80
lo_ioctl+0x17b/0x1c70
blkdev_ioctl+0x27c/0x6c0
__x64_sys_ioctl+0x18f/0x210
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f59b01e78d7
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:00007f59ad75cef8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f59ad75cf40 RCX: 00007f59b01e78d7
RDX: 00007f59ad75d050 RSI: 0000000000004c04 RDI: 0000000000000005
RBP: 00007f59b0241f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007f59ad75d050
R13: 00007ffcc722f5ef R14: 00007f59ad75d300 R15: 0000000000022000
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__queue_work+0x202/0x1240
Code: 48 8b 6d 00 e8 4f ee 79 03 31 ff 41 89 c5 89 c6 e8 c3 02 32 00 45 85 ed 0f 85 e1 05 00 00 e8 85 07 32 00 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 a0 0e 00 00 4c 8b 75 00 48 89 df 4c 89 34 24
RSP: 0018:ffff88800a00eec0 EFLAGS: 00010056
RAX: 0000000000000000 RBX: ffff88800c78b318 RCX: ffffc90006a16000
RDX: 0000000000040000 RSI: ffffffff8141ef2b RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000001 R09: fffffbfff0f128f4
R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000
R13: 0000000000000001 R14: 0000000000000001 R15: ffff888016b6e800
FS: 00007f59ad75d700(0000) GS:ffff8880e56d8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000021000000 CR3: 0000000018711000 CR4: 0000000000350ef0
note: syz-executor.3[3998] exited with irqs disabled
note: syz-executor.3[3998] exited with preempt_count 1
------------[ cut here ]------------
WARNING: kernel/exit.c:898 at do_exit+0x1c36/0x2970, CPU#1: syz-executor.3/3998
Modules linked in:
CPU: 1 UID: 0 PID: 3998 Comm: syz-executor.3 Tainted: G D W 6.17.0-rc4-next-20250901 #1 PREEMPT(voluntary)
Tainted: [D]=DIE, [W]=WARN
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
RIP: 0010:do_exit+0x1c36/0x2970
Code: 96 0a 00 00 c7 43 18 00 00 00 00 e9 21 e6 ff ff e8 ef b3 38 00 bf 02 24 00 00 e8 f5 ab 0b 00 e9 41 ff ff ff e8 db b3 38 00 90 <0f> 0b 90 e9 87 e4 ff ff e8 cd b3 38 00 4c 89 e6 bf 05 06 00 00 e8
RSP: 0018:ffff88800a00fe40 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 0000000000000200 RCX: ffffc90006a16000
RDX: 0000000000040000 RSI: ffffffff813b42d5 RDI: ffff88801851ad68
RBP: ffff888018519b80 R08: 0000000000000001 R09: fffffbfff0f126d8
R10: 0000000000000200 R11: 0000000000000001 R12: 000000000000000b
R13: 0000000000002710 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007f59ad75d700(0000) GS:ffff8880e56d8000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000021000000 CR3: 0000000018711000 CR4: 0000000000350ef0
Call Trace:
make_task_dead+0x174/0x3b0
rewind_stack_and_make_dead+0x16/0x20
RIP: 0033:0x7f59b01e78d7
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:00007f59ad75cef8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f59ad75cf40 RCX: 00007f59b01e78d7
RDX: 00007f59ad75d050 RSI: 0000000000004c04 RDI: 0000000000000005
RBP: 00007f59b0241f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007f59ad75d050
R13: 00007ffcc722f5ef R14: 00007f59ad75d300 R15: 0000000000022000
irq event stamp: 80696
hardirqs last enabled at (80695): [] _raw_spin_unlock_irqrestore+0x2c/0x50
hardirqs last disabled at (80696): [] _raw_spin_lock_irq+0x42/0x50
softirqs last enabled at (80626): [] handle_softirqs+0x50c/0x770
softirqs last disabled at (80621): [] __irq_exit_rcu+0xc4/0x100
---[ end trace 0000000000000000 ]---
BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:51
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 3998, name: syz-executor.3
preempt_count: 0, expected: 0
RCU nest depth: 2, expected: 0
INFO: lockdep is turned off.
CPU: 1 UID: 0 PID: 3998 Comm: syz-executor.3 Tainted: G D W 6.17.0-rc4-next-20250901 #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+0xfa/0x120
__might_resched+0x2f3/0x510
exit_signals+0x25/0x940
do_exit+0x2db/0x2970
make_task_dead+0x174/0x3b0
rewind_stack_and_make_dead+0x16/0x20
RIP: 0033:0x7f59b01e78d7
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:00007f59ad75cef8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f59ad75cf40 RCX: 00007f59b01e78d7
RDX: 00007f59ad75d050 RSI: 0000000000004c04 RDI: 0000000000000005
RBP: 00007f59b0241f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007f59ad75d050
R13: 00007ffcc722f5ef R14: 00007f59ad75d300 R15: 0000000000022000
==================================================================
BUG: KASAN: slab-use-after-free in __mutex_lock+0xc72/0x1020
Read of size 4 at addr ffff888018519bb4 by task syz-executor.3/284
CPU: 1 UID: 0 PID: 284 Comm: syz-executor.3 Tainted: G D W 6.17.0-rc4-next-20250901 #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
bdev_open+0x3e9/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:0x7f59b019aa04
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:00007ffcc722f7c0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffcc722f8c0 RCX: 00007f59b019aa04
RDX: 0000000000000002 RSI: 00007ffcc722f900 RDI: 00000000ffffff9c
RBP: 00007ffcc722f900 R08: 0000000000000000 R09: 00007ffcc722f6d0
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 0000000000000000 R14: 0000000000000005 R15: 00007ffcc722f900
Allocated by task 3995:
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 0:
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
syslog_print+0x1c4/0x5c0
do_syslog.part.0+0x20b/0x5b0
do_syslog+0xcd/0x110
kmsg_read+0x8e/0xc0
proc_reg_read+0x120/0x310
vfs_read+0x1eb/0xc70
ksys_read+0x121/0x240
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff888018519b80
which belongs to the cache task_struct of size 6784
The buggy address is located 52 bytes inside of
freed 6784-byte region [ffff888018519b80, ffff88801851b600)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x18518
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88800cbf9101
flags: 0x100000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0100000000000040 ffff888008ff7640 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000040004 00000000f5000000 ffff88800cbf9101
head: 0100000000000040 ffff888008ff7640 dead000000000100 dead000000000122
head: 0000000000000000 0000000000040004 00000000f5000000 ffff88800cbf9101
head: 0100000000000003 ffffea0000614601 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888018519a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888018519b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888018519b80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888018519c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888018519c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
kmemleak: 5 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
----------------
Code disassembly (best guess):
0: 48 8b 6d 00 mov 0x0(%rbp),%rbp
4: e8 4f ee 79 03 callq 0x379ee58
9: 31 ff xor %edi,%edi
b: 41 89 c5 mov %eax,%r13d
e: 89 c6 mov %eax,%esi
10: e8 c3 02 32 00 callq 0x3202d8
15: 45 85 ed test %r13d,%r13d
18: 0f 85 e1 05 00 00 jne 0x5ff
1e: e8 85 07 32 00 callq 0x3207a8
23: 48 89 e8 mov %rbp,%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 a0 0e 00 00 jne 0xed5
35: 4c 8b 75 00 mov 0x0(%rbp),%r14
39: 48 89 df mov %rbx,%rdi
3c: 4c 89 34 24 mov %r14,(%rsp)