8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 ================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xe7/0xf3 lib/list_debug.c:54 Read of size 8 at addr ffff8881c13ee1e8 by task syz-executor2/6482 CPU: 0 PID: 6482 Comm: syz-executor2 Not tainted 5.5.0-rc4-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+0x12f/0x187 lib/dump_stack.c:118 print_address_description.constprop.8+0x3b/0x60 mm/kasan/report.c:374 __kasan_report.cold.11+0x1b/0x39 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:639 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __list_del_entry_valid+0xe7/0xf3 lib/list_debug.c:54 __list_del_entry include/linux/list.h:131 [inline] list_del include/linux/list.h:139 [inline] cma_cancel_listens drivers/infiniband/core/cma.c:1723 [inline] cma_cancel_operation+0x2f7/0x9c0 drivers/infiniband/core/cma.c:1751 rdma_destroy_id+0x8d/0x9f0 drivers/infiniband/core/cma.c:1815 ucma_close+0x101/0x2d0 drivers/infiniband/core/ucma.c:1762 __fput+0x25a/0x780 fs/file_table.c:280 ____fput+0x9/0x10 fs/file_table.c:313 task_work_run+0x10e/0x190 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x99c/0x2ce0 kernel/exit.c:797 do_group_exit+0xf4/0x2e0 kernel/exit.c:895 get_signal+0x368/0x1d00 kernel/signal.c:2734 do_signal+0x87/0x16c0 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x114/0x210 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x50b/0x600 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <90> 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00007f03fcf4dce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000072bf78 RCX: 0000000000455b59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000072bf78 RBP: 000000000072bf78 R08: 0000000000000000 R09: 000000000072bf50 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc2d949a7f R14: 00007f03fcf4e9c0 R15: 0000000000000001 Allocated by task 6461: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc.constprop.7+0xc1/0xd0 mm/kasan/common.c:513 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:527 kmem_cache_alloc_trace+0x15b/0x760 mm/slab.c:3551 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:670 [inline] __rdma_create_id+0x5d/0x510 drivers/infiniband/core/cma.c:855 ucma_create_id+0x199/0x550 drivers/infiniband/core/ucma.c:501 ucma_write+0x206/0x2e0 drivers/infiniband/core/ucma.c:1684 __vfs_write+0x61/0x110 fs/read_write.c:494 vfs_write+0x191/0x4c0 fs/read_write.c:558 ksys_write+0x197/0x220 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:620 do_syscall_64+0xd0/0x600 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6461: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:335 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/common.c:474 kasan_slab_free+0xe/0x10 mm/kasan/common.c:483 __cache_free mm/slab.c:3426 [inline] kfree+0xfa/0x290 mm/slab.c:3757 rdma_destroy_id+0x60e/0x9f0 drivers/infiniband/core/cma.c:1850 ucma_close+0x101/0x2d0 drivers/infiniband/core/ucma.c:1762 __fput+0x25a/0x780 fs/file_table.c:280 ____fput+0x9/0x10 fs/file_table.c:313 task_work_run+0x10e/0x190 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x99c/0x2ce0 kernel/exit.c:797 do_group_exit+0xf4/0x2e0 kernel/exit.c:895 get_signal+0x368/0x1d00 kernel/signal.c:2734 do_signal+0x87/0x16c0 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x114/0x210 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x50b/0x600 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8881c13ee000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 488 bytes inside of 2048-byte region [ffff8881c13ee000, ffff8881c13ee800) The buggy address belongs to the page: page:ffffea000704fb80 refcount:1 mapcount:0 mapping:ffff8881da000e00 index:0x0 raw: 02fffc0000000200 ffffea0007370688 ffffea0007070648 ffff8881da000e00 raw: 0000000000000000 ffff8881c13ee000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c13ee080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c13ee100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881c13ee180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881c13ee200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c13ee280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================