From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.137.202.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796196533; b=dweMRcDjy4l1b0cjzROFWiCI3ztQdnjQgzLnfqp6hP8883C1yNQioDEjQO4P+cgvuhfL m1zfm7sYHeRk9rgTh45DVaK5Um1UoUNuwYjnh4Cwfdw7wOd1rB5MC53wX1HJThzERcQJU spuIXvKL1XPpeaCDt1cnvg2NIBIh26SyeBpr2/51RoaTd8XKo6CXM5p4mvR20ZTmkVW92 ok6NTBJ1gpXab70pEfEZOjmGpHEOYNFmrlAnxcKxMywIOyT5VxYkIib1dw5UpIU8zPJq6 Xq6IaPv2ljoVrrPhdf0dkP5mQUQPTlg5B6JnHHPRZq4MmLtMuS0vDTWBy8MgxFVCysQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796196533; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-SRS-Rewrite; bh=Hespp7aiFKDweebXAEMabtijhCwI7tf5NZ1fdJ+QsCc=; b=JMxcClktECzWgtADCy/4D4jxNeppE+4gsJKVnkC7ME6X8xqO7ioiMlMahqUhh+dPeQ+5 JV2nwxN403IF93oKpNCvYdNf+Lb3VmbdwyaPBOm6/Oqor4gD70VItaCZm7tvk5ghaZkux jr8N6BalmwAWyTlpdwL2t2zR+CSyY62sk/btzlMli/Wr02SNMgnkedQXJMo9HuCKCCAHn PIj4MgUVQ5SsIAPU4QeRyQI0FNX2cW/mXMrOcxS9J9+Cj1EqJukaApFiXxs0LjU1fM9kF tPSUW+osRKB7+cDhOxLibViP7GbYIp/9INlwyO0ZYJigm4Ufc8hwkMVeMpZ+fqPAD+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Ox2wAhIt; arc=none smtp.remote-ip=198.137.202.133 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A02A606A31A; Wed, 2 Dec 2026 07:28:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4A02A606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Ox2wAhIt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Hespp7aiFKDweebXAEMabtijhCwI7tf5NZ1fdJ+QsCc=; b=Ox2wAhItjm8kDisJTJRcBInlSE hCKUfwjMI+Mo5OnP3nQP+O9kNIG5BuQ1f8NazOew68Fx9BFAiqyJcyOzgcVgXsYpMpHoGz6aFYSdu sEGXaScf01/++gp4k9i2ky1LNZ9XGemGj873xKLkGnZtg/H82eseHyK6yuaTw/LGggRpdKXM8lOmC MdOPfF/3zd3MlWJtTRiO28aKKTCqSYigCp+yfpNyEh34yOTFymhjO77CcamZKj4o2Mgyx+GpSxg7p wKtKGc+WwK7uH0ayqWUEVREQBZopqod2iPoR91nqDFQD45qhYJBY6P20Sz51s02VuK+VRefYfF7Rj JFEG1HzQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYelm-0000000AVi1-2Vtj; Wed, 02 Dec 2026 07:28:50 +0000 Date: Tue, 1 Dec 2026 23:28:50 -0800 From: Christoph Hellwig To: Stian Halseth Cc: Christoph Hellwig , Carlos Maiolino , linux-xfs@vger.kernel.org, "Darrick J . Wong" , sparclinux@vger.kernel.org, Jan Engelhardt , Dave Chinner , stable@vger.kernel.org Subject: Re: [PATCH v3] xfs: fix unaligned access to rmapbt high keys in scrub Message-ID: References: <20261111103047.604541-1-stian@itx.no> <637ac952837ebabd9fdd1c28bbff09cc5ebb83cb.camel@itx.no> X-Mailing-List: sparclinux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <637ac952837ebabd9fdd1c28bbff09cc5ebb83cb.camel@itx.no> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, Nov 11, 2026 at 08:01:42PM +0100, Stian Halseth wrote: > In fact struct xfs_rmap_key is already packed in xfs_format.h. The trap > comes from reading it through union xfs_btree_key. The union itself is > 8-byte aligned which is why gcc uses an 8-byte load for rm_offset. > > I guess we could mark the union __packed. The consequence of that > is that every key access through the union would be turned into byte > loads on strict-alignment arches. If you would like, I could test and > measure exactly what that means on sparc64. Did you try this?