================================================================== 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 ffff8801c397fff0 by task syz-executor2/5577 CPU: 0 PID: 5577 Comm: syz-executor2 Not tainted 4.19.0-rc5-next-20180924+ #78 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+0x1d3/0x2c4 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+0x253/0x910 net/ipv4/tcp_input.c:5165 tcp_data_snd_check net/ipv4/tcp_input.c:5175 [inline] tcp_rcv_established+0xa45/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+0xe4/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+0x10e/0x640 net/ipv6/ip6_input.c:272 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4894 __netif_receive_skb+0x27/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/0xb03 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x750 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:804 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:761 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xaf/0xd0 kernel/locking/spinlock.c:184 Code: d0 36 72 89 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 28 48 83 3d b8 8c b0 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb ad e8 0c d5 3e f9 eb bb 0f 0b 0f 0b e8 7a 32 ff RSP: 0018:ffff880197617a10 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 0000000000000282 RCX: 0000000000000000 RDX: 1ffffffff12e46da RSI: 0000000000000001 RDI: 0000000000000282 RBP: ffff880197617a20 R08: ffff88019760a400 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8b776608 R13: 00000000000cd280 R14: ffff88019760a400 R15: ffff88018a53af18 __debug_object_init+0x57d/0x1290 lib/debugobjects.c:419 debug_object_init_on_stack+0x19/0x20 lib/debugobjects.c:447 hrtimer_init_on_stack kernel/time/hrtimer.c:435 [inline] hrtimer_nanosleep+0x16b/0x620 kernel/time/hrtimer.c:1740 __do_sys_nanosleep kernel/time/hrtimer.c:1776 [inline] __se_sys_nanosleep kernel/time/hrtimer.c:1763 [inline] __x64_sys_nanosleep+0x1e7/0x280 kernel/time/hrtimer.c:1763 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x483170 Code: 00 00 48 c7 c0 d4 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb be 66 0f 1f 44 00 00 83 3d 01 33 5c 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 f4 f8 f8 ff c3 48 83 ec 08 e8 ba 70 fd ff RSP: 002b:00007ffc7da29338 EFLAGS: 00000246 ORIG_RAX: 0000000000000023 RAX: ffffffffffffffda RBX: 00000000000518fb RCX: 0000000000483170 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffc7da29340 RBP: 000000000000035e R08: 0000000000000001 R09: 000000000222a940 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000b R13: 000000000005186b R14: 00000000000000a6 R15: badc0ffeebadface Allocated by task 7088: 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 kmem_cache_alloc_trace+0x152/0x750 mm/slab.c:3620 kmalloc include/linux/slab.h:546 [inline] kzalloc include/linux/slab.h:741 [inline] alloc_pipe_info+0x164/0x5d0 fs/pipe.c:633 get_pipe_inode fs/pipe.c:712 [inline] create_pipe_files+0x91/0x720 fs/pipe.c:744 __do_pipe_flags+0x45/0x250 fs/pipe.c:781 do_pipe2+0x9d/0x310 fs/pipe.c:829 __do_sys_pipe2 fs/pipe.c:847 [inline] __se_sys_pipe2 fs/pipe.c:845 [inline] __x64_sys_pipe2+0x54/0x80 fs/pipe.c:845 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7088: 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] kfree+0xcf/0x230 mm/slab.c:3813 free_pipe_info+0x253/0x300 fs/pipe.c:684 put_pipe_info+0xd0/0xf0 fs/pipe.c:556 pipe_release+0x1de/0x270 fs/pipe.c:577 __fput+0x3bc/0xa70 fs/file_table.c:279 ____fput+0x15/0x20 fs/file_table.c:312 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801c397fc80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 368 bytes to the right of 512-byte region [ffff8801c397fc80, ffff8801c397fe80) The buggy address belongs to the page: page:ffffea00070e5fc0 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea00065be948 ffffea00070a00c8 ffff8801da800940 raw: 0000000000000000 ffff8801c397f000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c397fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801c397ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801c397ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801c3980000: fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb ffff8801c3980080: fb fb fc fc fc fc fb fb fb fb fb fb fb fc fc fc ==================================================================