From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/3] Btrfs-progs: fix unaligned acces for ioctl search header
Date: Tue, 3 May 2016 18:12:34 +0200 [thread overview]
Message-ID: <cover.1462291729.git.dsterba@suse.com> (raw)
A user reports that some commands fail with SIGBUS on SPARC, due to unaligned
access. We should really use the helpers as the search header data are read
from a random position in the buffer that's returned from the TREE_SEARCH
ioctl.
David Sterba (3):
btrfs-progs: kerncompat: introduce get_unaligned helpers
btrfs-progs: add getters for ioctl search_header
btrfs-progs: use ioctl search headers everywhere
btrfs-fragments.c | 62 ++++++++++++++++++++++++++++++++++---------------------
btrfs-list.c | 21 ++++++++++---------
cmds-fi-usage.c | 8 +++----
cmds-inspect.c | 23 +++++++++++----------
cmds-subvolume.c | 13 ++++++------
ctree.h | 26 +++++++++++++++++++++++
kerncompat.h | 4 ++++
qgroup.c | 44 +++++++++++++++++++++++----------------
send-utils.c | 60 ++++++++++++++++++++++++++++++-----------------------
uuid-tree.c | 2 +-
10 files changed, 163 insertions(+), 100 deletions(-)
--
2.7.1
next reply other threads:[~2016-05-03 16:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-03 16:12 David Sterba [this message]
2016-05-03 16:12 ` [PATCH 1/3] btrfs-progs: kerncompat: introduce get_unaligned helpers David Sterba
2016-05-03 16:12 ` [PATCH 2/3] btrfs-progs: add getters for ioctl search_header David Sterba
2016-05-03 16:12 ` [PATCH 3/3] btrfs-progs: use ioctl search headers everywhere David Sterba
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=cover.1462291729.git.dsterba@suse.com \
--to=dsterba@suse.com \
--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).