Btrfs-progs: fix unaligned acces for ioctl search header
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs-progs: kerncompat: introduce get_unaligned helperskerncompat.h | +4 | 0 replies | |
| 2/3 | btrfs-progs: add getters for ioctl search_headerctree.h | +26 | 0 replies | |
| 3/3 | btrfs-progs: use ioctl search headers everywherebtrfs-fragments.c btrfs-list.c cmds-fi-usage.c +5 more | +133 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Anatoly Pugachev |
|---|---|
| 1/3 | |
| 2/3 | |
| 3/3 | Reported-and-tested-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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