================================================================== 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:303 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161 Write of size 4 at addr ffffc9000b1b76c0 by task ksoftirqd/0/16 CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0x167/0x540 mm/kasan/report.c:488 kasan_report+0x142/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 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:303 [inline] end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161 end_bio_bh_io_sync+0xbf/0x120 fs/buffer.c:2754 req_bio_endio block/blk-mq.c:792 [inline] blk_update_request+0x55d/0x1050 block/blk-mq.c:937 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1060 blk_complete_reqs block/blk-mq.c:1135 [inline] blk_done_softirq+0x100/0x150 block/blk-mq.c:1140 __do_softirq+0x2bb/0x942 kernel/softirq.c:553 run_ksoftirqd+0xc5/0x130 kernel/softirq.c:921 smpboot_thread_fn+0x543/0xa30 kernel/smpboot.c:164 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 The buggy address belongs to the virtual mapping at [ffffc9000b1b0000, ffffc9000b1b9000) created by: copy_process+0x5d5/0x3fc0 kernel/fork.c:2327 The buggy address belongs to the physical page: page:ffffea000071b540 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1c6d5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 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_NOWARN|__GFP_ZERO), pid 5064, tgid 5064 (syz-executor434), ts 346561176014, free_ts 346503711695 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1ea/0x210 mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0x33ea/0x3580 mm/page_alloc.c:3311 __alloc_pages+0x255/0x680 mm/page_alloc.c:4567 alloc_pages_mpol+0x3de/0x650 mm/mempolicy.c:2133 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x9a3/0x14a0 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:307 [inline] dup_task_struct+0x3e9/0x7d0 kernel/fork.c:1112 copy_process+0x5d5/0x3fc0 kernel/fork.c:2327 kernel_clone+0x222/0x840 kernel/fork.c:2902 __do_sys_clone kernel/fork.c:3045 [inline] __se_sys_clone kernel/fork.c:3029 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:3029 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 page last free pid 5065 tgid 5065 stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1140 [inline] free_unref_page_prepare+0x95d/0xa80 mm/page_alloc.c:2346 free_unref_page_list+0x5a3/0x850 mm/page_alloc.c:2532 release_pages+0x2117/0x2400 mm/swap.c:1042 __folio_batch_release+0x84/0x100 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x457/0xf70 mm/truncate.c:362 kill_bdev block/bdev.c:79 [inline] blkdev_flush_mapping+0x156/0x2b0 block/bdev.c:638 blkdev_put_whole block/bdev.c:669 [inline] bdev_release+0x5cb/0x910 block/bdev.c:985 ntfs3_kill_sb+0x44/0x1b0 fs/ntfs3/super.c:1785 deactivate_locked_super+0xc4/0x130 fs/super.c:477 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1267 task_work_run+0x24e/0x310 kernel/task_work.c:180 ptrace_notify+0x2d1/0x380 kernel/signal.c:2390 ptrace_report_syscall include/linux/ptrace.h:415 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline] syscall_exit_work+0xbb/0x170 kernel/entry/common.c:167 syscall_exit_to_user_mode_prepare kernel/entry/common.c:194 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:199 [inline] syscall_exit_to_user_mode+0x27f/0x370 kernel/entry/common.c:212 do_syscall_64+0x108/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x6f/0x77 Memory state around the buggy address: ffffc9000b1b7580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000b1b7600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000b1b7680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc9000b1b7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000b1b7780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================