Re: [PATCH v3] AF_ALG: Initialize sg_num_bytes in error code path
From: Eric Biggers
Date: Fri Jul 06 2018 - 17:57:59 EST
On Fri, Jul 06, 2018 at 09:50:55AM +0200, Stephan Müller wrote:
> Changes v3:
> * Fix syz testing line
>
> Changes v2:
> * Addition of syz testing line
>
> ---8<---
>
> The RX SGL in processing is already registered with the RX SGL tracking
> list to support proper cleanup. The cleanup code path uses the
> sg_num_bytes variable which must therefore be always initialized, even
> in the error code path.
>
> Signed-off-by: Stephan Mueller <smueller@xxxxxxxxxx>
> Reported-by: syzbot+9c251bdd09f83b92ba95@xxxxxxxxxxxxxxxxxxxxxxxxx
> #syz test: https://github.com/google/kmsan.git master
Can you add Fixes: and Cc: stable?
- Eric