Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1993347ybc; Sun, 17 Nov 2019 11:34:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxsohKyX1eckkYY5BoxEe8n7BM0dEiBwYayLgsz8JcAdMDXp+8Ugze3VcuVXtcGTMo2cD0X X-Received: by 2002:a17:906:3602:: with SMTP id q2mr6420618ejb.167.1574019274747; Sun, 17 Nov 2019 11:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574019274; cv=none; d=google.com; s=arc-20160816; b=BMJEuyyW4Nn3m+9CkyZU97Ceuy2vn7fG6sXPV+v8KhXCMM4VvBtBMwaqdINi5sKaVA 6FxgMvT+Phv8QDFI2RIHIPVTMKN5V3b/3VJHouiBc7KX6G9OotF6shhpNuSECGncqAAk ayWxQyc8lyO8wjaFnVrxv4Fxy0OmgU3uYiA/9ZQrySEAXsjCMMw61F0Nq+7N06ZaQ6Gw ZrdjjKHQsuGX4kylzwdy13rxRDhvHy2rwIYhAQVxZZLiz1G/UaFqzvXCbwzUVfsdMUp8 UCJDUQ1agNFkvtcpQtWNWGRcAyLwxKuiFM6XBBNMUDc3wmTPXnV/9u5pmrazuPhfXnkQ ChTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=0wV9syliaGhjm+v5v5X2Ua0YgFmXpBiUP3Mze8zna/U=; b=lvzayGUyCIQGrG4zZpuaBvEoSpnHQjRpyovYsbzB10LubAjrVfxLpHmYY4aLdPdF45 J3W8goziiWL7dfLMOcNU5noFQS7JOwy1l+yYV6yQ6utNM3paMbPXCe/0nEh8MddE6EBd f5YjVIpUgNQ/LlTdRMl2vE3pkwAjWXOYhJVjJpRdhlePLlAQKwSEV6khHKxFTuFRa5bI RFo/ppMj9lnVu7jHRZn5qwsUWNK/eyRt1GoUATD8azW3ayAg+/QyCjPBSY2ftPpvcj0i 9Lj1Z2hyyRep8UsFUV/vh/P6X9K++LMH71l0NMNXyENVwZ29nwjnnEn6SdXgBXDU14sB 2STw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g9C5BFFl; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si12561818edm.231.2019.11.17.11.33.56; Sun, 17 Nov 2019 11:34:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g9C5BFFl; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726091AbfKQTdz (ORCPT + 99 others); Sun, 17 Nov 2019 14:33:55 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:50737 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726089AbfKQTdz (ORCPT ); Sun, 17 Nov 2019 14:33:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574019233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0wV9syliaGhjm+v5v5X2Ua0YgFmXpBiUP3Mze8zna/U=; b=g9C5BFFlm+5jE3Cjy3Z99MW6IkcB+Keg/y04DeOL5cR2y2oD/CemxlrbTwgs3RRSCdduVV ye8vezowSRW3KP40AapxrTWP4NibTvkwzc5ZbMIBrTU9vYl4k/9qLDiAzcX+A9Ys7PqIQ7 aO1pJ0Y/VfOeNgcFgMTVPbVoluytoYY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-108-iBqv_diWO9S0g7U8xsM6Tw-1; Sun, 17 Nov 2019 14:33:51 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E6EF0800EBA; Sun, 17 Nov 2019 19:33:50 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-116-206.phx2.redhat.com [10.3.116.206]) by smtp.corp.redhat.com (Postfix) with ESMTP id 856756016E; Sun, 17 Nov 2019 19:33:50 +0000 (UTC) Subject: Re: [PATCH] Ensure consistent struct stat definition To: Doug Nazar , linux-nfs@vger.kernel.org References: <20191031070355.26471-1-nazard@nazar.ca> From: Steve Dickson Message-ID: Date: Sun, 17 Nov 2019 14:33:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191031070355.26471-1-nazard@nazar.ca> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: iBqv_diWO9S0g7U8xsM6Tw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 10/31/19 3:03 AM, Doug Nazar wrote: > Although 2fbc62e2a13fc ("Fix include order between config.h and stat.h") > reorganized those files that were already including config.h, not all > files were including config.h. >=20 > Fixes at least stack smashing crashes in mountd on 32-bit systems. >=20 > Signed-off-by: Doug Nazar > --- > support/junction/junction.c | 4 ++++ > support/misc/file.c | 4 ++++ > support/misc/mountpoint.c | 4 ++++ > support/nfs/cacheio.c | 4 ++++ > utils/mount/fstab.c | 4 ++++ > utils/nfsdcld/legacy.c | 4 ++++ > 6 files changed, 24 insertions(+) Committed!=20 steved. >=20 > diff --git a/support/junction/junction.c b/support/junction/junction.c > index ab6caa61..41cce261 100644 > --- a/support/junction/junction.c > +++ b/support/junction/junction.c > @@ -23,6 +23,10 @@ > *=09http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt > */ > =20 > +#ifdef HAVE_CONFIG_H > +#include > +#endif > + > #include > #include > =20 > diff --git a/support/misc/file.c b/support/misc/file.c > index e7c38190..06f6bb2b 100644 > --- a/support/misc/file.c > +++ b/support/misc/file.c > @@ -18,6 +18,10 @@ > * along with nfs-utils. If not, see . > */ > =20 > +#ifdef HAVE_CONFIG_H > +#include > +#endif > + > #include > =20 > #include > diff --git a/support/misc/mountpoint.c b/support/misc/mountpoint.c > index c6217f24..14d6731d 100644 > --- a/support/misc/mountpoint.c > +++ b/support/misc/mountpoint.c > @@ -3,6 +3,10 @@ > * check if a given path is a mountpoint=20 > */ > =20 > +#ifdef HAVE_CONFIG_H > +#include > +#endif > + > #include > #include "xcommon.h" > #include > diff --git a/support/nfs/cacheio.c b/support/nfs/cacheio.c > index 9dc4cf1c..7c4cf373 100644 > --- a/support/nfs/cacheio.c > +++ b/support/nfs/cacheio.c > @@ -15,6 +15,10 @@ > * > */ > =20 > +#ifdef HAVE_CONFIG_H > +#include > +#endif > + > #include > #include > #include > diff --git a/utils/mount/fstab.c b/utils/mount/fstab.c > index eedbddab..8b0aaf1a 100644 > --- a/utils/mount/fstab.c > +++ b/utils/mount/fstab.c > @@ -7,6 +7,10 @@ > * - Moved code to nfs-utils/support/nfs from util-linux/mount. > */ > =20 > +#ifdef HAVE_CONFIG_H > +#include > +#endif > + > #include > #include > #include > diff --git a/utils/nfsdcld/legacy.c b/utils/nfsdcld/legacy.c > index 07f477ab..3c6bea6c 100644 > --- a/utils/nfsdcld/legacy.c > +++ b/utils/nfsdcld/legacy.c > @@ -15,6 +15,10 @@ > * Boston, MA 02110-1301, USA. > */ > =20 > +#ifdef HAVE_CONFIG_H > +#include > +#endif > + > #include > #include > #include >=20