RBP: 00007f76119f31d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffeca9a331f R14: 00007f76119f3300 R15: 0000000000022000
------------[ cut here ]------------
kernel BUG at fs/ext4/extents.c:5683!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 24385 Comm: syz-executor.1 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:ffff8880181bf8f8 EFLAGS: 00010216
RAX: 000000000002884e RBX: 0000000000000000 RCX: ffffc90001293000
RDX: 0000000000040000 RSI: ffffffff81e7eeed RDI: 0000000000000007
RBP: ffff88804ed644b8 R08: 0000000000000000 R09: ffffed1009dac897
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 00000000fffffff4 R14: ffffea000167ae40 R15: 0000000000000001
FS: 00007f76119f3700(0000) GS:ffff8880e538e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f76119f2f78 CR3: 0000000053637000 CR4: 0000000000350ef0
DR0: ffdfffffffff7693 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
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:0x7f761447db19
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:00007f76119f3188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f7614590f60 RCX: 00007f761447db19
RDX: 00000000200000c0 RSI: 00000000c028660f RDI: 0000000000000004
RBP: 00007f76119f31d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffeca9a331f R14: 00007f76119f3300 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:ffff8880181bf8f8 EFLAGS: 00010216
RAX: 000000000002884e RBX: 0000000000000000 RCX: ffffc90001293000
RDX: 0000000000040000 RSI: ffffffff81e7eeed RDI: 0000000000000007
RBP: ffff88804ed644b8 R08: 0000000000000000 R09: ffffed1009dac897
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 00000000fffffff4 R14: ffffea000167ae40 R15: 0000000000000001
FS: 00007f76119f3700(0000) GS:ffff8880e538e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f76119f2f78 CR3: 0000000053637000 CR4: 0000000000350ef0
DR0: ffdfffffffff7693 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
==================================================================
BUG: KASAN: slab-use-after-free in rwsem_down_write_slowpath+0x121a/0x1330
Read of size 4 at addr ffff8880508b0034 by task syz-executor.1/285
CPU: 0 UID: 0 PID: 285 Comm: syz-executor.1 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:0x7f761447d457
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:00007ffeca9a2468 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f761447d457
RDX: 00007ffeca9a24a0 RSI: 00007ffeca9a24a0 RDI: 00007ffeca9a2530
RBP: 00007ffeca9a2530 R08: 0000000000000001 R09: 00007ffeca9a2300
R10: 000055557777bc7b R11: 0000000000000206 R12: 00007f76144d7105
R13: 00007ffeca9a35f0 R14: 000055557777bc20 R15: 00007ffeca9a3630
Allocated by task 24379:
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 24379:
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
__free_event+0x411/0xc30
perf_event_release_kernel+0x3ef/0x540
perf_release+0x31/0x40
__fput+0x401/0xb50
fput_close_sync+0x10f/0x230
__x64_sys_close+0x8f/0x120
do_syscall_64+0xbf/0x430
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+0x1003/0x45f0
__cond_resched+0x4c/0x80
kmem_cache_alloc_noprof+0x387/0x690
__alloc_object+0x2b/0x2c0
__create_object+0x1d/0x80
kmem_cache_alloc_noprof+0x42f/0x690
alloc_empty_file+0x58/0x1e0
path_openat+0xee/0x2a50
do_filp_open+0x1e8/0x450
do_sys_openat2+0x104/0x1b0
__x64_sys_openat+0x142/0x200
do_syscall_64+0xbf/0x430
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff8880508b0000
which belongs to the cache task_struct of size 6848
The buggy address is located 52 bytes inside of
freed 6848-byte region [ffff8880508b0000, ffff8880508b1ac0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x508b0
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88800c8de341
anon flags: 0x100000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0100000000000040 ffff88800944c640 0000000000000000 0000000000000001
raw: 0000000000000000 0000000000040004 00000000f5000000 ffff88800c8de341
head: 0100000000000040 ffff88800944c640 0000000000000000 0000000000000001
head: 0000000000000000 0000000000040004 00000000f5000000 ffff88800c8de341
head: 0100000000000003 ffffea0001422c01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880508aff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8880508aff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8880508b0000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880508b0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880508b0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
kmemleak: 7 new suspected memory leaks (see /sys/kernel/debug/kmemleak)