From patchwork Sat Oct 9 07:40:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ziyang Xuan (William)" X-Patchwork-Id: 12547337 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A45F4C433EF for ; Sat, 9 Oct 2021 07:41:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 800D360F6D for ; Sat, 9 Oct 2021 07:41:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232802AbhJIHnP (ORCPT ); Sat, 9 Oct 2021 03:43:15 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:25112 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbhJIHnO (ORCPT ); Sat, 9 Oct 2021 03:43:14 -0400 Received: from dggeml757-chm.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4HRH5D6gbgz1DGn9; Sat, 9 Oct 2021 15:39:44 +0800 (CST) Received: from localhost.localdomain (10.175.104.82) by dggeml757-chm.china.huawei.com (10.1.199.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Sat, 9 Oct 2021 15:41:16 +0800 From: Ziyang Xuan To: , CC: , , , , Subject: [PATCH net v2 0/2] fix tx buffer concurrent access protection Date: Sat, 9 Oct 2021 15:40:08 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.104.82] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggeml757-chm.china.huawei.com (10.1.199.137) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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(-)