From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender-of-o57.zoho.eu (sender-of-o57.zoho.eu [136.143.169.57]) (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 8C4A3370D6F for ; Thu, 2 Apr 2026 08:04:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.57 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775117051; cv=pass; b=iL//qGyGgmQx94xbt96/dYJiMFeDnqhg2pmzLGuWBV4tjQLEWBRZVpxZlXEe2nWRXu/Mr234jkURxpnZXuKfpPJ7HxDb4bzotJ//5c81THqyka1XwXdZhsYGqqkC79bKpSFK/GsI2cnUZxvwGWE5oUrmlEps3IBXu+OwfUvaVF4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775117051; c=relaxed/simple; bh=pSGPUl4ddeg3nwS3RkfmpNr7w0XvAMVlN4hQsJVArYs=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=INWq0u9toKT9toM3RpwZB3QpvF7ZBDFV6kT/uEOEda4a6w+ZR+u9Z9b7sk3jEHVdlLvgLWVhG8tnqYYVk965tE6+htJREvR6KsJU9RMyeOQPzXEfrfgWCpXPqlzy+RjvPx4AInljy14vOLY7LyTVckuBZV4Ofgyw7IeVrSXy4yo= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=RXfVvWx4; arc=pass smtp.client-ip=136.143.169.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="RXfVvWx4" ARC-Seal: i=1; a=rsa-sha256; t=1775117020; cv=none; d=zohomail.eu; s=zohoarc; b=MJ96ER0lmjE6zF2+3uqd1IT8AHiyY48HzSh6R9cNa/r3FmAnTtIKTenEw4fQ6IHzptthaAEfh/PCPaemNh7ICYn/YvJ+xt0YmpHyE5g3i9/aFFRbAMINTPAQuJ0ZphXreiqj79qsJsNtZWh3svbWkllrmo9QdWEqMMRGO/V5r2o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1775117020; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=pSGPUl4ddeg3nwS3RkfmpNr7w0XvAMVlN4hQsJVArYs=; b=NFmcOAgD33pgghPeQUlN60Y0OdHO/RBuF1H0ZLtOoNrlRuHdMtuGJaCvX+/0zCUMn4wnUGoIX0v/iH8Fn/0XIV5kNPyLUXiaMEgPxhufL+0N/ipWhUeo7PgYvwa7sz7GScu+rX94+KFFQkdLzxkvay6KhO0zdOOvZ8Zijyr6Y2U= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1775117020; s=zmail; d=objecting.org; i=objecting@objecting.org; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=pSGPUl4ddeg3nwS3RkfmpNr7w0XvAMVlN4hQsJVArYs=; b=RXfVvWx460ebwssZdFRm02HSfO75I/9gH+cbm8xdEnjhngZn7epChUWOmrLG3jVX COmnWK3qX0MzsGVhdzz4ig6MA9Ee/QCoUaH/kupWxtTpMv1qPiV41TLhjPM9Er2ywsY /fbs0heHgVel/uSd/xK8ncQSLuUw8PAV0zTWVwrA= Received: from mail.zoho.com by mx.zoho.eu with SMTP id 1775117020605323.8995206141461; Thu, 2 Apr 2026 10:03:40 +0200 (CEST) Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 1775117019609482.29984618085916; Thu, 2 Apr 2026 10:03:39 +0200 (CEST) Date: Thu, 02 Apr 2026 09:03:39 +0100 From: Josh Law To: Cc: , , , , , , , Message-ID: <19d4d3829d9.10557d55141342.1846923713255605996@objecting.org> In-Reply-To: References: <20260330193440.74268-1-objecting@objecting.org> <20260330193440.74268-2-objecting@objecting.org> <2f824be3-7b30-41c6-b517-de1086624171@kernel.org> <20260331104708.6dc812ca@gandalf.local.home> Subject: Re: [PATCH v2 1/2] lib/vsprintf: always advance args in bstr_printf() pointer path Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Normal User-Agent: Zoho Mail X-Mailer: Zoho Mail ---- On Thu, 02 Apr 2026 04:47:45 +0100 visitorckw@gmail.com wrote ---- > Hi Steven, > > On Tue, Mar 31, 2026 at 10:47:08AM -0400, Steven Rostedt wrote: > > On Tue, 31 Mar 2026 09:26:46 +0200 > > Krzysztof Kozlowski wrote: > > > > > On 30/03/2026 21:34, Josh Law wrote: > > > > When the output buffer is full (str >= end), bstr_printf() skips > > > > advancing the args pointer past the pre-rendered pointer string in > > > > bin_buf. This causes all subsequent format specifiers to read from > > > > the wrong position, corrupting the rest of the output. > > > > > > > > Always compute the string length and advance args regardless of > > > > whether there is space to copy into the output buffer. > > > > > > > > Signed-off-by: Josh Law > > > > > > > NAK > > > > > > Questionably origin (multiple identities used), questionable content. > > > > Can you expand further on this complaint? > > > You can check out the related discussion in this email thread [1]. It's > mainly about a recent controversy regarding AI-generated kernel > contributions. > > [1]: > https://lore.kernel.org/lkml/cbd0aafa-bd45-4f4d-a2dd-440473657dba@lucifer.local/[https://lore.kernel.org/lkml/cbd0aafa-bd45-4f4d-a2dd-440473657dba@lucifer.local/] > > Regards, > Kuan-Wei Hello, he is aware of that thread, it has been resolved as of now.