Re: [PATCH net 0/4] various compat ioctl fixes

2019-01-30 Thread David Miller
From: Al Viro Date: Wed, 30 Jan 2019 15:40:09 + > On Mon, Jan 28, 2019 at 10:32:30PM +0100, Johannes Berg wrote: > >> At the same time, fixing all this _completely_ is not very realistic, it >> would require passing the ifreq size through to lots of places and >> making the user copy there t

Re: [PATCH net 0/4] various compat ioctl fixes

2019-01-30 Thread Al Viro
On Mon, Jan 28, 2019 at 10:32:30PM +0100, Johannes Berg wrote: > At the same time, fixing all this _completely_ is not very realistic, it > would require passing the ifreq size through to lots of places and > making the user copy there take the size rather than sizeof(ifreq), > obviously the very

Re: [PATCH net 0/4] various compat ioctl fixes

2019-01-29 Thread David Miller
From: Johannes Berg Date: Mon, 28 Jan 2019 22:32:30 +0100 > Al, care to speak up about this here? I'll give Al one day to respond. I'll apply this series if he agrees or fails to give feedback.

Re: [PATCH net 0/4] various compat ioctl fixes

2019-01-28 Thread Johannes Berg
On Mon, 2019-01-28 at 11:22 -0800, David Miller wrote: > I see some back and forth between you and Al, where do we stand at > this point? I don't really know. I think neither of us _likes_ this code, in particular the whole copy_in_user() thing is quite a mess. The copy_in_user() also means that

Re: [PATCH net 0/4] various compat ioctl fixes

2019-01-28 Thread David Miller
From: Johannes Berg Date: Fri, 25 Jan 2019 22:43:16 +0100 > Back a long time ago, I already fixed a few of these by passing > the size of the struct ifreq to do_sock_ioctl(). However, Robert > found more cases, and now it won't be as simple because we'd have > to pass that down all the way to e.g

[PATCH net 0/4] various compat ioctl fixes

2019-01-25 Thread Johannes Berg
Back a long time ago, I already fixed a few of these by passing the size of the struct ifreq to do_sock_ioctl(). However, Robert found more cases, and now it won't be as simple because we'd have to pass that down all the way to e.g. bond_do_ioctl() which isn't really feasible. Therefore, restore t