Al Viro 752f72edea do_last(): fetch directory ->i_mode and ->i_uid before it's too late
commit d0cb50185ae942b03c4327be322055d622dc79f6 upstream.

may_create_in_sticky() call is done when we already have dropped the
reference to dir.

Fixes: 30aba6656f61e (namei: allow restricted O_CREAT of FIFOs and regular files)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-29 16:43:21 +01:00
..
2019-08-06 19:06:51 +02:00
2019-12-13 08:52:23 +01:00
2019-12-17 20:35:18 +01:00
2019-12-13 08:52:36 +01:00
2018-08-17 16:20:28 -07:00
2019-12-13 08:51:59 +01:00
2020-01-09 10:19:03 +01:00
2018-08-17 16:20:27 -07:00
2018-08-18 11:44:53 -07:00
2019-11-20 18:46:04 +01:00
2019-05-02 09:58:59 +02:00
2018-08-21 18:19:09 -07:00