# Re: \[PATCH v4 1/2\] kernel.h: Introduce const\_max() for VLA removal

- From: Kees Cook \<hidden\>
- Date: 2018-03-15 23:49:27 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2018/03/5224530
- Thread: https://ratatoskr.run/linux-input/2018/03/5224520/t.md

```text
On Thu, Mar 15, 2018 at 4:46 PM, Linus Torvalds
[ref] wrote:
> What I'm *not* so much ok with is "const_max(5,sizeof(x))" erroring
> out, or silently causing insane behavior due to hidden subtle type
> casts..

Yup! I like it as an explicit argument. Thanks!

-Kees

-- 
Kees Cook
Pixel Security
```
