Re: [PATCH] fs: pipe, fix undefined behaviour

2016-10-14 Thread Vegard Nossum
On 14 October 2016 at 11:23, Jiri Slaby wrote: > echo | ./program > where ./program contains fcntl(0, F_SETPIPE_SZ, 0) this is triggered: > UBSAN: Undefined behaviour in ../include/linux/log2.h:63:13 > shift exponent 64 is too large for 64-bit type 'long unsigned int' > CPU: 3

Re: [PATCH] fs: pipe, fix undefined behaviour

2016-10-14 Thread Vegard Nossum
On 14 October 2016 at 11:23, Jiri Slaby wrote: > echo | ./program > where ./program contains fcntl(0, F_SETPIPE_SZ, 0) this is triggered: > UBSAN: Undefined behaviour in ../include/linux/log2.h:63:13 > shift exponent 64 is too large for 64-bit type 'long unsigned int' > CPU: 3 PID: 4978 Comm: