================================================================== 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:257 [inline] BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:329 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xbd/0xd0 fs/buffer.c:161 Write of size 4 at addr ffffc90003c177e0 by task ksoftirqd/0/15 CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.4.0-rc1-syzkaller-00109-gcc3c44c9fda2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x15f/0x540 mm/kasan/report.c:462 kasan_report+0x172/0x1a0 mm/kasan/report.c:572 kasan_check_range+0x27f/0x290 mm/kasan/generic.c:187 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] put_bh include/linux/buffer_head.h:329 [inline] end_buffer_read_sync+0xbd/0xd0 fs/buffer.c:161 end_bio_bh_io_sync+0xb3/0x110 fs/buffer.c:2730 req_bio_endio block/blk-mq.c:761 [inline] blk_update_request+0x53b/0x1010 block/blk-mq.c:906 blk_mq_end_request+0x4c/0x310 block/blk-mq.c:1023 blk_complete_reqs block/blk-mq.c:1101 [inline] blk_done_softirq+0xf8/0x140 block/blk-mq.c:1106 __do_softirq+0x2a7/0x8fc kernel/softirq.c:571 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:939 smpboot_thread_fn+0x51b/0x9d0 kernel/smpboot.c:164 kthread+0x2aa/0x340 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the virtual mapping at [ffffc90003c10000, ffffc90003c19000) created by: copy_process+0x5c4/0x42f0 kernel/fork.c:2333 The buggy address belongs to the physical page: page:ffffea0000a91ec0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a47b memcg:ffff88814a622c02 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88814a622c02 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 7475, tgid 7475 (syz-executor.0), ts 175668191226, free_ts 168636867030 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x31f8/0x3370 mm/page_alloc.c:3502 __alloc_pages+0x251/0x660 mm/page_alloc.c:4768 vm_area_alloc_pages mm/vmalloc.c:3009 [inline] __vmalloc_area_node mm/vmalloc.c:3085 [inline] __vmalloc_node_range+0x9a7/0x14d0 mm/vmalloc.c:3257 alloc_thread_stack_node kernel/fork.c:313 [inline] dup_task_struct+0x3e5/0x7d0 kernel/fork.c:1116 copy_process+0x5c4/0x42f0 kernel/fork.c:2333 kernel_clone+0x219/0x860 kernel/fork.c:2918 __do_sys_clone kernel/fork.c:3061 [inline] __se_sys_clone kernel/fork.c:3045 [inline] __x64_sys_clone+0x254/0x2a0 kernel/fork.c:3045 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x8e9/0x9f0 mm/page_alloc.c:2564 free_unref_page_list+0x58e/0x830 mm/page_alloc.c:2705 release_pages+0x275c/0x2a70 mm/swap.c:1042 tlb_batch_pages_flush mm/mmu_gather.c:97 [inline] tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:299 tlb_finish_mmu+0xd0/0x1f0 mm/mmu_gather.c:391 exit_mmap+0x3d6/0xac0 mm/mmap.c:3123 __mmput+0x115/0x3c0 kernel/fork.c:1351 exit_mm+0x223/0x300 kernel/exit.c:564 do_exit+0x60e/0x2280 kernel/exit.c:858 do_group_exit+0x202/0x2b0 kernel/exit.c:1021 get_signal+0x1709/0x17e0 kernel/signal.c:2874 arch_do_signal_or_restart+0x8d/0x610 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x260 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffffc90003c17680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003c17700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003c17780: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 ^ ffffc90003c17800: 00 00 00 f2 f2 f2 f2 f2 00 f2 f2 f2 01 f3 f3 f3 ffffc90003c17880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================