------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 1 PID: 4240 at fs/buffer.c:1145 __brelse fs/buffer.c:1145 [inline] WARNING: CPU: 1 PID: 4240 at fs/buffer.c:1145 brelse include/linux/buffer_head.h:326 [inline] WARNING: CPU: 1 PID: 4240 at fs/buffer.c:1145 __invalidate_bh_lrus fs/buffer.c:1380 [inline] WARNING: CPU: 1 PID: 4240 at fs/buffer.c:1145 invalidate_bh_lru+0x128/0x200 fs/buffer.c:1393 Modules linked in: CPU: 1 PID: 4240 Comm: syz-executor.1 Not tainted 6.1.88-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 604010c5 (nZCv daIF +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : __brelse fs/buffer.c:1145 [inline] pc : brelse include/linux/buffer_head.h:326 [inline] pc : __invalidate_bh_lrus fs/buffer.c:1380 [inline] pc : invalidate_bh_lru+0x128/0x200 fs/buffer.c:1393 lr : __brelse fs/buffer.c:1145 [inline] lr : brelse include/linux/buffer_head.h:326 [inline] lr : __invalidate_bh_lrus fs/buffer.c:1380 [inline] lr : invalidate_bh_lru+0x128/0x200 fs/buffer.c:1393 sp : ffff800008017df0 x29: ffff800008017df0 x28: 0000000000000000 x27: 0000000000000000 x26: 0000000000000001 x25: 00000000ffffffff x24: ffff0001b4387698 x23: 0000000000000000 x22: dfff800000000000 x21: 0000000000000000 x20: ffff0000ded30a58 x19: ffff800012381bc0 x18: 1fffe0003686f176 x17: 0000000000000000 x16: ffff8000120adc40 x15: 0000000000010005 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000010003 x9 : 483a6956cc098200 x8 : 483a6956cc098200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000080176d8 x4 : ffff800015932b00 x3 : ffff80000834e968 x2 : 0000000000000001 x1 : 0000000100010003 x0 : 0000000000000000 Call trace: __brelse fs/buffer.c:1145 [inline] brelse include/linux/buffer_head.h:326 [inline] __invalidate_bh_lrus fs/buffer.c:1380 [inline] invalidate_bh_lru+0x128/0x200 fs/buffer.c:1393 __flush_smp_call_function_queue+0x46c/0x1118 kernel/smp.c:641 generic_smp_call_function_single_interrupt+0x28/0x16c kernel/smp.c:557 do_handle_IPI arch/arm64/kernel/smp.c:876 [inline] ipi_handler+0x15c/0x86c arch/arm64/kernel/smp.c:922 handle_percpu_devid_irq+0x174/0x354 kernel/irq/chip.c:930 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq_desc kernel/irq/irqdesc.c:651 [inline] generic_handle_domain_irq+0x7c/0xc4 kernel/irq/irqdesc.c:707 __gic_handle_irq drivers/irqchip/irq-gic-v3.c:737 [inline] __gic_handle_irq_from_irqson drivers/irqchip/irq-gic-v3.c:788 [inline] gic_handle_irq+0x70/0x1e4 drivers/irqchip/irq-gic-v3.c:832 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:893 do_interrupt_handler+0xd4/0x138 arch/arm64/kernel/entry-common.c:274 __el1_irq arch/arm64/kernel/entry-common.c:471 [inline] el1_interrupt+0x34/0x68 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581 arch_local_irq_enable arch/arm64/include/asm/irqflags.h:35 [inline] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] _raw_spin_unlock_irq+0x44/0x90 kernel/locking/spinlock.c:202 spin_unlock_irq include/linux/spinlock.h:401 [inline] filemap_remove_folio+0xdc/0x1cc mm/filemap.c:256 truncate_inode_folio+0x6c/0x84 mm/truncate.c:195 shmem_undo_range+0x428/0x16b8 mm/shmem.c:942 shmem_truncate_range mm/shmem.c:1062 [inline] shmem_evict_inode+0x200/0x8a8 mm/shmem.c:1171 evict+0x260/0x68c fs/inode.c:666 iput_final fs/inode.c:1791 [inline] iput+0x7c0/0x8a4 fs/inode.c:1817 dentry_unlink_inode+0x370/0x4b0 fs/dcache.c:401 __dentry_kill+0x324/0x5e4 fs/dcache.c:607 dentry_kill+0xc8/0x250 dput+0x218/0x454 fs/dcache.c:914 __fput+0x4f4/0x7bc fs/file_table.c:328 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 373108 hardirqs last enabled at (373107): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (373107): [] _raw_spin_unlock_irq+0x3c/0x90 kernel/locking/spinlock.c:202 hardirqs last disabled at (373108): [] __el1_irq arch/arm64/kernel/entry-common.c:468 [inline] hardirqs last disabled at (373108): [] el1_interrupt+0x24/0x68 arch/arm64/kernel/entry-common.c:486 softirqs last enabled at (370000): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (370000): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (369701): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---