Re: [PATCH v2 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread Jeff Layton
On Tue, 2017-06-13 at 13:10 +0200, Jiri Slaby wrote: > On 06/13/2017, 12:11 PM, Jeff Layton wrote: > > On Tue, 2017-06-13 at 11:22 +0200, Jiri Slaby wrote: > > > fcntl(0, F_SETOWN, 0x8000) triggers: > > > UBSAN: Undefined behaviour in fs/fcntl.c:118:7 > > > negation of -2147483648 cannot be rep

Re: [PATCH v2 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread Jiri Slaby
On 06/13/2017, 12:11 PM, Jeff Layton wrote: > On Tue, 2017-06-13 at 11:22 +0200, Jiri Slaby wrote: >> fcntl(0, F_SETOWN, 0x8000) triggers: >> UBSAN: Undefined behaviour in fs/fcntl.c:118:7 >> negation of -2147483648 cannot be represented in type 'int': >> CPU: 1 PID: 18261 Comm: syz-executor No

Re: [PATCH v2 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread Jeff Layton
On Tue, 2017-06-13 at 11:22 +0200, Jiri Slaby wrote: > fcntl(0, F_SETOWN, 0x8000) triggers: > UBSAN: Undefined behaviour in fs/fcntl.c:118:7 > negation of -2147483648 cannot be represented in type 'int': > CPU: 1 PID: 18261 Comm: syz-executor Not tainted 4.8.1-0-syzkaller #1 > ... > Call Trace: