RBP: 00007f4114c6b1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffc85f317bf R14: 00007f4114c6b300 R15: 0000000000022000
------------[ cut here ]------------
kernel BUG at fs/ext4/extents.c:5683!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 70891 Comm: syz-executor.5 Not tainted 6.18.0-rc6-next-20251121 #1 PREEMPT(voluntary)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
RIP: 0010:ext4_swap_extents+0x9ce/0x1550
Code: 00 00 00 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 15 0a 00 00 48 8b 84 24 c8 00 00 00 89 18 e9 ff fc ff ff e8 83 43 8d ff 90 <0f> 0b e8 7b 43 8d ff 90 0f 0b e8 73 43 8d ff 48 8b 44 24 58 48 c1
RSP: 0018:ffff8880164378f8 EFLAGS: 00010216
RAX: 0000000000028989 RBX: 0000000000000000 RCX: ffffc90000a12000
RDX: 0000000000040000 RSI: ffffffff81e7eeed RDI: 0000000000000007
RBP: ffff888040d0ce40 R08: 0000000000000000 R09: ffffed10081a19c8
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 00000000fffffff4 R14: ffffea00015ea080 R15: 0000000000000001
FS: 00007f4114c6b700(0000) GS:ffff8880e548e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4114c6af78 CR3: 000000004ada4000 CR4: 0000000000350ef0
Call Trace:
ext4_move_extents+0x31e9/0x37e0
__ext4_ioctl+0x118f/0x38e0
__x64_sys_ioctl+0x18f/0x210
do_syscall_64+0xbf/0x430
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f41176f5b19
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:00007f4114c6b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f4117808f60 RCX: 00007f41176f5b19
RDX: 00000000200000c0 RSI: 00000000c028660f RDI: 0000000000000003
RBP: 00007f4114c6b1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffc85f317bf R14: 00007f4114c6b300 R15: 0000000000022000
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_swap_extents+0x9ce/0x1550
Code: 00 00 00 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 15 0a 00 00 48 8b 84 24 c8 00 00 00 89 18 e9 ff fc ff ff e8 83 43 8d ff 90 <0f> 0b e8 7b 43 8d ff 90 0f 0b e8 73 43 8d ff 48 8b 44 24 58 48 c1
RSP: 0018:ffff8880164378f8 EFLAGS: 00010216
RAX: 0000000000028989 RBX: 0000000000000000 RCX: ffffc90000a12000
RDX: 0000000000040000 RSI: ffffffff81e7eeed RDI: 0000000000000007
RBP: ffff888040d0ce40 R08: 0000000000000000 R09: ffffed10081a19c8
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 00000000fffffff4 R14: ffffea00015ea080 R15: 0000000000000001
FS: 00007f4114c6b700(0000) GS:ffff8880e548e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4114c6af78 CR3: 000000004ada4000 CR4: 0000000000350ef0
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 UID: 0 PID: 71130 Comm: syz-executor.7 Tainted: G D 6.18.0-rc6-next-20251121 #1 PREEMPT(voluntary)
Tainted: [D]=DIE
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+0x4d7/0x5e0
should_failslab+0xc2/0x120
kmem_cache_alloc_noprof+0x80/0x690
jbd2__journal_start+0x193/0x6b0
__ext4_journal_start_sb+0x325/0x5d0
ext4_dirty_inode+0xa5/0x130
__mark_inode_dirty+0x1b7/0x1470
generic_update_time+0xcb/0xf0
file_modified+0x1f0/0x230
ext4_file_write_iter+0xca6/0x19f0
iter_file_splice_write+0xa3a/0x11f0
direct_splice_actor+0x192/0x7b0
splice_direct_to_actor+0x347/0x9d0
do_splice_direct+0x179/0x250
do_sendfile+0xa8e/0xdc0
__x64_sys_sendfile64+0x1d3/0x210
do_syscall_64+0xbf/0x430
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa1a7909b19
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:00007fa1a4e7f188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fa1a7a1cf60 RCX: 00007fa1a7909b19
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007fa1a4e7f1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000a0103 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe90b5635f R14: 00007fa1a4e7f300 R15: 0000000000022000
==================================================================
BUG: KASAN: slab-use-after-free in rwsem_down_write_slowpath+0x121a/0x1330
Read of size 4 at addr ffff8880512ed374 by task syz-executor.5/44817
CPU: 1 UID: 0 PID: 44817 Comm: syz-executor.5 Tainted: G D 6.18.0-rc6-next-20251121 #1 PREEMPT(voluntary)
Tainted: [D]=DIE
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
rwsem_down_write_slowpath+0x121a/0x1330
down_write+0x1c2/0x1f0
vfs_unlink+0xd9/0xb50
do_unlinkat+0x361/0x620
__x64_sys_unlink+0xc7/0x110
do_syscall_64+0xbf/0x430
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f41176f5457
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 57 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:00007ffc85f30908 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f41176f5457
RDX: 00007ffc85f30940 RSI: 00007ffc85f30940 RDI: 00007ffc85f309d0
RBP: 00007ffc85f309d0 R08: 0000000000000001 R09: 00007ffc85f307a0
R10: 0000555570846c7b R11: 0000000000000206 R12: 00007f411774f105
R13: 00007ffc85f31a90 R14: 0000555570846c20 R15: 00007ffc85f31ad0
Allocated by task 70849:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
__kasan_slab_alloc+0x59/0x70
kmem_cache_alloc_node_noprof+0x228/0x6b0
copy_process+0x460/0x7260
kernel_clone+0xea/0x7f0
__do_sys_clone+0xce/0x120
do_syscall_64+0xbf/0x430
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 293:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
kasan_save_free_info+0x3a/0x60
__kasan_slab_free+0x43/0x70
kmem_cache_free+0x26f/0x500
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
delayed_put_task_struct+0xde/0x260
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
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+0x1003/0x45f0
schedule+0xdb/0x390
do_nanosleep+0x15e/0x570
hrtimer_nanosleep+0x13a/0x340
common_nsleep+0xaa/0xd0
__x64_sys_clock_nanosleep+0x331/0x470
do_syscall_64+0xbf/0x430
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff8880512ed340
which belongs to the cache task_struct of size 6848
The buggy address is located 52 bytes inside of
freed 6848-byte region [ffff8880512ed340, ffff8880512eee00)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x512e8
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88800cc10401
flags: 0x100000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0100000000000040 ffff88800944c640 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000040004 00000000f5000000 ffff88800cc10401
head: 0100000000000040 ffff88800944c640 dead000000000122 0000000000000000
head: 0000000000000000 0000000000040004 00000000f5000000 ffff88800cc10401
head: 0100000000000003 ffffea000144ba01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880512ed200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff8880512ed280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880512ed300: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
^
ffff8880512ed380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880512ed400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
kmemleak: 4 new suspected memory leaks (see /sys/kernel/debug/kmemleak)