mbox series

[net,v2,0/2] fix tx buffer concurrent access protection

Message ID cover.1633764159.git.william.xuanziyang@huawei.com (mailing list archive)
Headers show
Series fix tx buffer concurrent access protection | expand

Message

Ziyang Xuan (William) Oct. 9, 2021, 7:40 a.m. UTC
Fix tx buffer concurrent access protection in isotp_sendmsg().

v2:
 - Change state of struct tpcon to u32 for cmpxchg just support 4-byte
   and 8-byte in some architectures.

Ziyang Xuan (2):
  can: isotp: add result check for wait_event_interruptible()
  can: isotp: fix tx buffer concurrent access in isotp_sendmsg()

 net/can/isotp.c | 48 +++++++++++++++++++++++++++++++++---------------
 1 file changed, 33 insertions(+), 15 deletions(-)

Comments

Marc Kleine-Budde Oct. 17, 2021, 12:22 p.m. UTC | #1
On 09.10.2021 15:40:08, Ziyang Xuan wrote:
> Fix tx buffer concurrent access protection in isotp_sendmsg().
> 
> v2:
>  - Change state of struct tpcon to u32 for cmpxchg just support 4-byte
>    and 8-byte in some architectures.
> 
> Ziyang Xuan (2):
>   can: isotp: add result check for wait_event_interruptible()
>   can: isotp: fix tx buffer concurrent access in isotp_sendmsg()

Applied to linux-can/testing, added stable on Cc.

Thanks,
Marc