================================================================== 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 ffff888056271764 by task kworker/1:5/15274 CPU: 1 PID: 15274 Comm: kworker/1:5 Not tainted 5.5.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: rcu_gp process_srcu 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:639 __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] vti_tunnel_xmit+0x277/0x17a0 net/ipv4/ip_vti.c:269 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [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:1527 neigh_output include/net/neighbour.h:510 [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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:752 [inline] RIP: 0010:queue_delayed_work_on+0x12a/0x210 kernel/workqueue.c:1673 Code: 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 d8 00 00 00 48 83 3d 0e f3 45 08 00 0f 84 9a 00 00 00 e8 bb b3 27 00 48 89 df 57 9d <0f> 1f 44 00 00 e8 ac b3 27 00 44 89 f8 48 83 c4 10 5b 41 5c 41 5d RSP: 0018:ffffc900025d7be0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff888092efe340 RBX: 0000000000000293 RCX: 0000000000000006 RDX: 0000000000000000 RSI: ffffffff814d41d5 RDI: 0000000000000293 RBP: ffffc900025d7c18 R08: 1ffffffff165e7a1 R09: fffffbfff165e7a2 R10: fffffbfff165e7a1 R11: ffffffff8b2f3d0f R12: 0000000000000200 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 queue_delayed_work include/linux/workqueue.h:509 [inline] srcu_reschedule kernel/rcu/srcutree.c:1225 [inline] srcu_reschedule+0xd7/0x130 kernel/rcu/srcutree.c:1208 process_srcu+0x125/0xe10 kernel/rcu/srcutree.c:1238 process_one_work+0x9af/0x1740 kernel/workqueue.c:2264 worker_thread+0x98/0xe40 kernel/workqueue.c:2410 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff888056271000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 868 bytes to the right of 1024-byte region [ffff888056271000, ffff888056271400) The buggy address belongs to the page: page:ffffea0001589c40 refcount:1 mapcount:0 mapping:ffff8880aa400c40 index:0x0 raw: 00fffe0000000200 ffffea0001589c08 ffff8880aa401848 ffff8880aa400c40 raw: 0000000000000000 ffff888056271000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888056271600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888056271680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888056271700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888056271780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888056271800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================