Re: [PATCH v2] fuse: break infinite loop in fuse_fill_write_pages()

From: Miklos Szeredi
Date: Tue Nov 10 2015 - 09:41:56 EST


On Mon, Oct 12, 2015 at 3:33 PM, Roman Gushchin <klamm@xxxxxxxxxxxxxx> wrote:
> I got a report about unkillable task eating CPU. Further
> investigation shows, that the problem is in the fuse_fill_write_pages()
> function. If iov's first segment has zero length, we get an infinite
> loop, because we never reach iov_iter_advance() call.
>
> Fix this by calling iov_iter_advance() before repeating an attempt to
> copy data from userspace.

Thanks, queued in

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-next

Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/