===================================================== BUG: KMSAN: use-after-free in __write_once_size include/linux/compiler.h:235 [inline] BUG: KMSAN: use-after-free in pm_runtime_mark_last_busy include/linux/pm_runtime.h:107 [inline] BUG: KMSAN: use-after-free in usb_mark_last_busy include/linux/usb.h:773 [inline] BUG: KMSAN: use-after-free in usb_autopm_put_interface+0xf2/0x120 drivers/usb/core/driver.c:1632 CPU: 0 PID: 8654 Comm: syz-executor.2 Not tainted 5.4.0-rc3+ #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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x14a/0x2f0 mm/kmsan/kmsan_report.c:109 __msan_warning+0x73/0xf0 mm/kmsan/kmsan_instr.c:245 __write_once_size include/linux/compiler.h:235 [inline] pm_runtime_mark_last_busy include/linux/pm_runtime.h:107 [inline] usb_mark_last_busy include/linux/usb.h:773 [inline] usb_autopm_put_interface+0xf2/0x120 drivers/usb/core/driver.c:1632 usblp_release+0x182/0x3d0 drivers/usb/class/usblp.c:467 __fput+0x4c9/0xba0 fs/file_table.c:280 ____fput+0x37/0x40 fs/file_table.c:313 task_work_run+0x22e/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x39d/0x4d0 arch/x86/entry/common.c:194 syscall_return_slowpath+0x90/0x610 arch/x86/entry/common.c:274 do_syscall_64+0xdc/0x160 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x413741 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:0000000000a6fbf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000413741 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000001 R08: 000000006e8b811c R09: 000000006e8b8120 R10: 0000000000a6fcd0 R11: 0000000000000293 R12: 000000000075bf20 R13: 000000000011a304 R14: 0000000000762088 R15: 000000000075bf2c Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:150 [inline] kmsan_internal_poison_shadow+0x60/0x110 mm/kmsan/kmsan.c:133 kmsan_slab_free+0x8d/0x100 mm/kmsan/kmsan_hooks.c:121 slab_free_freelist_hook mm/slub.c:1473 [inline] slab_free mm/slub.c:3040 [inline] kfree+0x4c1/0x2e70 mm/slub.c:3990 skb_free_head net/core/skbuff.c:591 [inline] skb_release_data+0x7de/0x9d0 net/core/skbuff.c:611 skb_release_all net/core/skbuff.c:665 [inline] __kfree_skb+0x8a/0x210 net/core/skbuff.c:679 sk_wmem_free_skb include/net/sock.h:1478 [inline] tcp_rtx_queue_unlink_and_free+0x3b9/0x9f0 include/net/tcp.h:1801 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3161 [inline] tcp_ack+0x38d8/0x97b0 net/ipv4/tcp_input.c:3688 tcp_rcv_established+0x10a0/0x31f0 net/ipv4/tcp_input.c:5696 tcp_v4_do_rcv+0x684/0xd70 net/ipv4/tcp_ipv4.c:1561 sk_backlog_rcv include/net/sock.h:945 [inline] __release_sock+0x448/0x640 net/core/sock.c:2435 release_sock+0x99/0x2a0 net/core/sock.c:2951 sk_stream_wait_memory+0x8cc/0x1390 net/core/stream.c:145 tcp_sendmsg_locked+0x190a/0x6a00 net/ipv4/tcp.c:1393 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1434 inet_sendmsg+0x178/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg net/socket.c:657 [inline] __sys_sendto+0xae0/0xc70 net/socket.c:1952 __do_sys_sendto net/socket.c:1964 [inline] __se_sys_sendto+0x107/0x130 net/socket.c:1960 __x64_sys_sendto+0x6e/0x90 net/socket.c:1960 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 =====================================================