Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3982030ybl; Mon, 13 Jan 2020 06:04:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzWgelEy5AtSCt2k4eToSIBGKplV6yOKlZv3bgHmjf029b3wXV9F8gGEhnqiZfL8AJdXRzE X-Received: by 2002:a9d:23b5:: with SMTP id t50mr12470980otb.122.1578924242655; Mon, 13 Jan 2020 06:04:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578924242; cv=none; d=google.com; s=arc-20160816; b=C3uAZhNJZEehve2w8w+3ZHcP8BquYWq9lftif8hgGKSvReZe4mWaSLNNTsaQkdwAPW yQVkcBKwfHMX70Jh3FsdI+bhIzfhYyDGLk1TdMt9vAxbUshbkaG4cp3VknkPQvLfRvLD 8e16zYmwpdERTAq0vOIp8pySSuR3RrbkpR9oFALJrn1FoomNY5HbXMacwhX/S1jjuk5I J5EJadGakasn7+skUjMvK74vpXbElwYCpDZZT+Y5rm3RMx764ua+E+uK9Mjoq/KA3MMj xciA+XXGc91IK48AVUCgJKHkGwz/PHct1fnO6r9PW6cFhVlkObtHO3pdl9En0XkNCU+s 8FJQ== 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:cc:to:subject; bh=aG58RU2dqP2hpiz0qQ2CVlLiH9CIWqR2OM8Yk7ntMHo=; b=XmWkc4xfT205604pJqa240ecbdNQs2xdaDI90b9ROY5QoEIQ5llRui5fK7Zph6fnIu kwXOVM5S4QE1D53v1yeZutEE5PmZM2YICNeuQZiO0Mb/VlnpgAQXf+79hgRNupW1/Sx7 f1wyFBjJGPjCE2UPIze0G8CT81CclNRjtSBtuVhUeHgGO/aQ/iKx3dsKZlJcYapIKARG onhR7EMbn674zjhiK9SLHomghB3l3VUEl9v46QYau/b1u4Cqzgqg5Yqn1SGPBKI+5+bU /Fedg3TxMlRthity6HfgOCQAspePcMmwH67M6rT8NNkto7ugS2H4b3Rf/+WSwz6tfkiR w9Zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si5460219oii.37.2020.01.13.06.03.48; Mon, 13 Jan 2020 06:04:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728765AbgAMOCY (ORCPT + 99 others); Mon, 13 Jan 2020 09:02:24 -0500 Received: from foss.arm.com ([217.140.110.172]:39940 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbgAMOCY (ORCPT ); Mon, 13 Jan 2020 09:02:24 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D6C3B1045; Mon, 13 Jan 2020 06:02:23 -0800 (PST) Received: from [10.37.12.172] (unknown [10.37.12.172]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ACAD13F68E; Mon, 13 Jan 2020 06:02:22 -0800 (PST) Subject: Re: [PATCH] xfs: Fix xfs_dir2_sf_entry_t size check To: Arnd Bergmann Cc: "Darrick J. Wong" , Eric Sandeen , linux-xfs , "linux-kernel@vger.kernel.org" , Christoph Hellwig References: <20200109141459.21808-1-vincenzo.frascino@arm.com> <1a540ee4-6597-c79e-1bce-6592cb2f3eae@arm.com> <20200109165048.GB8247@magnolia> <435bcb71-9126-b1f1-3803-4977754b36ff@arm.com> From: Vincenzo Frascino Message-ID: Date: Mon, 13 Jan 2020 14:05:21 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On 1/13/20 1:55 PM, Arnd Bergmann wrote: > On Thu, Jan 9, 2020 at 10:01 PM Vincenzo Frascino > wrote: >> >> Hi Darrick, >> >> On 09/01/2020 16:50, Darrick J. Wong wrote: >>> This sounds like gcc getting confused by the zero length array. Though >>> it's odd that randconfig breaks, but defconfig doesn't? This sounds >>> like one of the kernel gcc options causing problems. >>> >> >> This is what I started suspecting as well. > > The important bit into the configuration is > > # CONFIG_AEABI is not set > > With ARM OABI (which you get when EABI is disabled), structures are padded > to multiples of 32 bits. See commits 8353a649f577 ("xfs: kill > xfs_dir2_sf_off_t") > and aa2dd0ad4d6d ("xfs: remove __arch_pack"). Those could be partially > reverted to fix it again, but it doesn't seem worth it as there is > probably nobody > running XFS on OABI machines (actually with the build failure we can > be fairly sure there isn't ;-). > Thanks for this, for some reasons I was convinced that CONFIG_AEABI was set in this configuration file as I reported as well in my previous email. Since it is OABI makes sense disabling xfs for randconfig purposes. -- Regards, Vincenzo