================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x780/0x860 fs/udf/inode.c:2065 Write of size 4 at addr ffff8880aef80d30 by task syz-executor.1/3872 CPU: 0 PID: 3872 Comm: syz-executor.1 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 mm/kasan/report.c:412 [inline] __asan_report_store_n_noabort+0x8b/0xa0 mm/kasan/report.c:449 udf_write_aext+0x780/0x860 fs/udf/inode.c:2065 udf_add_entry+0xdab/0x2a20 fs/udf/namei.c:496 udf_mkdir+0x145/0x650 fs/udf/namei.c:693 vfs_mkdir+0x508/0x7a0 fs/namei.c:3819 do_mkdirat+0x262/0x2d0 fs/namei.c:3842 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f2d1868c0c9 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 RSP: 002b:00007f2d16bfe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007f2d187abf80 RCX: 00007f2d1868c0c9 RDX: 0000000000000000 RSI: 00000000000000c0 RDI: 0000000020000080 RBP: 00007f2d186e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd087a7bf R14: 00007f2d16bfe300 R15: 0000000000022000 Allocated by task 8145: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] kzalloc include/linux/slab.h:709 [inline] new_dir fs/proc/proc_sysctl.c:951 [inline] get_subdir fs/proc/proc_sysctl.c:996 [inline] __register_sysctl_table+0x930/0x1090 fs/proc/proc_sysctl.c:1339 __addrconf_sysctl_register+0x1db/0x3d0 net/ipv6/addrconf.c:6604 addrconf_sysctl_register+0x139/0x1d0 net/ipv6/addrconf.c:6651 ipv6_add_dev+0xa8a/0x10b0 net/ipv6/addrconf.c:446 addrconf_notify+0x6a3/0x21f0 net/ipv6/addrconf.c:3447 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 call_netdevice_notifiers net/core/dev.c:1762 [inline] register_netdevice+0xdd2/0x10f0 net/core/dev.c:8761 veth_newlink+0x3eb/0x930 drivers/net/veth.c:1142 rtnl_newlink+0x1030/0x15c0 net/core/rtnetlink.c:3141 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 __sys_sendto+0x21a/0x320 net/socket.c:1899 __do_sys_sendto net/socket.c:1911 [inline] __se_sys_sendto net/socket.c:1907 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1907 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x6de/0x920 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+0x7e/0xa0 net/core/skbuff.c:4857 tcp_rcv_established+0x1b89/0x1ef0 net/ipv4/tcp_input.c:5649 tcp_v4_do_rcv+0x5d6/0x870 net/ipv4/tcp_ipv4.c:1547 tcp_v4_rcv+0x2c03/0x3b80 net/ipv4/tcp_ipv4.c:1832 ip_local_deliver_finish+0x495/0xc00 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:289 [inline] ip_local_deliver+0x188/0x500 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:461 [inline] ip_rcv_finish+0x1ca/0x2e0 net/ipv4/ip_input.c:414 NF_HOOK include/linux/netfilter.h:289 [inline] ip_rcv+0xca/0x3c0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:4954 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066 netif_receive_skb_internal+0xf0/0x3f0 net/core/dev.c:5156 napi_skb_finish net/core/dev.c:5601 [inline] napi_gro_receive+0x2e6/0x450 net/core/dev.c:5632 receive_buf+0xc2c/0x6780 drivers/net/virtio_net.c:1088 virtnet_receive drivers/net/virtio_net.c:1352 [inline] virtnet_poll+0x568/0xe00 drivers/net/virtio_net.c:1457 napi_poll net/core/dev.c:6280 [inline] net_rx_action+0x4ac/0xfb0 net/core/dev.c:6346 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff8880aef80ac0 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 112 bytes to the right of 512-byte region [ffff8880aef80ac0, ffff8880aef80cc0) The buggy address belongs to the page: page:ffffea0002bbe000 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002d1a308 ffffea0002aab548 ffff88813bff0940 raw: 0000000000000000 ffff8880aef800c0 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880aef80c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880aef80c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880aef80d00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff8880aef80d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880aef80e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== print_req_error: I/O error, dev loop3, sector 8 print_req_error: I/O error, dev loop3, sector 8 Buffer I/O error on dev loop3p1, logical block 1, async page read