==================================================================
BUG: KASAN: slab-out-of-bounds in decode_session6 net/xfrm/xfrm_policy.c:3390 [inline]
BUG: KASAN: slab-out-of-bounds in __xfrm_decode_session+0x1cfb/0x2e90 net/xfrm/xfrm_policy.c:3482
Read of size 1 at addr ffff88807a419eb6 by task swapper/1/0
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.4.0-syzkaller #0
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+0x197/0x210 lib/dump_stack.c:118
print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374
__kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506
kasan_report+0x12/0x20 mm/kasan/common.c:638
__asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:132
decode_session6 net/xfrm/xfrm_policy.c:3390 [inline]
__xfrm_decode_session+0x1cfb/0x2e90 net/xfrm/xfrm_policy.c:3482
xfrm_decode_session include/net/xfrm.h:1137 [inline]
vti6_tnl_xmit+0x600/0x1c00 net/ipv6/ip6_vti.c:539
__netdev_start_xmit include/linux/netdevice.h:4442 [inline]
netdev_start_xmit include/linux/netdevice.h:4456 [inline]
xmit_one net/core/dev.c:3420 [inline]
dev_hard_start_xmit+0x1a3/0x9b0 net/core/dev.c:3436
sch_direct_xmit+0x372/0xd30 net/sched/sch_generic.c:313
qdisc_restart net/sched/sch_generic.c:376 [inline]
__qdisc_run+0x4bf/0x1770 net/sched/sch_generic.c:384
__dev_xmit_skb net/core/dev.c:3677 [inline]
__dev_queue_xmit+0x163f/0x35c0 net/core/dev.c:3982
dev_queue_xmit+0x18/0x20 net/core/dev.c:4046
neigh_direct_output+0x16/0x20 net/core/neighbour.c:1530
neigh_output include/net/neighbour.h:511 [inline]
ip6_finish_output2+0x109a/0x25c0 net/ipv6/ip6_output.c:116
__ip6_finish_output+0x444/0xaa0 net/ipv6/ip6_output.c:142
ip6_finish_output+0x38/0x1f0 net/ipv6/ip6_output.c:152
NF_HOOK_COND include/linux/netfilter.h:296 [inline]
ip6_output+0x25e/0x880 net/ipv6/ip6_output.c:175
dst_output include/net/dst.h:436 [inline]
NF_HOOK include/linux/netfilter.h:307 [inline]
ndisc_send_skb+0xf1f/0x1490 net/ipv6/ndisc.c:505
ndisc_send_rs+0x134/0x720 net/ipv6/ndisc.c:699
addrconf_rs_timer+0x30f/0x6e0 net/ipv6/addrconf.c:3879
call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404
expire_timers kernel/time/timer.c:1449 [inline]
__run_timers kernel/time/timer.c:1773 [inline]
__run_timers kernel/time/timer.c:1740 [inline]
run_timer_softirq+0x6c3/0x1790 kernel/time/timer.c:1786
__do_softirq+0x262/0x98c kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x19b/0x1e0 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1137
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: 48 7f f6 f9 eb 8a cc cc cc cc cc cc e9 07 00 00 00 0f 00 2d 34 8a 4c 00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 24 8a 4c 00 fb f4 cc 55 48 89 e5 41 57 41 56 41 55 41 54 53 e8 de 9a a6 f9 e8 49
RSP: 0018:ffffc90000d3fd68 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff12a66b6 RBX: ffff8880a9a08340 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff8880a9a08bd4
RBP: ffffc90000d3fd98 R08: ffff8880a9a08340 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffffff8a371e00 R14: 0000000000000000 R15: 0000000000000001
arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:690
default_idle_call+0x84/0xb0 kernel/sched/idle.c:94
cpuidle_idle_call kernel/sched/idle.c:154 [inline]
do_idle+0x3c8/0x6e0 kernel/sched/idle.c:269
cpu_startup_entry+0x1b/0x20 kernel/sched/idle.c:361
start_secondary+0x2f4/0x410 arch/x86/kernel/smpboot.c:264
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:242
Allocated by task 29151:
save_stack+0x23/0x90 mm/kasan/common.c:71
set_track mm/kasan/common.c:79 [inline]
__kasan_kmalloc mm/kasan/common.c:512 [inline]
__kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:485
kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:520
slab_post_alloc_hook mm/slab.h:584 [inline]
slab_alloc_node mm/slab.c:3263 [inline]
kmem_cache_alloc_node+0x138/0x740 mm/slab.c:3575
alloc_task_struct_node kernel/fork.c:169 [inline]
dup_task_struct kernel/fork.c:868 [inline]
copy_process+0x3be/0x7230 kernel/fork.c:1911
_do_fork+0x146/0x1090 kernel/fork.c:2421
__do_sys_clone kernel/fork.c:2576 [inline]
__se_sys_clone kernel/fork.c:2557 [inline]
__x64_sys_clone+0x19a/0x260 kernel/fork.c:2557
do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x49/0xbe
Freed by task 27607:
save_stack+0x23/0x90 mm/kasan/common.c:71
set_track mm/kasan/common.c:79 [inline]
kasan_set_free_info mm/kasan/common.c:334 [inline]
__kasan_slab_free+0x102/0x150 mm/kasan/common.c:473
kasan_slab_free+0xe/0x10 mm/kasan/common.c:482
__cache_free mm/slab.c:3426 [inline]
kmem_cache_free+0x86/0x320 mm/slab.c:3694
free_task_struct kernel/fork.c:174 [inline]
free_task+0xdd/0x120 kernel/fork.c:476
__delayed_free_task+0x19/0x20 kernel/fork.c:1805
__rcu_reclaim kernel/rcu/rcu.h:222 [inline]
rcu_do_batch kernel/rcu/tree.c:2183 [inline]
rcu_core+0x570/0x1540 kernel/rcu/tree.c:2408
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2417
__do_softirq+0x262/0x98c kernel/softirq.c:292
The buggy address belongs to the object at ffff88807a418480
which belongs to the cache task_struct(33:syz1) of size 6208
The buggy address is located 502 bytes to the right of
6208-byte region [ffff88807a418480, ffff88807a419cc0)
The buggy address belongs to the page:
page:ffffea0001e90600 refcount:1 mapcount:0 mapping:ffff888085816000 index:0x0 compound_mapcount: 0
raw: 00fffe0000010200 ffffea0001845588 ffffea000151bf88 ffff888085816000
raw: 0000000000000000 ffff88807a418480 0000000100000001 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88807a419d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88807a419e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88807a419e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88807a419f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88807a419f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================