device macvlan1718 entered promiscuous mode ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:261 [inline] BUG: KASAN: use-after-free in deliver_ptype_list_skb net/core/dev.c:1967 [inline] BUG: KASAN: use-after-free in __netif_receive_skb_core+0x2b84/0x3270 net/core/dev.c:4910 Read of size 8 at addr ffff8880b35271b0 by task syz-executor.3/5686 CPU: 1 PID: 5686 Comm: syz-executor.3 Not tainted 4.19.207-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+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 __read_once_size include/linux/compiler.h:261 [inline] deliver_ptype_list_skb net/core/dev.c:1967 [inline] __netif_receive_skb_core+0x2b84/0x3270 net/core/dev.c:4910 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:4952 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066 process_backlog+0x241/0x700 net/core/dev.c:5849 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 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:preempt_schedule_irq+0xa6/0x140 kernel/sched/core.c:3744 Code: 00 00 e8 bd 20 29 f9 e8 b8 5b 4f f9 4c 89 e8 48 c1 e8 03 80 3c 18 00 75 69 48 83 3d 2b 26 d9 01 00 74 5b fb 66 0f 1f 44 00 00 01 00 00 00 e8 40 d1 ff ff 48 c7 c0 d0 82 f1 89 48 c1 e8 03 80 RSP: 0018:ffff88801e4ffc60 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff13e305b RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffff888025faad08 RDI: ffff888025faad04 RBP: ffffed1004bf5490 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888025faa480 8021q: adding VLAN 0 to HW filter on device macvlan1718 R13: ffffffff89f182d8 R14: 0000000000000000 R15: 0000000000000000 retint_kernel+0x1b/0x2d RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline] RIP: 0010:__rcu_read_unlock+0xb7/0x160 kernel/rcu/tree_plugin.h:427 Code: ff df 48 89 ea 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 8c 00 00 00 c7 83 70 03 00 00 00 00 00 80 48 8d bb 74 03 00 00 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 48 RSP: 0018:ffff88801e4ffd38 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff888025faa480 RCX: ffffc9000c56e000 RDX: 1ffff11004bf54fe RSI: ffffffff86dfd8f8 RDI: ffff888025faa7f4 RBP: ffff888025faa7f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880493bc8ce R14: ffff8880493bc8c0 R15: ffffffff86deea90 rcu_read_unlock include/linux/rcupdate.h:680 [inline] tcp_assign_congestion_control+0x1ad/0x5d0 net/ipv4/tcp_cong.c:167 tcp_init_sock+0x4f7/0x950 net/ipv4/tcp.c:440 tcp_v4_init_sock+0x11/0x80 net/ipv4/tcp_ipv4.c:1965 inet_create net/ipv4/af_inet.c:379 [inline] inet_create+0x868/0xdf0 net/ipv4/af_inet.c:247 __sock_create+0x3d8/0x740 net/socket.c:1365 sock_create net/socket.c:1416 [inline] __sys_socket+0xef/0x200 net/socket.c:1458 __do_sys_socket net/socket.c:1467 [inline] __se_sys_socket net/socket.c:1465 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1465 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f7f51fc5709 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7f4f51b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007f7f520ca020 RCX: 00007f7f51fc5709 RDX: 0000000000000000 RSI: 4000000000000001 RDI: 0000000000000002 RBP: 00007f7f5201fcb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff9d11a74f R14: 00007f7f4f51b300 R15: 0000000000022000 Allocated by task 5674: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15a/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] sk_prot_alloc+0x1e2/0x2d0 net/core/sock.c:1466 sk_alloc+0x36/0xec0 net/core/sock.c:1520 packet_create+0x117/0x850 net/packet/af_packet.c:3259 __sock_create+0x3d8/0x740 net/socket.c:1365 sock_create net/socket.c:1416 [inline] __sys_socket+0xef/0x200 net/socket.c:1458 __do_sys_socket net/socket.c:1467 [inline] __se_sys_socket net/socket.c:1465 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1465 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 5661: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 sk_prot_free net/core/sock.c:1503 [inline] __sk_destruct+0x684/0x8a0 net/core/sock.c:1584 sk_destruct net/core/sock.c:1599 [inline] __sk_free+0x165/0x3b0 net/core/sock.c:1610 sk_free+0x3b/0x50 net/core/sock.c:1621 sock_put include/net/sock.h:1711 [inline] packet_release+0x890/0xb70 net/packet/af_packet.c:3088 __sock_release+0xcd/0x2a0 net/socket.c:599 sock_close+0x15/0x20 net/socket.c:1214 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880b35269c0 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2032 bytes inside of 2048-byte region [ffff8880b35269c0, ffff8880b35271c0) The buggy address belongs to the page: page:ffffea0002cd4980 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea000287e788 ffffea000266e688 ffff88813bff0c40 raw: 0000000000000000 ffff8880b3526140 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b3527080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880b3527100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880b3527180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff8880b3527200: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff8880b3527280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: e8 bd 20 29 f9 callq 0xf92920c4 7: e8 b8 5b 4f f9 callq 0xf94f5bc4 c: 4c 89 e8 mov %r13,%rax f: 48 c1 e8 03 shr $0x3,%rax 13: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) 17: 75 69 jne 0x82 19: 48 83 3d 2b 26 d9 01 cmpq $0x0,0x1d9262b(%rip) # 0x1d9264c 20: 00 21: 74 5b je 0x7e 23: fb sti 24: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 40 d1 ff ff callq 0xffffd174 34: 48 c7 c0 d0 82 f1 89 mov $0xffffffff89f182d0,%rax 3b: 48 c1 e8 03 shr $0x3,%rax 3f: 80 .byte 0x80