Re: [PATCH] sysctl: terminate strings also on \r

From: Andrew Morton
Date: Thu Oct 23 2014 - 14:23:25 EST


On Thu, 23 Oct 2014 09:39:09 -0700 Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> > I wonder if the chances of damage would be lower if we were to continue
> > to accept the \r, but turn it into something else ("\r"?) when it is
> > read.
>
> I think that would complicate things more than help them.

Why.

> If there's a
> legit use of \r, I'll let Paul Wise debate how to proceed. :)

I don't know who Paul is. Please take this seriously; we don't want to
have to revert this after breaking a bunch of people's setups.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/