From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (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 37DAB353A79 for ; Mon, 3 Aug 2026 03:24:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785727450; cv=none; b=e4jTMSWMzwmJ8DnACsXPOW9PXyeNKhDtvdLanvn1BKErlo/L8YDRHrj5os3+QMxLVC8cS99qiq2tpEJz9Qi2EX2B9Uc2jp/n58V4a85zpGWEQR6llG1dJ9j844P1OfmxLLq3xcXD4uLhA61DaLdgyxzUXTqaNodZeglGxLOYoY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785727450; c=relaxed/simple; bh=ViPskGi7bGyaFrg6jhBXkMwFhKC0EoBiAiFhiNPO56M=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Zc2gPZttzqdDY/BtlVzXdTFTBncavWmkLyb/iyuEFVegaodmm1fpBt10SLMOAAv8chKhBsazsPEiowRu8ta1JHQZ173UEHfTsVH+7fRHiSOXCBcyK3kgAF9GLsjAQJ5kRJArhX2uAAU90Kt8rhPYrapsPJTupbtAP+P1Q7PH1QI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-497e582f42fso4090694b6e.3 for ; Sun, 02 Aug 2026 20:24:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785727447; x=1786332247; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=aL5NhPYIMGcIG7d6y1HbGXNBeERXFSPlzsDb+fTq8gk=; b=gASmCObXW0PoOY8rBvp4P8iMsbbPeTOGeCdTMI9Ls2QzBocMt9t7Wi8Ecm5wsPSRHp EadRpnwlskVlCda2T717q2NWWdabtCP5sM/PnKrjy+8sbT1pto3uoHj4iy8Ze16nld9r etlghDD9rig5PLOYuBJ3pVBr+MTWyTigeN45Lju/94qk0FT6J9xsPKVWqfwYcX5rSvUn DcRMYrM2gHGlBtCkvqIw32toreZDdrWK65lKSOHoi7IXB6BNUOd0/4TrdvH41xd6mkKT /fEm2gKvEeozo2n5Fakn9LlqKl1lFiVBpVUAonnl9vaWsP7ehZ+VjJrRml9jZ6/JxW35 ZLDg== X-Gm-Message-State: AOJu0YzGP89PAroCFQNvCEQqfOPvN1S0mYeVMND/6cpqeCD+NL8hVrL+ UV8jDx8tDhfhulY/KAzY6bVjXWHKQRfhyLkB8DEBYqgTYqBw0ZBEJzZBmfzKmHbeW2y9YjwZOTU gGUunhxjaIqdescHmvB/UN1x2JoNsrmu0ii1mmfRRiUO2S2xi5JbsXmpN7FU= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:4f11:b0:4a4:82b:2a36 with SMTP id 5614622812f47-4af5e29cc78mr13882865b6e.11.1785727447027; Sun, 02 Aug 2026 20:24:07 -0700 (PDT) Date: Sun, 02 Aug 2026 20:24:07 -0700 In-Reply-To: <6a6cd7f6.2d659fcc.1d46f5.0199.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a7009d7.6ce73036.24301b.0022.GAE@google.com> Subject: Forwarded: [PATCH] tracing: uprobes: Fix invalid free on failed alloc_trace_uprobe From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [PATCH] tracing: uprobes: Fix invalid free on failed alloc_trace_uprobe Author: ryan.mehri1@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 11028ab62899 Signed-off-by: Ryan Mehri --- kernel/trace/trace_uprobe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index c274346853d1..c9ec9283d1ab 100644 --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c @@ -688,6 +688,7 @@ static int __trace_uprobe_create(int argc, const char **argv) tu = alloc_trace_uprobe(group, event, argc, is_return); if (IS_ERR(tu)) { ret = PTR_ERR(tu); + tu = NULL; /* This must return -ENOMEM otherwise there is a bug */ WARN_ON_ONCE(ret != -ENOMEM); return ret; -- 2.55.0