IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: use-after-free in tcindex_set_parms+0x17fd/0x1a00 net/sched/cls_tcindex.c:455 Write of size 16 at addr ffff8880a0605930 by task syz-executor027/9778 CPU: 1 PID: 9778 Comm: syz-executor027 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:0x440fc9 Code: 26 02 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 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 1b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffce9890c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440fc9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007ffce9890c80 R08: 0000000120080522 R09: 0000000120080522 R10: 0000000120080522 R11: 0000000000000246 R12: 0000000000402470 R13: 0000000000402500 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 786: 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 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x161/0x7a0 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] bio_alloc_bioset+0x3cf/0x600 block/bio.c:443 bio_kmalloc include/linux/bio.h:405 [inline] bio_map_kern+0xb1/0x2f0 block/bio.c:1529 blk_rq_map_kern+0x215/0x490 block/blk-map.c:239 __scsi_execute+0x4a0/0x5d0 drivers/scsi/scsi_lib.c:265 scsi_execute_req include/scsi/scsi_device.h:455 [inline] scsi_probe_lun drivers/scsi/scsi_scan.c:593 [inline] scsi_probe_and_add_lun+0x5a3/0x34d0 drivers/scsi/scsi_scan.c:1087 __scsi_scan_target+0x280/0xed0 drivers/scsi/scsi_scan.c:1562 scsi_scan_channel.part.0+0x126/0x1a0 drivers/scsi/scsi_scan.c:1650 scsi_scan_channel drivers/scsi/scsi_scan.c:1677 [inline] scsi_scan_host_selected+0x30b/0x450 drivers/scsi/scsi_scan.c:1679 do_scsi_scan_host drivers/scsi/scsi_scan.c:1817 [inline] do_scsi_scan_host+0x1e8/0x260 drivers/scsi/scsi_scan.c:1807 do_scan_async+0x40/0x500 drivers/scsi/scsi_scan.c:1827 async_run_entry_fn+0x121/0x530 kernel/async.c:123 process_one_work+0x94b/0x1690 kernel/workqueue.c:2266 worker_thread+0x96/0xe20 kernel/workqueue.c:2412 kthread+0x357/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 0: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:314 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:453 __cache_free mm/slab.c:3426 [inline] kfree+0x109/0x2b0 mm/slab.c:3757 bio_free+0xfa/0x140 block/bio.c:261 bio_put+0xcd/0x100 block/bio.c:601 bio_endio+0x473/0x820 block/bio.c:1872 req_bio_endio block/blk-core.c:245 [inline] blk_update_request+0x3e1/0xdc0 block/blk-core.c:1468 scsi_end_request+0x80/0x7a0 drivers/scsi/scsi_lib.c:576 scsi_io_completion+0x1e7/0x1300 drivers/scsi/scsi_lib.c:960 scsi_softirq_done+0x31e/0x3b0 drivers/scsi/scsi_lib.c:1476 blk_done_softirq+0x2db/0x440 block/blk-softirq.c:37 __do_softirq+0x26c/0x99d kernel/softirq.c:292 The buggy address belongs to the object at ffff8880a0605900 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 48 bytes inside of 192-byte region [ffff8880a0605900, ffff8880a06059c0) The buggy address belongs to the page: page:ffffea0002818140 refcount:1 mapcount:0 mapping:00000000ded8dd1a index:0xffff8880a0605d00 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002815208 ffff8880aa001138 ffff8880aa000000 raw: ffff8880a0605d00 ffff8880a0605000 000000010000000b 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a0605800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a0605880: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a0605900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a0605980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880a0605a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================