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 netlink: 68 bytes leftover after parsing attributes in process `syz-executor.4'. Write of size 4 at addr ffff888093f71c70 by task syz-executor.2/10164 CPU: 1 PID: 10164 Comm: syz-executor.2 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:0x7fd8e85720a9 RSP: 002b:00007fd8e6ae4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fd8e8691f80 RCX: 00007fd8e85720a9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000005 RBP: 00007fd8e85cdae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1a94633f R14: 00007fd8e6ae4300 R15: 0000000000022000 Allocated by task 0: 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_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3696 __kmalloc_reserve net/core/skbuff.c:137 [inline] __alloc_skb+0x96/0x510 net/core/skbuff.c:205 __napi_alloc_skb+0x57/0x2d0 net/core/skbuff.c:478 napi_alloc_skb include/linux/skbuff.h:2721 [inline] page_to_skb+0x7b/0x820 drivers/net/virtio_net.c:323 receive_mergeable drivers/net/virtio_net.c:723 [inline] receive_buf+0x1f71/0x4d70 drivers/net/virtio_net.c:828 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 Freed by task 7974: 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:4832 tcp_rcv_established+0x1650/0x1a50 net/ipv4/tcp_input.c:5576 tcp_v4_do_rcv+0x675/0x800 net/ipv4/tcp_ipv4.c:1492 sk_backlog_rcv include/net/sock.h:923 [inline] __release_sock+0x12a/0x350 net/core/sock.c:2284 release_sock+0x54/0x1b0 net/core/sock.c:2822 tcp_recvmsg+0x66d/0x1d50 net/ipv4/tcp.c:2015 inet_recvmsg+0xef/0x4d0 net/ipv4/af_inet.c:793 sock_recvmsg_nosec net/socket.c:819 [inline] sock_recvmsg net/socket.c:826 [inline] sock_recvmsg net/socket.c:822 [inline] sock_read_iter+0x2be/0x3f0 net/socket.c:903 call_read_iter include/linux/fs.h:1774 [inline] new_sync_read fs/read_write.c:401 [inline] __vfs_read+0x449/0x620 fs/read_write.c:413 vfs_read+0x139/0x340 fs/read_write.c:447 SYSC_read fs/read_write.c:574 [inline] SyS_read+0xf2/0x210 fs/read_write.c:567 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 ffff888093f71a00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 112 bytes to the right of 512-byte region [ffff888093f71a00, ffff888093f71c00) The buggy address belongs to the page: page:ffffea00024fdc40 count:1 mapcount:0 mapping:ffff888093f71000 index:0xffff888093f71780 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff888093f71000 ffff888093f71780 0000000100000001 raw: ffffea0002bff4a0 ffffea0002bda360 ffff88813fe74940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888093f71b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888093f71b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888093f71c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888093f71c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888093f71d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ntfs: volume version 3.1.