Re: [PATCH 1/2] lib/scatterlist: Fix NULL pointer deference

2021-04-06 Thread Ricardo Ribalda
Hi Friendly ping? On Tue, Mar 9, 2021 at 9:51 PM Ricardo Ribalda wrote: > > When sg_alloc_table_from_pages is called with n_pages = 0, we write in a > non-allocated page. Fix it by checking early the error condition. > > [7.666801] BUG: kernel NULL pointer dereference, address: 0

[PATCH 1/2] lib/scatterlist: Fix NULL pointer deference

2021-03-09 Thread Ricardo Ribalda
When sg_alloc_table_from_pages is called with n_pages = 0, we write in a non-allocated page. Fix it by checking early the error condition. [7.666801] BUG: kernel NULL pointer dereference, address: 0010 [7.667487] #PF: supervisor read access in kernel mode [7.667970] #PF: er