[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#839590: Bus error when accessing MBR partition records



Package: mdadm
Version: 3.4-4
Tags: patch
Control: -1 forwarded http://marc.info/?l=linux-raid&m=147515212602202
X-Debbugs-Cc: debian-sparc@lists.debian.org
User: debian-sparc@lists.debian.org
Usertags: sparc64

Hi,
When mdadm tries to examine MBR partition records (such as when creating
an array using already-formatted disks), it does so with an unaligned
pointer, which leads to a bus error (SIGBUS) on sparc64. Please see the
patch I have submitted upstream, which makes sure the accesses always go
through boot_sect, since it is of type `struct MBR', which is the packed
containing struct, and so the compiler will generate the correct code to
perform the unaligned accesses when needed.

Regards,
James

Attachment: signature.asc
Description: PGP signature


Reply to: