From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Sender: keescook@google.com In-Reply-To: References: <1521174359-46392-1-git-send-email-keescook@chromium.org> <20180316175502.GE30522@ZenIV.linux.org.uk> From: Kees Cook Date: Sat, 17 Mar 2018 00:27:02 -0700 Message-ID: Subject: Re: [PATCH v5 0/2] Remove false-positive VLAs when using max() Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable To: Linus Torvalds Cc: Al Viro , Florian Weimer , Andrew Morton , Josh Poimboeuf , Rasmus Villemoes , Randy Dunlap , Miguel Ojeda , Ingo Molnar , David Laight , Ian Abbott , linux-input , linux-btrfs , Network Development , Linux Kernel Mailing List , Kernel Hardening List-ID: On Fri, Mar 16, 2018 at 12:27 PM, Linus Torvalds wrote: > Kees - is there some online "gcc-4.4 checker" somewhere? This does > seem to work with my gcc. I actually tested some of those files you > pointed at now. Unfortunately my 4.4 test fails quickly: ./include/linux/jiffies.h: In function =E2=80=98jiffies_delta_to_clock_t=E2= =80=99: ./include/linux/jiffies.h:444: error: first argument to =E2=80=98__builtin_choose_expr=E2=80=99 not a constant static inline clock_t jiffies_delta_to_clock_t(long delta) { return jiffies_to_clock_t(max(0L, delta)); } I think this is the same problem of using __builtin_constant_p() in 4.4 that we hit earlier? :( -Kees --=20 Kees Cook Pixel Security