2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/crypto/chelsio
Atul Gupta 3b8305f5c8 crypto: chtls - wait for memory sendmsg, sendpage
address suspicious code <gustavo@embeddedor.com>

1210       set_bit(SOCK_NOSPACE, &sk->sk_socket->flags);
1211       }

The issue is that in the code above, set_bit is never reached
due to the 'continue' statement at line 1208.

Also reported by bug report:<dan.carpenter@oracle.com>
1210       set_bit(SOCK_NOSPACE, &sk->sk_socket->flags);
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not reachable.

Its required to wait for buffer in the send path and takes care of
unaddress and un-handled SOCK_NOSPACE.

v2: use csk_mem_free where appropriate
    proper indent of goto do_nonblock
    replace out with do_rm_wq

Reported-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-05-31 00:13:58 +08:00
..
chtls crypto: chtls - wait for memory sendmsg, sendpage 2018-05-31 00:13:58 +08:00
chcr_algo.c crypto: chelsio - Remove separate buffer used for DMA map B0 block in CCM 2018-05-31 00:13:48 +08:00
chcr_algo.h crypt: chelsio - Send IV as Immediate for cipher algo 2018-05-31 00:13:48 +08:00
chcr_core.c chcr: Add support for Inline IPSec 2017-11-29 17:33:29 +11:00
chcr_core.h crypt: chelsio - Send IV as Immediate for cipher algo 2018-05-31 00:13:48 +08:00
chcr_crypto.h crypto: chelsio - Remove separate buffer used for DMA map B0 block in CCM 2018-05-31 00:13:48 +08:00
chcr_ipsec.c crypto: chelsio - request to HW should wrap 2018-05-19 00:13:56 +08:00
Kconfig crypto: chtls - Makefile Kconfig 2018-03-31 23:37:33 -04:00
Makefile crypto: chtls - Makefile Kconfig 2018-03-31 23:37:33 -04:00