audit: type=1800 audit(1666482649.714:13): pid=15616 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.3" name="bus" dev="loop3" ino=7 res=0 ================================================================== BUG: KASAN: slab-out-of-bounds in dbAllocBits+0x4d3/0x520 fs/jfs/jfs_dmap.c:2295 Read of size 8 at addr ffff8880943ccbb8 by task syz-executor.3/15616 CPU: 0 PID: 15616 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 netlink: 'syz-executor.1': attribute type 7 has an invalid length. print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 netem: change failed kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 dbAllocBits+0x4d3/0x520 fs/jfs/jfs_dmap.c:2295 dbAllocDmap+0x61/0x110 fs/jfs/jfs_dmap.c:2072 dbAllocDmapLev+0x159/0x330 fs/jfs/jfs_dmap.c:2026 dbAlloc+0x82b/0xb00 fs/jfs/jfs_dmap.c:830 extBalloc fs/jfs/jfs_extent.c:531 [inline] extAlloc+0x4cb/0xdb0 fs/jfs/jfs_extent.c:138 jfs_get_block+0x1f5/0xae0 fs/jfs/inode.c:258 get_more_blocks fs/direct-io.c:717 [inline] do_direct_IO fs/direct-io.c:1003 [inline] do_blockdev_direct_IO fs/direct-io.c:1333 [inline] __blockdev_direct_IO+0x424b/0xef40 fs/direct-io.c:1419 blockdev_direct_IO include/linux/fs.h:3059 [inline] jfs_direct_IO+0x10a/0x370 fs/jfs/inode.c:344 generic_file_direct_write+0x208/0x4a0 mm/filemap.c:3073 __generic_file_write_iter+0x2d0/0x610 mm/filemap.c:3252 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323 call_write_iter include/linux/fs.h:1821 [inline] do_iter_readv_writev+0x668/0x790 fs/read_write.c:681 do_iter_write+0x182/0x5d0 fs/read_write.c:960 vfs_writev+0x153/0x2e0 fs/read_write.c:1005 do_pwritev+0x1b6/0x270 fs/read_write.c:1094 __do_sys_pwritev2 fs/read_write.c:1153 [inline] __se_sys_pwritev2 fs/read_write.c:1144 [inline] __x64_sys_pwritev2+0xeb/0x150 fs/read_write.c:1144 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f2896d105f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2895683168 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f2896e30f80 RCX: 00007f2896d105f9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00007f2896d6b7b0 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000001400 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc720eb31f R14: 00007f2895683300 R15: 0000000000022000 Allocated by task 15616: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] dbMount+0x4d/0x880 fs/jfs/jfs_dmap.c:176 jfs_mount+0x124/0x3d0 fs/jfs/jfs_mount.c:133 jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 14246: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kvfree+0x59/0x60 mm/util.c:452 __free_fdtable fs/file.c:31 [inline] put_files_struct fs/file.c:420 [inline] put_files_struct+0x267/0x350 fs/file.c:413 exit_files+0x7e/0xa0 fs/file.c:445 do_exit+0xbb9/0x2be0 kernel/exit.c:865 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 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 The buggy address belongs to the object at ffff8880943cc380 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 56 bytes to the right of 2048-byte region [ffff8880943cc380, ffff8880943ccb80) The buggy address belongs to the page: page:ffffea000250f300 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea00012dc788 ffffea00012c1e88 ffff88813bff0c40 raw: 0000000000000000 ffff8880943cc380 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880943cca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880943ccb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880943ccb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880943ccc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880943ccc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================