================================================================== BUG: KASAN: use-after-free in __hlist_del include/linux/list.h:685 [inline] BUG: KASAN: use-after-free in hlist_del_rcu include/linux/rculist.h:457 [inline] BUG: KASAN: use-after-free in vxlan_fdb_destroy+0x1cc/0x1f0 drivers/net/vxlan.c:788 Read of size 8 at addr ffff888097c5d700 by task syz-executor.3/26244 CPU: 0 PID: 26244 Comm: syz-executor.3 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_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __hlist_del include/linux/list.h:685 [inline] hlist_del_rcu include/linux/rculist.h:457 [inline] vxlan_fdb_destroy+0x1cc/0x1f0 drivers/net/vxlan.c:788 __vxlan_dev_create+0x477/0x820 drivers/net/vxlan.c:3279 vxlan_newlink+0xc0/0x120 drivers/net/vxlan.c:3506 rtnl_newlink+0x1030/0x15c0 net/core/rtnetlink.c:3141 SQUASHFS error: lzo decompression failed, data probably corrupt SQUASHFS error: squashfs_read_data failed to read block 0x60 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782 SQUASHFS error: Unable to read fragment cache entry [60] 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 SQUASHFS error: Unable to read page, block 60, size 1f 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 sock_no_sendpage+0xf5/0x140 net/core/sock.c:2686 kernel_sendpage net/socket.c:3585 [inline] sock_sendpage+0xdf/0x140 net/socket.c:912 pipe_to_sendpage+0x268/0x330 fs/splice.c:452 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] generic_splice_sendpage+0xd4/0x140 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408 SQUASHFS error: Unable to read fragment cache entry [60] do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7facf03f85a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007facee94a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007facf0519050 RCX: 00007facf03f85a9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007facf04537b0 R08: 000000000004fff1 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeb8a63c5f R14: 00007facee94a300 R15: 0000000000022000 Allocated by task 26244: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] vxlan_fdb_alloc drivers/net/vxlan.c:646 [inline] vxlan_fdb_create+0x163/0x690 drivers/net/vxlan.c:674 __vxlan_dev_create+0x417/0x820 drivers/net/vxlan.c:3245 vxlan_newlink+0xc0/0x120 drivers/net/vxlan.c:3506 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 sock_no_sendpage+0xf5/0x140 net/core/sock.c:2686 SQUASHFS error: Unable to read page, block 60, size 1f kernel_sendpage net/socket.c:3585 [inline] sock_sendpage+0xdf/0x140 net/socket.c:912 pipe_to_sendpage+0x268/0x330 fs/splice.c:452 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] generic_splice_sendpage+0xd4/0x140 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x8ff/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff888097c5d700 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of 96-byte region [ffff888097c5d700, ffff888097c5d760) The buggy address belongs to the page: page:ffffea00025f1740 count:1 mapcount:0 mapping:ffff88813bff04c0 index:0xffff888097c5d880 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00026d44c8 ffffea0002717ec8 ffff88813bff04c0 raw: ffff888097c5d880 ffff888097c5d000 000000010000001e 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888097c5d600: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888097c5d680: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff888097c5d700: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888097c5d780: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888097c5d800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================