IPVS: set_ctl: invalid protocol: 0 255.255.255.255:20002 IPVS: set_ctl: invalid protocol: 0 255.255.255.255:20002 ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x36d9/0x4c20 kernel/locking/lockdep.c:3218 Read of size 8 at addr ffff8881d1e2cce0 by task kworker/u4:5/16539 CPU: 1 PID: 16539 Comm: kworker/u4:5 Not tainted 4.20.0-rc2+ #184 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kkcmd kcm_tx_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __lock_acquire+0x36d9/0x4c20 kernel/locking/lockdep.c:3218 lock_acquire+0x1ed/0x520 kernel/locking/lockdep.c:3844 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] __lock_sock+0x203/0x350 net/core/sock.c:2253 lock_sock_nested+0xfe/0x120 net/core/sock.c:2774 lock_sock include/net/sock.h:1492 [inline] kcm_tx_work+0x24/0x120 net/kcm/kcmsock.c:726 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 5177: 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 sk_prot_alloc+0x69/0x2e0 net/core/sock.c:1463 sk_alloc+0x10d/0x1690 net/core/sock.c:1523 kcm_create+0x352/0xc00 net/kcm/kcmsock.c:1962 __sock_create+0x536/0x930 net/socket.c:1277 sock_create net/socket.c:1317 [inline] __sys_socket+0x106/0x260 net/socket.c:1347 __do_sys_socket net/socket.c:1356 [inline] __se_sys_socket net/socket.c:1354 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1354 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 5119: 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:3760 sk_prot_free net/core/sock.c:1504 [inline] __sk_destruct+0x728/0xa80 net/core/sock.c:1588 sk_destruct+0x78/0x90 net/core/sock.c:1596 __sk_free+0xcf/0x300 net/core/sock.c:1607 sk_free+0x42/0x50 net/core/sock.c:1618 sock_put include/net/sock.h:1693 [inline] kcm_done+0x569/0x19f0 net/kcm/kcmsock.c:1823 kcm_release+0x4b0/0x900 net/kcm/kcmsock.c:1892 __sock_release+0xd7/0x250 net/socket.c:579 sock_close+0x19/0x20 net/socket.c:1141 __fput+0x385/0xa30 fs/file_table.c:278 ____fput+0x15/0x20 fs/file_table.c:309 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8881d1e2cc40 which belongs to the cache KCM(81:syz4) of size 1384 The buggy address is located 160 bytes inside of 1384-byte region [ffff8881d1e2cc40, ffff8881d1e2d1a8) The buggy address belongs to the page: page:ffffea0007478b00 count:1 mapcount:0 mapping:ffff8881b28e7380 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea00064fde08 ffff8881caf98748 ffff8881b28e7380 raw: 0000000000000000 ffff8881d1e2c040 0000000100000005 ffff8881bc54a600 kobject: 'loop2' (00000000543f0148): fill_kobj_path: path = '/devices/virtual/block/loop2' page dumped because: kasan: bad access detected page->mem_cgroup:ffff8881bc54a600 Memory state around the buggy address: ffff8881d1e2cb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d1e2cc00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8881d1e2cc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d1e2cd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d1e2cd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================