================================================================== 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:308 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161 Write of size 4 at addr ffffc90007f07740 by task sshd/5027 CPU: 0 PID: 5027 Comm: sshd Not tainted 6.6.0-rc2-syzkaller-00143-gb5cbe7c00aa0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:187 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:308 [inline] end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161 end_bio_bh_io_sync+0xb7/0x110 fs/buffer.c:2768 req_bio_endio block/blk-mq.c:783 [inline] blk_update_request+0x53f/0x1020 block/blk-mq.c:928 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1051 blk_complete_reqs block/blk-mq.c:1131 [inline] blk_done_softirq+0x103/0x150 block/blk-mq.c:1136 __do_softirq+0x2ab/0x908 kernel/softirq.c:553 do_softirq+0x11b/0x1e0 kernel/softirq.c:454 __local_bh_enable_ip+0x1b5/0x1f0 kernel/softirq.c:381 lock_sock include/net/sock.h:1722 [inline] tcp_sendmsg+0x22/0x50 net/ipv4/tcp.c:1335 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] sock_write_iter+0x39a/0x520 net/socket.c:1141 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x782/0xaf0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fcf8b4ffbf2 Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffe130ee078 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000084 RCX: 00007fcf8b4ffbf2 RDX: 0000000000000084 RSI: 00005581020d58f0 RDI: 0000000000000004 RBP: 00005581020c7220 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000558101f76aa4 R13: 0000000000000096 R14: 0000558101f773e8 R15: 00007ffe130ee0e8 The buggy address belongs to the virtual mapping at [ffffc90007f00000, ffffc90007f09000) created by: copy_process+0x5d1/0x41a0 kernel/fork.c:2327 The buggy address belongs to the physical page: page:ffffea00009ebd00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x27af4 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 5037, tgid 5037 (syz-executor349), ts 146724421177, free_ts 146312912811 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170 __alloc_pages+0x255/0x670 mm/page_alloc.c:4426 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x9a3/0x1490 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct+0x3e5/0x7d0 kernel/fork.c:1118 copy_process+0x5d1/0x41a0 kernel/fork.c:2327 kernel_clone+0x222/0x840 kernel/fork.c:2909 __do_sys_clone kernel/fork.c:3052 [inline] __se_sys_clone kernel/fork.c:3036 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:3036 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 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:1136 [inline] free_unref_page_prepare+0x8c3/0x9f0 mm/page_alloc.c:2312 free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451 release_pages+0x2113/0x23f0 mm/swap.c:1042 __folio_batch_release+0x84/0x100 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x45d/0x11a0 mm/truncate.c:371 kill_bdev block/bdev.c:76 [inline] set_blocksize+0x318/0x390 block/bdev.c:152 sb_set_blocksize+0x48/0x100 block/bdev.c:161 ntfs_init_from_boot fs/ntfs3/super.c:1075 [inline] ntfs_fill_super+0xbae/0x4c30 fs/ntfs3/super.c:1139 get_tree_bdev+0x416/0x5b0 fs/super.c:1577 vfs_get_tree+0x8c/0x280 fs/super.c:1750 do_new_mount+0x28f/0xae0 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffffc90007f07600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f2 ffffc90007f07680: f2 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 >ffffc90007f07700: 00 00 00 00 00 00 00 00 00 00 00 00 00 f2 f2 f2 ^ ffffc90007f07780: f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 ffffc90007f07800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================