Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4172911ybl; Mon, 13 Jan 2020 09:04:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyuwVjopbS5vRb7BKnt3zwCwN5Nu/yoRFrhUEOuuF7Pq3KBsJiq8LEoP7sMVc54I+i6f6he X-Received: by 2002:a05:6830:10d7:: with SMTP id z23mr13783496oto.114.1578935073063; Mon, 13 Jan 2020 09:04:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578935073; cv=none; d=google.com; s=arc-20160816; b=rWRcKsu3ISp9rB4utKBzTtI8suhFAYtkqHfZw7f8BQlYX5XXJqY8ZjV2NhWsdognZ8 IUbIYorgE4lEoDF4uh2jtBjN9WPuzKqqfcB/4MuYUasQNGk/XaYO9MiRU52+07Sowumt eP3xIKP/tau4F5EDhp6D1dNPfSJQv6aw7Mj8NqiZfWXxss7vF7LXo221OP1bMTASt1g0 IQgGBJ/3eNeQzyWKNUj5eONU8VTWnqnrX5EZ/hPC6vVsz/1m1v8XUiak3EtvjCZYncJG /60FgGs21wIJesJyxipqvlQnpewmg5cCtIa43tRQSMzi9j0tKEOQMssTPNttNpalS6GV Hmzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DR889jPsFTs5Jr3fa1YEDAjY55QrZd7wjshESpRdDPs=; b=LuJCU9CxMrPICAZgRtFKg7wDlGlrN5hmTuJpyB6h/S48gpf2g+BTUH29CiPcppdj4j VG1AFElVMLuCZQDrSq8z0FGzd7stdoYiMab3NOkGMYqJ1hrXaXmwavX9Ja0/Bw7yQNb3 bhnoe2fSXTW6cS0J03eWM8bNmuOv1lkveUSUctoVBZEPCKFU5qfWKm18kqGqfhPeoVzb 6aH+rw1KBFKCt1BrRA/Kjevx1tz4xYXhYFEQ0YC1F5gF7w/n8lVQcRl1rq5ejH956Mpq fZNghPIPZvToV3258uq9FIEME+aZLgk66+mgETD7+TIG3VUoPBStnHbtJMfcatHLRpoM NGxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=fuOFpwVu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si8077407otf.237.2020.01.13.09.04.18; Mon, 13 Jan 2020 09:04:33 -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; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=fuOFpwVu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728767AbgAMRBX (ORCPT + 99 others); Mon, 13 Jan 2020 12:01:23 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:41786 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbgAMRBX (ORCPT ); Mon, 13 Jan 2020 12:01:23 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00DGxOae119475; Mon, 13 Jan 2020 17:01:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=DR889jPsFTs5Jr3fa1YEDAjY55QrZd7wjshESpRdDPs=; b=fuOFpwVuQzAwaqRnvdXY/tHcLriQEkWQQc66qU4Mtv4DgpjDkQNR+tgiM9/yK98YT4Uz BFruSBji174BlngGy6aRlNIAKsoAWtZWDtY2gWZUh3MXkdvqDntaQZ5uWpo/Mtmws6Iv xzKdMHPPNePGQR4Bk43t+LUGsLUSZq1fL5XG1LUEAGI8UP2CuRY3KBblgHMcRQMoRVna 6r+mRYztufqLEQRBfpLG1tz8eoT0GYPHMsoqjafDjIYfMWfKUsefy+9rcwyNcdKSDpCY E0vgXyzjv47tlaREZ67Rc8dTMy2smhYvIRdNb5ttlZ7cnD22JV+SENWLXUMjXq2F4aXJ 0Q== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2xf74s0a5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Jan 2020 17:01:11 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00DGxQkS103176; Mon, 13 Jan 2020 17:01:10 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 2xfrgj1rud-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Jan 2020 17:01:10 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 00DH15lW031176; Mon, 13 Jan 2020 17:01:06 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Jan 2020 09:01:05 -0800 Date: Mon, 13 Jan 2020 09:01:05 -0800 From: "Darrick J. Wong" To: Arnd Bergmann Cc: Christoph Hellwig , Vincenzo Frascino , Eric Sandeen , linux-xfs , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] xfs: Fix xfs_dir2_sf_entry_t size check Message-ID: <20200113170105.GF8247@magnolia> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9499 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001130142 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9499 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001130142 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 03:06:50PM +0100, Arnd Bergmann wrote: > 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. Yeah, that sounds like a reasonable way forward, short of cleaning out all the array[0] cr^Hode... ;) To the original submitter: can you add __packed to the structure definition and (assuming it passes oabi compilation) send that to the list, please? --D > > Arnd