]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Compiler Attributes: Add __alloc_size for better bounds checking fix
authorKees Cook <keescook@chromium.org>
Tue, 31 Aug 2021 22:23:16 +0000 (15:23 -0700)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 2 Sep 2021 05:32:30 +0000 (15:32 +1000)
commit34af26c4252ca2918790a75caafecacdd51b555c
tree70c52c3063bb055abe8d46cb4833431eac8c6291
parent2fac0c6418a9f07451d806a29154429fca7cbee6
Compiler Attributes: Add __alloc_size for better bounds checking fix

Adjust the warning logic to deal with pre-9.1 gcc behaviors.

Link: https://lkml.kernel.org/r/20210827151327.2729736-1-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Makefile