================================================================== BUG: KASAN: stack-out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: stack-out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] BUG: KASAN: stack-out-of-bounds in put_bh include/linux/buffer_head.h:323 [inline] BUG: KASAN: stack-out-of-bounds in end_buffer_read_sync+0x8f/0xe0 fs/buffer.c:161 Write of size 4 at addr ffffc90003a5f950 by task ksoftirqd/0/15 CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.3.0-rc2-next-20230317-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 check_region_inline mm/kasan/generic.c:181 [inline] kasan_check_range+0x141/0x190 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:323 [inline] end_buffer_read_sync+0x8f/0xe0 fs/buffer.c:161 end_bio_bh_io_sync+0xdc/0x130 fs/buffer.c:2702 bio_endio+0x595/0x6a0 block/bio.c:1608 req_bio_endio block/blk-mq.c:795 [inline] blk_update_request+0x56b/0x14f0 block/blk-mq.c:940 blk_mq_end_request+0x4f/0x80 block/blk-mq.c:1067 lo_complete_rq+0x1c6/0x280 drivers/block/loop.c:370 blk_complete_reqs+0xad/0xe0 block/blk-mq.c:1145 __do_softirq+0x1d4/0x905 kernel/softirq.c:571 run_ksoftirqd kernel/softirq.c:934 [inline] run_ksoftirqd+0x31/0x60 kernel/softirq.c:926 smpboot_thread_fn+0x659/0x9f0 kernel/smpboot.c:164 kthread+0x33e/0x440 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 [ffffc90003a58000, ffffc90003a61000) created by: kernel_clone+0xeb/0x890 kernel/fork.c:2836 The buggy address belongs to the physical page: page:ffffea000078ed80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e3b6 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 9184, tgid 9184 (syz-executor296), ts 1805388276172, free_ts 1804878492149 prep_new_page mm/page_alloc.c:2472 [inline] get_page_from_freelist+0xf75/0x2ab0 mm/page_alloc.c:4236 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:5502 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2283 vm_area_alloc_pages mm/vmalloc.c:2953 [inline] __vmalloc_area_node mm/vmalloc.c:3029 [inline] __vmalloc_node_range+0xb55/0x1380 mm/vmalloc.c:3199 alloc_thread_stack_node kernel/fork.c:311 [inline] dup_task_struct kernel/fork.c:1118 [inline] copy_process+0x133f/0x76b0 kernel/fork.c:2243 kernel_clone+0xeb/0x890 kernel/fork.c:2836 __do_sys_clone+0xba/0x100 kernel/fork.c:2979 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/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:1468 [inline] free_unref_page_prepare+0x4d1/0xb60 mm/page_alloc.c:3298 free_unref_page_list+0xe3/0xa70 mm/page_alloc.c:3439 release_pages+0xcd7/0x1380 mm/swap.c:1042 tlb_batch_pages_flush+0xa8/0x1a0 mm/mmu_gather.c:97 tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu mm/mmu_gather.c:299 [inline] tlb_finish_mmu+0x14b/0x7e0 mm/mmu_gather.c:391 exit_mmap+0x2b2/0x930 mm/mmap.c:3070 __mmput+0x13a/0x540 kernel/fork.c:1346 mmput+0x60/0x70 kernel/fork.c:1368 exit_mm kernel/exit.c:563 [inline] do_exit+0x9d7/0x29f0 kernel/exit.c:856 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019 get_signal+0x2315/0x25b0 kernel/signal.c:2859 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffffc90003a5f800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003a5f880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003a5f900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc90003a5f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003a5fa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================