netlink: 20 bytes leftover after parsing attributes in process `syz-executor1'. device lo entered promiscuous mode ================================================================== BUG: KASAN: use-after-free in ip6_dst_idev include/net/ip6_fib.h:141 [inline] BUG: KASAN: use-after-free in ip6_xmit+0x177c/0x1a00 net/ipv6/ip6_output.c:237 Read of size 8 at addr ffff8801d2bb5a18 by task syz-executor0/25760 CPU: 0 PID: 25760 Comm: syz-executor0 Not tainted 4.4.148-gf057ff9 #17 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000[ 491.577191] binder: 25763:25765 unknown command 0 binder: 25763:25765 ioctl c0306201 20008000 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 25763:25765 ioctl 40046207 0 returned -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 25763:25766 ioctl 40046207 0 returned -16 binder: 25763:25765 unknown command 0 binder: 25763:25765 ioctl c0306201 20008000 returned -22 binder: BINDER_SET_CONTEXT_MGR already set binder: 25763:25766 ioctl 40046207 0 returned -16 660f99ed06d4bad7 ffff8801bc1d7768 ffffffff81e1448d ffffea00074aed40 ffff8801d2bb5a18 0000000000000000 ffff8801d2bb5a18 0000000000001200 ffff8801bc1d77a0 ffffffff81519871 ffff8801d2bb5a18 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 SELinux: policydb magic number 0x3a00de71 does not match expected magic number 0xf97cff8c [] 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_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [] ip6_dst_idev include/net/ip6_fib.h:141 [inline] [] ip6_xmit+0x177c/0x1a00 net/ipv6/ip6_output.c:237 [] inet6_csk_xmit+0x245/0x490 net/ipv6/inet6_connection_sock.c:176 [] l2tp_xmit_core net/l2tp/l2tp_core.c:1084 [inline] [] l2tp_xmit_skb+0xbeb/0xeb0 net/l2tp/l2tp_core.c:1179 [] pppol2tp_sendmsg+0x4e0/0x7d0 net/l2tp/l2tp_ppp.c:355 [] sock_sendmsg_nosec net/socket.c:626 [inline] [] sock_sendmsg+0xcc/0x110 net/socket.c:636 [] SYSC_sendto+0x21c/0x370 net/socket.c:1666 [] SyS_sendto+0x40/0x50 net/socket.c:1634 [] do_syscall_32_irqs_on arch/x86/entry/common.c:393 [inline] [] do_fast_syscall_32+0x324/0x8b0 arch/x86/entry/common.c:460 [] sysenter_flags_fixed+0xd/0x1a Allocated by task 25751: [] 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_connect include/net/route.h:297 [inline] [] __ip4_datagram_connect+0xa24/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 [] do_syscall_32_irqs_on arch/x86/entry/common.c:393 [inline] [] do_fast_syscall_32+0x324/0x8b0 arch/x86/entry/common.c:460 [] sysenter_flags_fixed+0xd/0x1a Freed by task 25756: [] 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 ffff8801d2bb5a00 which belongs to the cache ip_dst_cache of size 208 The buggy address is located 24 bytes inside of 208-byte region [ffff8801d2bb5a00, ffff8801d2bb5ad0) 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: 25754 Comm: syz-executor6 Not tainted 4.4.148-gf057ff9 #17 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801bc32e000 task.stack: ffff8801c57c0000 RIP: 0010:[] [] timerqueue_add+0xb8/0x2b0 lib/timerqueue.c:51 RSP: 0018:ffff8801db307d30 EFLAGS: 00010807 RAX: ffffed003b66339b RBX: ffff8801db319cc0 RCX: ffffffff81e31f7a RDX: 12480023a0000c96 RSI: ffffffff81e31ddc RDI: 9240011d000064b4 RBP: ffff8801db307d70 R08: 0000000000000096 R09: 0000000000000001 R10: 0000000000000000 R11: ffff8801bc32e000 R12: dffffc0000000000 R13: 9240011d0000649c R14: 0000007248580600 R15: ffff8801d2bb5ad8 FS: 0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f5756b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000008462798 CR3: 000000009ca89000 CR4: 00000000001606f0 Stack: ffff8801db319cd8 ffff8801db319790 ffffed003b66339b ffff8801db319780 ffff8801db319cc0 ffff8801db3196c0 0000000000000001 0000000000000000 ffff8801db307da8 ffffffff8129ddaf ffff8801db319cc0 0000000000000001 Call Trace: [] enqueue_hrtimer+0x15f/0x440 kernel/time/hrtimer.c:893 [] __run_hrtimer kernel/time/hrtimer.c:1276 [inline] [] __hrtimer_run_queues+0x6b2/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 [] smp_call_function_many+0x5b9/0x710 kernel/smp.c:435 [] smp_call_function+0x5d/0xa0 kernel/smp.c:491 [] on_each_cpu+0x2f/0xc0 kernel/smp.c:597 [] quarantine_remove_cache+0x64/0x110 mm/kasan/quarantine.c:311 [] kasan_cache_shutdown+0x9/0x10 mm/kasan/kasan.c:446 [] shutdown_cache mm/slab_common.c:457 [inline] [] kmem_cache_destroy+0xae/0x130 mm/slab_common.c:726 [] avtab_cache_destroy+0x15/0x30 security/selinux/ss/avtab.c:723 [] security_load_policy+0x89a/0x9b0 security/selinux/ss/services.c:2036 [] sel_write_load+0x191/0xfc0 security/selinux/selinuxfs.c:535 [] do_loop_readv_writev+0x148/0x1e0 fs/read_write.c:680 [] compat_do_readv_writev+0x5d6/0x6e0 fs/read_write.c:984 [] compat_writev+0xe1/0x150 fs/read_write.c:1090 [] __compat_sys_pwritev64+0x144/0x170 fs/read_write.c:1131 [] C_SYSC_pwritev fs/read_write.c:1151 [inline] [] compat_SyS_pwritev+0x38/0x50 fs/read_write.c:1145 [] do_syscall_32_irqs_on arch/x86/entry/common.c:393 [inline] [] do_fast_syscall_32+0x324/0x8b0 arch/x86/entry/common.c:460 [] sysenter_flags_fixed+0xd/0x1a Code: 00 00 4d 8b 2f 4d 85 ed 74 3d e8 64 21 52 ff 48 8b 45 d0 80 38 00 0f 85 96 01 00 00 49 8d 7d 18 4c 8b 73 18 48 89 fa 48 c1 ea 03 <42> 80 3c 22 00 0f 85 8a 01 00 00 4d 3b 75 18 7c a3 e8 32 21 52 RIP [] timerqueue_add+0xb8/0x2b0 lib/timerqueue.c:51 RSP ---[ end trace 66203a1ca90b4e11 ]---