Thread (3 messages) 3 messages, 3 authors, 2020-12-08

Re: [PATCH] drivers/lightnvm: fix a null-ptr-deref bug in pblk-core.c

From: Jens Axboe <axboe@kernel.dk>
Date: 2020-12-08 17:04:30

On 11/30/20 12:23 AM, tangzhenhao wrote:
At line 294 in drivers/lightnvm/pblk-write.c, function pblk_gen_run_ws
is called with actual param GFP_ATOMIC. pblk_gen_run_ws call
mempool_alloc using "GFP_ATOMIC" flag, so mempool_alloc can return
null. So we need to check the return-val of mempool_alloc to avoid
null-ptr-deref bug.
Please line-break at 72/74 chars for future patches, I fixed this one
up. Applied for 5.11, thanks.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help