From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F9FAC4167B for ; Fri, 2 Dec 2022 03:32:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232146AbiLBDci (ORCPT ); Thu, 1 Dec 2022 22:32:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbiLBDcc (ORCPT ); Thu, 1 Dec 2022 22:32:32 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C69ADA20C; Thu, 1 Dec 2022 19:32:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2A100B8201F; Fri, 2 Dec 2022 03:32:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9403DC433D7; Fri, 2 Dec 2022 03:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669951933; bh=TzW6W5n83OUhOwvDj7dVuruK703j88Q3wD8ZFJxahUg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BovuxiCSMtogBUe/MBKnqXMCKjOId+m+hb2B14Zl610M6z2RiDdX4toN2rh2Iwj3f lqeChZsy+c9sUV5DwxxTyK9DyDnEvRetLxLLNZ4ZsA/L6zl+adZpKMoR1RC5kvRau7 cIxP3XY0fd0zXLDGok2JqSfL4iM9YVtRghip3a+RXFZbqh4smOnMujM4xsRmjipt9D mbffXasJG4a/UuK4tE1XH3BVUuo3zdgL+cwHs2zk//m2J7R/W12+47kdLucPJpvoms 58CDyTEZAMJ6S8dDriryA7wL/9nhRh3JfdzfO40YJzhswslBa2R28PBOz5l6h1MtoY xrCW5/fmUSYZw== Date: Thu, 1 Dec 2022 19:32:11 -0800 From: Eric Biggers To: Kees Cook Cc: Horia =?utf-8?Q?Geant=C4=83?= , Herbert Xu , Pankaj Gupta , Gaurav Jain , "David S. Miller" , linux-crypto@vger.kernel.org, kernel test robot , Anders Roxell , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v2] crypto/caam: Avoid GCC constprop bug warning Message-ID: References: <20221202010410.gonna.444-kees@kernel.org> <202212011920.A6648E9B@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202212011920.A6648E9B@keescook> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Dec 01, 2022 at 07:23:49PM -0800, Kees Cook wrote: > I think it's a dumb > limitation, given that "zero size to/from NULL" is perfectly valid. No, that is undefined behavior. Which is presumably the reason for the nonnull annotation. Anyway, it is silly, which is why I'd hope that someone would have added an option to disable this C standard bug by now... - Eric