Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can: isotp: support MSG_TRUNC flag when reading from socket
stable inclusion from stable-v5.10.110 commit c037e135391c70d4a3304b5df012d404ad8d3d58 bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c037e135391c70d4a3304b5df012d404ad8d3d58 -------------------------------- [ Upstream commit 42bf50a ] When providing the MSG_TRUNC flag via recvmsg() syscall the return value provides the real length of the packet or datagram, even when it was longer than the passed buffer. Fixes: e057dd3 ("can: add ISO 15765-2:2016 transport protocol") Link: linux-can/can-utils#347 (comment) Link: https://lore.kernel.org/all/[email protected] Suggested-by: Derek Will <[email protected]> Signed-off-by: Oliver Hartkopp <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Yu Liao <[email protected]> Reviewed-by: Wei Li <[email protected]> Signed-off-by: Zheng Zengkai <[email protected]>
- Loading branch information