lkml.org 
[lkml]   [2014]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fs: make generic_block_fiemap sig-tolerant PING2...
On Wed, 10 Dec 2014 16:49:18 +0300 Dmitry Monakhov <dmonakhov@openvz.org> wrote:

>
> Hello. Someone please take care of this patch.
>
> W/o that patch unprivileged user may abuse system resources simply by spawning
> wast number of unkilable busyloops (works on ext2/ext3):
>
> truncate --size 1T test
> for ((i=0;i<1024;i++))
> do
> filefrag test > /dev/null &
> done
>
> >> --- a/fs/ioctl.c
> >> +++ b/fs/ioctl.c
> >> @@ -379,6 +379,11 @@ int __generic_block_fiemap(struct inode *inode,
> >> past_eof = true;
> >> }
> >> cond_resched();
> >> + if (fatal_signal_pending(current)) {
> >> + ret = -EINTR;
> >> + break;
> >> + }
> >> +
> >> } while (1);
> >>

Is FIEMAP documented anywhere (manpage)? If so, that will need an
update.


\
 
 \ /
  Last update: 2014-12-19 00:41    [W:0.058 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site