================================================================== BUG: KASAN: slab-out-of-bounds in __swab64p include/uapi/linux/swab.h:192 [inline] BUG: KASAN: slab-out-of-bounds in __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:74 [inline] BUG: KASAN: slab-out-of-bounds in is_tx_ready include/net/tls.h:354 [inline] BUG: KASAN: slab-out-of-bounds in tls_write_space+0x29d/0x2d0 net/tls/tls_main.c:236 Read of size 8 at addr ffff8801bfe340b0 by task udevd/3284 CPU: 1 PID: 3284 Comm: udevd Not tainted 4.19.0-rc4+ #228 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __swab64p include/uapi/linux/swab.h:192 [inline] __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:74 [inline] is_tx_ready include/net/tls.h:354 [inline] tls_write_space+0x29d/0x2d0 net/tls/tls_main.c:236 tcp_new_space net/ipv4/tcp_input.c:5154 [inline] tcp_check_space+0x53f/0x920 net/ipv4/tcp_input.c:5165 tcp_data_snd_check net/ipv4/tcp_input.c:5175 [inline] tcp_rcv_established+0xde8/0x2120 net/ipv4/tcp_input.c:5656 tcp_v6_do_rcv+0x4b3/0x13c0 net/ipv6/tcp_ipv6.c:1326 tcp_v6_rcv+0x2f7a/0x38a0 net/ipv6/tcp_ipv6.c:1555 ip6_input_finish+0x3fc/0x1aa0 net/ipv6/ip6_input.c:384 NF_HOOK include/linux/netfilter.h:287 [inline] ip6_input+0xe9/0x600 net/ipv6/ip6_input.c:427 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x17a/0x330 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:287 [inline] ipv6_rcv+0x113/0x640 net/ipv6/ip6_input.c:272 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4894 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5004 process_backlog+0x217/0x760 net/core/dev.c:5808 napi_poll net/core/dev.c:6228 [inline] net_rx_action+0x7c5/0x1950 net/core/dev.c:6294 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x760 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:864 RIP: 0010:check_kcov_mode kernel/kcov.c:67 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x1a/0x50 kernel/kcov.c:101 Code: 89 54 10 f0 4a 89 4c d8 20 4c 89 08 5d c3 66 90 55 48 89 e5 65 48 8b 04 25 40 ee 01 00 65 8b 15 6c 19 83 7e 81 e2 00 01 1f 00 <48> 8b 75 08 75 2b 8b 90 d0 12 00 00 83 fa 02 75 20 48 8b 88 d8 12 RSP: 0018:ffff8801c2f8f7a8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff8801c2f80200 RBX: 0000000000000000 RCX: ffffffff81b4574d RDX: 0000000000000000 RSI: ffffffff81b456af RDI: ffff8801c2f605a0 RBP: ffff8801c2f8f7a8 R08: ffff8801c2f80200 R09: ffffed00385cc45e R10: ffffed00385cc45e R11: ffff8801c2e622f3 R12: ffff8801c2f60588 R13: ffff8801c2f609a8 R14: ffff8801c2f60778 R15: 00007f14ef2e3000 vma_compute_subtree_gap+0x160/0x240 mm/mmap.c:296 browse_rb mm/mmap.c:326 [inline] validate_mm+0x361/0x630 mm/mmap.c:392 vma_link+0x116/0x180 mm/mmap.c:631 mmap_region+0x1337/0x1cd0 mm/mmap.c:1785 do_mmap+0xa10/0x1220 mm/mmap.c:1535 do_mmap_pgoff include/linux/mm.h:2298 [inline] vm_mmap_pgoff+0x213/0x2c0 mm/util.c:357 ksys_mmap_pgoff+0xf1/0x660 mm/mmap.c:1585 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f14ef7dfd0a Code: b8 ff ff ff ff e9 fa fe ff ff 48 63 fb b8 03 00 00 00 0f 05 b8 ff ff ff ff e9 e6 fe ff ff 90 90 49 89 ca b8 09 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fe c0 2a 00 31 d2 48 29 c2 64 RSP: 002b:00007ffc85332d28 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000001cec170 RCX: 00007f14ef7dfd0a RDX: 0000000000000003 RSI: 0000000000001000 RDI: 0000000000000000 RBP: 0000000000001000 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000022 R11: 0000000000000246 R12: 000000000000000a R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffc853332c0 Allocated by task 11059: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc_node+0x144/0x730 mm/slab.c:3644 alloc_task_struct_node kernel/fork.c:157 [inline] dup_task_struct kernel/fork.c:802 [inline] copy_process+0x1ff4/0x8780 kernel/fork.c:1707 _do_fork+0x1cb/0x11d0 kernel/fork.c:2166 __do_sys_clone kernel/fork.c:2273 [inline] __se_sys_clone kernel/fork.c:2267 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2267 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3756 free_task_struct kernel/fork.c:162 [inline] free_task+0x16e/0x1f0 kernel/fork.c:416 __put_task_struct+0x2e6/0x620 kernel/fork.c:689 put_task_struct include/linux/sched/task.h:96 [inline] delayed_put_task_struct+0x2ff/0x4c0 kernel/exit.c:181 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2576 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2880 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2847 [inline] rcu_process_callbacks+0xf23/0x2670 kernel/rcu/tree.c:2864 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801bfe34600 which belongs to the cache task_struct(17:syz4) of size 6080 The buggy address is located 1360 bytes to the left of 6080-byte region [ffff8801bfe34600, ffff8801bfe35dc0) The buggy address belongs to the page: page:ffffea0006ff8d00 count:1 mapcount:0 mapping:ffff8801cd5d4080 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea00075fa788 ffffea0007085108 ffff8801cd5d4080 raw: 0000000000000000 ffff8801bfe34600 0000000100000001 ffff8801a1d4c100 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801a1d4c100 Memory state around the buggy address: ffff8801bfe33f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801bfe34000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801bfe34080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801bfe34100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801bfe34180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================