Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3989967ybl; Mon, 13 Jan 2020 06:09:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwCkJ3BaRNvbCwgs9TKYslMg8ITlRgEhs9EKESfXk0g3QPgZ8yUbbQNwRzN/Vg0AJrw1Ikc X-Received: by 2002:aca:1012:: with SMTP id 18mr12180073oiq.151.1578924587063; Mon, 13 Jan 2020 06:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578924587; cv=none; d=google.com; s=arc-20160816; b=dMgJeCLHuWkNKfjQu/ogs2lKqYkxHXSoqSCgjpoMHjOfjnQAcKPRh8khHd2q8ZIAj9 Nn45JINFRf8e4/3Xz66S3noHNDyJxKZH6o93krP35Qs+fbB3cMuxLT6O/p/gq/XQFnI6 J+/tR3XoG5G1oaTysnPoaP1I0ZiBVw6wUvJ4s5YnHcRBIOgQmUNlyrzu4GCnB0Nl+JLR K8HfIQnrmDqMFCb1iOhbjp0qpVvrDh73J7jg99lJB2GEJWOsoGIKUUO6jrLYXoo5fVe/ fT4nX7Vpfbq277x6mZO0V9YFK1/UEINgrQwi70t8fokHOlV0fA7+6D4UAeiIzXkj48K2 VxaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=T7DwrWOTzx5jQFrVPACWIbbDo80+5HSS9wJ2ybM7I2Y=; b=kqG0rZEw2MR1GFmDOnnMle62Gcb5SKkYOMVxvqMrP3DunXtX1E5i4bx58zRms1jeYm zbCO04TZ1r2uIe7eKUm5WcK2fRvbfjqBYGw9LP7RNaVdpbOSecZIM++JCFZeg5yKcxy/ JiwTkPvlXeNzm6SjknXesC1TXSEOPTzD25yE6hC9Xeye0KvschegBD882TzQ8xvrhGnf 9HjKvm+8BM3vOD0tvQRB7XDVgDradilhBcDTGiOQS7q/9zEjrAkUG1u39ew/L2oEqAbD XiEHkCbLC8jZHBtJSRRozkdTjbK89tWR1EUVPfF+omM5od9s7dN+M6q7wN4FzMr9mmNy adBQ== 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 p3si6293151oih.186.2020.01.13.06.09.35; Mon, 13 Jan 2020 06:09:47 -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 S1728850AbgAMOHJ (ORCPT + 99 others); Mon, 13 Jan 2020 09:07:09 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:35129 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbgAMOHJ (ORCPT ); Mon, 13 Jan 2020 09:07:09 -0500 Received: from mail-qk1-f179.google.com ([209.85.222.179]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPSA (Nemesis) id 1N0X4e-1jcMEZ463Y-00wWND; Mon, 13 Jan 2020 15:07:08 +0100 Received: by mail-qk1-f179.google.com with SMTP id k6so8532932qki.5; Mon, 13 Jan 2020 06:07:07 -0800 (PST) X-Gm-Message-State: APjAAAVrp3DPzmx5zotCL57FzjiGgwLVKfosWMbGTu+Fq01mxp6keCTm n67IGLrF0P2SoDXICI3fzx3FNez/SLiMo73BD6s= X-Received: by 2002:a05:620a:a5b:: with SMTP id j27mr16336077qka.286.1578924426747; Mon, 13 Jan 2020 06:07:06 -0800 (PST) MIME-Version: 1.0 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> <20200113135800.GA8635@lst.de> In-Reply-To: <20200113135800.GA8635@lst.de> From: Arnd Bergmann Date: Mon, 13 Jan 2020 15:06:50 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] xfs: Fix xfs_dir2_sf_entry_t size check To: Christoph Hellwig Cc: Vincenzo Frascino , "Darrick J. Wong" , Eric Sandeen , linux-xfs , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:MDZdv87PspSiRCBd2OKASowIhCrd3dbWlOcvIGcE4pC5YSIymsm MO01UcVXmYr8ss0o1h/WxxRng+weIrxLMTAJJdDQFRwySLSD1VgGoP7TaZSpnqxeG8puca9 9+wvyBDqop/oJq+I3W5KrP6HJxGjVJafHl/18hYekvaNq8RdqFGqLLqd3RKll2PMK9RHpmV Az8owFv9K5utX8C7+EFJQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qwqY+JrhnYA=:hjm96v+cRRK4dY23FrlCUn dwM83iaWQRnryuKoZhozWKOQoGDbWIJUljZkVFBW1g4bieNr6OWMcKWfcIw17mqNH6xSLlKE5 wD9DLp82qu4x3KAwEIGVUX0xvz9jOs2gd2UU4ji8yVqnnwCslNYzOzTtWhsarLOaEnw6I/viz zIPNlw631HW4VvqjjfnwoH4lKJsWLKUCSRmZdbzkkFXA4YZs+7g331c1ESlRls2sZqb/3FtUc wd1GT5TbNqCcKreDQ3IRMidefZsxQLkc7H7KMa2W4YzIYmt1V9vYpiRXfHW+BTijgYKQJ8bs/ Gy0/DH9iO3SryT1C6SO92Upi7PsFT+VDhy/vSE1xR2SIkA0FzvrnSFETdH2jKIJcydUyCin/s sSrTR5JEZUqHK7SZbAj2BISB8rL0X0mAhdpGhv0ZF2+AHYvGjCVRqPrHEA/WBNKFa5RommC9L n4Cex7qRFSIc9Us7my6aJJ97kYFgfWqZyTqwTJYlYdUtE4rlYi/ftVHcSBtGqpn4E7I+fhy9H 0pyymeYgeHCA70Wvpe7ptl5hExfOVyMR+fLLeCC599ATOSxP5QkmnMA6x9hq9KQmv2HXu+Z8S PR0G0o7jIG/tq9C59gaEraYhHwerrRp0vIo6M3F3/qVQzeLzapjAZVG2+O4+4rtIOgmqn5VHP lJfoAi5Sk4wBn+jA/gGDBnnzlTR8fMHc7hS+lgBYEJfwwYeb/h+kxgk7vHMjLxygdhXf32t/8 wcJ2iXc6sgqow6Nkcr++5q1/u67sY628zxyOW9ypbU5oz0e6wpisH+xcqOu5pIbRzgYv3zO9b WT9Uz5aGz5sOFyewSuP+CnaunQZMm6E6eMmEx3ka94J23Py/ZLYG23gAd1HaDlU4c7luxcRJb 2ZlpZMLWejRj/LrHVv8A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 2:58 PM Christoph Hellwig wrote: > > 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? Yes, that should be correct on all architectures, and I just noticed that this is what we already have on xfs_dir2_sf_hdr_t directly above it for the same reason. Arnd