================================================================== 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 ffff8801cb86dff0 by task udevd/3283 CPU: 1 PID: 3283 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: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. 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:__read_once_size include/linux/compiler.h:188 [inline] RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:31 [inline] RIP: 0010:atomic_read include/asm-generic/atomic-instrumented.h:22 [inline] RIP: 0010:refcount_sub_and_test_checked+0xda/0x310 lib/refcount.c:179 Code: 03 38 d0 7c 08 84 d2 0f 85 2f 02 00 00 4d 8d 6e c0 41 8b 1c 24 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e f9 01 00 00 49 8d 4e 80 49 c1 ed 03 41 89 RSP: 0018:ffff8801c2cbfb50 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000004 RBX: 0000000000000001 RCX: ffffffff838f4abd RDX: 1ffff10038597f7a RSI: 0000000000000004 RDI: ffff8801b784ce44 RBP: ffff8801c2cbfc38 R08: ffffed0036f099c9 R09: ffffed0036f099c8 R10: ffffed0036f099c8 R11: ffff8801b784ce47 R12: ffff8801b784ce44 R13: ffff8801c2cbfbd0 R14: ffff8801c2cbfc10 R15: ffff8801b784cea8 refcount_dec_and_test_checked lib/refcount.c:212 [inline] refcount_dec_and_lock+0x61/0x90 lib/refcount.c:343 fsnotify_put_mark+0xe5/0xab0 fs/notify/mark.c:231 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:785 [inline] __se_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:757 [inline] __x64_sys_inotify_rm_watch+0x129/0x1a0 fs/notify/inotify/inotify_user.c:757 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f0559202a97 Code: 73 01 c3 48 8b 0d a1 83 2a 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb ea 90 90 90 90 90 90 90 90 90 90 90 b8 ff 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 71 83 2a 00 31 d2 48 29 c2 64 RSP: 002b:00007fff126f22e8 EFLAGS: 00000293 ORIG_RAX: 00000000000000ff RAX: ffffffffffffffda RBX: 00000000014ffb90 RCX: 00007f0559202a97 RDX: 0000000000000007 RSI: 00000000000000aa RDI: 0000000000000006 RBP: 00000000014d5250 R08: 00007f0559aee7a0 R09: 0000000000000000 R10: 1999999999999999 R11: 0000000000000293 R12: 00000000000000aa R13: 0000000000625500 R14: 00000000014d5250 R15: 000000000000000b Allocated by task 7552: 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 __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x14e/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:518 [inline] load_elf_phdrs+0x176/0x260 fs/binfmt_elf.c:441 load_elf_binary+0x32b/0x5620 fs/binfmt_elf.c:737 search_binary_handler+0x17d/0x570 fs/exec.c:1653 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.33+0x162f/0x2540 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve+0x33/0x40 fs/exec.c:1883 call_usermodehelper_exec_async+0x6cf/0xa80 kernel/umh.c:107 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 Freed by task 7552: 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 load_elf_binary+0x25b4/0x5620 fs/binfmt_elf.c:1118 search_binary_handler+0x17d/0x570 fs/exec.c:1653 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.33+0x162f/0x2540 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve+0x33/0x40 fs/exec.c:1883 call_usermodehelper_exec_async+0x6cf/0xa80 kernel/umh.c:107 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 The buggy address belongs to the object at ffff8801cb86dc80 which belongs to the cache kmalloc-512 of size 512 sctp: [Deprecated]: syz-executor1 (pid 7599) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead The buggy address is located 368 bytes to the right of 512-byte region [ffff8801cb86dc80, ffff8801cb86de80) The buggy address belongs to the page: page:ffffea00072e1b40 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0006de1748 ffffea0007223e48 ffff8801da800940 kobject: 'loop0' (00000000137c49fd): kobject_uevent_env raw: 0000000000000000 ffff8801cb86d000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cb86de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801cb86df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801cb86df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801cb86e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc kobject: 'loop0' (00000000137c49fd): fill_kobj_path: path = '/devices/virtual/block/loop0' ffff8801cb86e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================