lkml.org 
[lkml]   [2012]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] nilfs2: avoid overflowing segment numbers in nilfs_ioctl_clean_segments()
On Sat, 04 Feb 2012 12:13:02 +0900 (JST) Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> wrote:

> On Fri, 3 Feb 2012 10:26:07 -0500, Xi Wang wrote:
> > nsegs is read from userspace. Limit its value and avoid overflowing
> > nsegs * sizeof(__u64) in the subsequent call to memdup_user().
> >
> > This patch complements 481fe17e973fb97aa3edf17c69557afe88d8334f.
> >
> > Signed-off-by: Xi Wang <xi.wang@gmail.com>
> > Cc: Haogang Chen <haogangchen@gmail.com>
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > ---
> > fs/nilfs2/ioctl.c | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
>
> Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
>
>
> Thank you for posting this fix.
>
> Andrew, could you send this uptream in this cycle ?

I sure can.


\
 
 \ /
  Last update: 2012-02-04 05:37    [W:0.048 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site