From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796252944; b=KkERfIdb47q7bjz7QLogkyoRRd/UhKXIHD3pBE8/mmU5p6/5IiWghIJpwPJ90HXqubBl aQBg5zpeOPQnTWDUbfBTTlbRCe7g30K2T8h+Fs7SX/fzyMdMr9hnhQelAv4WFXcvRPZpu MUQhbT0BbfQPvRdmQc2VpTq5HVTTmt3+oOd9W5oy1HxPYKf6tSpK/XHORKShQyDpYTAEj 1g2qAl3b1Ox9aykVcS5Sgw9hTT04wQvYlt2iHDTo/JOb6S+ivBHjQSoEtQ3CMZDTYCgWK NIGsvpga1sgPabUQzDrsdZfsqZaQdxj0sf+YE2TPrMlxZe6VSRFxBohDWvrAJR4u32w== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796252944; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=OtGkeOfliWnGZ2wt+Zl0UL8CQB4PLNHucxc6Zu7EWuU=; b=zgHtZE8DGEnV2KRvPrM3LXrz1pTmfVtDHi/kk9+Y4J5MwADFFKUxIDWk2RdrVUwRhzwK OEmkrrykLtD1W8mEVkWRl/7z7PpJkQqP/0/LJrR3uksaPWhJGfFvZ00rVogGch/uH/Pk3 Cy+KxUKL6l9tRgSKAuBazJ0OmzF1RYmvptXw+acPcGS2OeB08cHCIXRZje1shEzf1gv5y YMVnUWE08SIH8GQ03ntt3z14IYhyAnPpFzjnO59EV1KYdke4Ip2QaumwVfp740Y6W/vHS UhrNZZYxNjw2Eyz8FLFDpcjWKZdi6cbmQ7N35dtgAwgxOWa8RRvceyIewpk3dzKN5Mw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=FbYTbxpv; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C39D606A32C; Wed, 2 Dec 2026 23:09:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6C39D606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=FbYTbxpv Received: from pengutronix.de (unknown [IPv6:2a0e:1580:1000::2dff:fe0e:e982]) (Authenticated sender: mkl@pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 502F8201923; Thu, 03 Dec 2026 00:08:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796252937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OtGkeOfliWnGZ2wt+Zl0UL8CQB4PLNHucxc6Zu7EWuU=; b=FbYTbxpvSgT/6/+gV8ALfQiBO7ivzTHqWWiypQ5OycgALFg7vG+qa76LWnk0HWJqKhpFv1 3cdjiVmRtQevJEXCPyITwv7JZ/P1PRwqIhSTLO9L5rd+kN+5LZ4vPiPqjH8j3dOhs2KfKt offM4Ku5I6k2bx6Ck5nMXgxusbhniDouXJO125dnKHkImljlPkFicyVCf0PF8+dD3bRLG+ eIprL3N+ZPGws8Z8WCdN+eckNTeGnNt/w0I4952n4fsvlJs4FIObGUzXMmkuIIISGyBeBT yk5l1LJyjrCPkiTq/NokobGmsRonbz0EZ3CHFSHJxWNbaYvjsG0mUwGtr9C/Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796252937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OtGkeOfliWnGZ2wt+Zl0UL8CQB4PLNHucxc6Zu7EWuU=; b=fld0jBeAWNQGIYNgMpvucdn9C+A3cQa5e528RNdia1X0TLj912sl0ZZQtSkuDDSeA41fbV d9PbIX3ReCbvCkW3KcAVMv9arRA3PPMtwEp+Urb/vOKtTKtq6bst/jcQ+LgQ4LHS4mDDFz ADu/G0KyG05g0eIng++C4NRBIsSn7mqTtVH/vH4/fDkmhelDtUVc5B7ef4TX7B2gRE5xPG 93IyjrfTrJUjObN3musOLVrmmVPLIlylarJnNMhfBdGO/aBM6biigvx2lwVbUWZxdvoRQp 791bvOJmuOAz+9QDGhJSmp9CejiIIyC9aSd4f76sNKIrkRuV09h7y1F1BmDbgA== ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1796252937; a=rsa-sha256; cv=none; b=YZElA2OZb1ifP37IWw95tpVfLSgbQ++wp8w5ghQRinRBhzcJz9BuOYc+Sv8RGUDUo8w7fk mlriTPLhnMTyeJGbgYSlZ25n6tNFX68HXM1MspoS7/m9gZwOt7w3ovVDRooMkgaVcUC2jW XbAODfSGSXmrGF3mgk1NIrGzncAoX1QYvSYYxMcHU5s5Trv3dBkCCH1cCHJaYA5paHDFu4 5eIZo4+P6wVo/h9o+p+t4iOYDJ5OFwmIfZBKVtvhd/TJPJHDa72EwH376ZSGN2Xpb1UBAc C7X1vGI+xkLpQmoTJ3BdAIOD1Cx6jQ7bC74quK4fhcgIINDsDnKd0CZoX9rYzQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=mkl@pengutronix.de smtp.mailfrom=mkl@pengutronix.de From: Marc Kleine-Budde To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, linux-can@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH net-next 0/23] pull-request: can-next 2026-12-03 Date: Thu, 3 Dec 2026 00:04:25 +0100 Message-ID: <20261202230853.2665144-1-mkl@pengutronix.de> X-Mailer: git-send-email 2.53.0 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Hello netdev-team, this is a pull request of 23 patches for net-next/main. The first 9 patches are by Oleksij Rempel and add self tests for the CAN J1939 protocol. The remaining patches target the peak_usb driver and fix various problems mainly found by LLM review. The first is by Stefan Günther, the remaining ones by Stéphane Grosjean. regards, Marc The following changes since commit c63b67b946fcd4efb24439f70ee081dfa485dc40: tools: ynl: reject missing regen path argument (2026-12-02 19:13:17 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git tags/linux-can-next-for-7.5-20261203 for you to fetch changes up to bd650ec39de3abb8339c5b453f3e48da389d1e52: Merge patch series "can: peak_usb: fixes and input validation hardening" (2026-12-02 23:58:16 +0100) ---------------------------------------------------------------- linux-can-next-for-7.5-20261203 ---------------------------------------------------------------- Marc Kleine-Budde (2): Merge patch series "selftests: can: add J1939 socket and transport tests" Merge patch series "can: peak_usb: fixes and input validation hardening" Oleksij Rempel (9): selftests: can: install net/lib.sh with the CAN tests selftests: can: add J1939 test helper header and library selftests: can: add J1939 base functional tests selftests: can: add J1939 socket option and metadata tests selftests: can: add J1939 addressing and concurrency tests selftests: can: add J1939 wire-format tests against CAN_RAW selftests: can: add J1939 TP/ETP multi-frame tests against CAN_RAW selftests: can: cover J1939 transport abort and timeout paths selftests: can: check SO_J1939_PROMISC receive effect Stefan Günther (1): can: peak_usb: fix missing CAN_ERR_FLAG when reporting error counters Stéphane Grosjean (13): can: peak_usb: harden PCAN-USB message validation can: peak_usb: replace open-coded bitmask operations with bitops can: peak_usb: harden channel handling in PCAN-USB FD can: peak_usb: fix RX cursor desync for self-received RTR frames with SRR can: peak_usb: reject records for unset channels in PCAN-USB Pro can: peak_usb: register the netdevs only once all channels are set up can: peak_usb: validate the data length of PCAN-USB Pro CAN records can: peak_usb: don't read past the message in PCAN-USB Pro decoders can: peak_usb: dump undecodable URBs once and rate limit decode errors can: peak_usb: don't return an uninitialized PCAN-USB CAN channel ID can: peak_usb: pass the dev_num argument of PCAN-USB Pro GETDEVID can: peak_usb: don't send uninitialized stack bytes to PCAN-USB devices can: peak_usb: don't send uninitialized heap bytes in restart commands MAINTAINERS | 1 + drivers/net/can/usb/peak_usb/pcan_usb.c | 69 +- drivers/net/can/usb/peak_usb/pcan_usb_core.c | 111 ++- drivers/net/can/usb/peak_usb/pcan_usb_core.h | 10 +- drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 91 +- drivers/net/can/usb/peak_usb/pcan_usb_pro.c | 85 +- tools/testing/selftests/net/can/.gitignore | 6 + tools/testing/selftests/net/can/Makefile | 26 +- tools/testing/selftests/net/can/config | 3 + tools/testing/selftests/net/can/j1939_gw.c | 129 +++ tools/testing/selftests/net/can/j1939_helpers.c | 593 +++++++++++++ tools/testing/selftests/net/can/j1939_helpers.h | 328 +++++++ tools/testing/selftests/net/can/j1939_lib.sh | 171 ++++ tools/testing/selftests/net/can/j1939_tests.h | 99 +++ tools/testing/selftests/net/can/test_j1939_addr.c | 233 +++++ tools/testing/selftests/net/can/test_j1939_addr.sh | 4 + tools/testing/selftests/net/can/test_j1939_base.c | 241 ++++++ tools/testing/selftests/net/can/test_j1939_base.sh | 7 + tools/testing/selftests/net/can/test_j1939_multi.c | 964 +++++++++++++++++++++ .../testing/selftests/net/can/test_j1939_multi.sh | 4 + tools/testing/selftests/net/can/test_j1939_opts.c | 442 ++++++++++ tools/testing/selftests/net/can/test_j1939_opts.sh | 4 + tools/testing/selftests/net/can/test_j1939_wire.c | 202 +++++ tools/testing/selftests/net/can/test_j1939_wire.sh | 4 + 24 files changed, 3709 insertions(+), 118 deletions(-) create mode 100644 tools/testing/selftests/net/can/j1939_gw.c create mode 100644 tools/testing/selftests/net/can/j1939_helpers.c create mode 100644 tools/testing/selftests/net/can/j1939_helpers.h create mode 100644 tools/testing/selftests/net/can/j1939_lib.sh create mode 100644 tools/testing/selftests/net/can/j1939_tests.h create mode 100644 tools/testing/selftests/net/can/test_j1939_addr.c create mode 100755 tools/testing/selftests/net/can/test_j1939_addr.sh create mode 100644 tools/testing/selftests/net/can/test_j1939_base.c create mode 100755 tools/testing/selftests/net/can/test_j1939_base.sh create mode 100644 tools/testing/selftests/net/can/test_j1939_multi.c create mode 100755 tools/testing/selftests/net/can/test_j1939_multi.sh create mode 100644 tools/testing/selftests/net/can/test_j1939_opts.c create mode 100755 tools/testing/selftests/net/can/test_j1939_opts.sh create mode 100644 tools/testing/selftests/net/can/test_j1939_wire.c create mode 100755 tools/testing/selftests/net/can/test_j1939_wire.sh