Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1641827pxb; Thu, 28 Oct 2021 07:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxanLh9NCpvGElXjPENTmDx9uwvqykKO4fFY//tMfrYC+tbz24UIPOzQoLwX7CnI7DyKjBh X-Received: by 2002:a63:1444:: with SMTP id 4mr3377065pgu.251.1635431325634; Thu, 28 Oct 2021 07:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635431325; cv=none; d=google.com; s=arc-20160816; b=X/ed1VUGlWYwH/r8w/8yY0MhJZ0wIk/ipAgfthIILycKsLC1Zy0M5O94uHcWoAtZ9K kxQPhBEGkaI6pDYxOeeWqaj/8yVOunN6vPxEjVL/60cy2tsYtk6xJ5539x+sjdQTjsqq k5kk/y2yHcuDZbgKi7w8LvPL4t66rHnpJJfo9BldgNU8XX6BU4PsbLP+yCMB0YciNM1A hsjY+W17bx+BKwzHkH8qfj7jdf9sa51CJ8m6NBoehremz0IdjxPpsUntpJ24KFjxzMUp OW4fUrI3HJ3cK5mwBL9dqnySQJZSWZYs5Iy/QgWGzZKLmfHdvkfBXKt5a0y4z+Y86uZw TVKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=cdl67/jTBUBHeBhtQ/25/zn9SsaJ+nNZXaB4dp4jeHw=; b=qXxaLb82s8N41zTzF3rNAbtHk9RJdCpgLzAeMIsRIwkKCb+pFX6gZOjruwI1mW9Mcy w0j2Z6HQxYAoVmTklGmUSuHLtpPotRuG4qJjW6klk1nqc5zlq8masuKsgZ2H/LSjjZXz IWZFP7mlclp5ctb984BVN5n+ab4Cyg+RVgUc+ROTnl0mh4UK7gdVMWKplPL3x6Vo1TCs QFmDi0gXYjR5gFXryg72bXYCbQb+ydaP6rvvWyTT41WR8wQwj11l5RL126VCoJ09dqs6 7Gz0MAWI1vPlKGCuh4DQKnA2D62whjZnKNCAAAQJyXlvHug+OB7zzGPVWP9Q79bbxvsa TD6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t66si4039442pfd.303.2021.10.28.07.28.09; Thu, 28 Oct 2021 07:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbhJ1O3j (ORCPT + 99 others); Thu, 28 Oct 2021 10:29:39 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:29947 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbhJ1O3i (ORCPT ); Thu, 28 Oct 2021 10:29:38 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Hg7761FS7zbnB3; Thu, 28 Oct 2021 22:22:26 +0800 (CST) Received: from dggpeml500006.china.huawei.com (7.185.36.76) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 28 Oct 2021 22:27:05 +0800 Received: from compute.localdomain (10.175.112.70) by dggpeml500006.china.huawei.com (7.185.36.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 28 Oct 2021 22:27:05 +0800 From: Zhang Changzhong To: Robin van der Gracht , Oleksij Rempel , , Oliver Hartkopp , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski CC: Zhang Changzhong , , , Subject: [PATCH net v2 0/3] can: j1939: fix some standard conformance problems Date: Thu, 28 Oct 2021 22:38:24 +0800 Message-ID: <1635431907-15617-1-git-send-email-zhangchangzhong@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.70] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500006.china.huawei.com (7.185.36.76) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes 3 standard conformance problems in the j1939 stack. v2: - Add netdev_err_once() to indicate bad messages on the bus. - Fix the if statement in the third patch to avoid breaking ETP functionality. Zhang Changzhong (3): can: j1939: j1939_tp_cmd_recv(): ignore abort message in the BAM transport can: j1939: j1939_can_recv(): ignore messages with invalid source address can: j1939: j1939_tp_cmd_recv(): check the dst address of TP.CM_BAM net/can/j1939/main.c | 6 ++++++ net/can/j1939/transport.c | 11 +++++++++++ 2 files changed, 17 insertions(+) -- 2.9.5