netlink: 20 bytes leftover after parsing attributes in process `syz-executor6'. IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: slab-out-of-bounds in __list_add_valid+0x8f/0xb0 lib/list_debug.c:26 Read of size 8 at addr ffff8801ad4561d8 by task syz-executor3/3280 CPU: 1 PID: 3280 Comm: syz-executor3 Not tainted 4.17.0-rc7+ #78 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+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __list_add_valid+0x8f/0xb0 lib/list_debug.c:26 __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] cma_listen_on_all drivers/infiniband/core/cma.c:2301 [inline] rdma_listen+0x6cd/0x980 drivers/infiniband/core/cma.c:3327 ucma_listen+0x19c/0x250 drivers/infiniband/core/ucma.c:1096 ucma_write+0x328/0x410 drivers/infiniband/core/ucma.c:1676 __vfs_write+0x10b/0x960 fs/read_write.c:485 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 IPVS: ftp: loaded support on port[0] = 21 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455a09 RSP: 002b:00007faf212c9c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007faf212ca6d4 RCX: 0000000000455a09 RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000014 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000007b5 R14: 0000000000700998 R15: 0000000000000000 Allocated by task 3292: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc_node+0x144/0x780 mm/slab.c:3644 alloc_task_struct_node kernel/fork.c:157 [inline] dup_task_struct kernel/fork.c:771 [inline] copy_process.part.38+0x169d/0x6e70 kernel/fork.c:1632 copy_process kernel/fork.c:1607 [inline] _do_fork+0x291/0x12a0 kernel/fork.c:2088 __do_sys_clone kernel/fork.c:2195 [inline] __se_sys_clone kernel/fork.c:2189 [inline] __x64_sys_clone+0xbf/0x150 kernel/fork.c:2189 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4556: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 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+0x86/0x2d0 mm/slab.c:3756 free_task_struct kernel/fork.c:162 [inline] free_task+0x166/0x1d0 kernel/fork.c:390 __put_task_struct+0x2d2/0x600 kernel/fork.c:658 put_task_struct include/linux/sched/task.h:96 [inline] delayed_put_task_struct+0x367/0x470 kernel/exit.c:180 __rcu_reclaim kernel/rcu/rcu.h:178 [inline] rcu_do_batch kernel/rcu/tree.c:2675 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2930 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2897 [inline] rcu_process_callbacks+0x941/0x15f0 kernel/rcu/tree.c:2914 __do_softirq+0x2e0/0xaf5 kernel/softirq.c:285 The buggy address belongs to the object at ffff8801ad4564c0 which belongs to the cache task_struct(55:syz4) of size 5952 The buggy address is located 744 bytes to the left of 5952-byte region [ffff8801ad4564c0, ffff8801ad457c00) The buggy address belongs to the page: page:ffffea0006b51580 count:1 mapcount:0 mapping:ffff8801ad4564c0 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801ad4564c0 0000000000000000 0000000100000001 raw: ffffea0006c02c20 ffffea000626b4a0 ffff8801ac246b40 ffff8801b0cd45c0 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801b0cd45c0 Memory state around the buggy address: ffff8801ad456080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801ad456100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801ad456180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ IPVS: ftp: loaded support on port[0] = 21 ffff8801ad456200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801ad456280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================