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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 5 Jul 2021 22:55:24 -0400 From: "Theodore Ts'o" <tytso@....edu> To: Michael Forney <mforney@...rney.org> Cc: linux-ext4@...r.kernel.org Subject: Re: [PATCH 2/2] libext2fs: use offsetof() from stddef.h On Wed, Apr 14, 2021 at 12:41:28AM -0700, Michael Forney wrote: > offsetof is a standard C feature available from stddef.h, going > back all the way to ANSI C. > > Signed-off-by: Michael Forney <mforney@...rney.org> Thanks, applied. > Perhaps there is some reason to prefer compiler builtins over libc > that I'm not seeing? It's because I pulled container_of from the kernel, and the kernel header files has to provide offsetof since we don't use the standard header files --- and it has to work across a bunch of compilers and architectures. - Ted
Powered by blists - more mailing lists