================================================================== BUG: KASAN: slab-out-of-bounds in atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] BUG: KASAN: slab-out-of-bounds in atomic_fetch_add_unless include/linux/atomic-fallback.h:1086 [inline] BUG: KASAN: slab-out-of-bounds in atomic_add_unless include/linux/atomic-fallback.h:1111 [inline] BUG: KASAN: slab-out-of-bounds in atomic_inc_not_zero include/linux/atomic-fallback.h:1127 [inline] BUG: KASAN: slab-out-of-bounds in dst_hold_safe include/net/dst.h:308 [inline] BUG: KASAN: slab-out-of-bounds in ip6_hold_safe+0xb3/0x3a0 net/ipv6/route.c:1023 Read of size 4 at addr ffff88809153116c by task ksoftirqd/1/16 CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.1.0-rc2+ #145 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:102 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] atomic_fetch_add_unless include/linux/atomic-fallback.h:1086 [inline] atomic_add_unless include/linux/atomic-fallback.h:1111 [inline] atomic_inc_not_zero include/linux/atomic-fallback.h:1127 [inline] dst_hold_safe include/net/dst.h:308 [inline] ip6_hold_safe+0xb3/0x3a0 net/ipv6/route.c:1023 rt6_get_pcpu_route net/ipv6/route.c:1245 [inline] ip6_pol_route+0x348/0x1040 net/ipv6/route.c:1906 ip6_pol_route_output+0x54/0x70 net/ipv6/route.c:2082 fib6_rule_lookup+0x128/0x560 net/ipv6/fib6_rules.c:118 ip6_route_output_flags+0x2c4/0x350 net/ipv6/route.c:2111 ip6_route_output include/net/ip6_route.h:88 [inline] ip6_dst_lookup_tail+0xd10/0x1b30 net/ipv6/ip6_output.c:964 ip6_dst_lookup_flow+0xa8/0x220 net/ipv6/ip6_output.c:1092 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+0x249f/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/0x53e0 net/sctp/sm_sideeffect.c:1188 sctp_endpoint_bh_rcv+0x451/0x950 net/sctp/endpointola.c:458 sctp_inq_push+0x1ea/0x290 net/sctp/inqueue.c:95 sctp_rcv+0x2850/0x3600 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:5085 process_backlog+0x206/0x750 net/core/dev.c:5925 napi_poll net/core/dev.c:6348 [inline] net_rx_action+0x4fa/0x1070 net/core/dev.c:6414 __do_softirq+0x266/0x95a kernel/softirq.c:293 run_ksoftirqd kernel/softirq.c:655 [inline] run_ksoftirqd+0x8e/0x110 kernel/softirq.c:647 smpboot_thread_fn+0x6ab/0xa10 kernel/smpboot.c:164 kthread+0x357/0x430 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 16: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_kmalloc mm/kasan/common.c:497 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:470 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:505 slab_post_alloc_hook mm/slab.h:436 [inline] slab_alloc mm/slab.c:3392 [inline] kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3554 skb_ext_alloc net/core/skbuff.c:5604 [inline] skb_ext_add+0x4a2/0x640 net/core/skbuff.c:5675 nf_bridge_alloc include/net/netfilter/br_netfilter.h:9 [inline] br_nf_pre_routing_ipv6+0x10a/0x810 net/bridge/br_netfilter_ipv6.c:228 br_nf_pre_routing+0xf2e/0x14b0 net/bridge/br_netfilter_hooks.c:482 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0xbf/0x1f0 net/netfilter/core.c:511 nf_hook include/linux/netfilter.h:244 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] br_handle_frame+0x95b/0x1450 net/bridge/br_input.c:305 __netif_receive_skb_core+0xa96/0x3040 net/core/dev.c:4902 __netif_receive_skb_one_core+0xa8/0x1a0 net/core/dev.c:4971 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5085 process_backlog+0x206/0x750 net/core/dev.c:5925 napi_poll net/core/dev.c:6348 [inline] net_rx_action+0x4fa/0x1070 net/core/dev.c:6414 __do_softirq+0x266/0x95a kernel/softirq.c:293 Freed by task 16: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:459 kasan_slab_free+0xe/0x10 mm/kasan/common.c:467 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x260 mm/slab.c:3764 __skb_ext_put+0xd9/0x210 net/core/skbuff.c:5736 skb_ext_put include/linux/skbuff.h:4016 [inline] skb_release_head_state+0x1db/0x260 net/core/skbuff.c:623 skb_release_all+0x16/0x60 net/core/skbuff.c:629 __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb net/core/skbuff.c:663 [inline] kfree_skb+0xe8/0x390 net/core/skbuff.c:657 ip6_mc_input+0x9ee/0xf30 net/ipv6/ip6_input.c:540 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x1e7/0x320 net/ipv6/ip6_input.c:76 ip_sabotage_in net/bridge/br_netfilter_hooks.c:837 [inline] ip_sabotage_in+0x214/0x280 net/bridge/br_netfilter_hooks.c:828 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0xbf/0x1f0 net/netfilter/core.c:511 nf_hook include/linux/netfilter.h:244 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] ipv6_rcv+0x25d/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:5085 netif_receive_skb_internal+0x117/0x660 net/core/dev.c:5188 netif_receive_skb+0x6e/0x5a0 net/core/dev.c:5263 br_netif_receive_skb+0x107/0x200 net/bridge/br_input.c:34 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] br_pass_frame_up+0x354/0x730 net/bridge/br_input.c:69 br_handle_frame_finish+0x6e0/0x14c0 net/bridge/br_input.c:175 br_nf_hook_thresh+0x2ec/0x380 net/bridge/br_netfilter_hooks.c:1006 br_nf_pre_routing_finish_ipv6+0x700/0xdc0 net/bridge/br_netfilter_ipv6.c:210 NF_HOOK include/linux/netfilter.h:289 [inline] br_nf_pre_routing_ipv6+0x437/0x810 net/bridge/br_netfilter_ipv6.c:240 br_nf_pre_routing+0xf2e/0x14b0 net/bridge/br_netfilter_hooks.c:482 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0xbf/0x1f0 net/netfilter/core.c:511 nf_hook include/linux/netfilter.h:244 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] br_handle_frame+0x95b/0x1450 net/bridge/br_input.c:305 __netif_receive_skb_core+0xa96/0x3040 net/core/dev.c:4902 __netif_receive_skb_one_core+0xa8/0x1a0 net/core/dev.c:4971 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5085 process_backlog+0x206/0x750 net/core/dev.c:5925 napi_poll net/core/dev.c:6348 [inline] net_rx_action+0x4fa/0x1070 net/core/dev.c:6414 __do_softirq+0x266/0x95a kernel/softirq.c:293 The buggy address belongs to the object at ffff8880915310c0 which belongs to the cache skbuff_ext_cache of size 128 The buggy address is located 44 bytes to the right of 128-byte region [ffff8880915310c0, ffff888091531140) The buggy address belongs to the page: page:ffffea0002454c40 count:1 mapcount:0 mapping:ffff8880aa3a9c80 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00018e85c8 ffffea000230e048 ffff8880aa3a9c80 raw: 0000000000000000 ffff888091531000 0000000100000015 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888091531000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888091531080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff888091531100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff888091531180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888091531200: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================