Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8DAD30C606; Wed, 11 Feb 2026 11:58:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770811109; cv=none; b=OeloPdDnBlVE2SF191yObnGuk5mqT2mdgvzeLyomIRndQfMHUXto0Nkws8MLv3FQoFAza4YhjCL+aDizUCHT5Fs6T3saxk7E8C+EAzqD8Yu7PE99QxChwNnraWGOXg0gEohVz4F72eDw328AhCcH25kznw46EzoKFqBCquWdFj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770811109; c=relaxed/simple; bh=zr3MiutzhWaZjG4hDTVgD0xZJccWstD8tcmqGo++ZpM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S7cBhlUi1d9C2FSlGmw41LGQMZfAYPegg5/hr8B4QYfoFuqwvGLgKptrQK7kLhtRnBRiDpp4NnuzSIqAx7CvitlB3BKPAVTwmqzRPl67DVl3PPR1kWIGOD/jseEeoezIEhktvv+1443EfVrUvx84umj832bJnaiJJfxykW4P+Hg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=DJn80o38; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=p57vAmPA; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DJn80o38"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="p57vAmPA" Date: Wed, 11 Feb 2026 12:58:25 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1770811107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=401OE8SAJcURYtUs2WuI0jXB1BL2uOQgKfCJza+V2mE=; b=DJn80o382/xqN2eyGM3D+jFIQMWpP43a1JACdOfNJeSkOjTYziG+HsVpBJJQkJbAqZaOiT MTtuQ4vbTvpWM1vqxELc1zgfrRaNxMJunOOLozgqTxGhlm5lwPJzW4LkHv5vSdKAdsVeh3 pMHKbSEwDcgNqk1LbgmQjpoQcxsn7kioBQtY/YsGfWdrMg0UNQnsuIatbETqMXzxYOXvnO k8Ef6MN5uTOHMlPnepc6EuY+tcNy8rfBp6iX95RiBFS4ckm2IeHpQVFqnkqas4oE62v4SW fU3qW6hvmTNVHg1E89+R+adFq6I5CxTUdP4qYhiNnOnrlM6EIQ3/FHiYrxi9wg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1770811107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=401OE8SAJcURYtUs2WuI0jXB1BL2uOQgKfCJza+V2mE=; b=p57vAmPAp83gMS8x5VUkXVCWGuo6Q17M+UAIpRXv0YYau23eYBT4wVT8id4ewF1gtn1VSk G0OeHsuyK+d/5RDA== From: Sebastian Andrzej Siewior To: Thomas Gleixner Cc: Andrii Nakryiko , Andrii Nakryiko , akpm@linux-foundation.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, bpf@vger.kernel.org, surenb@google.com, shakeel.butt@linux.dev, syzbot+4e70c8e0a2017b432f7a@syzkaller.appspotmail.com, syzbot+237b5b985b78c1da9600@syzkaller.appspotmail.com, Peter Zijlstra Subject: Re: [PATCH] procfs: Prevent double mmput() in do_procmap_query() Message-ID: <20260211115825.MLF4L4Jq@linutronix.de> References: <20260129215340.3742283-1-andrii@kernel.org> <87qzqsa1br.ffs@tglx> <87ikc49unc.ffs@tglx> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87ikc49unc.ffs@tglx> On 2026-02-10 22:05:27 [+0100], Thomas Gleixner wrote: > A recent fix moved the build ID evaluation past the mmput() of the success > path but kept the error goto unchanged, which ends up in doing another > quert_vma_teardown() and another mmput(). > > Change the goto so it jumps past the mmput() and only puts the file and > the buffer. > > Fixes: b5cbacd7f86f ("procfs: avoid fetching build ID while holding VMA lock") > Reported-by: syzbot+237b5b985b78c1da9600@syzkaller.appspotmail.com > Signed-off-by: Thomas Gleixner > Closes: https://lore.kernel.org/698aaf3c.050a0220.3b3015.0088.GAE@google.com/T/#u Reviewed-by: Sebastian Andrzej Siewior Sebastian