R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fff4d25643f R14: 00007f3efbc78300 R15: 0000000000022000
==================================================================
BUG: KASAN: slab-use-after-free in __lock_acquire+0x340f/0x4430
Read of size 8 at addr ffff88803e014078 by task syz-executor.1/18850
CPU: 0 UID: 0 PID: 18850 Comm: syz-executor.1 Not tainted 6.12.0-next-20241122 #1
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/0x620
kasan_report+0xbd/0xf0
__lock_acquire+0x340f/0x4430
lock_acquire.part.0+0xeb/0x320
loop6: detected capacity change from 0 to 131072
_raw_spin_lock_irqsave+0x3a/0x60
try_to_wake_up+0x9f/0x1880
io_sq_thread_park+0xac/0xe0
io_sq_thread_finish+0x64/0x290
io_sq_offload_create+0x162/0x1120
io_uring_setup+0x171a/0x31d0
__x64_sys_io_uring_setup+0x99/0x160
do_syscall_64+0xbf/0x1d0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3efe702b19
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3efbc78188 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00007f3efe815f60 RCX: 00007f3efe702b19
RDX: 0000000000000000 RSI: 0000000020000500 RDI: 0000000000001a29
RBP: 00007f3efbc781d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fff4d25643f R14: 00007f3efbc78300 R15: 0000000000022000
Allocated by task 18850:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
__kasan_slab_alloc+0x59/0x70
kmem_cache_alloc_node_noprof+0x14c/0x3e0
copy_process+0x45c/0x8e90
create_io_thread+0xac/0xf0
io_sq_offload_create+0xaf2/0x1120
io_uring_setup+0x171a/0x31d0
__x64_sys_io_uring_setup+0x99/0x160
do_syscall_64+0xbf/0x1d0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 14032:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
kasan_save_free_info+0x3a/0x60
__kasan_slab_free+0x38/0x50
kmem_cache_free+0x138/0x470
delayed_put_task_struct+0x108/0x2a0
rcu_core+0x7c9/0x1790
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+0x8c/0xa0
__call_rcu_common.constprop.0+0x6a/0xaa0
put_task_struct_rcu_user+0x75/0xc0
__schedule+0xc21/0x2fa0
schedule+0xdb/0x340
do_nanosleep+0x155/0x500
hrtimer_nanosleep+0x13d/0x340
common_nsleep+0xaa/0xd0
__x64_sys_clock_nanosleep+0x332/0x480
do_syscall_64+0xbf/0x1d0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88803e013700
which belongs to the cache task_struct of size 6784
The buggy address is located 2424 bytes inside of
freed 6784-byte region [ffff88803e013700, ffff88803e015180)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3e010
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88800c699141
flags: 0x100000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0100000000000040 ffff888008ff0640 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000040004 00000001f5000000 ffff88800c699141
head: 0100000000000040 ffff888008ff0640 dead000000000100 dead000000000122
head: 0000000000000000 0000000000040004 00000001f5000000 ffff88800c699141
head: 0100000000000003 ffffea0000f80401 ffffffffffffffff 0000000000000000
head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88803e013f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88803e013f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88803e014000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88803e014080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88803e014100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
EXT4-fs (loop6): invalid inodes per group: 135266304
loop7: detected capacity change from 0 to 4
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 UID: 0 PID: 18864 Comm: syz-executor.7 Tainted: G B 6.12.0-next-20241122 #1
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Call Trace:
dump_stack_lvl+0xfa/0x120
should_fail_ex+0x4b1/0x5b0
should_failslab+0xc2/0x120
kmem_cache_alloc_lru_noprof+0x74/0x3c0
ext4_alloc_inode+0x28/0x650
alloc_inode+0x63/0x240
new_inode+0x1c/0x190
__ext4_new_inode+0x2f1/0x4df0
ext4_mkdir+0x33d/0xb30
vfs_mkdir+0x291/0x4f0
do_mkdirat+0x1a4/0x350
__x64_sys_mkdir+0xf3/0x140
do_syscall_64+0xbf/0x1d0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8e12c19c27
Code: 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 53 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:00007f8e1018ffa8 EFLAGS: 00000213 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007f8e12c19c27
RDX: 0000000000000004 RSI: 00000000000001ff RDI: 0000000020000100
RBP: 00007f8e10190040 R08: 0000000000000000 R09: ffffffffffffffff
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f8e10190000 R15: 0000000020000380
loop6: detected capacity change from 0 to 131072
EXT4-fs (loop6): invalid inodes per group: 135266304
loop7: detected capacity change from 0 to 4
EXT4-fs (loop7): invalid first ino: 3260751986
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 UID: 0 PID: 18877 Comm: syz-executor.4 Tainted: G B 6.12.0-next-20241122 #1
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Call Trace:
dump_stack_lvl+0xfa/0x120
should_fail_ex+0x4b1/0x5b0
should_failslab+0xc2/0x120
kmem_cache_alloc_noprof+0x60/0x3d0
__kernfs_new_node+0xd4/0x850
kernfs_new_node+0x18b/0x250
__kernfs_create_file+0x55/0x360
sysfs_add_file_mode_ns+0x21c/0x440
internal_create_group+0x573/0xeb0
loop_configure+0x967/0x1220
lo_ioctl+0x8cc/0x18f0
blkdev_ioctl+0x27e/0x6d0
__x64_sys_ioctl+0x1a7/0x210
do_syscall_64+0xbf/0x1d0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f878b35a8d7
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:00007f87888cff48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f878b3a4970 RCX: 00007f878b35a8d7
RDX: 0000000000000004 RSI: 0000000000004c00 RDI: 0000000000000005
RBP: 0000000000000005 R08: 0000000000000000 R09: ffffffffffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000004 R14: 0000000020000218 R15: 0000000000000001
loop4: detected capacity change from 0 to 4
EXT4-fs (loop4): invalid first ino: 3260751986
loop6: detected capacity change from 0 to 131072
loop7: detected capacity change from 0 to 4
EXT4-fs (loop7): invalid first ino: 3260751986
EXT4-fs (loop6): invalid inodes per group: 135266304
loop6: detected capacity change from 0 to 131072
EXT4-fs (loop6): invalid inodes per group: 135266304