From: Andre Diekwisch <andred@mail.upb.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2] Btrfs-progs: fix unaligned accesses
Date: Mon, 22 Oct 2012 20:19:56 +0000 (UTC) [thread overview]
Message-ID: <loom.20121022T201206-609@post.gmane.org> (raw)
In-Reply-To: 1350830073-20944-1-git-send-email-sensille@gmx.net
Arne Jansen <sensille <at> gmx.net> writes:
>
> There are some unaligned accesses in progs that cause malfunction or
> crashes on ARM.
> This patch fixes the ones we stumbled upon.
>
> Signed-off-by: Arne Jansen <sensille <at> gmx.net>
> ---
>
> Change v1->v2:
> Somehow sent the wrong patch without the patch to the setget functions.
Hello,
I reported these unaligned accesses originally and tested this patch on an ARMv5
kirkwood device using a 3.6.2 kernel.
I set /proc/cpu/alignment to 5 (signal+warn), and got no signals anymore using
this patch. I tested mkfs.btrfs, sub list and sub find-new (which all signalled
before the patch) and additionally inspect-internal inode-resolve and btrfsck.
None of them signalled or showed any other issues.
tested-by: Andre Diekwisch <andred <at> mail.upb.de>
Thanks a lot Arne, this patch finally renders btrfs-progs usable on an
ARM-machine without enabling unaligned access trapping for userspace.
I'll report back should I run into more issues regarding unaligned accesses.
Hope this patch gets accepted.
prev parent reply other threads:[~2012-10-22 20:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-21 14:34 [PATCH v2] Btrfs-progs: fix unaligned accesses Arne Jansen
2012-10-22 20:19 ` Andre Diekwisch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20121022T201206-609@post.gmane.org \
--to=andred@mail.upb.de \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).