================================================================== 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 ffffc900090c76c0 by task ksoftirqd/1/24 CPU: 1 PID: 24 Comm: ksoftirqd/1 Not tainted 6.9.0-rc3-next-20240410-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/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:2756 req_bio_endio block/blk-mq.c:787 [inline] blk_update_request+0x545/0x1020 block/blk-mq.c:932 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1055 blk_complete_reqs block/blk-mq.c:1130 [inline] blk_done_softirq+0x100/0x150 block/blk-mq.c:1135 __do_softirq+0x2c6/0x980 kernel/softirq.c:554 run_ksoftirqd+0xc5/0x130 kernel/softirq.c:924 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the virtual mapping at [ffffc900090c0000, ffffc900090c9000) created by: copy_process+0x5d1/0x3dc0 kernel/fork.c:2219 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x289ec memcg:ffff8880287a9782 flags: 0xfff80000000000(node=0|zone=1|lastcpupid=0xfff) raw: 00fff80000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000004 0000000000000000 00000001ffffffff ffff8880287a9782 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5137, tgid -192690308 (syz-executor.4), ts 5137, free_ts 282989198677 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1468 prep_new_page mm/page_alloc.c:1476 [inline] get_page_from_freelist+0x2ce2/0x2d90 mm/page_alloc.c:3438 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4696 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3559 [inline] __vmalloc_area_node mm/vmalloc.c:3635 [inline] __vmalloc_node_range_noprof+0x9a4/0x1490 mm/vmalloc.c:3816 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1114 copy_process+0x5d1/0x3dc0 kernel/fork.c:2219 kernel_clone+0x226/0x8f0 kernel/fork.c:2796 __do_sys_clone kernel/fork.c:2939 [inline] __se_sys_clone kernel/fork.c:2923 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:2923 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5127 tgid 5127 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1088 [inline] free_unref_folios+0xf23/0x19e0 mm/page_alloc.c:2650 folios_put_refs+0x93a/0xa60 mm/swap.c:1022 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:362 kill_bdev block/bdev.c:85 [inline] blkdev_flush_mapping+0x156/0x2b0 block/bdev.c:644 blkdev_put_whole block/bdev.c:675 [inline] bdev_release+0x489/0x720 block/bdev.c:1066 blkdev_release+0x15/0x20 block/fops.c:628 __fput+0x406/0x8b0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x102/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc900090c7580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900090c7600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900090c7680: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 f2 ^ ffffc900090c7700: f2 f2 f2 f2 00 f2 f2 f2 01 f3 f3 f3 00 00 00 00 ffffc900090c7780: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ==================================================================