Re: [PATCH] pstore: fix NULL pointer dereference in console writes

2012-10-30 Thread Kees Cook
On Tue, Oct 30, 2012 at 7:40 AM, Colin King wrote: > From: Colin Ian King > > Passing a NULL id causes a NULL pointer deference in writers > such as erst_writer and efi_pstore_write because they expect > to update this id. Pass a dummy id instead. > > This avoids a cascade of oopses caused when

[PATCH] pstore: fix NULL pointer dereference in console writes

2012-10-30 Thread Colin King
From: Colin Ian King Passing a NULL id causes a NULL pointer deference in writers such as erst_writer and efi_pstore_write because they expect to update this id. Pass a dummy id instead. This avoids a cascade of oopses caused when the initial pstore_console_write passes a null which in turn

[PATCH] pstore: fix NULL pointer dereference in console writes

2012-10-30 Thread Colin King
From: Colin Ian King colin.k...@canonical.com Passing a NULL id causes a NULL pointer deference in writers such as erst_writer and efi_pstore_write because they expect to update this id. Pass a dummy id instead. This avoids a cascade of oopses caused when the initial pstore_console_write passes

Re: [PATCH] pstore: fix NULL pointer dereference in console writes

2012-10-30 Thread Kees Cook
On Tue, Oct 30, 2012 at 7:40 AM, Colin King colin.k...@canonical.com wrote: From: Colin Ian King colin.k...@canonical.com Passing a NULL id causes a NULL pointer deference in writers such as erst_writer and efi_pstore_write because they expect to update this id. Pass a dummy id instead.