From: Miaoqian Lin <hidden> Date: 2022-11-10 02:58:53
The module_get_next_page() function return error pointers on error
instead of NULL.
Use IS_ERR() to check the return value to fix this.
Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
Signed-off-by: Miaoqian Lin <redacted>
---
kernel/module/decompress.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
From: Luis Chamberlain <mcgrof@kernel.org> Date: 2022-11-10 04:09:23
On Thu, Nov 10, 2022 at 06:58:34AM +0400, Miaoqian Lin wrote:
The module_get_next_page() function return error pointers on error
instead of NULL.
Use IS_ERR() to check the return value to fix this.
Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
Signed-off-by: Miaoqian Lin <redacted>
---
Thanks queued up. How did you find out? Just code inspection? I see
chances are low of this triggering, but just curious how you found it.
Luis
From: Miaoqian Lin <hidden> Date: 2022-11-10 04:19:09
Hi,
On 2022/11/10 12:09, Luis Chamberlain wrote:
On Thu, Nov 10, 2022 at 06:58:34AM +0400, Miaoqian Lin wrote:
quoted
The module_get_next_page() function return error pointers on error
instead of NULL.
Use IS_ERR() to check the return value to fix this.
Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
Signed-off-by: Miaoqian Lin <redacted>
---
Thanks queued up. How did you find out? Just code inspection? I see
chances are low of this triggering, but just curious how you found it.
I found this by static analysis, specifically, I obtained functions that return error pointers and
inspected whether their callers followed the correct specification.
From: Luis Chamberlain <mcgrof@kernel.org> Date: 2022-11-10 06:05:12
On Thu, Nov 10, 2022 at 12:18:50PM +0800, Miaoqian Lin wrote:
Hi,
On 2022/11/10 12:09, Luis Chamberlain wrote:
quoted
On Thu, Nov 10, 2022 at 06:58:34AM +0400, Miaoqian Lin wrote:
quoted
The module_get_next_page() function return error pointers on error
instead of NULL.
Use IS_ERR() to check the return value to fix this.
Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
Signed-off-by: Miaoqian Lin <redacted>
---
Thanks queued up. How did you find out? Just code inspection? I see
chances are low of this triggering, but just curious how you found it.
I found this by static analysis, specifically, I obtained functions that return error pointers and
inspected whether their callers followed the correct specification.
From: Miaoqian Lin <hidden> Date: 2022-11-10 06:26:51
On 2022/11/10 14:05, Luis Chamberlain wrote:
On Thu, Nov 10, 2022 at 12:18:50PM +0800, Miaoqian Lin wrote:
quoted
Hi,
On 2022/11/10 12:09, Luis Chamberlain wrote:
quoted
On Thu, Nov 10, 2022 at 06:58:34AM +0400, Miaoqian Lin wrote:
quoted
The module_get_next_page() function return error pointers on error
instead of NULL.
Use IS_ERR() to check the return value to fix this.
Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
Signed-off-by: Miaoqian Lin <redacted>
---
Thanks queued up. How did you find out? Just code inspection? I see
chances are low of this triggering, but just curious how you found it.
I found this by static analysis, specifically, I obtained functions that return error pointers and
inspected whether their callers followed the correct specification.
On Thu, Nov 10, 2022 at 06:58:34AM +0400, Miaoqian Lin wrote:
The module_get_next_page() function return error pointers on error
instead of NULL.
Use IS_ERR() to check the return value to fix this.
Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
Signed-off-by: Miaoqian Lin <redacted>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Thank you for spotting this.
--
Dmitry