==================================================================
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:306 [inline]
BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161
Write of size 4 at addr ffffc90009447740 by task syz-executor.4/6449
CPU: 1 PID: 6449 Comm: syz-executor.4 Not tainted 6.7.0-rc7-syzkaller-g861deac3b092 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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+0x142/0x170 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:306 [inline]
end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161
end_bio_bh_io_sync+0xb7/0x110 fs/buffer.c:2775
req_bio_endio block/blk-mq.c:788 [inline]
blk_update_request+0x53f/0x1020 block/blk-mq.c:933
blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1056
blk_complete_reqs block/blk-mq.c:1131 [inline]
blk_done_softirq+0x103/0x150 block/blk-mq.c:1136
__do_softirq+0x2b8/0x939 kernel/softirq.c:553
invoke_softirq kernel/softirq.c:427 [inline]
__irq_exit_rcu+0xf1/0x1b0 kernel/softirq.c:632
irq_exit_rcu+0x9/0x20 kernel/softirq.c:644
sysvec_apic_timer_interrupt+0x97/0xb0 arch/x86/kernel/apic/apic.c:1076
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:get_lock_parent_ip include/linux/ftrace.h:974 [inline]
RIP: 0010:preempt_latency_start kernel/sched/core.c:5819 [inline]
RIP: 0010:preempt_count_add+0x93/0x190 kernel/sched/core.c:5844
Code: 0e a3 7e 0f b6 c0 3d f5 00 00 00 73 59 65 8b 05 cb 0e a3 7e 25 ff ff ff 7f 39 d8 75 43 4c 8b 74 24 18 4c 89 f7 e8 fd c5 0d 00 <85> c0 74 0a 45 31 f6 31 ff e8 ef c5 0d 00 65 48 8b 1d 97 0e a3 7e
RSP: 0018:ffffc90004f7ef00 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8b225c00
RDX: ffff8880266f9dc0 RSI: 0000000000000001 RDI: ffffffff813dbee1
RBP: ffffc90004f7f060 R08: ffffffff813dbec1 R09: ffffffff813dd790
R10: 0000000000000003 R11: ffff8880266f9dc0 R12: ffffc90004f7f0f8
R13: dffffc0000000000 R14: ffffffff813dbee1 R15: dffffc0000000000
unwind_next_frame+0xc1/0x29e0 arch/x86/kernel/unwind_orc.c:479
__unwind_start+0x641/0x7a0 arch/x86/kernel/unwind_orc.c:760
unwind_start arch/x86/include/asm/unwind.h:64 [inline]
arch_stack_walk+0xfd/0x1a0 arch/x86/kernel/stacktrace.c:24
stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4f/0x70 mm/kasan/common.c:52
kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522
____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook mm/slub.c:1826 [inline]
slab_free mm/slub.c:3809 [inline]
__kmem_cache_free+0x263/0x3a0 mm/slub.c:3822
log_replay+0x226b/0xbf40 fs/ntfs3/fslog.c:5205
ntfs_loadlog_and_replay+0x2cc/0x530 fs/ntfs3/fsntfs.c:324
ntfs_fill_super+0x2cf1/0x4c60 fs/ntfs3/super.c:1268
get_tree_bdev+0x416/0x5b0 fs/super.c:1598
vfs_get_tree+0x8c/0x2a0 fs/super.c:1771
do_new_mount+0x28f/0xae0 fs/namespace.c:3337
do_mount fs/namespace.c:3677 [inline]
__do_sys_mount fs/namespace.c:3886 [inline]
__se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3863
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f409b67c43a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f409c843ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f409c843f80 RCX: 00007f409b67c43a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f409c843f40
RBP: 0000000020000000 R08: 00007f409c843f80 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000100
R13: 0000000020000200 R14: 00007f409c843f40 R15: 0000000020005a00
The buggy address belongs to the virtual mapping at
[ffffc90009440000, ffffc90009449000) created by:
copy_process+0x5d1/0x3fb0 kernel/fork.c:2332
The buggy address belongs to the physical page:
page:ffffea0001fd36c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7f4db
memcg:ffff888029224d02
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888029224d02
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 6444, tgid 6444 (syz-executor.5), ts 124204022914, free_ts 118172406803
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1537
prep_new_page mm/page_alloc.c:1544 [inline]
get_page_from_freelist+0x33ea/0x3570 mm/page_alloc.c:3312
__alloc_pages+0x255/0x680 mm/page_alloc.c:4568
alloc_pages_mpol+0x3de/0x640 mm/mempolicy.c:2133
vm_area_alloc_pages mm/vmalloc.c:3063 [inline]
__vmalloc_area_node mm/vmalloc.c:3139 [inline]
__vmalloc_node_range+0x9a3/0x14a0 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/0x3fb0 kernel/fork.c:2332
kernel_clone+0x222/0x840 kernel/fork.c:2907
__do_sys_clone3 kernel/fork.c:3208 [inline]
__se_sys_clone3+0x2cb/0x340 kernel/fork.c:3192
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1137 [inline]
free_unref_page_prepare+0x931/0xa60 mm/page_alloc.c:2347
free_unref_page_list+0x5a0/0x840 mm/page_alloc.c:2533
release_pages+0x2117/0x2400 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+0x457/0xf70 mm/truncate.c:371
kill_bdev block/bdev.c:76 [inline]
blkdev_flush_mapping+0x156/0x2b0 block/bdev.c:632
blkdev_put_whole block/bdev.c:663 [inline]
blkdev_put+0x4a6/0x770 block/bdev.c:944
bdev_release+0x57/0x70 block/bdev.c:954
blkdev_release+0x3b/0x40 block/fops.c:616
__fput+0x3cc/0x9e0 fs/file_table.c:394
__do_sys_close fs/open.c:1587 [inline]
__se_sys_close fs/open.c:1572 [inline]
__x64_sys_close+0x7e/0x100 fs/open.c:1572
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
Memory state around the buggy address:
ffffc90009447600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90009447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90009447700: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 f2
^
ffffc90009447780: f2 f2 f2 f2 00 f2 f2 f2 01 f3 f3 f3 00 00 00 00
ffffc90009447800: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: a3 7e 0f b6 c0 3d f5 movabs %eax,0xf53dc0b60f7e
7: 00 00
9: 00 73 59 add %dh,0x59(%rbx)
c: 65 8b 05 cb 0e a3 7e mov %gs:0x7ea30ecb(%rip),%eax # 0x7ea30ede
13: 25 ff ff ff 7f and $0x7fffffff,%eax
18: 39 d8 cmp %ebx,%eax
1a: 75 43 jne 0x5f
1c: 4c 8b 74 24 18 mov 0x18(%rsp),%r14
21: 4c 89 f7 mov %r14,%rdi
24: e8 fd c5 0d 00 call 0xdc626
* 29: 85 c0 test %eax,%eax <-- trapping instruction
2b: 74 0a je 0x37
2d: 45 31 f6 xor %r14d,%r14d
30: 31 ff xor %edi,%edi
32: e8 ef c5 0d 00 call 0xdc626
37: 65 48 8b 1d 97 0e a3 mov %gs:0x7ea30e97(%rip),%rbx # 0x7ea30ed6
3e: 7e