All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ziyang Xuan <william.xuanziyang@huawei.com>
To: <socketcan@hartkopp.net>, <mkl@pengutronix.de>
Cc: <davem@davemloft.net>, <kuba@kernel.org>,
	<linux-can@vger.kernel.org>, <netdev@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: [PATCH net v2 0/2] fix tx buffer concurrent access protection
Date: Sat, 9 Oct 2021 15:40:08 +0800	[thread overview]
Message-ID: <cover.1633764159.git.william.xuanziyang@huawei.com> (raw)

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(-)

-- 
2.25.1


             reply	other threads:[~2021-10-09  7:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-09  7:40 Ziyang Xuan [this message]
2021-10-09  7:40 ` [PATCH net v2 1/2] can: isotp: add result check for wait_event_interruptible() Ziyang Xuan
2021-10-11 19:10   ` Oliver Hartkopp
2021-10-09  7:40 ` [PATCH net v2 2/2] can: isotp: fix tx buffer concurrent access in isotp_sendmsg() Ziyang Xuan
2021-10-11 19:11   ` Oliver Hartkopp
2021-10-17 12:22 ` [PATCH net v2 0/2] fix tx buffer concurrent access protection Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1633764159.git.william.xuanziyang@huawei.com \
    --to=william.xuanziyang@huawei.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=netdev@vger.kernel.org \
    --cc=socketcan@hartkopp.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.