]> git.neil.brown.name Git - history.git/commit
[PATCH] early_serial_setup array bounds check
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:25:14 +0000 (18:25 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:25:14 +0000 (18:25 -0700)
commit669e746156412f8bfee48dca22c685d2479a98d3
treec04c32775c926d9ad9043cb63d022732fbd3f20b
parent19067de8a196d69e816dfde4699d85a42890fd93
[PATCH] early_serial_setup array bounds check

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

early_serial_setup() doesn't validate the array index, so a caller could
corrupt memory after serial8250_ports[] by supplying a value of port->line
that's too large.

I haven't seen a failure related to this, but it seems fragile to rely on
callers to know how many ports the driver supports.
drivers/serial/8250.c