Re: [PATCH] proc: reject "." and ".." as filenames

From: Florian Westphal
Date: Fri Mar 09 2018 - 19:50:58 EST


Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
> Various subsystems can create files and directories in /proc
> with names directly controlled by userspace.
>
> Which means "/", "." and ".." are no-no.
>
> "/" split is already taken care of, do the other 2 prohibited names.

Acked-by: Florian Westphal <fw@xxxxxxxxx>

I'll send a patch for xtables too to reject bogus names
coming from userspace (syzbot reports WARN() ).