Re: [PATCH] Fix kfree bug in sendmsg and recvmsg

2016-02-17 Thread David Miller
From: Joe Korty Date: Wed, 17 Feb 2016 11:38:05 -0500 > Fix kfree bug in recvmsg and sendmsg. > > We cannot kfree(iov) when iov points to an array on the > stack, as that has the potential of corrupting memory. > > So re-introduce the if-stmt that used to protect kfree > from this condition, co

Re: [PATCH] Fix kfree bug in sendmsg and recvmsg

2016-02-17 Thread Al Viro
On Wed, Feb 17, 2016 at 04:44:07PM +, Al Viro wrote: > On Wed, Feb 17, 2016 at 11:38:05AM -0500, Joe Korty wrote: > > Fix kfree bug in recvmsg and sendmsg. > > > > We cannot kfree(iov) when iov points to an array on the > > stack, as that has the potential of corrupting memory. > > > > So re-

Re: [PATCH] Fix kfree bug in sendmsg and recvmsg

2016-02-17 Thread Al Viro
On Wed, Feb 17, 2016 at 11:38:05AM -0500, Joe Korty wrote: > Fix kfree bug in recvmsg and sendmsg. > > We cannot kfree(iov) when iov points to an array on the > stack, as that has the potential of corrupting memory. > > So re-introduce the if-stmt that used to protect kfree > from this condition,

[PATCH] Fix kfree bug in sendmsg and recvmsg

2016-02-17 Thread Joe Korty
Fix kfree bug in recvmsg and sendmsg. We cannot kfree(iov) when iov points to an array on the stack, as that has the potential of corrupting memory. So re-introduce the if-stmt that used to protect kfree from this condition, code that was removed as part of a larger set of changes made by git com