IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: slab-out-of-bounds in tcindex_set_parms+0x17fd/0x1a00 net/sched/cls_tcindex.c:455 Write of size 16 at addr ffff8880a1f218b8 by task syz-executor556/9615 CPU: 1 PID: 9615 Comm: syz-executor556 Not tainted 5.6.0-rc3-next-20200228-syzkaller #0 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+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x315 mm/kasan/report.c:374 __kasan_report.cold+0x1a/0x32 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:618 tcindex_set_parms+0x17fd/0x1a00 net/sched/cls_tcindex.c:455 tcindex_change+0x203/0x2e0 net/sched/cls_tcindex.c:518 tc_new_tfilter+0xa59/0x20b0 net/sched/cls_api.c:2103 rtnetlink_rcv_msg+0x810/0xad0 net/core/rtnetlink.c:5431 netlink_rcv_skb+0x15a/0x410 net/netlink/af_netlink.c:2478 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x6b9/0x7d0 net/socket.c:2343 ___sys_sendmsg+0x100/0x170 net/socket.c:2397 __sys_sendmsg+0xec/0x1b0 net/socket.c:2430 do_syscall_64+0xf6/0x790 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440e79 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 7b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffee1348588 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000004a2650 RCX: 0000000000440e79 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007ffee1348590 R08: 0000000120080522 R09: 0000000120080522 R10: 0000000120080522 R11: 0000000000000246 R12: 00000000004a2650 R13: 0000000000402410 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 1: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:492 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:465 kmem_cache_alloc_node_trace+0x161/0x790 mm/slab.c:3595 kmalloc_node include/linux/slab.h:573 [inline] kzalloc_node include/linux/slab.h:680 [inline] blk_mq_init_tags+0x6a/0x2b0 block/blk-mq-tag.c:466 blk_mq_alloc_rq_map+0x81/0x200 block/blk-mq.c:2125 blk_mq_sched_alloc_tags block/blk-mq-sched.c:467 [inline] blk_mq_init_sched+0x20a/0x740 block/blk-mq-sched.c:515 elevator_init_mq+0x1f1/0x410 block/elevator.c:691 __device_add_disk+0x97c/0x1150 block/genhd.c:705 add_disk include/linux/genhd.h:441 [inline] loop_add+0x60b/0x8a0 drivers/block/loop.c:2246 loop_init+0x1ef/0x24a drivers/block/loop.c:2457 do_one_initcall+0x10a/0x7d0 init/main.c:1155 do_initcall_level init/main.c:1228 [inline] do_initcalls init/main.c:1244 [inline] do_basic_setup init/main.c:1264 [inline] kernel_init_freeable+0x501/0x5ae init/main.c:1449 kernel_init+0xd/0x1bb init/main.c:1355 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a1f21800 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 184 bytes inside of 192-byte region [ffff8880a1f21800, ffff8880a1f218c0) The buggy address belongs to the page: page:ffffea000287c840 refcount:1 mapcount:0 mapping:00000000ee2ecaf3 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002888488 ffffea0002861308 ffff8880aa000000 raw: 0000000000000000 ffff8880a1f21000 0000000100000010 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a1f21780: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a1f21800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a1f21880: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff8880a1f21900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a1f21980: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================