Skip to content

Commit 55bb519

Browse files
r-vigneshgregkh
authored andcommitted
serial: 8250: 8250_omap: Fix possible array out of bounds access
commit d4548b1 upstream. k3_soc_devices array is missing a sentinel entry which may result in out of bounds access as reported by kernel KASAN. Fix this by adding a sentinel entry. Fixes: 439c718 ("serial: 8250: 8250_omap: Disable RX interrupt after DMA enable") Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Link: https://lore.kernel.org/r/20201111112653.2710-1-vigneshr@ti.com Signed-off-by: Nobuhiro Iwamatsu (CIP) <nobuhiro1.iwamatsu@toshiba.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8e41134 commit 55bb519

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/tty/serial/8250/8250_omap.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ static int omap8250_no_handle_irq(struct uart_port *port)
12111211
static const struct soc_device_attribute k3_soc_devices[] = {
12121212
{ .family = "AM65X", },
12131213
{ .family = "J721E", .revision = "SR1.0" },
1214+
{ /* sentinel */ }
12141215
};
12151216

12161217
static struct omap8250_dma_params am654_dma = {

0 commit comments

Comments
 (0)