IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: use-after-free in list_empty include/linux/list.h:282 [inline] BUG: KASAN: use-after-free in waitqueue_active include/linux/wait.h:127 [inline] BUG: KASAN: use-after-free in wq_has_sleeper include/linux/wait.h:161 [inline] BUG: KASAN: use-after-free in skwq_has_sleeper include/net/sock.h:2143 [inline] BUG: KASAN: use-after-free in sock_def_write_space+0x1c4/0x350 net/core/sock.c:2926 Read of size 8 at addr ffff8880890ff080 by task syz-executor778/6806 CPU: 1 PID: 6806 Comm: syz-executor778 Not tainted 5.8.0-rc6-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+0x1f0/0x31e lib/dump_stack.c:118 print_address_description+0x66/0x5a0 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report+0x132/0x1d0 mm/kasan/report.c:530 list_empty include/linux/list.h:282 [inline] waitqueue_active include/linux/wait.h:127 [inline] wq_has_sleeper include/linux/wait.h:161 [inline] skwq_has_sleeper include/net/sock.h:2143 [inline] sock_def_write_space+0x1c4/0x350 net/core/sock.c:2926 sock_wfree+0x11f/0x200 net/core/sock.c:2060 skb_release_head_state+0xfb/0x210 net/core/skbuff.c:651 skb_release_all net/core/skbuff.c:662 [inline] __kfree_skb+0x22/0x1c0 net/core/skbuff.c:678 skb_queue_purge+0x131/0x1c0 net/core/skbuff.c:3077 qrtr_tun_release+0x43/0x50 net/qrtr/tun.c:118 __fput+0x2f0/0x750 fs/file_table.c:281 task_work_run+0x137/0x1c0 kernel/task_work.c:135 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:239 [inline] __prepare_exit_to_usermode+0x14c/0x1e0 arch/x86/entry/common.c:269 do_syscall_64+0x7f/0xe0 arch/x86/entry/common.c:393 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4057b1 Code: Bad RIP value. RSP: 002b:00007fff9ea78020 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00000000004057b1 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000000000006 RBP: 00007fff9ea78040 R08: 0000000120080522 R09: 0000000120080522 R10: 00007fff9ea78040 R11: 0000000000000293 R12: 0000000000000006 R13: 00000000006dbc4c R14: 000000000000002d R15: 0000000000000064 Allocated by task 6827: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x103/0x140 mm/kasan/common.c:494 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x1f5/0x2d0 mm/slab.c:3484 sock_alloc_inode+0x17/0xc0 net/socket.c:253 alloc_inode fs/inode.c:232 [inline] new_inode_pseudo+0x64/0x240 fs/inode.c:928 sock_alloc net/socket.c:573 [inline] __sock_create+0x12b/0x8c0 net/socket.c:1392 sock_create net/socket.c:1479 [inline] __sys_socket+0xde/0x2d0 net/socket.c:1521 __do_sys_socket net/socket.c:1530 [inline] __se_sys_socket net/socket.c:1528 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1528 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 0: save_stack mm/kasan/common.c:48 [inline] set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0x114/0x170 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7e/0xf0 mm/slab.c:3694 rcu_do_batch kernel/rcu/tree.c:2414 [inline] rcu_core+0x816/0x1120 kernel/rcu/tree.c:2641 __do_softirq+0x268/0x80c kernel/softirq.c:292 The buggy address belongs to the object at ffff8880890ff000 which belongs to the cache sock_inode_cache of size 1216 The buggy address is located 128 bytes inside of 1216-byte region [ffff8880890ff000, ffff8880890ff4c0) The buggy address belongs to the page: page:ffffea0002243fc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880890ffffd flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002244ec8 ffffea0002243ec8 ffff8880a9bcf8c0 raw: ffff8880890ffffd ffff8880890ff000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880890fef80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff8880890ff000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880890ff080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880890ff100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880890ff180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================