[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFxQhGLtwEdtKcQLh2CLE5-hM-o-4=mWj3sB6rKgCmdSKQ@mail.gmail.com>
Date: Tue, 12 May 2015 13:35:59 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: "Luis R. Rodriguez" <mcgrof@...not-panic.com>
Cc: Ming Lei <ming.lei@...onical.com>,
Rusty Russell <rusty@...tcorp.com.au>,
David Howells <dhowells@...hat.com>,
Seth Forshee <seth.forshee@...onical.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Paul Bolle <pebolle@...cali.nl>,
Linux Wireless List <linux-wireless@...r.kernel.org>,
"Luis R. Rodriguez" <mcgrof@...e.com>,
Kyle McMartin <kyle@...nel.org>
Subject: Re: [PATCH v2 3/5] firmware: check for possible file truncation early
On Tue, May 12, 2015 at 11:30 AM, Luis R. Rodriguez
<mcgrof@...not-panic.com> wrote:
>
> Instead of waiting until the last second to fail
> on a request_firmware*() calls due to filename
> truncation we can do an early check upon boot
> and immediatley avoid any possible issues upfront.
Why? This looks stupid. Why add this special case, when normal path
lookup results in the proper errors?
And if invalid pathnames are so frequent that this special case is
somehow worth it, we should fix whoever generates that crap, instead
of adding this insane special case.
And if we don't handle the errors from normal path lookup properly,
then we should fix *that*.
In other words, I see absolutely no reason for this patch. Regardless
of the reason for it, it seems entirely broken.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists