Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9725505rwr; Thu, 11 May 2023 20:57:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7emCrTr6Q27UlaZTuDVFzFaZhW5Vf/nkuJKDndQ1ueqhV+lG/W7smKXT3ntcYietn3r0Ze X-Received: by 2002:a17:90a:880b:b0:250:484e:355f with SMTP id s11-20020a17090a880b00b00250484e355fmr19793822pjn.49.1683863837350; Thu, 11 May 2023 20:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683863837; cv=none; d=google.com; s=arc-20160816; b=savrlf7BhqlWmilFB0GIu/TYPX/YBofsACiwdYBQlBmRZTNUbNZoA/bs9/R8Psx6AK N8NYMVcw1WZqSUlZ63bhiif3dI3Pv64RL7GTOle8YVJNZG2BBEoMVJLuHjATWtoVeRlt kZn4WDD+SFZXvM7UTW/5SO5lAwZFYbweiIw1QbEoQ7D8zXILsgfv8bGTT2F10F/EEGGC X/TuwpEdO1E/E/YAQvT4GFzYqF8vawx4hKK01/RNzqx4DKollwoPZPvKGSUoRa1GSw/1 WYrDly4A8ISJ5g9q3G+L7RR+xIKrRuBs5vJxXny/Kp3z7ch3jJocoweO2JBD7E/V2ktv 50XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wKoiiE+ndeGRWT1GZLUCU6JpEazWyQM/0hNLbl62Wbc=; b=Kg+qh2WSNp0sdEZJK8a8uFWHRSbogmrguXEDfij5X1CkUJQHEDxCfOpkdzQldCx5bg /GmZ5iNIWugm8qwhjhNe0IILJ8nzgTUJQbBjOiuAsaEAqA/DyF0sNrI/A72SR6b8Fl56 gJ2Tv/kOb4aG9UDrppXiw6/zyPOaK8ii/Y4cOo8cE0tMIMaH+cSjE1gldr6CDSaVj9Om a6RNl+7sfeqiSDfGiWSAfcYnKJXC+KDM0WG9gvbgtcd/JsUgRyHvpjBUZrzFviInPUNM M5lBWjO96Z4x/HHD2VxdLL7SThETmjkwXzbWNQnVjMP+h284+XlO0gV5Slo6Cya3XFoH q9rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=F0+fImXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a17090a410400b0024bccf6609dsi22353625pjf.114.2023.05.11.20.57.05; Thu, 11 May 2023 20:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=F0+fImXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239889AbjELDpW (ORCPT + 99 others); Thu, 11 May 2023 23:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239844AbjELDpS (ORCPT ); Thu, 11 May 2023 23:45:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8B195FC1; Thu, 11 May 2023 20:45:15 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 5C81264EB2; Fri, 12 May 2023 03:45:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B8FFC433EF; Fri, 12 May 2023 03:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1683863114; bh=sX6OHxSqG3kE9RNh5irNxZVSLex4+GvWgeSM0qb5IHY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F0+fImXh1fMEWRvhKuXlhkds/fjnoJHELMaOLXJjBzLBVmOiQm/zS+3pHZXyr2jhg bnJ4XSjB/OAwuB4R4AvTIdAXHD5HMCjkLgqXwuVO2UmNM474rjY/uE745m5FAZK4tE N1a7b/oshU3BtAr7ZazeFwMh5T8+oDePLCwD8xNU= Date: Thu, 11 May 2023 20:45:13 -0700 From: Andrew Morton To: Ilya Leoshkevich Cc: Al Viro , linux-kernel@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Alexander Gordeev , stable@vger.kernel.org Subject: Re: [PATCH 1/2] statfs: Enforce statfs[64] structure intialization Message-Id: <20230511204513.3d0d60f0315350177a800284@linux-foundation.org> In-Reply-To: <20230504144021.808932-2-iii@linux.ibm.com> References: <20230504144021.808932-1-iii@linux.ibm.com> <20230504144021.808932-2-iii@linux.ibm.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 May 2023 16:40:20 +0200 Ilya Leoshkevich wrote: > s390's struct statfs and struct statfs64 contain padding, which > field-by-field copying does not set. Initialize the respective structs > with zeros before filling them and copying them to userspace, like it's > already done for the compat versions of these structs. > > Found by KMSAN. > Reviewed-by: Andrew Morton