From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796044075; b=msvLdY3zEqfRCFp+0GRoFCn/iU5ipNRXi6U46jo74Cukm76npcJkNX/QCGbb/f6e4qaF F9w95TsDNpW57ZBGkHeogvkIA11Tz0l1AZf/DIoZaLMdwPznswAStL85fSTCoDLnD0KrF IADxHUEi7+UYDh5UsQ3WnsY337lFlmmECHGba3Af301H/djP6gEgyVhkmv8vCOBWZi5Pk UbMV/b4wgU7SdQ/EhqpaDuaxe9J3F5CzqSyk9ljpUHM52Q5b5wWUYb/oqbvRuepXqo3fX 12x+r9OWCj0G1/PsvnjgVQ94YJ6Xlusg5w3fs4muZ+I1GDqplbmEY+Ixudkfx80lPhw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796044075; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=wrQAlN+sE+pf9KLusUdFEBEAhbKhhP5hZ2+W/fghZK0=; b=TIwcYAqK7e+5994bJllJef/6fzYk17cDV67/QpZW9NA8n2kLievZqnYlmNP3VT3uGKNN F7HioYC6ua9Ey/s1DjuXNAwPXhvNOmzJwFBH7Tjn/oWC2QU+gdkOvFtm/sIgNZoNl+iS8 7zlENTeynL/ucA+diAmonD4U1Rzq/Bj1tE0y75JT+YLEBvd32oAWhvLGRfy63xDjcfP/T mbJ84Gv6+7LZjm8CWI0dJlkgzM7ZjZrSprFLKG9CVbTV6Se3zuv3APp5c1kmWitkYBYP5 4BkNLWl1ET9Cs5ByEblBFh+2JGKUc2hMyayIbBukJhDudZ0qmoRL4NuM7uhZU/3LQ9Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jL7LsnYo; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91334606A334 for ; Mon, 30 Nov 2026 13:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jL7LsnYo Received: by smtp.kernel.org (Postfix) with ESMTPSA id B89AC1F000C1; Mon, 30 Nov 2026 13:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796044074; bh=wrQAlN+sE+pf9KLusUdFEBEAhbKhhP5hZ2+W/fghZK0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=jL7LsnYouJOJ7/1QTP1xz8RJblNJLqmzECZEW0307usQOaND2c/YX30THl3u6ua8o 6kF20LglpFLgYBv19ZQhb/uSgn8EdABN6OJHR0f8IVrOdEyWJ42INExPFEWYA9OrVk VUzu156YsXJpO/ZoxhKoOgQhOg54atcTS0pUp0dYFZBDHbFGnQA17rFwHgKnHTdnZz gGoweOFgDFKIS8DeZMfzpgxgFCCR+Dea0FFH2Z2qqTFV5sRyOLnuqw/F3ksv/NwdrI 3r+p96+L3FsAtbOu7j92Uq/9qaiW36ZnjDoc6PBwkK3pDAKz09tZ54d8bnx9Pd+lK7 bFhdJVQM4Hjkw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] usb: gadget: udc: handle NULL request in tracepoint Reply-To: sashiko-reviews@lists.linux.dev To: "Liu Junyuan" <2058432396@qq.com> Cc: linux-usb@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 13:07:54 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > usb_ep_alloc_request() passes a NULL request to > trace_usb_ep_alloc_request() when ep->ops->alloc_request() fails. > The udc_log_req tracepoint assumes req is non-NULL and dereferences > req->length, causing a NULL pointer dereference. >=20 > Make the tracepoint handle req =3D=3D NULL so allocation failures can sti= ll > be recorded safely. >=20 > Reported-by: syzbot+2a7ce560c30c4ca3bc22@syzkaller.appspotmail.com > Closes: https://syzkaller.appspot.com/bug?extid=3D2a7ce560c30c4ca3bc22 > Fixes: 5e42d710a108 ("usb: gadget: add tracepoints to the gadget API") > Signed-off-by: Liu Junyuan <2058432396@qq.com> Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/tencent_A0751604ACA= D2E3AE803C9A9CE8FB0E1BC06@qq.com?part=3D1