random: sshd: uninitialized urandom read (32 bytes read, 35 bits of entropy available) random: sshd: uninitialized urandom read (32 bytes read, 35 bits of entropy available) random: nonblocking pool is initialized ================================================================== BUG: KASAN: use-after-free in ip6_dst_idev include/net/ip6_fib.h:141 [inline] BUG: KASAN: use-after-free in ip6_xmit+0x1a2c/0x1a70 net/ipv6/ip6_output.c:237 Read of size 8 at addr ffff8801d49d1658 by task syzkaller677477/3741 CPU: 0 PID: 3741 Comm: syzkaller677477 Not tainted 4.4.120-gd63fdf6 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 997781c320663151 ffff8801cacb76a8 ffffffff81d0408d ffffea0007527440 ffff8801d49d1658 0000000000000000 ffff8801d49d1658 0000000000000040 ffff8801cacb76e0 ffffffff814fe143 ffff8801d49d1658 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x73/0x260 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report+0x285/0x370 mm/kasan/report.c:408 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [] ip6_dst_idev include/net/ip6_fib.h:141 [inline] [] ip6_xmit+0x1a2c/0x1a70 net/ipv6/ip6_output.c:237 [] inet6_csk_xmit+0x246/0x480 net/ipv6/inet6_connection_sock.c:176 [] l2tp_xmit_core net/l2tp/l2tp_core.c:1084 [inline] [] l2tp_xmit_skb+0xc2f/0xea0 net/l2tp/l2tp_core.c:1179 [] pppol2tp_sendmsg+0x584/0x7f0 net/l2tp/l2tp_ppp.c:355 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xca/0x110 net/socket.c:635 [] ___sys_sendmsg+0x6c1/0x7c0 net/socket.c:1962 [] __sys_sendmsg+0xd3/0x190 net/socket.c:1996 [] SYSC_sendmsg net/socket.c:2007 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2003 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Allocated by task 3739: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:616 [] kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:554 [] slab_post_alloc_hook mm/slub.c:1349 [inline] [] slab_alloc_node mm/slub.c:2615 [inline] [] slab_alloc mm/slub.c:2623 [inline] [] kmem_cache_alloc+0xba/0x290 mm/slub.c:2628 [] dst_alloc+0x11f/0x1a0 net/core/dst.c:210 [] rt_dst_alloc+0x78/0x430 net/ipv4/route.c:1467 [] __mkroute_output net/ipv4/route.c:2120 [inline] [] __ip_route_output_key_hash+0xa4e/0x2390 net/ipv4/route.c:2332 [] __ip_route_output_key include/net/route.h:123 [inline] [] ip_route_connect include/net/route.h:296 [inline] [] __ip4_datagram_connect+0xa15/0x1150 net/ipv4/datagram.c:51 [] __ip6_datagram_connect+0x4d9/0x1950 net/ipv6/datagram.c:59 [] ip6_datagram_connect+0x2f/0x50 net/ipv6/datagram.c:223 [] inet_dgram_connect+0x16b/0x1f0 net/ipv4/af_inet.c:550 [] SYSC_connect+0x1b6/0x310 net/socket.c:1557 [] SyS_connect+0x24/0x30 net/socket.c:1538 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Freed by task 0: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589 [] slab_free_hook mm/slub.c:1383 [inline] [] slab_free_freelist_hook mm/slub.c:1405 [inline] [] slab_free mm/slub.c:2859 [inline] [] kmem_cache_free+0xc7/0x320 mm/slub.c:2881 [] dst_destroy+0x20e/0x330 net/core/dst.c:270 [] dst_destroy_rcu+0x15/0x40 net/core/dst.c:295 [] __rcu_reclaim kernel/rcu/rcu.h:118 [inline] [] rcu_do_batch kernel/rcu/tree.c:2705 [inline] [] invoke_rcu_callbacks kernel/rcu/tree.c:2973 [inline] [] __rcu_process_callbacks kernel/rcu/tree.c:2940 [inline] [] rcu_process_callbacks+0x7f4/0x14a0 kernel/rcu/tree.c:2957 [] __do_softirq+0x227/0xa38 kernel/softirq.c:273 The buggy address belongs to the object at ffff8801d49d1640 which belongs to the cache ip_dst_cache of size 208 The buggy address is located 24 bytes inside of 208-byte region [ffff8801d49d1640, ffff8801d49d1710) The buggy address belongs to the page: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.120-gd63fdf6 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801d9b49800 task.stack: ffff8801d9b58000 RIP: 0010:[] [] __rb_insert lib/rbtree.c:118 [inline] RIP: 0010:[] [] rb_insert_color+0x7b/0xcb0 lib/rbtree.c:420 RSP: 0018:ffff8801db307d18 EFLAGS: 00010002 RAX: 0000000000000008 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffff8801db319710 RDI: ffff8801db319c40 RBP: ffff8801db307d60 R08: ffffffff857d3748 R09: 0000000000000001 R10: 0000000000000000 R11: 1ffff1003b660f62 R12: ffff8801c8667df8 R13: 0000000000000000 R14: ffff8801db319c40 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562055ddb110 CR3: 00000001d9880000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff842bdb60 ffff8801d9b4a0d0 0000000000000000 ffff8801db307d70 ffff8801db319c40 dffffc0000000000 0000000000000000 ffff8801db319710 ffff8801c8667e00 ffff8801db307db0 ffffffff81d21967 ffff8801db319c58 Call Trace: [] timerqueue_add+0x157/0x2a0 lib/timerqueue.c:57 [] enqueue_hrtimer+0x168/0x450 kernel/time/hrtimer.c:892 [] __run_hrtimer kernel/time/hrtimer.c:1275 [inline] [] __hrtimer_run_queues+0x732/0xfe0 kernel/time/hrtimer.c:1324 [] hrtimer_interrupt+0x1a6/0x440 kernel/time/hrtimer.c:1358 [] local_apic_timer_interrupt+0x6a/0xb0 arch/x86/kernel/apic/apic.c:901 [] smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:925 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:737 [] arch_safe_halt arch/x86/include/asm/paravirt.h:117 [inline] [] default_idle+0x55/0x3c0 arch/x86/kernel/process.c:290 [] arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:281 [] default_idle_call+0x48/0x70 kernel/sched/idle.c:93 [] cpuidle_idle_call kernel/sched/idle.c:157 [inline] [] cpu_idle_loop kernel/sched/idle.c:253 [inline] [] cpu_startup_entry+0x5fd/0x8f0 kernel/sched/idle.c:301 [] start_secondary+0x304/0x3e0 arch/x86/kernel/smpboot.c:242 Code: 0f 85 06 0a 00 00 49 bf 00 00 00 00 00 fc ff df 49 8b 1c 24 f6 c3 01 0f 85 9a 01 00 00 48 8d 43 08 48 89 d9 48 89 c2 48 c1 ea 03 <42> 80 3c 3a 00 0f 85 94 09 00 00 4c 8b 6b 08 4d 39 e5 0f 84 b0 RIP [] __rb_insert lib/rbtree.c:118 [inline] RIP [] rb_insert_color+0x7b/0xcb0 lib/rbtree.c:420 RSP ---[ end trace eb7d2fc07caffc51 ]---