IPVS: set_ctl: invalid protocol: 143 172.20.20.12:20004 ================================================================== BUG: KASAN: use-after-free in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: use-after-free in refcount_read include/linux/refcount.h:43 [inline] BUG: KASAN: use-after-free in check_net include/net/net_namespace.h:254 [inline] BUG: KASAN: use-after-free in rds_destroy_pending net/rds/rds.h:951 [inline] BUG: KASAN: use-after-free in rds_cong_queue_updates+0x209/0x4d0 net/rds/cong.c:229 Read of size 4 at addr ffff88806ef2c144 by task kworker/u4:9/25459 CPU: 1 PID: 25459 Comm: kworker/u4:9 Not tainted 5.0.0+ #97 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_send_worker Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x123/0x190 mm/kasan/generic.c:191 kasan_check_read+0x11/0x20 mm/kasan/common.c:100 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] refcount_read include/linux/refcount.h:43 [inline] check_net include/net/net_namespace.h:254 [inline] rds_destroy_pending net/rds/rds.h:951 [inline] rds_cong_queue_updates+0x209/0x4d0 net/rds/cong.c:229 rds_recv_rcvbuf_delta.part.0+0x34f/0x3f0 net/rds/recv.c:118 rds_recv_rcvbuf_delta net/rds/recv.c:379 [inline] rds_recv_incoming+0x789/0x11f0 net/rds/recv.c:379 rds_loop_xmit+0xf3/0x2a0 net/rds/loop.c:96 rds_send_xmit+0x1113/0x2560 net/rds/send.c:355 rds_send_worker+0x90/0x290 net/rds/threads.c:200 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 27353: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:509 __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x15c/0x740 mm/slab.c:3725 kmalloc include/linux/slab.h:550 [inline] sock_kmalloc net/core/sock.c:2121 [inline] sock_kmalloc+0xc6/0x120 net/core/sock.c:2112 af_alg_alloc_areq+0x24/0x1e0 crypto/af_alg.c:1089 _aead_recvmsg crypto/algif_aead.c:157 [inline] aead_recvmsg+0x45d/0x1ab0 crypto/algif_aead.c:334 sock_recvmsg_nosec net/socket.c:817 [inline] sock_recvmsg net/socket.c:824 [inline] sock_recvmsg+0xd0/0x110 net/socket.c:820 sock_read_iter+0x299/0x3b0 net/socket.c:901 call_read_iter include/linux/fs.h:1863 [inline] do_iter_readv_writev+0x700/0x8e0 fs/read_write.c:678 do_iter_read+0x27c/0x660 fs/read_write.c:919 vfs_readv+0xf0/0x160 fs/read_write.c:983 do_readv+0xf6/0x290 fs/read_write.c:1016 __do_sys_readv fs/read_write.c:1103 [inline] __se_sys_readv fs/read_write.c:1100 [inline] __x64_sys_readv+0x75/0xb0 fs/read_write.c:1100 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 27353: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:457 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 __cache_free mm/slab.c:3494 [inline] kfree+0xcf/0x230 mm/slab.c:3811 __sock_kfree_s net/core/sock.c:2142 [inline] sock_kfree_s+0x29/0x70 net/core/sock.c:2148 af_alg_free_resources+0x6af/0x830 crypto/af_alg.c:1025 _aead_recvmsg crypto/algif_aead.c:321 [inline] aead_recvmsg+0x99b/0x1ab0 crypto/algif_aead.c:334 sock_recvmsg_nosec net/socket.c:817 [inline] sock_recvmsg net/socket.c:824 [inline] sock_recvmsg+0xd0/0x110 net/socket.c:820 sock_read_iter+0x299/0x3b0 net/socket.c:901 call_read_iter include/linux/fs.h:1863 [inline] do_iter_readv_writev+0x700/0x8e0 fs/read_write.c:678 do_iter_read+0x27c/0x660 fs/read_write.c:919 vfs_readv+0xf0/0x160 fs/read_write.c:983 do_readv+0xf6/0x290 fs/read_write.c:1016 __do_sys_readv fs/read_write.c:1103 [inline] __se_sys_readv fs/read_write.c:1100 [inline] __x64_sys_readv+0x75/0xb0 fs/read_write.c:1100 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88806ef2c040 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 260 bytes inside of 1024-byte region [ffff88806ef2c040, ffff88806ef2c440) The buggy address belongs to the page: page:ffffea0001bbcb00 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00023bf488 ffffea0002273888 ffff88812c3f0ac0 raw: 0000000000000000 ffff88806ef2c040 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806ef2c000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff88806ef2c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806ef2c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806ef2c180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806ef2c200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================