================================================================== BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:101 [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:284 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0x85/0x90 fs/buffer.c:160 Write of size 4 at addr ffffc900027fe660 by task ksoftirqd/1/22 CPU: 1 PID: 22 Comm: ksoftirqd/1 Not tainted 5.19.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x12a/0x1be lib/dump_stack.c:106 print_address_description+0x65/0x4b0 mm/kasan/report.c:313 print_report+0xf4/0x1e0 mm/kasan/report.c:429 kasan_report+0xc3/0xf0 mm/kasan/report.c:491 kasan_check_range+0x2a7/0x2e0 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] put_bh include/linux/buffer_head.h:284 [inline] end_buffer_read_sync+0x85/0x90 fs/buffer.c:160 end_bio_bh_io_sync+0x87/0xd0 fs/buffer.c:2993 req_bio_endio block/blk-mq.c:687 [inline] blk_update_request+0x3c4/0x1040 block/blk-mq.c:816 blk_mq_end_request+0x34/0x60 block/blk-mq.c:942 blk_complete_reqs block/blk-mq.c:1013 [inline] blk_done_softirq+0x95/0x140 block/blk-mq.c:1018 __do_softirq+0x362/0x773 kernel/softirq.c:571 run_ksoftirqd+0xa2/0x100 kernel/softirq.c:934 smpboot_thread_fn+0x523/0x880 kernel/smpboot.c:164 kthread+0x228/0x2a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 The buggy address belongs to the virtual mapping at [ffffc900027f8000, ffffc90002801000) created by: dup_task_struct+0x55/0x440 kernel/fork.c:977 The buggy address belongs to the physical page: page:ffffea00005f8e40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17e39 memcg:ffff88801bf76502 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88801bf76502 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 4074, tgid 4074 (syz-executor.0), ts 362073228118, free_ts 362056480099 prep_new_page mm/page_alloc.c:2456 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4198 __alloc_pages+0x259/0x560 mm/page_alloc.c:5426 vm_area_alloc_pages mm/vmalloc.c:2927 [inline] __vmalloc_area_node mm/vmalloc.c:2995 [inline] __vmalloc_node_range+0x66f/0xfc0 mm/vmalloc.c:3165 alloc_thread_stack_node+0x27f/0x410 kernel/fork.c:312 dup_task_struct+0x55/0x440 kernel/fork.c:977 copy_process+0x3e1/0x3a40 kernel/fork.c:2071 kernel_clone+0x16e/0x610 kernel/fork.c:2655 __do_sys_clone kernel/fork.c:2789 [inline] __se_sys_clone kernel/fork.c:2773 [inline] __x64_sys_clone+0x223/0x280 kernel/fork.c:2773 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+0x46/0xb0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1371 [inline] free_pcp_prepare+0x812/0x900 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3343 [inline] free_unref_page_list+0x12c/0x830 mm/page_alloc.c:3475 release_pages+0x1cfc/0x1ed0 mm/swap.c:980 __pagevec_release+0x5f/0xd0 mm/swap.c:1000 pagevec_release include/linux/pagevec.h:82 [inline] folio_batch_release include/linux/pagevec.h:146 [inline] truncate_inode_pages_range+0x405/0x1180 mm/truncate.c:373 kill_bdev block/bdev.c:77 [inline] blkdev_flush_mapping+0x17d/0x2e0 block/bdev.c:663 blkdev_put_whole block/bdev.c:694 [inline] blkdev_put+0x3ca/0x5c0 block/bdev.c:954 deactivate_locked_super+0x82/0xd0 fs/super.c:332 cleanup_mnt+0x3dc/0x480 fs/namespace.c:1186 task_work_run+0xd6/0x160 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:294 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Memory state around the buggy address: ffffc900027fe500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900027fe580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900027fe600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc900027fe680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900027fe700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================