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: <YPxHYW/HPI/LLMXx@zeniv-ca.linux.org.uk>
Date:   Sat, 24 Jul 2021 17:01:21 +0000
From:   Al Viro <viro@...iv.linux.org.uk>
To:     Sven Eckelmann <sven@...fation.org>
Cc:     Arnd Bergmann <arnd@...db.de>, b.a.t.m.a.n@...ts.open-mesh.org,
        linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] asm-generic: avoid sparse {get,put}_unaligned warning

On Sat, Jul 24, 2021 at 06:24:29PM +0200, Sven Eckelmann wrote:

> The special attribute force must be used in such statements when the cast
> is known to be safe to avoid these warnings.

	How about container_of(ptr, typeof(*__pptr), x) instead of a cast?
Would be easier to follow...

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ