Re: [PATCH 02/16] autofs4: switch autofs4_write to __kernel_write

From: Christoph Hellwig
Date: Fri Sep 01 2017 - 06:22:54 EST


On Wed, Aug 30, 2017 at 04:30:26PM +0100, Al Viro wrote:
> On Wed, Aug 30, 2017 at 04:59:53PM +0200, Christoph Hellwig wrote:
> > Instead of playing games with the address limit..
>
> I wonder... Do we verify that it's a pipe? If so, ->f_pos can
> (and should) be left alone...

currently nothing in autofs_dev_ioctl_setpipefd verifies that
it's a pipe.