FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 ================================================================== BUG: KASAN: use-after-free in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: use-after-free in atomic_fetch_add_unless include/linux/atomic.h:575 [inline] BUG: KASAN: use-after-free in atomic_add_unless include/linux/atomic.h:597 [inline] BUG: KASAN: use-after-free in dst_hold_safe include/net/dst.h:308 [inline] BUG: KASAN: use-after-free in ip6_hold_safe+0xa7/0x3a0 net/ipv6/route.c:1023 Read of size 4 at addr ffff8880983684dc by task ksoftirqd/1/16 CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.0.0-rc8+ #89 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x123/0x190 mm/kasan/generic.c:191 kasan_check_read+0x11/0x20 mm/kasan/common.c:100 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] atomic_fetch_add_unless include/linux/atomic.h:575 [inline] atomic_add_unless include/linux/atomic.h:597 [inline] dst_hold_safe include/net/dst.h:308 [inline] ip6_hold_safe+0xa7/0x3a0 net/ipv6/route.c:1023 rt6_get_pcpu_route net/ipv6/route.c:1243 [inline] ip6_pol_route+0x33d/0xf00 net/ipv6/route.c:1904 ip6_pol_route_output+0x54/0x70 net/ipv6/route.c:2080 fib6_rule_lookup+0x128/0x560 net/ipv6/fib6_rules.c:118 ip6_route_output_flags+0x2c4/0x350 net/ipv6/route.c:2109 ip6_route_output include/net/ip6_route.h:88 [inline] ip6_dst_lookup_tail+0xd10/0x1b30 net/ipv6/ip6_output.c:958 ip6_dst_lookup_flow+0xa8/0x220 net/ipv6/ip6_output.c:1086 sctp_v6_get_dst+0x785/0x1d80 net/sctp/ipv6.c:293 sctp_transport_route+0x132/0x370 net/sctp/transport.c:312 sctp_assoc_add_peer+0x53e/0xfc0 net/sctp/associola.c:678 sctp_process_param net/sctp/sm_make_chunk.c:2548 [inline] sctp_process_init+0x2499/0x2b20 net/sctp/sm_make_chunk.c:2361 sctp_sf_do_5_1B_init+0x8ba/0xe50 net/sctp/sm_statefuns.c:416 sctp_do_sm+0x124/0x5380 net/sctp/sm_sideeffect.c:1188 sctp_endpoint_bh_rcv+0x451/0x950 net/sctp/endpointola.c:456 sctp_inq_push+0x1ea/0x290 net/sctp/inqueue.c:95 sctp_rcv+0x27d9/0x3550 net/sctp/input.c:271 sctp6_rcv+0x17/0x30 net/sctp/ipv6.c:1063 ip6_protocol_deliver_rcu+0x303/0x16c0 net/ipv6/ip6_input.c:394 ip6_input_finish+0x84/0x170 net/ipv6/ip6_input.c:434 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip6_input+0xe4/0x3f0 net/ipv6/ip6_input.c:443 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x1e7/0x320 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ipv6_rcv+0x10e/0x420 net/ipv6/ip6_input.c:272 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4973 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5083 process_backlog+0x206/0x750 net/core/dev.c:5923 napi_poll net/core/dev.c:6346 [inline] net_rx_action+0x4fa/0x1070 net/core/dev.c:6412 __do_softirq+0x266/0x95a kernel/softirq.c:292 run_ksoftirqd kernel/softirq.c:654 [inline] run_ksoftirqd+0x8e/0x110 kernel/softirq.c:646 smpboot_thread_fn+0x6ab/0xa10 kernel/smpboot.c:164 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 6596: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:503 slab_post_alloc_hook mm/slab.h:440 [inline] slab_alloc mm/slab.c:3388 [inline] kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3548 ptlock_alloc+0x20/0x70 mm/memory.c:4577 ptlock_init include/linux/mm.h:1955 [inline] pgtable_page_ctor include/linux/mm.h:1982 [inline] pte_alloc_one+0x6d/0x1a0 arch/x86/mm/pgtable.c:38 __pte_alloc+0x20/0x310 mm/memory.c:406 copy_pte_range mm/memory.c:830 [inline] copy_pmd_range mm/memory.c:906 [inline] copy_pud_range mm/memory.c:940 [inline] copy_p4d_range mm/memory.c:962 [inline] copy_page_range+0x1529/0x1f90 mm/memory.c:1023 dup_mmap kernel/fork.c:586 [inline] dup_mm kernel/fork.c:1320 [inline] copy_mm kernel/fork.c:1375 [inline] copy_process.part.0+0x56aa/0x79a0 kernel/fork.c:1917 copy_process kernel/fork.c:1710 [inline] _do_fork+0x257/0xfe0 kernel/fork.c:2227 __do_compat_sys_x86_clone arch/x86/ia32/sys_ia32.c:240 [inline] __se_compat_sys_x86_clone arch/x86/ia32/sys_ia32.c:236 [inline] __ia32_compat_sys_x86_clone+0xbc/0x140 arch/x86/ia32/sys_ia32.c:236 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 11973: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:457 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 __cache_free mm/slab.c:3494 [inline] kmem_cache_free+0x86/0x260 mm/slab.c:3754 ptlock_free+0x38/0x42 mm/memory.c:4586 pgtable_page_dtor include/linux/mm.h:1991 [inline] ___pte_free_tlb+0x1e/0x160 arch/x86/mm/pgtable.c:64 __pte_free_tlb arch/x86/include/asm/pgalloc.h:73 [inline] free_pte_range mm/memory.c:198 [inline] free_pmd_range mm/memory.c:216 [inline] free_pud_range mm/memory.c:250 [inline] free_p4d_range mm/memory.c:284 [inline] free_pgd_range+0x8e2/0xed0 mm/memory.c:364 free_pgtables+0x236/0x2f0 mm/memory.c:396 exit_mmap+0x2d1/0x530 mm/mmap.c:3141 __mmput kernel/fork.c:1047 [inline] mmput+0x15f/0x4c0 kernel/fork.c:1068 exit_mm kernel/exit.c:545 [inline] do_exit+0x838/0x2fd0 kernel/exit.c:862 do_group_exit+0x135/0x370 kernel/exit.c:979 get_signal+0x399/0x1d50 kernel/signal.c:2575 do_signal+0x87/0x1940 arch/x86/kernel/signal.c:816 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:341 [inline] do_fast_syscall_32+0xa9d/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff8880983684d0 which belongs to the cache page->ptl of size 56 The buggy address is located 12 bytes inside of 56-byte region [ffff8880983684d0, ffff888098368508) The buggy address belongs to the page: page:ffffea000260da00 count:1 mapcount:0 mapping:ffff88812c3eb0c0 index:0xffff8880983681b8 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0001850608 ffffea00027ed5c8 ffff88812c3eb0c0 raw: ffff8880983681b8 ffff888098368000 000000010000002d 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888098368380: fb fb fb fb fb fc fc fc fc fb fb fb fb fb fb fb ffff888098368400: fc fc fc fc fb fb fb fb fb fb fb fc fc fc fc 00 >ffff888098368480: 00 00 00 00 00 00 fc fc fc fc fb fb fb fb fb fb ^ ffff888098368500: fb fc fc fc fc 00 00 00 00 00 00 00 fc fc fc fc ffff888098368580: fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb ==================================================================