will be removed in v5.15! ====================================================== UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) EXT4-fs (loop4): This should not happen!! Data will be lost ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x6e3/0x7d0 fs/udf/inode.c:2067 Write of size 4 at addr ffff888097902270 by task syz-executor.0/9614 CPU: 1 PID: 9614 Comm: syz-executor.0 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 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:251 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:350 kasan_report mm/kasan/report.c:408 [inline] __asan_report_store_n_noabort+0x6b/0x80 mm/kasan/report.c:445 udf_write_aext+0x6e3/0x7d0 fs/udf/inode.c:2067 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:0x7f670941a0f9 RSP: 002b:00007f670798c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f6709539f80 RCX: 00007f670941a0f9 RDX: 0000000000000000 RSI: 0000000020000540 RDI: 0000000000000004 RBP: 00007f6709475ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe66d4446f R14: 00007f670798c300 R15: 0000000000022000 Allocated by task 9614: 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] udf_alloc_i_data+0x1f/0x70 fs/udf/inode.c:1603 udf_read_inode fs/udf/inode.c:1408 [inline] __udf_iget+0x284d/0x3370 fs/udf/inode.c:1874 udf_iget fs/udf/udfdecl.h:145 [inline] udf_fill_super+0xe63/0x1660 fs/udf/super.c:2274 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 0: 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 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x5f6/0x820 net/core/skbuff.c:583 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb net/core/skbuff.c:654 [inline] kfree_skb_partial+0x75/0x90 net/core/skbuff.c:4835 tcp_rcv_established+0x1650/0x1a50 net/ipv4/tcp_input.c:5576 tcp_v4_do_rcv+0x675/0x800 net/ipv4/tcp_ipv4.c:1492 tcp_v4_rcv+0x275c/0x3560 net/ipv4/tcp_ipv4.c:1766 ip_local_deliver_finish+0x3ed/0xab0 net/ipv4/ip_input.c:216 NF_HOOK include/linux/netfilter.h:250 [inline] ip_local_deliver+0x167/0x460 net/ipv4/ip_input.c:257 dst_input include/net/dst.h:476 [inline] ip_rcv_finish+0x6e3/0x1a40 net/ipv4/ip_input.c:406 NF_HOOK include/linux/netfilter.h:250 [inline] ip_rcv+0x8a7/0xf10 net/ipv4/ip_input.c:503 __netif_receive_skb_core+0x15ee/0x2a30 net/core/dev.c:4474 __netif_receive_skb+0x27/0x1a0 net/core/dev.c:4512 netif_receive_skb_internal+0xd7/0x580 net/core/dev.c:4585 napi_skb_finish net/core/dev.c:4947 [inline] napi_gro_receive+0x2e2/0x400 net/core/dev.c:4978 receive_buf+0x9f2/0x4d70 drivers/net/virtio_net.c:856 virtnet_receive drivers/net/virtio_net.c:1102 [inline] virtnet_poll+0x4b7/0x960 drivers/net/virtio_net.c:1193 napi_poll net/core/dev.c:5604 [inline] net_rx_action+0x466/0xfd0 net/core/dev.c:5670 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 The buggy address belongs to the object at ffff888097902000 which belongs to the cache kmalloc-512 of size 512 hfs: unable to locate alternate MDB The buggy address is located 112 bytes to the right of 512-byte region [ffff888097902000, ffff888097902200) The buggy address belongs to the page: page:ffffea00025e4080 count:1 mapcount:0 mapping:ffff888097902000 index:0xffff888097902c80 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff888097902000 ffff888097902c80 0000000100000005 raw: ffffea00025ed160 ffffea0002611660 ffff88813fe74940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888097902100: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff888097902180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888097902200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888097902280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888097902300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== hfs: continuing without an alternate MDB