overlayfs: failed to resolve './fil L9Û#Ÿ½Ù%1Än/=•': -2 ================================================================== BUG: KASAN: use-after-free in __list_add_valid+0x9a/0xa0 lib/list_debug.c:26 Read of size 8 at addr ffff888052d53660 by task syz-executor.5/32141 CPU: 0 PID: 32141 Comm: syz-executor.5 Not tainted 4.19.93-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __list_add_valid+0x9a/0xa0 lib/list_debug.c:26 __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] cma_listen_on_all drivers/infiniband/core/cma.c:2380 [inline] rdma_listen+0x63b/0x8e0 drivers/infiniband/core/cma.c:3408 ucma_listen+0x14d/0x1c0 drivers/infiniband/core/ucma.c:1100 ucma_write+0x2d7/0x3c0 drivers/infiniband/core/ucma.c:1689 __vfs_write+0x114/0x810 fs/read_write.c:485 vfs_write+0x20c/0x560 fs/read_write.c:549 ksys_write+0x14f/0x2d0 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:608 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45af49 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f0b55eecc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49 RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0b55eed6d4 R13: 00000000004ccc65 R14: 00000000004e7f20 R15: 00000000ffffffff Allocated by task 7997: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node_track_caller+0x51/0x80 mm/slab.c:3703 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:137 __alloc_skb+0x10b/0x5f0 net/core/skbuff.c:205 alloc_skb_fclone include/linux/skbuff.h:1037 [inline] sk_stream_alloc_skb+0xc8/0x860 net/ipv4/tcp.c:874 tcp_sendmsg_locked+0xc9d/0x3290 net/ipv4/tcp.c:1303 tcp_sendmsg+0x30/0x50 net/ipv4/tcp.c:1454 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 sock_write_iter+0x27c/0x3e0 net/socket.c:901 call_write_iter include/linux/fs.h:1820 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x587/0x810 fs/read_write.c:487 vfs_write+0x20c/0x560 fs/read_write.c:549 ksys_write+0x14f/0x2d0 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:608 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 31497: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 skb_free_head+0x99/0xc0 net/core/skbuff.c:554 skb_release_data+0x619/0x8d0 net/core/skbuff.c:574 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb+0x16/0x30 net/core/skbuff.c:645 sk_wmem_free_skb include/net/sock.h:1462 [inline] tcp_rtx_queue_unlink_and_free include/net/tcp.h:1751 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3148 [inline] tcp_ack+0x1e42/0x5120 net/ipv4/tcp_input.c:3673 tcp_rcv_established+0x131d/0x1f10 net/ipv4/tcp_input.c:5561 tcp_v4_do_rcv+0x61f/0x8d0 net/ipv4/tcp_ipv4.c:1535 tcp_v4_rcv+0x2c24/0x36d0 net/ipv4/tcp_ipv4.c:1820 ip_local_deliver_finish+0x27e/0xc30 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:453 [inline] ip_rcv_finish+0x1d9/0x2e0 net/ipv4/ip_input.c:414 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:4946 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5058 netif_receive_skb_internal+0x117/0x700 net/core/dev.c:5161 napi_skb_finish net/core/dev.c:5621 [inline] napi_gro_receive+0x36b/0x460 net/core/dev.c:5652 receive_buf+0xed6/0x6130 drivers/net/virtio_net.c:1072 virtnet_receive drivers/net/virtio_net.c:1334 [inline] virtnet_poll+0x5f8/0xe90 drivers/net/virtio_net.c:1439 napi_poll net/core/dev.c:6292 [inline] net_rx_action+0x4f5/0x1070 net/core/dev.c:6358 __do_softirq+0x25c/0x921 kernel/softirq.c:292 The buggy address belongs to the object at ffff888052d53480 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 480 bytes inside of 2048-byte region [ffff888052d53480, ffff888052d53c80) The buggy address belongs to the page: page:ffffea00014b5480 count:1 mapcount:0 mapping:ffff88812c31cc40 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea0002252088 ffffea00014b3088 ffff88812c31cc40 raw: 0000000000000000 ffff888052d52380 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888052d53500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888052d53580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888052d53600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888052d53680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888052d53700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== overlayfs: failed to resolve './file0Yý8Ö¯Ì"V€Á>L8¯yJï<|ìŽ$…YDg›¤‡5úÚê™ àeƒõðšð]ñëì$"<̻ѣG»©¤¤jn àÀ[` ÃÛ…5ˆ9ÍXÁñ«åéæ': -2 overlayfs: failed to resolve './file0Yý8Ö¯Ì"V€Á>L8¯yJï<|ìŽ$…YDg›¤‡5úÚê™ àeƒõðšð]ñëì$"<̻ѣG»©¤¤jn àÀ[` ÃÛ…5ˆ9ÍXÁñ«åéæ': -2