Re: [PATCH 4.4 0/2] Backport readdir sanity checking patches

From: Ben Hutchings
Date: Tue Jan 07 2020 - 17:10:01 EST


On Tue, 2019-12-24 at 01:06 +0530, Siddharth Chandrasekaran wrote:
> Hello,
>
> This patchset is a backport of upstream commits that makes getdents() and
> getdents64() do sanity checking on the pathname that it gives to user
> space.

These seem to be needed for 3.16, as well, so I've added them to my
queue.

Ben.

> Sid
>
> Linus Torvalds (2):
> Make filldir[64]() verify the directory entry filename is valid
> filldir[64]: remove WARN_ON_ONCE() for bad directory entries
>
> fs/readdir.c | 40 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
--
Ben Hutchings
Larkinson's Law: All laws are basically false.


Attachment: signature.asc
Description: This is a digitally signed message part