From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4889397E73 for ; Tue, 11 Aug 2026 22:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786487954; cv=none; b=pedfpC2LNiLtOjCJrDCy4ni8Y16iEwDnkkaWuu2tr5eFC4qQ0rMOGG2ulKmuI8z8orv6H2nQ2eUPmWbOIeiidxQ+CUPQu0Uz+tQbRx+/eefNoYg3eocpgna0O+isvwNcFT/bKHRIC6+Qfi81/4C+lTb9KA5ImOSvazi3b8bkjEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786487954; c=relaxed/simple; bh=kQ+fdYLDhgGWWrJs09YPGMYtOEZLeknZ+epQWvrMl0w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QdNSQTHcbG4iOvqhGmzHYSewNsblwrlh3TRKWUscOviR2NJaPhFcQt7AhLxaKkkmm83HjfSpSZ7f9WFHzZWEEgNxOCthfMwvJi6PUtxEhEE2EIal1TkiOCcZgJaSznxfNfRxPLK4Tlz5twh0ce+E5XLblhRVtMtxXxYKyPclN3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fsvbUPFK; arc=none smtp.client-ip=209.85.210.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fsvbUPFK" Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-7f18c0e03e3so251530a34.2 for ; Tue, 11 Aug 2026 15:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1786487951; x=1787092751; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ZYA0I95z6d9/WlICxAA3jTqC1JPj7QxjoWJUfGcNVY4=; b=fsvbUPFKlG9+4XYUvC17iRIEcyS8HVkXK1x6vLdSUTReBRqg4sXrwrDSUW9EI5drSI I1/yBQ6v5D7JBppoFBrryrPpi3V9kdO7tHZn5KYzzq5U4vLzThpYtJo/o3twRrBBhnk4 KZF5ZSGwphEhXwDJMGcCVf68SsDHGS5kemOys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786487951; x=1787092751; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ZYA0I95z6d9/WlICxAA3jTqC1JPj7QxjoWJUfGcNVY4=; b=ABKHhSCG4sklDGwofxRpvum0+g3A+7A6q8XJevyMmKHoKcslG/qH1GlCUUjBCkNZz3 1xDHtsqsH/2S0WBjT4vgbOBWegAWC+roeS49yWSCznnEkw5lkQ9oVBfQq6G+FODBg95t J6fUWQ6yxpnR5ZpEdhp79WeL7S17lgqXR6P7X4kWNjk6UD8Qj1rtambXH19HIiIgD4Lj o3rSqpQZvqDhh944S5LGZ1+24u0hBDRjdQ8/Ef9TLPJ1zkmATTik5nhfcEgQH67pM+nm uFopUKV2PoEoOgYmcpUxGU3uw3yp+Wd1C8QFe2oVO+r/ekZXlnN9d9Aw4EKx/HMDwsJY LfrA== X-Forwarded-Encrypted: i=1; AHgh+RrBQbnMtLGjJcbhbEKPU/nYo7+aJMRoQSNJcLWpRbQwR8hOfDhADERzFxI+yFjBThLjBM2qyQB3JpV8jYs=@vger.kernel.org X-Gm-Message-State: AOJu0Ywz6VWgCLX2vrN7naivDoyrWKOmPH0iINGSVPp619HfmifkgU5m vV/w9w8VC8PSo4nBI6538OLcwqS3mFNQRQFzS17sEGrncW4FFgnCqqUazOrfgYVOj3g= X-Gm-Gg: AR+sD13pQhMcmi/i+sTVVQ3MhOdRJOWTQhFpLH7MxnJoS7PSEJriOFxzcDf/L+1LcN3 UyjJP7i/DQv7m8HoiXedue9E9fSXdW/uPdHSNMbWhv3Be1xTkE1wF1RBjuxZpf1ahVbxDYsywn+ Lrgg5knM5uvf94z6M1ZVpgDy2atolpmsWb/1QG030Ysni52NaSxAgr9Wi+i+TlQomV9x6MR4zW6 YR9ZENf9gKPy0DpdhQg/N2pLnuEb3kzCiWQCBsqsKP3JHb6c+86sN8sVMfU+9I9XH+kAhPgDaOR 3zdetPNVmccJ3EfpqDlw6IOySx2Bl//a0DPXeqZkFX6vZgBi29rzZeXEnWtJv/UJZ2Y7UBO7HMH +IIikW0GyDT3PgOQE0x9Yzb/6OqmtdZzbd6OFzdEHuu4iW68G30OJvWm1zjF0/8BiuPIT1tHMSj Gxi+gF/Tm3Sr6HsCQ+ebCkODPw/2vLyCAKbc2t+/2jr0vzQQX7KaZ1jOH/pqxf57bsZ0TV0A== X-Received: by 2002:a05:6830:82ad:b0:7e6:f083:130e with SMTP id 46e09a7af769-7f3b791b0f2mr587825a34.4.1786487951697; Tue, 11 Aug 2026 15:39:11 -0700 (PDT) Received: from [192.168.1.128] ([38.15.57.99]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7f3b3475bfesm1063173a34.27.2026.08.11.15.39.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2026 15:39:11 -0700 (PDT) Message-ID: <246f34a4-e564-4f0a-911c-1f9f0b4ae1e9@linuxfoundation.org> Date: Tue, 11 Aug 2026 16:39:08 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] usbip: fix use-after-free in event_handler() To: Aleksandr Nogikh Cc: syzbot , syzkaller-bugs@googlegroups.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, Shuah Khan , Valentina Manea , Nobuo Iwata , i@zenithal.me, linux-kernel@vger.kernel.org, syzbot@lists.linux.dev, Shuah Khan References: <34d4ca1b-ce89-444f-bb02-245287edfad0@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/11/26 07:07, Aleksandr Nogikh wrote: > On Mon, Aug 10, 2026 at 9:33 PM Shuah Khan wrote: >> > < ... > >>> >>> During unbinding, we must wait for the scheduled removal event to >>> finish before we can safely free the device structures. From what I >>> see in the code, once we have reached wait_event_interruptible(), >>> there's no way to abort the process or somehow gracefully handle the >>> error. >>> >> >> Yes I agree with you on rewinding being hard. >> >> Care to explain the scope of this assist? >> >> Assisted-by: Gemini:gemini-3.5-flash Gemini:gemini-3.1-pro-preview syzbot > > It was generated by the syzbot's AI patch generation agent: > https://github.com/google/syzkaller/blob/master/docs/syzbot_ai_patches.md > > We manually review the patches it suggests and upstream those we > believe are fully correct. > As you are reviewing this generated code, did you look into scenarios where the driver to hang in wait_event()? thanks, -- Shuah