linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Btrfs-progs: fix unaligned acces for ioctl search header
@ 2016-05-03 16:12 David Sterba
  2016-05-03 16:12 ` [PATCH 1/3] btrfs-progs: kerncompat: introduce get_unaligned helpers David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Sterba @ 2016-05-03 16:12 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-03 16:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03 16:12 [PATCH 0/3] Btrfs-progs: fix unaligned acces for ioctl search header David Sterba
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

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).