Process accounting resumed audit: type=1800 audit(1589898090.218:227): pid=14589 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16211 res=0 MINIX-fs: mounting unchecked file system, running fsck is recommended Process accounting resumed ================================================================== BUG: KASAN: slab-out-of-bounds in add_chain fs/minix/itree_common.c:14 [inline] BUG: KASAN: slab-out-of-bounds in get_branch fs/minix/itree_common.c:52 [inline] BUG: KASAN: slab-out-of-bounds in get_block+0x1047/0x1300 fs/minix/itree_common.c:160 Read of size 2 at addr ffff88804f244644 by task syz-executor.5/14589 CPU: 0 PID: 14589 Comm: syz-executor.5 Not tainted 4.19.123-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x7c/0x212 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 add_chain fs/minix/itree_common.c:14 [inline] get_branch fs/minix/itree_common.c:52 [inline] get_block+0x1047/0x1300 fs/minix/itree_common.c:160 minix_get_block+0xe5/0x110 fs/minix/inode.c:379 __block_write_begin_int+0x480/0x17a0 fs/buffer.c:1978 __block_write_begin fs/buffer.c:2028 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2087 minix_write_begin+0x35/0xe0 fs/minix/inode.c:415 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3162 __generic_file_write_iter+0x24c/0x610 mm/filemap.c:3287 generic_file_write_iter+0x37f/0x729 mm/filemap.c:3315 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x512/0x760 fs/read_write.c:487 __kernel_write+0x109/0x370 fs/read_write.c:506 do_acct_process+0xcd8/0x10e0 kernel/acct.c:520 acct_pin_kill+0x29/0xf0 kernel/acct.c:174 pin_kill+0x17a/0x7e0 fs/fs_pin.c:50 mnt_pin_kill+0x6c/0x1c0 fs/fs_pin.c:87 cleanup_mnt+0x116/0x150 fs/namespace.c:1095 task_work_run+0x13f/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x25a/0x2b0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45ca29 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f950530ec78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 000000000050a0c0 RCX: 000000000045ca29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000500 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000c4a R14: 00000000004ce9a6 R15: 00007f950530f6d4 Allocated by task 14474: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 kmem_cache_alloc_trace+0x14d/0x7a0 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] cgroup_show_path+0xc4/0x580 kernel/cgroup/cgroup.c:1726 kernfs_sop_show_path+0x12b/0x1a0 fs/kernfs/mount.c:52 show_mountinfo+0x232/0x900 fs/proc_namespace.c:142 seq_read+0xaa7/0x10f0 fs/seq_file.c:268 do_loop_readv_writev fs/read_write.c:701 [inline] do_loop_readv_writev fs/read_write.c:688 [inline] do_iter_read+0x46b/0x640 fs/read_write.c:925 vfs_readv+0xf0/0x160 fs/read_write.c:987 kernel_readv fs/splice.c:362 [inline] default_file_splice_read+0x478/0x970 fs/splice.c:417 do_splice_to+0x10e/0x160 fs/splice.c:881 splice_direct_to_actor+0x2b9/0x8d0 fs/splice.c:959 do_splice_direct+0x1a8/0x270 fs/splice.c:1068 do_sendfile+0x549/0xc10 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64 fs/read_write.c:1494 [inline] __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 14474: set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/kasan.c:521 __cache_free mm/slab.c:3503 [inline] kfree+0xce/0x220 mm/slab.c:3822 cgroup_show_path+0x374/0x580 kernel/cgroup/cgroup.c:1741 kernfs_sop_show_path+0x12b/0x1a0 fs/kernfs/mount.c:52 show_mountinfo+0x232/0x900 fs/proc_namespace.c:142 seq_read+0xaa7/0x10f0 fs/seq_file.c:268 do_loop_readv_writev fs/read_write.c:701 [inline] do_loop_readv_writev fs/read_write.c:688 [inline] do_iter_read+0x46b/0x640 fs/read_write.c:925 vfs_readv+0xf0/0x160 fs/read_write.c:987 kernel_readv fs/splice.c:362 [inline] default_file_splice_read+0x478/0x970 fs/splice.c:417 do_splice_to+0x10e/0x160 fs/splice.c:881 splice_direct_to_actor+0x2b9/0x8d0 fs/splice.c:959 do_splice_direct+0x1a8/0x270 fs/splice.c:1068 do_sendfile+0x549/0xc10 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64 fs/read_write.c:1494 [inline] __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88804f244780 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 316 bytes to the left of 4096-byte region [ffff88804f244780, ffff88804f245780) The buggy address belongs to the page: page:ffffea00013c9100 count:1 mapcount:0 mapping:ffff88812c39cdc0 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea0002422c08 ffffea0001afe488 ffff88812c39cdc0 raw: 0000000000000000 ffff88804f244780 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804f244500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804f244580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88804f244600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88804f244680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804f244700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================