UDF-fs: Scanning with blocksize 1024 failed UDF-fs: warning (device loop4): udf_load_vrs: No anchor found UDF-fs: Scanning with blocksize 2048 failed UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x6e3/0x7d0 fs/udf/inode.c:2076 Write of size 4 at addr ffff888092b66230 by task syz-executor.4/10076 CPU: 0 PID: 10076 Comm: syz-executor.4 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_store_n_noabort+0x6b/0x80 mm/kasan/report.c:446 udf_write_aext+0x6e3/0x7d0 fs/udf/inode.c:2076 udf_add_entry+0xc54/0x2710 fs/udf/namei.c:501 udf_mkdir+0x122/0x620 fs/udf/namei.c:699 vfs_mkdir+0x463/0x6e0 fs/namei.c:3851 SYSC_mkdirat fs/namei.c:3874 [inline] SyS_mkdirat+0x1fd/0x270 fs/namei.c:3858 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f63430e20d9 RSP: 002b:00007f6341654168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f6343201f80 RCX: 00007f63430e20d9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007f634313dae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdb4c0beef R14: 00007f6341654300 R15: 0000000000022000 Allocated by task 10076: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] udf_new_inode+0x98d/0xce0 fs/udf/ialloc.c:70 udf_mkdir+0x95/0x620 fs/udf/namei.c:692 vfs_mkdir+0x463/0x6e0 fs/namei.c:3851 SYSC_mkdirat fs/namei.c:3874 [inline] SyS_mkdirat+0x1fd/0x270 fs/namei.c:3858 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 8041: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 kobject_uevent_env+0x274/0xf30 lib/kobject_uevent.c:538 device_add+0xa47/0x15c0 drivers/base/core.c:1932 netdev_register_kobject+0x181/0x410 net/core/net-sysfs.c:1627 register_netdevice+0x955/0xe50 net/core/dev.c:7668 veth_newlink+0x467/0x890 drivers/net/veth.c:443 rtnl_newlink+0xf7c/0x1830 net/core/rtnetlink.c:2730 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4322 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2454 netlink_unicast_kernel net/netlink/af_netlink.c:1296 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1322 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1893 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 SYSC_sendto net/socket.c:1763 [inline] SyS_sendto+0x1c7/0x2c0 net/socket.c:1731 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 The buggy address belongs to the object at ffff888092b66240 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 16 bytes to the left of 4096-byte region [ffff888092b66240, ffff888092b67240) The buggy address belongs to the page: page:ffffea00024ad980 count:1 mapcount:0 mapping:ffff888092b66240 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff888092b66240 0000000000000000 0000000100000001 raw: ffffea00024ad820 ffffea00023604a0 ffff88813fe74dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888092b66100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888092b66180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888092b66200: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff888092b66280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888092b66300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================