Skip to content

Btrfs-progs: fix unaligned acces for ioctl search header

David Sterba linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: kerncompat: introduce get_unaligned helperskerncompat.h+4 -00 replies
2/3btrfs-progs: add getters for ioctl search_headerctree.h+26 -00 replies
3/3btrfs-progs: use ioctl search headers everywherebtrfs-fragments.c btrfs-list.c cmds-fi-usage.c +5 more+133 -1000 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchAnatoly Pugachev
1/3
2/3
3/3Reported-and-tested-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Btrfs-progs: fix unaligned acces for ioctl search header

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(-)
Signature · 1 line
2.7.1