Even though the CAN netlayer only deals with CAN netdevices, the netlayer interface to the userspace and to the device layer should perform some sanity checks. This patch adds several sanity checks that mainly prevent userspace apps to send broken content into the system that may be misinterpreted by some other userspace application. Signed-off-by: Oliver Hartkopp Signed-off-by: Urs Thuermann Acked-by: Andre Naujoks Signed-off-by: David S. Miller --- Hello Greg, please consider this patch for your next 2.6.25-stable. It adds several sanity checks for the CAN subsystem and became part of 2.6.26 in upstream commit 7f2d38eb7a42bea1c1df51bbdaa2ca0f0bdda07f For your convenience i added the backported patch that applies directly on linux-2.6.25.y.git Thanks & best regards, Oliver