[PATCH] autofs: clear O_NONBLOCK on the pipe.

2019-02-11 Thread Ian Kent
From: NeilBrown autofs does not expect the pipe it is given to have O_NONBLOCK set - specifically if __kernel_write() in autofs_write() returns -EAGAIN, this is treated as a fatal error and the pipe is closed. For safety autofs should, therefore, clear the O_NONBLOCK flag. Releases of systemd

Re: [PATCH] autofs: clear O_NONBLOCK on the pipe.

2019-02-10 Thread Ian Kent
On Mon, 2019-02-11 at 10:37 +1100, NeilBrown wrote: > autofs does not expect the pipe it is given > to have O_NONBLOCK set - specifically if __kernel_write() > in autofs_write() returns -EAGAIN, this is treated > as a fatal error and the pipe is closed. > > For safety autofs should, therefore,

[PATCH] autofs: clear O_NONBLOCK on the pipe.

2019-02-10 Thread NeilBrown
autofs does not expect the pipe it is given to have O_NONBLOCK set - specifically if __kernel_write() in autofs_write() returns -EAGAIN, this is treated as a fatal error and the pipe is closed. For safety autofs should, therefore, clear the O_NONBLOCK flag. Releases of systemd prior to 8th