================================================================== 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 ffff8801c81d02b0 by task syz-executor1/17518 CPU: 1 PID: 17518 Comm: syz-executor1 Not tainted 4.19.0-rc4+ #227 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 do_tcp_setsockopt.isra.40+0x1371/0x2770 net/ipv4/tcp.c:3041 tcp_setsockopt+0xc1/0xe0 net/ipv4/tcp.c:3066 tls_setsockopt+0xaa/0x770 net/tls/tls_main.c:531 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3038 __sys_setsockopt+0x1ba/0x3c0 net/socket.c:1902 __do_sys_setsockopt net/socket.c:1913 [inline] __se_sys_setsockopt net/socket.c:1910 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1910 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457679 Code: 1d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f00e42f1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 bridge0: port 2(bridge_slave_1) entered blocking state RAX: ffffffffffffffda RBX: 00007f00e42f26d4 RCX: 0000000000457679 bridge0: port 2(bridge_slave_1) entered forwarding state RDX: 0000000000000019 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 000000000072bf00 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020000040 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004d6090 R14: 00000000004c3f0c R15: 0000000000000000 Allocated by task 16872: bridge0: port 1(bridge_slave_0) entered blocking state 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+0x12e/0x730 mm/slab.c:3554 kmem_cache_zalloc include/linux/slab.h:697 [inline] __alloc_file+0xa8/0x470 fs/file_table.c:100 bridge0: port 1(bridge_slave_0) entered forwarding state alloc_empty_file+0x72/0x170 fs/file_table.c:150 path_openat+0x170/0x5160 fs/namei.c:3523 do_filp_open+0x255/0x380 fs/namei.c:3564 do_sys_open+0x568/0x700 fs/open.c:1063 __do_sys_openat fs/open.c:1090 [inline] __se_sys_openat fs/open.c:1084 [inline] __x64_sys_openat+0x9d/0x100 fs/open.c:1084 device bridge0 entered promiscuous mode do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 16873: 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 file_free_rcu+0x91/0xd0 fs/file_table.c:49 __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 IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready __do_softirq+0x30b/0xad8 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801c81d0080 which belongs to the cache filp(17:syz5) of size 456 The buggy address is located 104 bytes to the right of 456-byte region [ffff8801c81d0080, ffff8801c81d0248) The buggy address belongs to the page: page:ffffea0007207400 count:1 mapcount:0 mapping:ffff8801b861dcc0 index:0xffff8801c81d0800 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0007451e88 ffffea0007099a88 ffff8801b861dcc0 raw: ffff8801c81d0800 ffff8801c81d0080 0000000100000004 ffff8801c5568040 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801c5568040 Memory state around the buggy address: ffff8801c81d0180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c81d0200: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc >ffff8801c81d0280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801c81d0300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c81d0380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================