Skip to content

Conversation

marckleinebudde
Copy link
Member

The -m option currently only works on CAN FD or CAN XL interfaces. There is a logic to add CAN XL to the mix only if supported but CAN FD is always forced.

Modify the -m logic so that only the options supported by the interface are added to the mix. This way:

  • a Classical CAN interface only mixes -e and -R
  • a CAN FD interface mixes -e, -R, -f, -b and -E
  • a CAN XL interface mixes -e, -R, -f, -b, -E and -X

This provides a better user experience and also makes -m a good default option for fuzzing any type of CAN interface.

The -m option currently only works on CAN FD or CAN XL interfaces.
There is a logic to add CAN XL to the mix only if supported but CAN FD
is always forced.

Modify the -m logic so that only the options supported by the
interface are added to the mix. This way:

  - a Classical CAN interface only mixes -e and -R
  - a CAN FD interface mixes -e, -R, -f, -b and -E
  - a CAN XL interface mixes -e, -R, -f, -b, -E and -X

This provides a better user experience and also makes -m a good
default option for fuzzing any type of CAN interface.

Signed-off-by: Vincent Mailhol <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
@marckleinebudde
Copy link
Member Author

Cc: @vincent-mailhol

@hartkopp
Copy link
Member

hartkopp commented Sep 8, 2025

This concept mixes the actual frame format (canfd canxl) with the
switch whether FD/XL is enabled and operable.

Updated patch: #600

@marckleinebudde
Copy link
Member Author

marckleinebudde commented Sep 8, 2025

Please force-push your updated PR over my branch.

@hartkopp
Copy link
Member

hartkopp commented Sep 8, 2025

To complex. We continue the discussion better in PR 600

@hartkopp hartkopp closed this Sep 8, 2025
@marckleinebudde
Copy link
Member Author

FTR: a git command like this git push github-mkl master:allow-dash-m-on-classical-CAN-interfaces --force-with-lease does the trick

@hartkopp
Copy link
Member

hartkopp commented Sep 8, 2025

Ok.
Would likely have cost me 10 minutes of my lifetime ;-)
But I will remember where to find this trick ...
Thanks Marc!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants