Re: [PATCH] devpts: fix null pointer dereference on failed memory allocation

2016-06-27 Thread Colin Ian King
On 26/06/16 19:29, Greg Kroah-Hartman wrote: > On Mon, Jun 20, 2016 at 03:40:27PM +0100, Colin King wrote: >> From: Colin Ian King >> >> An ENOMEM when creating a pair tty in tty_ldisc_setup causes a null >> pointer dereference in devpts_kill_index because tty->link->driver_data >> is NULL. The o

Re: [PATCH] devpts: fix null pointer dereference on failed memory allocation

2016-06-26 Thread Greg Kroah-Hartman
On Mon, Jun 20, 2016 at 03:40:27PM +0100, Colin King wrote: > From: Colin Ian King > > An ENOMEM when creating a pair tty in tty_ldisc_setup causes a null > pointer dereference in devpts_kill_index because tty->link->driver_data > is NULL. The oops was triggered with the pty stressor in stress-n

[PATCH] devpts: fix null pointer dereference on failed memory allocation

2016-06-20 Thread Colin King
From: Colin Ian King An ENOMEM when creating a pair tty in tty_ldisc_setup causes a null pointer dereference in devpts_kill_index because tty->link->driver_data is NULL. The oops was triggered with the pty stressor in stress-ng when in a low memory condition. tty_init_dev tries to clean up a tt