random: sshd: uninitialized urandom read (32 bytes read, 39 bits of entropy available) random: sshd: uninitialized urandom read (32 bytes read, 39 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 ffff8801d487e3d8 by task syzkaller306006/3765 CPU: 1 PID: 3765 Comm: syzkaller306006 Not tainted 4.4.120-gd63fdf6 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 e99685ed58ae712c ffff8800ad4d77e0 ffffffff81d0408d ffffea0007521f80 ffff8801d487e3d8 0000000000000000 ffff8801d487e3d8 0000000000000040 ffff8800ad4d7818 ffffffff814fe143 ffff8801d487e3d8 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 [] SYSC_sendto+0x2c8/0x340 net/socket.c:1665 [] SyS_sendto+0x40/0x50 net/socket.c:1633 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Allocated by task 3752: [] 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 ffff8801d487e3c0 which belongs to the cache ip_dst_cache of size 208 The buggy address is located 24 bytes inside of 208-byte region [ffff8801d487e3c0, ffff8801d487e490) The buggy address belongs to the page: INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 3766 Comm: init Not tainted 4.4.120-gd63fdf6 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 4d7c7077c580dec6 ffff8800addefa20 ffffffff81d0408d ffffffff85153f60 0000000000000000 ffff8801c66e3000 ffff8800ab807dd8 0000000000000000 ffff8800addefa30 ffffffff8141adb3 ffff8800addefbd8 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] register_lock_class.part.26+0x32/0x36 kernel/locking/lockdep.c:762 [] register_lock_class kernel/locking/lockdep.c:767 [inline] [] __lock_acquire+0x3a49/0x4b50 kernel/locking/lockdep.c:3101 [] lock_acquire+0x15e/0x460 kernel/locking/lockdep.c:3592 [] __raw_spin_lock include/linux/spinlock_api_smp.h:144 [inline] [] _raw_spin_lock+0x36/0x50 kernel/locking/spinlock.c:151 [] spin_lock include/linux/spinlock.h:302 [inline] [] do_anonymous_page mm/memory.c:2722 [inline] [] handle_pte_fault mm/memory.c:3295 [inline] [] __handle_mm_fault mm/memory.c:3426 [inline] [] handle_mm_fault+0x1f52/0x3190 mm/memory.c:3455 [] __do_page_fault+0x35b/0xa00 arch/x86/mm/fault.c:1245 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1308 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1033 [] ret_from_fork+0xf/0x80 arch/x86/entry/entry_64.S:486 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:460! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 3766 Comm: init Not tainted 4.4.120-gd63fdf6 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c66e3000 task.stack: ffff8800adde8000 RIP: 0010:[] [] dump_page mm/debug.c:105 [inline] RIP: 0010:[] [] page_mapcount include/linux/mm.h:460 [inline] RIP: 0010:[] [] dump_page_badflags+0x191/0x250 mm/debug.c:85 RSP: 0018:ffff8801db207d18 EFLAGS: 00010206 RAX: ffffffff814909c1 RBX: ffff8801db207d68 RCX: ffffffff812a0eeb RDX: 0000000000000100 RSI: ffffffff847ebf78 RDI: ffff8800ab841500 RBP: ffff8801db207df0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff838444e0 R11: 1ffff1003b640f70 R12: 1ffff1003b640fa9 R13: ffff8800ab841ab0 R14: 0000000000000102 R15: ffffffff838444e0 FS: 00007fe5fe5747a0(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe5fe574a70 CR3: 00000000af730000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff812a0efb ffffffff812a0e4c 0000000000000000 ffffffff842c35a0 ffff8800ab841500 ffffffff814909c1 0000000041b58ab3 ffffffff83faab59 ffffffff812a0d70 ffffffff812a2952 ffff8800ab841b40 0000000000000000 Call Trace: [] __run_timers kernel/time/timer.c:1261 [inline] [] run_timer_softirq+0x604/0xbb0 kernel/time/timer.c:1444 [] __do_softirq+0x227/0xa38 kernel/softirq.c:273 [] invoke_softirq kernel/softirq.c:350 [inline] [] irq_exit+0x119/0x140 kernel/softirq.c:391 [] exiting_irq arch/x86/include/asm/apic.h:653 [inline] [] smp_apic_timer_interrupt+0x7b/0xa0 arch/x86/kernel/apic/apic.c:926 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:737 [] __delay+0xa/0x10 arch/x86/lib/delay.c:160 [] __spin_lock_debug kernel/locking/spinlock_debug.c:114 [inline] [] do_raw_spin_lock+0x151/0x2c0 kernel/locking/spinlock_debug.c:137 [] __raw_spin_lock include/linux/spinlock_api_smp.h:145 [inline] [] _raw_spin_lock+0x3e/0x50 kernel/locking/spinlock.c:151 [] spin_lock include/linux/spinlock.h:302 [inline] [] do_anonymous_page mm/memory.c:2722 [inline] [] handle_pte_fault mm/memory.c:3295 [inline] [] __handle_mm_fault mm/memory.c:3426 [inline] [] handle_mm_fault+0x1f52/0x3190 mm/memory.c:3455 [] __do_page_fault+0x35b/0xa00 arch/x86/mm/fault.c:1245 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1308 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1033 [] ret_from_fork+0xf/0x80 arch/x86/entry/entry_64.S:486 Code: 46 e8 b4 03 ed ff 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 a0 03 ed ff 31 d2 48 c7 c6 60 90 8a 83 48 89 df e8 6f fe ff ff <0f> 0b e8 b8 dd 06 00 e9 21 ff ff ff 89 4d d4 e8 ab dd 06 00 8b RIP [] dump_page mm/debug.c:105 [inline] RIP [] page_mapcount include/linux/mm.h:460 [inline] RIP [] dump_page_badflags+0x191/0x250 mm/debug.c:85 RSP ---[ end trace b432bd2acd085a21 ]---