================================================================== BUG: KASAN: use-after-free in memset include/linux/string.h:365 [inline] BUG: KASAN: use-after-free in __alloc_skb+0x37b/0x5e0 net/core/skbuff.c:238 Write of size 32 at addr ffff88814fe901c0 by task syz-executor.3/31130 CPU: 0 PID: 31130 Comm: syz-executor.3 Not tainted 5.5.0-rc3-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.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:639 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x134/0x1a0 mm/kasan/generic.c:192 memset+0x24/0x40 mm/kasan/common.c:108 memset include/linux/string.h:365 [inline] __alloc_skb+0x37b/0x5e0 net/core/skbuff.c:238 alloc_skb include/linux/skbuff.h:1049 [inline] igmpv3_newpack+0x1b9/0x1110 net/ipv4/igmp.c:361 add_grhead.isra.0+0x235/0x300 net/ipv4/igmp.c:442 add_grec+0x842/0x1230 net/ipv4/igmp.c:575 igmpv3_send_cr net/ipv4/igmp.c:712 [inline] igmp_ifc_timer_expire+0x4af/0xab0 net/ipv4/igmp.c:809 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x6c3/0x1790 kernel/time/timer.c:1786 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0033:0x40f941 Code: e0 48 89 f8 25 ff 1f 00 00 89 3c 85 00 00 73 00 83 c5 01 e8 d1 22 ff ff 41 83 c7 01 45 39 7c 24 04 76 3e 44 89 f8 49 8b 34 c6 <4a> 8d 04 2e 48 3d ff ff ff 7e 0f 86 77 ff ff ff bf fa 00 4c 00 31 RSP: 002b:0000000000a6fb30 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13 RAX: 00000000000103ff RBX: 00000000e1b89d99 RCX: 0000001b31420000 RDX: 0000000021b9b64e RSI: ffffffff87c44697 RDI: ffffffff21b9b64e RBP: 00000000000005b9 R08: 0000000021b9b64e R09: 0000000021b9b652 R10: 0000000000a6fcd0 R11: 0000000000000000 R12: 000000000075bfa8 R13: 0000000080000000 R14: 00007f012d654008 R15: 00000000000103ff The buggy address belongs to the page: page:ffffea00053fa400 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 raw: 057ffe0000000000 ffffea00053fa408 ffffea00053fa408 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88814fe90080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88814fe90100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88814fe90180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88814fe90200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88814fe90280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================