dentry_kill+0xb8/0x290 fs/dcache.c:-1
dput+0xfe/0x1e0 fs/dcache.c:918
__fput+0x5e5/0x970 fs/file_table.c:392
task_work_run+0x1ce/0x250 kernel/task_work.c:239
exit_task_work include/linux/task_work.h:43 [inline]
do_exit+0x90b/0x23c0 kernel/exit.c:883
do_group_exit+0x21b/0x2d0 kernel/exit.c:1024
get_signal+0x12fc/0x1400 kernel/signal.c:2902
arch_do_signal_or_restart+0x96/0x780 arch/x86/kernel/signal.c:310
------------[ cut here ]------------
kernel BUG at mm/filemap.c:155!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7740 Comm: syz.2.566 Not tainted 6.6.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:filemap_unaccount_folio+0x704/0xc60 mm/filemap.c:155
Code: 48 25 ff 0f 00 00 0f 84 ec 00 00 00 e8 15 b5 d2 ff e9 74 f9 ff ff e8 0b b5 d2 ff 48 89 df 48 c7 c6 20 23 b3 8a e8 ac 75 12 00 <0f> 0b e8 f5 b4 d2 ff 48 89 df 48 c7 c6 a0 28 b3 8a e8 96 75 12 00
RSP: 0018:ffffc900051773b8 EFLAGS: 00010046
RAX: 34f8c8b250d17000 RBX: ffffea00013c0000 RCX: 34f8c8b250d17000
RDX: 0000000000000005 RSI: ffffffff8aaacbc0 RDI: ffffffff8afc6680
RBP: ffffc90005177518 R08: ffffffff8e4a7cef R09: 1ffffffff1c94f9d
R10: dffffc0000000000 R11: fffffbfff1c94f9e R12: 0000000000000040
R13: 1ffffd4000278000 R14: 1ffffd4000278001 R15: ffffea00013c0008
FS: 00007f92f14886c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92f1487f98 CR3: 000000002d422000 CR4: 00000000003526e0
Call Trace:
<TASK>
__filemap_remove_folio+0xc4/0x7f0 mm/filemap.c:224
filemap_remove_folio+0xf1/0x2c0 mm/filemap.c:257
hugetlb_delete_from_page_cache fs/hugetlbfs/inode.c:433 [inline]
remove_inode_single_folio fs/hugetlbfs/inode.c:638 [inline]
remove_inode_hugepages+0x5dc/0x1870 fs/hugetlbfs/inode.c:696
hugetlbfs_punch_hole fs/hugetlbfs/inode.c:816 [inline]
hugetlbfs_fallocate+0xd45/0x1090 fs/hugetlbfs/inode.c:842
vfs_fallocate+0x58e/0x700 fs/open.c:324
madvise_remove mm/madvise.c:1007 [inline]
madvise_vma_behavior mm/madvise.c:1031 [inline]
madvise_walk_vmas mm/madvise.c:1266 [inline]
do_madvise+0x15fe/0x3710 mm/madvise.c:1446
__do_sys_madvise mm/madvise.c:1459 [inline]
__se_sys_madvise mm/madvise.c:1457 [inline]
__x64_sys_madvise+0xa6/0xc0 mm/madvise.c:1457
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f92f058e9a9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f92f1488038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007f92f07b6160 RCX: 00007f92f058e9a9
RDX: 0000000000000009 RSI: 0000000000600002 RDI: 0000200000000000
RBP: 00007f92f0610d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f92f07b6160 R15: 00007ffd85c81e38
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:filemap_unaccount_folio+0x704/0xc60 mm/filemap.c:155
Code: 48 25 ff 0f 00 00 0f 84 ec 00 00 00 e8 15 b5 d2 ff e9 74 f9 ff ff e8 0b b5 d2 ff 48 89 df 48 c7 c6 20 23 b3 8a e8 ac 75 12 00 <0f> 0b e8 f5 b4 d2 ff 48 89 df 48 c7 c6 a0 28 b3 8a e8 96 75 12 00
RSP: 0018:ffffc900051773b8 EFLAGS: 00010046
RAX: 34f8c8b250d17000 RBX: ffffea00013c0000 RCX: 34f8c8b250d17000
RDX: 0000000000000005 RSI: ffffffff8aaacbc0 RDI: ffffffff8afc6680
RBP: ffffc90005177518 R08: ffffffff8e4a7cef R09: 1ffffffff1c94f9d
R10: dffffc0000000000 R11: fffffbfff1c94f9e R12: 0000000000000040
R13: 1ffffd4000278000 R14: 1ffffd4000278001 R15: ffffea00013c0008
FS: 00007f92f14886c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92f1487f98 CR3: 000000002d422000 CR4: 00000000003526e0