================================================================== BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:102 [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:320 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0x85/0x90 fs/buffer.c:160 Write of size 4 at addr ffffc9000302f820 by task ksoftirqd/0/15 CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.2.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x163/0x220 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x220 mm/kasan/report.c:417 kasan_report+0x139/0x170 mm/kasan/report.c:517 kasan_check_range+0x2a7/0x2e0 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] put_bh include/linux/buffer_head.h:320 [inline] end_buffer_read_sync+0x85/0x90 fs/buffer.c:160 end_bio_bh_io_sync+0x87/0xd0 fs/buffer.c:2655 req_bio_endio block/blk-mq.c:794 [inline] blk_update_request+0x3c4/0x1040 block/blk-mq.c:926 blk_mq_end_request+0x34/0x60 block/blk-mq.c:1053 blk_complete_reqs block/blk-mq.c:1131 [inline] blk_done_softirq+0x95/0x140 block/blk-mq.c:1136 __do_softirq+0x277/0x75b kernel/softirq.c:571 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:934 smpboot_thread_fn+0x523/0x8c0 kernel/smpboot.c:164 kthread+0x228/0x2a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the virtual mapping at [ffffc90003028000, ffffc90003031000) created by: dup_task_struct+0x55/0x440 kernel/fork.c:987 The buggy address belongs to the physical page: page:ffffea0000779700 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1de5c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 19382, tgid 19382 (syz-executor261), ts 480356290778, free_ts 480269143185 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 vm_area_alloc_pages mm/vmalloc.c:2989 [inline] __vmalloc_area_node mm/vmalloc.c:3057 [inline] __vmalloc_node_range+0x72c/0x10e0 mm/vmalloc.c:3227 alloc_thread_stack_node+0x27f/0x410 kernel/fork.c:311 dup_task_struct+0x55/0x440 kernel/fork.c:987 copy_process+0x3a4/0x3a20 kernel/fork.c:2097 kernel_clone+0x183/0x4d0 kernel/fork.c:2681 __do_sys_clone kernel/fork.c:2822 [inline] __se_sys_clone kernel/fork.c:2806 [inline] __x64_sys_clone+0x271/0x2e0 kernel/fork.c:2806 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 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:1446 [inline] free_pcp_prepare+0x751/0x780 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page_list+0xb2/0x830 mm/page_alloc.c:3510 release_pages+0x19a1/0x1b40 mm/swap.c:1076 tlb_batch_pages_flush mm/mmu_gather.c:97 [inline] tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu+0x6a4/0x8f0 mm/mmu_gather.c:299 tlb_finish_mmu+0xaf/0x1c0 mm/mmu_gather.c:391 exit_mmap+0x29a/0x5a0 mm/mmap.c:3100 __mmput+0xca/0x300 kernel/fork.c:1207 exit_mm+0x1db/0x280 kernel/exit.c:563 do_exit+0x4dc/0x1c70 kernel/exit.c:854 do_group_exit+0x1b0/0x280 kernel/exit.c:1012 get_signal+0x125c/0x1300 kernel/signal.c:2859 arch_do_signal_or_restart+0x8d/0x5f0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x74/0x160 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x2e/0x60 kernel/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffffc9000302f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000302f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000302f800: f1 f1 f1 f1 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 ^ ffffc9000302f880: 00 f2 f2 f2 01 f3 f3 f3 00 00 00 00 00 00 00 00 ffffc9000302f900: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 ==================================================================