lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5511D6FA.2010801@oracle.com>
Date:	Tue, 24 Mar 2015 15:28:26 -0600
From:	David Ahern <david.ahern@...cle.com>
To:	Arnaldo Carvalho de Melo <acme@...nel.org>
CC:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf timechart: Fix SIBGUS error on sparc64

On 3/24/15 3:15 PM, Arnaldo Carvalho de Melo wrote:
> /me scratches head, should be missing something embarassingly simple :-/
>

ptr = sample->raw_data + field->offset;

raw_data is *guaranteed* to be misaligned. From kernel/events/core.c:

                         struct {
                                 u32     size;
                                 u32     data;
                         } raw = {
                                 .size = sizeof(u32),
                                 .data = 0,
                         };

Raw data starts at 64-bit alignment, but that u32 means data is NOT 
8-byte aligned. :-(

David

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ