Re: Way to kill processes with unaligned access?

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

 



On 2022-12-18 12:32 p.m., Helge Deller wrote:
Sadly, glibc (I believe) still generates some:
dupload(8822): unaligned access to 0xf8b3630d at ip 0xf720c88b (iir 0xee8104d)
http(6292): unaligned access to 0xfab011cd at ip 0xf720c9c3 (iir 0xd481043)

why do you think it's from glibc?
couldn't it be from the program itself?
I haven't actually debugged these but previously the warnings from http came from a
misaligned header in the glibc resolver.

commit 05dec22d7be722987ff07aebf9690f6078b3c4e9
Author: John David Anglin <danglin@xxxxxxxxxxx>
Date:   Tue Mar 22 17:35:54 2022 +0000

    resolv: Fix unaligned accesses to fields in HEADER struct

    The structure HEADER is normally aligned to a word boundary but
    sometimes it needs to be accessed when aligned on a byte boundary.
    This change defines a new typedef, UHEADER, with alignment 1.
    It is used to ensure the fields are accessed with byte loads and
    stores when necessary.

    V4: Change to res_mkquery.c deleted.  Small whitespace fix.

    V5: Move UHEADER typedef to resolv/resolv-internal.h.  Replace all
    HEADER usage with UHEADER in resolv/res_send.c.

    Signed-off-by: John David Anglin <dave.anglin@xxxxxxxx>
    Reviewed-by: Adhemerval Zanella <adhemerval.zanella@xxxxxxxxxx>

Dave

--
John David Anglin  dave.anglin@xxxxxxxx




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux