From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796183338; b=guUUQXx2hFjkqAIW91/9C7WC7UHmsBvbPGLB6QhBnSPApsd6wweI6RhRfLbcL2GzFYSQ K2f7P5N4s4TmylYUfhfmfLxRhtEHOcTrUlwkGZUErVHapAM/gK+y9D+wwxal8iqs0ouJ6 ylJSGYb510bwn+ID46ZQnSVYFJniSBbYfEaNSOJ05/Uc3mFuj35tx0iQP2l3+8ci1UF+d 2juV4DfcRaBsf0QOWDBWOAgEXDxpnRKSdP8044CYoOvt0967i6AHcDNJXLj3C51krHzQ4 uX8uyQitZTW3Lje+pSg7n44fCoYs5OkFbmuUw9ePrl9GLzfB9rmpAcwAyIQU/8s6dUQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796183338; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=oAREtLDAkLSbyx8bkoW/wJ8160zDiciKxV5LV1y+zNA=; b=5DrZE/l1e/7eNrHCUEwAmG1yP7PaSJ4vnltP/oqgheWeiLpe0MylQi0Dc/3j3RPADJJv BPF4LokpXdGXCklvh1ImGiqdhKI5GHwF519gi+3ETko4vfzNKKsWG33OJmL/nbD9kt6Z7 3gwrii5sMU2ha8eu7/zWUrYMI+jO4JRAWIHMaUqq4T+G119g0r/5A75rpxeNDJhN2+bo1 vgbWcYuZ+o4DixEMIm5esCO0DIOIHuCryztI7HhrlTxJczGdwYS9stKXM5Y7hpsYwcTJw MUDifddStrEQHQrQnuexIYdPwK985G8CKQNz70bDtF7xWohp4UnmjrBxxrWGscqECsQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gY17Zy17; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 E1B4D606A31A for ; Wed, 2 Dec 2026 03:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gY17Zy17 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01CFC1F000C1; Wed, 2 Dec 2026 03:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796183337; bh=oAREtLDAkLSbyx8bkoW/wJ8160zDiciKxV5LV1y+zNA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=gY17Zy17xXna+apIyvm993efL85cX7hS7X4Jlj4PVC+e8FVakIWOl56bCFu/nhbSk rEgWP+Z4PaenKHKxNt0pL2h8NH6Gm0l9LmczSqv1SGCiRoqaI2Py/cf5sZfQQU2CFz yzz/3cT7BGvVG/dElMt8U9JPGDp6CgVexCW1RR0mAO6oEhnH5fTjHHyZa/4AIvbMMZ 8PzC64YtfHQciSGURsQw3O7xQVcT7PdOQ619/kZ4yXHtzE8dPU2ATOvSgJGciTFZhM U1jv+1R91mxXB6XAsF+upHmVdpubhFoxPwiWvOckhhd9giKI/fJu93otyA6ed4SNJN 9ggHKRBuDaI1w== Subject: Re: [PATCH can-next v3 11/23] can: isotp: ignore CAN_ISOTP_CHK_PAD_DATA without CAN_ISOTP_RX_PADDING From: netdev-bot+sashiko@kernel.org To: socketcan@hartkopp.net Cc: linux-can@vger.kernel.org, mkl@pengutronix.de, kuba@kernel.org Date: Wed, 02 Dec 2026 03:48:56 +0000 Message-ID: <179618333656.3142.16427059297983971211@kernel.org> In-Reply-To: <20261130-getsockopt-memcg-isotp-v3-11-21d72c15ad1d@hartkopp.net> References: <20261130-getsockopt-memcg-isotp-v3-11-21d72c15ad1d@hartkopp.net> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-can@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit fixes a user-visible deviation from documented behaviour but leaves out a Fixes: tag. -- can: isotp: ignore CAN_ISOTP_CHK_PAD_DATA without CAN_ISOTP_RX_PADDING When CAN_ISOTP_CHK_PAD_DATA is set without CAN_ISOTP_RX_PADDING and without CAN_ISOTP_CHK_PAD_LEN, check_pad() used to return 1, which rejected every received frame. This patch makes check_pad() return 0 in that case, so the flag is ignored as iso15765-2.rst documents. > Ignore CAN_ISOTP_CHK_PAD_DATA without CAN_ISOTP_RX_PADDING in this case > as well, as documented. This only affects a misconfiguration that has > never been able to receive any PDU. Therefore the patch has no Fixes tag. [Severity: Low] Is "misconfiguration" the right word for this flag combination? The documentation treats it as a valid setup: Documentation/networking/iso15765-2.rst: * CAN_ISOTP_CHK_PAD_DATA: check padding bytes on the received frames against rxpad_content; if CAN_ISOTP_RX_PADDING is not specified, this flag is ignored. A user who follows the documentation could end up with this configuration. Before this patch, check_pad() returned 1 in that case. Each caller then rejected the frame with EBADMSG: isotp_rcv_sf() drops every Single Frame isotp_rcv_cf() drops the last Consecutive Frame of every PDU isotp_rcv_fc() aborts every transmission waiting for a Flow Control The branch being changed has not changed since the protocol was introduced: /* no valid test against empty value => ignore frame */ return 1; Should this carry a tag so that stable and the backport tooling can pick it up? Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol") The fact that this combination has never worked shows that nobody relies on the old behaviour. That makes a backport low risk, but it doesn't seem to be a reason to leave out the Fixes tag. -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130-getsockopt-memcg-isotp-v3-0-21d72c15ad1d%40hartkopp.net