Re: [PATCH v5 0/2] Remove false-positive VLAs when using max()

From
Kees Cook <hidden>
Date
2018-03-17 07:27:02
Also in
linux-input, lkml
Reply to
Linus Torvalds, 2018-03-16
On Fri, Mar 16, 2018 at 12:27 PM, Linus Torvalds
[off-list ref] 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 ‘jiffies_delta_to_clock_t’:
./include/linux/jiffies.h:444: error: first argument to
‘__builtin_choose_expr’ 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

-- 
Kees Cook
Pixel Security
Thread (37 messages) 37 messages, 10 authors, last reply 2018-03-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help