From patchwork Sun Mar 21 23:31:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Beregalov X-Patchwork-Id: 87310 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2LNcF9j009956 for ; Sun, 21 Mar 2010 23:38:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545Ab0CUXiN (ORCPT ); Sun, 21 Mar 2010 19:38:13 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:61501 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753533Ab0CUXiM (ORCPT ); Sun, 21 Mar 2010 19:38:12 -0400 Received: by fg-out-1718.google.com with SMTP id l26so287712fgb.1 for ; Sun, 21 Mar 2010 16:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=BNUb+ZfSbRBNFbSql7dPDGS7I3IyhCCRSRAxCL0yskk=; b=uqoFkAddOMs/sug8G1RvdqPI/Cqsq/KbpQNxYSooh5aqYLS4zCnV7Tzt80hE80A7P/ pPAzwKQb5YHA0LoQN5E/BsRyaslV3SEObTGo5n08ZEnbghtt0TuNDaCxpHQSnrkyX7wa SXJnX5AHAz4ijrcF4OuuK8AywkieWtQ1sMmI0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=TMQmK6zAIPGVqOygWZcfHSx/hcoNNPMtI/sTSR+3rLmNdzmrJxjMtytAppQgo/MX5Q /uwYL6kTx2kA6JEw1UqjYOtNS9hkXMWNwLe9rtgLnHPyh6VEB2sCL3GWzxJRttY71nLb gYui3ZyAqic/2G95deFof1hSccNe849Jx04Wg= Received: by 10.87.62.1 with SMTP id p1mr4995969fgk.42.1269214275428; Sun, 21 Mar 2010 16:31:15 -0700 (PDT) Received: from localhost.localdomain (ppp91-78-159-86.pppoe.mtu-net.ru [91.78.159.86]) by mx.google.com with ESMTPS id l19sm3401136fgb.8.2010.03.21.16.31.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Mar 2010 16:31:15 -0700 (PDT) From: Alexander Beregalov To: linux-btrfs@vger.kernel.org Cc: Alexander Beregalov Subject: [PATCH] Btrfs: fix unaligned access at btrfs_csum_final() Date: Mon, 22 Mar 2010 02:31:08 +0300 Message-Id: <1269214268-1151-1-git-send-email-a.beregalov@gmail.com> X-Mailer: git-send-email 1.7.0.2 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 21 Mar 2010 23:38:15 +0000 (UTC) diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 0af2e38..4dbf330 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -327,7 +327,7 @@ struct btrfs_header { * it currently lacks any block count etc etc */ struct btrfs_super_block { - u8 csum[BTRFS_CSUM_SIZE]; + u8 csum[BTRFS_CSUM_SIZE] __attribute__ ((aligned(4))); /* the first 4 fields must match struct btrfs_header */ u8 fsid[BTRFS_FSID_SIZE]; /* FS specific uuid */ __le64 bytenr; /* this block number */