The patch titled Subject: namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix has been added to the -mm tree. Its filename is namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Salvatore Mesoraca <s.mesoraca16@xxxxxxxxx> Subject: namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix Fix bug reported by Dan Carpenter. Link: https://lkml.kernel.org/r/20180426081456.GA7060@mwanda Link: http://lkml.kernel.org/r/1524829819-11275-1-git-send-email-s.mesoraca16@xxxxxxxxx Signed-off-by: Salvatore Mesoraca <s.mesoraca16@xxxxxxxxx> Cc: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Solar Designer <solar@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/namei.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN fs/namei.c~namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix fs/namei.c --- a/fs/namei.c~namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix +++ a/fs/namei.c @@ -3387,7 +3387,8 @@ finish_open: error = -EISDIR; if (d_is_dir(nd->path.dentry)) goto out; - error = may_create_in_sticky(dir, inode); + error = may_create_in_sticky(dir, + d_backing_inode(nd->path.dentry)); if (unlikely(error)) goto out; } _ Patches currently in -mm which might be from s.mesoraca16@xxxxxxxxx are namei-allow-restricted-o_creat-of-fifos-and-regular-files.patch namei-allow-restricted-o_creat-of-fifos-and-regular-files-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html