[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20121202181057.097012c6@pyramind.ukuu.org.uk>
Date: Sun, 2 Dec 2012 18:10:57 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Paul Fulghum <paulkf@...rogate.com>
Cc: Greg KH <gregkh@...uxfoundation.org>,
Chen Gang <gang.chen@...anux.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-serial@...r.kernel.org
Subject: Re: [PATCH] synclink fix ldisc buffer argument
On Sun, 2 Dec 2012 10:11:58 -0600
Paul Fulghum <paulkf@...rogate.com> wrote:
> True, in this mode line disciplines other than N_HDLC would not be functional and N_HDLC ignores the flag buffer.
> This change won’t make other line disciplines useful, it will just prevent the case of a mistakenly selected line discipline accessing beyond the end of the (dummy) flag buffer.
>
> I’m fine with or without the change. It is functional now with a chance to read past then end of a buffer if misconfigured. With the change, it has the same functionality without the ability to read past the end of a buffer if misconfigured.
With the change its feeding crap in the flags buffer, which may matter in
future depending what happens to the other bits.
If this is a real issue far better to just kzalloc a blank flag buffer to
match the mtu.
--
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