diff options
author | NeilBrown <[email protected]> | 2019-03-07 16:29:16 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-03-07 18:32:01 -0800 |
commit | 660c9fc72e06d7a46d96d2cb8524a26565072a76 (patch) | |
tree | 4adce139d95571ff6789dc81120227d98145a90e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 874d22d62bc6dca7ceec48c44d247af0109e0b5b (diff) |
autofs: clear O_NONBLOCK on the pipe
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 February 2019 used
pipe2(p, O_NONBLOCK|O_CLOEXEC)
and thus (inadvertently) set this flag.
Link: http://lkml.kernel.org/r/154993550902.3321.1183632970046073478.stgit@pluto-themaw-net
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Ian Kent <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions