From: Dinghao Liu <hidden> Date: 2020-08-27 08:03:39
When kmalloc() fails, cipher should be freed
just like when krb5_rc4_setup_seq_key() fails.
Fixes: e7afe6c1d486b ("sunrpc: fix 4 more call sites that were using stack memory with a scatterlist")
Signed-off-by: Dinghao Liu <redacted>
---
net/sunrpc/auth_gss/gss_krb5_seqnum.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
From: J. Bruce Fields <hidden> Date: 2020-08-29 15:36:51
This code is rarely if ever used, and there are pending patches to
remove it completely, so I don't think it's worth trying to fix a rare
memory leak at this point.
--b.
On Thu, Aug 27, 2020 at 04:02:50PM +0800, Dinghao Liu wrote:
quoted hunk
When kmalloc() fails, cipher should be freed
just like when krb5_rc4_setup_seq_key() fails.
Fixes: e7afe6c1d486b ("sunrpc: fix 4 more call sites that were using stack memory with a scatterlist")
Signed-off-by: Dinghao Liu <redacted>
---
net/sunrpc/auth_gss/gss_krb5_seqnum.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
On Sat, 29 Aug 2020 at 18:43, J. Bruce Fields [off-list ref] wrote:
This code is rarely if ever used, and there are pending patches to
remove it completely, so I don't think it's worth trying to fix a rare
memory leak at this point.
--b.
FYI I just submitted v3 of my series removing this code to the
linux-crypto list, and so hopefully it will disappear in v5.10
On Thu, Aug 27, 2020 at 04:02:50PM +0800, Dinghao Liu wrote:
quoted
When kmalloc() fails, cipher should be freed
just like when krb5_rc4_setup_seq_key() fails.
Fixes: e7afe6c1d486b ("sunrpc: fix 4 more call sites that were using stack memory with a scatterlist")
Signed-off-by: Dinghao Liu <redacted>
---
net/sunrpc/auth_gss/gss_krb5_seqnum.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)