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 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html