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: Wed, 18 Aug 2021 10:58:40 -0700 From: Kees Cook <keescook@...omium.org> To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com> Cc: linux-kernel <linux-kernel@...r.kernel.org>, Miguel Ojeda <ojeda@...nel.org>, Nathan Chancellor <nathan@...nel.org>, Nick Desaulniers <ndesaulniers@...gle.com>, clang-built-linux <clang-built-linux@...glegroups.com>, Andrew Morton <akpm@...ux-foundation.org>, Daniel Micay <danielmicay@...il.com>, Christoph Lameter <cl@...ux.com>, Pekka Enberg <penberg@...nel.org>, David Rientjes <rientjes@...gle.com>, Joonsoo Kim <iamjoonsoo.kim@....com>, Vlastimil Babka <vbabka@...e.cz>, Dennis Zhou <dennis@...nel.org>, Tejun Heo <tj@...nel.org>, Masahiro Yamada <masahiroy@...nel.org>, Michal Marek <michal.lkml@...kovi.net>, Linux-MM <linux-mm@...ck.org>, Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>, linux-hardening@...r.kernel.org Subject: Re: [PATCH 1/5] Compiler Attributes: Add __alloc_size() for better bounds checking On Wed, Aug 18, 2021 at 03:07:48PM +0200, Miguel Ojeda wrote: > On Wed, Aug 18, 2021 at 7:08 AM Kees Cook <keescook@...omium.org> wrote: > > > > Clang can additionally use alloc_size to informt the results of > > Typo. > > > Additionally disables -Wno-alloc-size-larger-than since the allocators > > Disables -Walloc-size-larger-than? > > > already reject SIZE_MAX, and the compile-time warnings aren't helpful. > > Perhaps a bit more context here (and/or in the comment in the > Makefile) would be nice: i.e. why are they not helpful (even if > rejected by the allocators). Thanks for the review! I'll get this all fixed for v2. -- Kees Cook
Powered by blists - more mailing lists