From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C73751B6527; Fri, 8 May 2026 05:18:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778217485; cv=none; b=dxj8JhnVJMALKVWr+/eHgkuIc7hL6b88r2M0/qY0CY6XnzsVWpUxM/8Ru6mHkWYRFL/U3HtJNdRzbKX2lYhy3rX7hcH7dOLiye3UctckeEglXQzvJQnCD7XXALakjJuiQ4bE/FdvzBmX0UoGyJaiwGMO0eJIXzoJciIdJ8o4iAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778217485; c=relaxed/simple; bh=psh94nB79rB5aviUtkBuKsPAPqf36rcORNeUwOy7HqQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bUQZ3Gb+H4e7fq5CpGW+/d7hZPBbND/uptxkAsUZ9/EUylAS9oEphCiOEJ52bzy1but8G7kzrB/VRi2Gnaf9zAcMOlUlnug5Ou+VXwwr4V2Qk0j7H36qXDBumVmB6vJT1MSnvulJfE/6zZgoBg8WtIv+lmUwivbvu80qUN7ycjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JV6C9VMG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JV6C9VMG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D12A5C2BCB4; Fri, 8 May 2026 05:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778217485; bh=psh94nB79rB5aviUtkBuKsPAPqf36rcORNeUwOy7HqQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JV6C9VMG9Isqa1BqG+6zOBzNmOBnBsAjccIamHBjP8i8p1af39DTooYzO9nVMu2oJ NgtBpPv9XOSnwMh7RVyPzmqHgDzP9YDVOalnViqBLoQo/mf2q2pWHMhMbhLlCPFdQ1 3ynzJ3Senf5qWW4p6Ce4foSxun8zS9c5Jax89Anc= Date: Fri, 8 May 2026 07:18:02 +0200 From: Greg KH To: Jiazi Li Cc: Kees Cook , Andy Shevchenko , Ping-Ke Shih , Julia Lawall , Nicolas Palix , linux-hardening@vger.kernel.org, linux-wireless@vger.kernel.org, "mingzhu.wang" Subject: Re: [PATCH v3 1/3] lib/string_choices: Add str_alloc_free() helper Message-ID: <2026050848-engraving-imposing-09fc@gregkh> References: <9663db399276de3ce91a77b8a8be8220132e74a8.1778051552.git.jqqlijiazi@gmail.com> Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9663db399276de3ce91a77b8a8be8220132e74a8.1778051552.git.jqqlijiazi@gmail.com> On Thu, May 07, 2026 at 07:03:22PM +0800, Jiazi Li wrote: > Add str_alloc_free() helper to return "alloc" or "free" > string literal depending on the boolean argument. Also add the > inversed variant str_free_alloc(). > > Tested-by: mingzhu.wang Needs a name, not an email alias. thanks, greg k-h