================================================================== BUG: KASAN: use-after-free in dev_put include/linux/netdevice.h:3982 [inline] BUG: KASAN: use-after-free in netdevice_event_work_handler+0x15b/0x1b0 drivers/infiniband/core/roce_gid_mgmt.c:630 Read of size 8 at addr ffff88802e788568 by task kworker/u4:8/431 CPU: 0 PID: 431 Comm: kworker/u4:8 Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: gid-cache-wq netdevice_event_work_handler Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0xae/0x4c8 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 dev_put include/linux/netdevice.h:3982 [inline] netdevice_event_work_handler+0x15b/0x1b0 drivers/infiniband/core/roce_gid_mgmt.c:630 process_one_work+0x868/0x15c0 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 The buggy address belongs to the page: page:0000000074947a5b refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x2e788 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea0001078a08 ffff88813fffb910 0000000000000000 raw: 0000000000000000 0000000000000002 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88802e788400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88802e788480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88802e788500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88802e788580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88802e788600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================