netlink: 36 bytes leftover after parsing attributes in process `syz-executor.3'. EXT4-fs (loop4): VFS: Can't find ext4 filesystem netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. ================================================================== BUG: KASAN: use-after-free in _decode_session6+0xf56/0x1370 net/ipv6/xfrm6_policy.c:137 Read of size 1 at addr ffff8880a8c232e5 by task syz-fuzzer/24597 CPU: 1 PID: 24597 Comm: syz-fuzzer Not tainted 4.19.211-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_load1_noabort+0x88/0x90 mm/kasan/report.c:430 _decode_session6+0xf56/0x1370 net/ipv6/xfrm6_policy.c:137 __xfrm_decode_session+0x5a/0x130 net/xfrm/xfrm_policy.c:2299 xfrm_decode_session include/net/xfrm.h:1238 [inline] vti6_tnl_xmit+0x42b/0x1c80 net/ipv6/ip6_vti.c:569 __netdev_start_xmit include/linux/netdevice.h:4349 [inline] netdev_start_xmit include/linux/netdevice.h:4363 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 sch_direct_xmit+0x2d6/0xf70 net/sched/sch_generic.c:332 qdisc_restart net/sched/sch_generic.c:395 [inline] __qdisc_run+0x4d0/0x1640 net/sched/sch_generic.c:403 __dev_xmit_skb net/core/dev.c:3500 [inline] __dev_queue_xmit+0x1518/0x2e00 net/core/dev.c:3807 neigh_output include/net/neighbour.h:501 [inline] ip6_finish_output2+0x113d/0x2290 net/ipv6/ip6_output.c:120 ip6_finish_output+0x89b/0x10f0 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x205/0x770 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:455 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] ndisc_send_skb+0xa24/0x1720 net/ipv6/ndisc.c:491 ndisc_send_rs+0x131/0x690 net/ipv6/ndisc.c:685 addrconf_rs_timer+0x384/0x6a0 net/ipv6/addrconf.c:3835 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __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: 0033:0x5f3087 Code: cc cc cc 48 8b 44 24 08 84 00 48 89 44 24 08 c6 44 24 10 00 e9 2a 40 ff ff cc cc cc cc cc cc cc cc cc cc 48 8b 44 24 08 84 00 <48> 89 44 24 08 0f 57 c0 0f 11 44 24 10 e9 67 3c ff ff cc cc cc cc RSP: 002b:000000c002e684c8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000f23620 RBX: 0000000000000000 RCX: 0000000000f23620 RDX: 000000c017c4a800 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000c002e68628 R08: 0000000000000001 R09: 000000c01a4ec1a0 R10: 000000000002b2d0 R11: 000000c000530000 R12: 00000000000055a0 R13: 0000000000764660 R14: 0000000000c559f3 R15: 0000000000000000 Allocated by task 27349: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvmalloc_array include/linux/mm.h:595 [inline] __alloc_bucket_spinlocks+0x64/0x160 lib/bucket_locks.c:34 bucket_table_alloc+0x11b/0x440 lib/rhashtable.c:194 rhashtable_init+0x3bc/0x810 lib/rhashtable.c:1069 ila_xlat_init_net+0x1d6/0x2e0 net/ipv6/ila/ila_xlat.c:624 ops_init+0xb3/0x410 net/core/net_namespace.c:129 setup_net+0x2c2/0x720 net/core/net_namespace.c:316 copy_net_ns+0x1f7/0x340 net/core/net_namespace.c:439 create_new_namespaces+0x3f6/0x7b0 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xbd/0x1f0 kernel/nsproxy.c:206 ksys_unshare+0x36c/0x9a0 kernel/fork.c:2542 __do_sys_unshare kernel/fork.c:2610 [inline] __se_sys_unshare kernel/fork.c:2608 [inline] __x64_sys_unshare+0x2d/0x40 kernel/fork.c:2608 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 135: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 kvfree+0x59/0x60 mm/util.c:452 bucket_table_free+0x80/0x170 lib/rhashtable.c:107 rhashtable_free_and_destroy+0x15e/0x970 lib/rhashtable.c:1167 ila_xlat_exit_net+0x19f/0x350 net/ipv6/ila/ila_xlat.c:633 ops_exit_list+0xa5/0x150 net/core/net_namespace.c:153 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff8880a8c22b00 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 2021 bytes inside of 4096-byte region [ffff8880a8c22b00, ffff8880a8c23b00) The buggy address belongs to the page: page:ffffea0002a30880 count:1 mapcount:0 mapping:ffff88813bff0dc0 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002451508 ffffea00011c3a88 ffff88813bff0dc0 raw: 0000000000000000 ffff8880a8c22b00 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a8c23180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a8c23200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a8c23280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a8c23300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a8c23380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================