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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BE43C33CAF for ; Mon, 13 Jan 2020 13:58:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 56AEA21739 for ; Mon, 13 Jan 2020 13:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728835AbgAMN6E (ORCPT ); Mon, 13 Jan 2020 08:58:04 -0500 Received: from verein.lst.de ([213.95.11.211]:41413 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728679AbgAMN6D (ORCPT ); Mon, 13 Jan 2020 08:58:03 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 58A1068B20; Mon, 13 Jan 2020 14:58:00 +0100 (CET) Date: Mon, 13 Jan 2020 14:58:00 +0100 From: Christoph Hellwig To: Arnd Bergmann Cc: Vincenzo Frascino , "Darrick J. Wong" , Eric Sandeen , linux-xfs , "linux-kernel@vger.kernel.org" , Christoph Hellwig Subject: Re: [PATCH] xfs: Fix xfs_dir2_sf_entry_t size check Message-ID: <20200113135800.GA8635@lst.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Mon, Jan 13, 2020 at 02:55:15PM +0100, Arnd Bergmann wrote: > 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 ;-). Or just try adding a __packed to the xfs_dir2_sf_entry definition?