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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6140C54E5D for ; Wed, 13 Mar 2024 03:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GDieN9L6iwzVBD300F75rmkIb+3bok3Zja92/llxmW0=; b=1zWUgSEk3IZ+Xb 5pREvPfZnsrsugTBhXEmznsLSSnTfN5kRwgOWbBCHIo8+yDUJW7K6pzh4UI7iSWFXJSNLZnQItuz0 Lp2uWHM53sn8ZudONHZBVE/GnhHIVBE5sPC0JNeAGHhwtZX190RFUl5oGd3dtGWevaIj9TwyHIVcJ 213jWk6bZx55fB2905bVm5EBtofcsAAAD6UtF3u/SOXbMByIWD/Fx5WCXlJ2U2c00csNrITv5Mxjf I6v/HhJYr/3R9OouuSzzDVmI4pmI5wlIA51Xd1x37T591YreQxs8RUn9Vp9v15ufkBxGPCYDQ07KR CWNlOa7BIm5J5T2G0pbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkF8e-00000008ddh-1aLT; Wed, 13 Mar 2024 03:18:44 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkF8a-00000008daB-3ZLg for linux-arm-kernel@lists.infradead.org; Wed, 13 Mar 2024 03:18:43 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6e62c65865cso5171359b3a.2 for ; Tue, 12 Mar 2024 20:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710299912; x=1710904712; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ErBpDoChwJS3Dz9w/fXRIf25+ofQNHhqhOBTpwuSEJ8=; b=JTIbnVTS8z/Oypn3pAz8vnhJ+AAzMYVBOqu6OyUqkSpJfxxXjCt7FtkPxgfE4g0m6Q Us3dSDEsRoO9vJ9PIjt1PJOyE+M3gfPnms5kjLOLRpFKXam76KDElg3+CFnt2ZFj1n/w VRDSEex3QRZPKn/tE81n+nNE7/B/TwopgnKT8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710299912; x=1710904712; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ErBpDoChwJS3Dz9w/fXRIf25+ofQNHhqhOBTpwuSEJ8=; b=W0bIlSMGYxUgNnu+PWYv7lgLpImTmXERckg2JXDFmWoV7n+vOHAN5kaU3k5ct4yYlq mmOKiyDvj36EgLB1hZ8ElPFKZ1kTXmuJS654UgXE9YKFZNPtKKMRuzMYL0aT/btMejME 3Sj5k31QYfqhjaeCNFdM5/xWXdnsyZwHI8ybe4Yfah0PfebOgFzXQtzRSvVTkiJYX3uY 8LbDHx7qu/FjEAnxnS10VvTEK+X1IuyglNXImnq1S7xnkIVT0gQN/j4bMMcooPCMpIKm tSdcUwIV2vhwmDAUeg9ZU7dTMEhgBwBtf/ct9T6EcKD3u2fGS7UlRhOxWic45kb3Sv8H kktw== X-Forwarded-Encrypted: i=1; AJvYcCVdi7mllwd0Rpclxl2XjBGso1ecOBm+AsY3RsFyzZrXlGSzty9WesG1ejKs5phD9N3EP2Fyd+suef4P+/hanSdGO9tbbID88+XZb8JYw6dBI98aiFo= X-Gm-Message-State: AOJu0YxDrhPxPkFbc75uTbTBhqfk4gLXN7xVoZlk2xf/l4eUZA6EctQJ zLb/m/UUzKm4XtGbNzD5pcjFTvi9vlaYabdAxnJNtHykqgES1qJINkXYdjRm+w== X-Google-Smtp-Source: AGHT+IFroIThZzohrORMRyBf4q2SfGniRe6Qp1geTDUSL9THSEZPoi4A4hryzimt0s4DNs3AfM3qQw== X-Received: by 2002:a05:6a00:181d:b0:6e5:d3b9:2d06 with SMTP id y29-20020a056a00181d00b006e5d3b92d06mr1621988pfa.21.1710299912048; Tue, 12 Mar 2024 20:18:32 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id c1-20020aa78c01000000b006e697bd5285sm3892427pfd.203.2024.03.12.20.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 20:18:31 -0700 (PDT) Date: Tue, 12 Mar 2024 20:18:31 -0700 From: Kees Cook To: Rick Edgecombe Cc: Liam.Howlett@oracle.com, akpm@linux-foundation.org, bp@alien8.de, broonie@kernel.org, dave.hansen@linux.intel.com, debug@rivosinc.com, hpa@zytor.com, kirill.shutemov@linux.intel.com, luto@kernel.org, mingo@redhat.com, peterz@infradead.org, tglx@linutronix.de, x86@kernel.org, christophe.leroy@csgroup.eu, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v3 08/12] treewide: Use initializer for struct vm_unmapped_area_info Message-ID: <202403122018.DCCE1E000@keescook> References: <20240312222843.2505560-1-rick.p.edgecombe@intel.com> <20240312222843.2505560-9-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240312222843.2505560-9-rick.p.edgecombe@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_201840_897654_9D8EBBBF X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 12, 2024 at 03:28:39PM -0700, Rick Edgecombe wrote: > So to be reduce the chance of bugs via uninitialized fields, perform a > tree wide change using the consensus for the best general way to do this > change. Use C99 static initializing to zero the struct and remove and > statements that simply set members to zero. > > Signed-off-by: Rick Edgecombe Thanks! This looks to do exactly what it describes. :) Reviewed-by: Kees Cook -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel