lkml.org 
[lkml]   [2015]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [memdup_user_nul] kernel BUG at mm/slab.c:2735!
On Tue, Dec 29, 2015 at 02:39:47PM +0000, Al Viro wrote:
> On Tue, Dec 29, 2015 at 08:38:43PM +0800, Fengguang Wu wrote:
> > Hi Al,
> >
> > It looks this patch has various impacts. Here are some more bug messages.
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc
> >
> > commit c7af9d5728bed29ef614324e67e066896d087c8f
>
> The version in vfs.git has been ad8e00e50cbda2ce3831a4badc239ad014eec69 for
> a couple of days already...

FWIW, the difference (and the source of those bugs) is that the earlier
variant had missed the fact that value of kbuf gets modified between the
allocation and freeing, so it ended up doing kfree() on the tail of kmalloced
buffer.


\
 
 \ /
  Last update: 2015-12-29 16:41    [W:0.370 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site