================================================================== BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline] BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:304 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xbf/0xd0 fs/buffer.c:161 Write of size 4 at addr ffffc900047fe4c0 by task kworker/u8:3/48 CPU: 0 UID: 0 PID: 48 Comm: kworker/u8:3 Not tainted 6.16.0-rc3-syzkaller-00346-gafa9a6f4f574 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: loop0 loop_workfn Call Trace: dump_stack_lvl+0x185/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc2/0x2a0 mm/kasan/report.c:521 kasan_report+0x114/0x150 mm/kasan/report.c:634 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2a4/0x2b0 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline] put_bh include/linux/buffer_head.h:304 [inline] end_buffer_read_sync+0xbf/0xd0 fs/buffer.c:161 end_bio_bh_io_sync+0xb9/0x110 fs/buffer.c:2783 blk_update_request+0x5e7/0xe70 block/blk-mq.c:987 blk_mq_end_request+0x3a/0x70 block/blk-mq.c:1149 blk_complete_reqs block/blk-mq.c:1224 [inline] blk_done_softirq+0x103/0x160 block/blk-mq.c:1229 handle_softirqs+0x282/0x850 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xc6/0x1e0 kernel/softirq.c:680 irq_exit_rcu+0x5/0x20 kernel/softirq.c:696 instr_sysvec_call_function_single arch/x86/kernel/smp.c:266 [inline] sysvec_call_function_single+0x9d/0xc0 arch/x86/kernel/smp.c:266 asm_sysvec_call_function_single+0x16/0x20 arch/x86/include/asm/idtentry.h:709 RIP: 0010:lock_is_held_type+0x139/0x190 kernel/locking/lockdep.c:5948 Code: 01 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4a 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 05 c7 6e fa 06 <48> 3b 44 24 08 75 41 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90000b875d8 EFLAGS: 00000206 RAX: 2a23bd4721965c00 RBX: ffff88801cafda00 RCX: 2a23bd4721965c00 RDX: 0000000000000000 RSI: ffffffff8d28d81e RDI: ffffffff8b5dbce0 RBP: 0000000000000000 R08: ffff88801cafda00 R09: 0000000000000003 R10: 00000000ffffffa1 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000246 R14: ffffffff8d93c2a0 R15: ffff88801cafe548 lock_is_held include/linux/lockdep.h:249 [inline] __might_resched+0xf1/0x610 kernel/sched/core.c:8762 loop_process_work+0xb09/0xf40 drivers/block/loop.c:1925 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xada/0x1780 kernel/workqueue.c:3321 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3402 kthread+0x70d/0x890 kernel/kthread.c:464 ret_from_fork+0x3f1/0x750 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the virtual mapping at [ffffc900047f8000, ffffc90004801000) created by: copy_process+0x547/0x3bf0 kernel/fork.c:1999 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x186 pfn:0x59675 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000186 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO|__GFP_NOWARN), pid 6962, tgid 6962 (syz.0.120), ts 164794068800, free_ts 164722459491 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x230/0x280 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x2b2b/0x2ce0 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x17d/0x370 mm/page_alloc.c:4959 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2419 alloc_frozen_pages_noprof mm/mempolicy.c:2490 [inline] alloc_pages_noprof+0xa5/0x190 mm/mempolicy.c:2510 vm_area_alloc_pages mm/vmalloc.c:3634 [inline] __vmalloc_area_node mm/vmalloc.c:3712 [inline] __vmalloc_node_range_noprof+0x979/0x12e0 mm/vmalloc.c:3885 __vmalloc_node_noprof+0xbe/0x100 mm/vmalloc.c:3948 alloc_thread_stack_node kernel/fork.c:317 [inline] dup_task_struct+0x3e7/0x860 kernel/fork.c:877 copy_process+0x547/0x3bf0 kernel/fork.c:1999 kernel_clone+0x21a/0x860 kernel/fork.c:2599 __do_sys_clone3 kernel/fork.c:2903 [inline] __se_sys_clone3+0x252/0x2c0 kernel/fork.c:2882 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x86/0x2e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 6963 tgid 6962 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] free_unref_folios+0xc4a/0x1480 mm/page_alloc.c:2763 folios_put_refs+0x555/0x630 mm/swap.c:992 folio_batch_release include/linux/pagevec.h:101 [inline] mapping_try_invalidate+0x320/0x410 mm/truncate.c:554 ntfs_loadlog_and_replay+0x318/0x430 fs/ntfs3/fsntfs.c:330 ntfs_fill_super+0x2785/0x4030 fs/ntfs3/super.c:1326 get_tree_bdev_flags+0x40a/0x4d0 fs/super.c:1681 vfs_get_tree+0x8e/0x280 fs/super.c:1804 do_new_mount+0x24a/0xa40 fs/namespace.c:3902 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x86/0x2e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffffc900047fe380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900047fe400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900047fe480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc900047fe500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900047fe580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 01 75 44 add %esi,0x44(%rbp) 3: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) a: 00 b: 9c pushf c: 8f 04 24 pop (%rsp) f: f7 04 24 00 02 00 00 testl $0x200,(%rsp) 16: 75 4a jne 0x62 18: 41 f7 c5 00 02 00 00 test $0x200,%r13d 1f: 74 01 je 0x22 21: fb sti 22: 65 48 8b 05 c7 6e fa mov %gs:0x6fa6ec7(%rip),%rax # 0x6fa6ef1 29: 06 * 2a: 48 3b 44 24 08 cmp 0x8(%rsp),%rax <-- trapping instruction 2f: 75 41 jne 0x72 31: 89 e8 mov %ebp,%eax 33: 48 83 c4 10 add $0x10,%rsp 37: 5b pop %rbx 38: 41 5c pop %r12 3a: 41 5d pop %r13 3c: 41 5e pop %r14 3e: 41 5f pop %r15