Re: [PATCH] crypto: Add 0 walk-offset check in scatterwalk_pagedone()

2018-07-19 Thread 罗新强
] 发送时间: 2018年7月15日 22:05 收件人: Liuchao (H) 抄送: herb...@gondor.apana.org.au; da...@davemloft.net; linux-crypto@vger.kernel.org; dongjinguang ; ebigg...@google.com; 罗新强 ; gaokui (A) 主题: Re: [PATCH] crypto: Add 0 walk-offset check in scatterwalk_pagedone() Hi Liu, On Mon, Jul 09, 2018 at 05:

Re: [PATCH] crypto: Add 0 walk-offset check in scatterwalk_pagedone()

2018-07-15 Thread Eric Biggers
Hi Liu, On Mon, Jul 09, 2018 at 05:10:19PM +0800, Liu Chao wrote: > From: Luo Xinqiang > > In function scatterwalk_pagedone(), a kernel panic of invalid > page will occur if walk->offset equals 0. This patch fixes the > problem by setting the page addresswith sg_page(walk->sg) > directly if walk

[PATCH] crypto: Add 0 walk-offset check in scatterwalk_pagedone()

2018-07-09 Thread Liu Chao
From: Luo Xinqiang In function scatterwalk_pagedone(), a kernel panic of invalid page will occur if walk->offset equals 0. This patch fixes the problem by setting the page addresswith sg_page(walk->sg) directly if walk->offset equals 0. Panic call stack: [] blkcipher_walk_done+0x430/0x8dc [] blk