UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) REISERFS (device loop1): journal params: device loop1, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 REISERFS (device loop4): Using r5 hash to sort names ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:377 [inline] BUG: KASAN: slab-out-of-bounds in udf_find_entry+0xa33/0x1070 fs/udf/namei.c:251 Write of size 165 at addr ffff8880b3ddebda by task syz-executor.5/30521 CPU: 0 PID: 30521 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report+0x8f/0xa0 mm/kasan/report.c:412 memcpy+0x35/0x50 mm/kasan/kasan.c:303 memcpy include/linux/string.h:377 [inline] udf_find_entry+0xa33/0x1070 fs/udf/namei.c:251 udf_lookup fs/udf/namei.c:322 [inline] udf_lookup+0x156/0x270 fs/udf/namei.c:296 lookup_open+0x698/0x1a20 fs/namei.c:3214 do_last fs/namei.c:3327 [inline] path_openat+0x1804/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 REISERFS (device loop1): checking transaction log (loop1) do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f2c17fea0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 REISERFS (device loop4): using 3.5.x disk format RSP: 002b:00007f2c1655c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f2c18109f80 RCX: 00007f2c17fea0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007f2c18045ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff8692ad8f R14: 00007f2c1655c300 R15: 0000000000022000 Allocated by task 30521: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] udf_find_entry+0xa82/0x1070 fs/udf/namei.c:241 udf_lookup fs/udf/namei.c:322 [inline] udf_lookup+0x156/0x270 fs/udf/namei.c:296 lookup_open+0x698/0x1a20 fs/namei.c:3214 do_last fs/namei.c:3327 [inline] path_openat+0x1804/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 29698: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 iter_file_splice_write+0x517/0xbb0 fs/splice.c:777 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 do_splice_direct+0x1a7/0x270 fs/splice.c:1068 do_sendfile+0x550/0xc30 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64+0x147/0x160 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 ffff8880b3ddeb80 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 90 bytes inside of 256-byte region [ffff8880b3ddeb80, ffff8880b3ddec80) The buggy address belongs to the page: REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage. page:ffffea0002cf7780 count:1 mapcount:0 mapping:ffff88813bff07c0 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00027cc7c8 ffffea00026cf108 ffff88813bff07c0 raw: 0000000000000000 ffff8880b3dde040 000000010000000c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b3ddeb00: 00 00 00 00 00 00 00 06 fc fc fc fc fc fc fc fc ffff8880b3ddeb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880b3ddec00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 ^ ffff8880b3ddec80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8880b3dded00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================