syz-executor0 (6604) used greatest stack depth: 23472 bytes left syz-executor4 uses obsolete (PF_INET,SOCK_PACKET) ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:218 [inline] BUG: KASAN: use-after-free in atomic_read arch/x86/include/asm/atomic.h:26 [inline] BUG: KASAN: use-after-free in __atomic_add_unless arch/x86/include/asm/atomic.h:211 [inline] BUG: KASAN: use-after-free in atomic_add_unless include/linux/atomic.h:437 [inline] BUG: KASAN: use-after-free in sk_dst_get include/net/sock.h:1741 [inline] BUG: KASAN: use-after-free in pppol2tp_connect+0x172e/0x1910 net/l2tp/l2tp_ppp.c:762 Read of size 4 at addr ffff8801ca00be40 by task syz-executor6/6731 CPU: 0 PID: 6731 Comm: syz-executor6 Not tainted 4.4.146-g1396226 #79 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 533f44f3c0912517 ffff8801c713fb28 ffffffff81e1292d ffffea00072802c0 ffff8801ca00be40 0000000000000000 ffff8801ca00be40 ffff8801ca00bdc0 ffff8801c713fb60 ffffffff81517f76 ffff8801ca00be40 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x6c/0x216 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report.cold.7+0x175/0x2f7 mm/kasan/report.c:408 [] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:428 [] __read_once_size include/linux/compiler.h:218 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] __atomic_add_unless arch/x86/include/asm/atomic.h:211 [inline] [] atomic_add_unless include/linux/atomic.h:437 [inline] [] sk_dst_get include/net/sock.h:1741 [inline] [] pppol2tp_connect+0x172e/0x1910 net/l2tp/l2tp_ppp.c:762 [] SYSC_connect+0x1b8/0x300 net/socket.c:1558 [] SyS_connect+0x24/0x30 net/socket.c:1539 [] entry_SYSCALL_64_fastpath+0x22/0x9e Allocated by task 6669: [] 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+0xc7/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+0xbe/0x2a0 mm/slub.c:2628 [] dst_alloc+0xb5/0x1a0 net/core/dst.c:210 [] rt_dst_alloc+0x78/0x430 net/ipv4/route.c:1478 [] __mkroute_output net/ipv4/route.c:2132 [inline] [] __ip_route_output_key_hash+0x9ac/0x2380 net/ipv4/route.c:2344 [] __ip_route_output_key include/net/route.h:124 [inline] [] ip_route_output_flow+0x29/0xa0 net/ipv4/route.c:2431 [] ip_route_connect include/net/route.h:304 [inline] [] __ip4_datagram_connect+0x663/0xfe0 net/ipv4/datagram.c:51 [] __ip6_datagram_connect+0x1280/0x1960 net/ipv6/datagram.c:105 [] ip6_datagram_connect+0x2f/0x50 net/ipv6/datagram.c:223 [] inet_dgram_connect+0x117/0x200 net/ipv4/af_inet.c:550 [] SYSC_connect+0x1b8/0x300 net/socket.c:1558 [] SyS_connect+0x24/0x30 net/socket.c:1539 [] entry_SYSCALL_64_fastpath+0x22/0x9e Freed by task 6124: [] 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+0xbe/0x340 mm/slub.c:2881 [] dst_destroy.part.6+0x1f5/0x330 net/core/dst.c:270 [] dst_destroy net/core/dst.c:252 [inline] [] 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+0x927/0x1440 kernel/rcu/tree.c:2957 [] __do_softirq+0x22c/0xa1a kernel/softirq.c:273 The buggy address belongs to the object at ffff8801ca00bdc0 which belongs to the cache ip_dst_cache of size 208 The buggy address is located 128 bytes inside of 208-byte region [ffff8801ca00bdc0, ffff8801ca00be90) 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.146-g1396226 #79 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801d9a41800 task.stack: ffff8801d9a50000 RIP: 0010:[] [] ____rb_erase_color lib/rbtree.c:265 [inline] RIP: 0010:[] [] rb_erase+0x30d/0x1cb0 lib/rbtree.c:429 RSP: 0018:ffff8801db307cf8 EFLAGS: 00010046 RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffff8800a3c8fe00 RDX: ffffed003b6632f2 RSI: ffff8801db319790 RDI: 0000000000000000 RBP: ffff8801db307d40 R08: 1ffff100377dbfca R09: 0000000000000001 R10: 0000000000000000 R11: ffff8801d9a41800 R12: ffff8800a3c8fdf8 R13: ffff8801bbedfe48 R14: ffffffff8148f497 R15: ffff8801d8d37b18 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f120d944000 CR3: 00000001cb49c000 CR4: 00000000001606f0 Stack: ffffed003b6632f2 ffff8800a3c8fe00 ffff8801db319790 ffff8801bbedfe48 ffff8801d1a57df8 ffff8801db319790 ffff8801db319798 0000000000000000 0000000000000000 ffff8801db307d70 ffffffff81e30548 ffffffff844bec20 Call Trace: [] timerqueue_del+0x78/0x170 lib/timerqueue.c:86 [] __remove_hrtimer+0x8e/0x250 kernel/time/hrtimer.c:917 [] __run_hrtimer kernel/time/hrtimer.c:1242 [inline] [] __hrtimer_run_queues+0x2dd/0x1000 kernel/time/hrtimer.c:1325 [] hrtimer_interrupt+0x1b1/0x430 kernel/time/hrtimer.c:1359 [] local_apic_timer_interrupt+0x74/0xa0 arch/x86/kernel/apic/apic.c:901 [] smp_apic_timer_interrupt+0x7c/0xa0 arch/x86/kernel/apic/apic.c:925 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:741 [] arch_safe_halt arch/x86/include/asm/paravirt.h:117 [inline] [] default_idle+0x55/0x3c0 arch/x86/kernel/process.c:432 [] arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:423 [] default_idle_call+0x57/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+0x6af/0x780 kernel/sched/idle.c:301 [] start_secondary+0x329/0x400 arch/x86/kernel/smpboot.c:245 Code: 85 f6 74 1b 4c 89 f7 48 c1 ef 03 80 3c 1f 00 0f 85 f8 0c 00 00 41 f6 06 01 0f 84 5a 09 00 00 48 85 c0 74 1a 48 89 c7 48 c1 ef 03 <80> 3c 1f 00 0f 85 33 0f 00 00 f6 00 01 0f 84 17 07 00 00 4c 89 RIP [] ____rb_erase_color lib/rbtree.c:265 [inline] RIP [] rb_erase+0x30d/0x1cb0 lib/rbtree.c:429 RSP ---[ end trace 514b964d4e7236f3 ]---