================================================================== BUG: KASAN: slab-out-of-bounds in ____bpf_clone_redirect net/core/filter.c:1768 [inline] BUG: KASAN: slab-out-of-bounds in bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 Read of size 8 at addr ffff8880a49ddf50 by task syz-executor.5/11548 CPU: 0 PID: 11548 Comm: syz-executor.5 Not tainted 4.14.160-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 ____bpf_clone_redirect net/core/filter.c:1768 [inline] bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 bpf_prog_393feebdb962a0b0+0x9a3/0x1000 Allocated by task 1: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kmem_cache_alloc_trace+0x152/0x790 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] tty_register_device_attr+0x19f/0x6f0 drivers/tty/tty_io.c:2977 tty_register_device drivers/tty/tty_io.c:2925 [inline] tty_register_driver+0x3df/0x7d0 drivers/tty/tty_io.c:3196 legacy_pty_init drivers/tty/pty.c:602 [inline] pty_init+0x6af/0xe81 drivers/tty/pty.c:964 do_one_initcall+0x9e/0x21e init/main.c:824 do_initcall_level init/main.c:890 [inline] do_initcalls init/main.c:898 [inline] do_basic_setup init/main.c:916 [inline] kernel_init_freeable+0x46e/0x532 init/main.c:1073 kernel_init+0x12/0x162 init/main.c:998 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a49dd580 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 464 bytes to the right of 2048-byte region [ffff8880a49dd580, ffff8880a49ddd80) The buggy address belongs to the page: page:ffffea0002927700 count:1 mapcount:0 mapping:ffff8880a49dc480 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff8880a49dc480 0000000000000000 0000000100000003 raw: ffffea0002926020 ffffea0002927b20 ffff8880aa800c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a49dde00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a49dde80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a49ddf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a49ddf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a49de000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================