Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp144904pxy; Thu, 6 May 2021 23:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGDL0t97aSbdFi7F0w3RDM6b9bYw487hUMFAo44E34tqnoAO7R2cMGraMsd3qwj26CG/x1 X-Received: by 2002:a65:50c5:: with SMTP id s5mr8346745pgp.138.1620368032593; Thu, 06 May 2021 23:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620368032; cv=none; d=google.com; s=arc-20160816; b=X51poS4vYgYQNYxYEjsCkh2hX5iNM78fZaxkxSQrgANMz76xZjIrGOoArpdWBr/BIo hVj1LQ9JfccUHFut5deKdtMSMOGalfwPofLsr4HHbJoe2WO+SIAsTfZU++inIF9g8MtE 5bhhHsDMJTMuGc6SKNJHY4EHXkcbQwmhbLTdwbmflg0SpXtt7EZnaRy8/Li7Iyhk3sPd ZqDJc+KUmZR+MGsTQu+uLv3h4wcaB1xY6IXUNEwGFMR6FBBrfY+fBfJEQR7vJSSC/mRb IqaDpTRdWy0vU8iB54XpL04NlSDIZrGm6UGO3GtSHVuN7m0od42FFLAFuXY0s8LRSeXf qlHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vE5LriDGcfgpnCw60oj4gd/Ttob3Xx0pBtlIXmxQ+sc=; b=uBP6jjRM6jqWgDkKelo4wdGEIwjBdYfHeTideaA+LpAvyx2C99zaR0S3Loiy8/3M81 7O7sOgjDVgsjQmfc3bCqACMMivFpnP2VXyfQPOZ0bjVH4Lp4K7C9VWIYKN4WbbVF7nZd WIQGYcIXctsue/mxfHRxG+R1DjBeNS4SvN6GPQGfkUjHdGN3rmtTHR7ExkjS3OML3XmY /JFVntQWw0AvyaQrIkGwEpmLPiDjnSHs52/oxk3uUlo1rAuJyfLjb2/dKsYDyRl6gDeJ FX2qd+WaIbbTgzsXqGrqRBImnffFjm7YgzoD2Djli1oVpe+0cbPaJJEnxTaYhMqkvnF2 W6Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx23si14215409pjb.6.2021.05.06.23.13.35; Thu, 06 May 2021 23:13:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234104AbhEGDMC (ORCPT + 99 others); Thu, 6 May 2021 23:12:02 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:53143 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229942AbhEGDMB (ORCPT ); Thu, 6 May 2021 23:12:01 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1473AxgU014154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 May 2021 23:10:59 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 2853715C39BD; Thu, 6 May 2021 23:10:59 -0400 (EDT) Date: Thu, 6 May 2021 23:10:59 -0400 From: "Theodore Ts'o" To: Harshad Shirwadkar Cc: linux-ext4@vger.kernel.org Subject: Re: [PATCH 2/2] e2fsck: fix unaligned accesses to ext4_fc_tl struct Message-ID: References: <20210507002110.3933387-1-harshads@google.com> <20210507002110.3933387-2-harshads@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210507002110.3933387-2-harshads@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, May 06, 2021 at 05:21:10PM -0700, Harshad Shirwadkar wrote: > From: Harshad Shirwadkar > > Fast commit related struct ext4_fc_tl can be unaligned on disk. So, > while accessing that we should ensure that the pointers are > aligned. This patch fixes unaligned accesses to ext4_fc_tl and also > gets rid of macros fc_for_each_tl and ext4_fc_tag_val that may result > in unaligned accesses to struct ext4_fc_tl. > > Signed-off-by: Harshad Shirwadkar Looks good. I wrote my reply with a proposed version of ext4_fc_tag_val() before I saw your patch. This patch wasn't enough to fix the sparc64 crash, but after doing some additional investigation, I was able to figure out how to fix things so that j_recovery_fast_commit is working on sparc64. Patch follows on this thread... - Ted