ClangBuiltLinux / linux

Linux kernel source tree
Other
242 stars 14 forks source link

CFI: enum vs integer function type mismatches #1703

Closed samitolvanen closed 2 years ago

samitolvanen commented 2 years ago

@error27 was kind enough to run Smatch to locate enum vs int type mismatches that trip CFI checking. Here's a slightly formatted list:

cc @kees

nhukc commented 2 years ago

Patches are in-flight for all issues. I'm checking them off as they get accepted.

kees commented 2 years ago

cc @GustavoARSilva

nathanchance commented 2 years ago

@nhukc From what I can tell the following changes are still floating around not picked up:

The first one has a conflict against the drm-next tree; the issue is still there but the function got updated in a rework:

https://cgit.freedesktop.org/drm/drm/commit/?id=47e801bd0749f0691a137255e2db35f5348f4f4f https://cgit.freedesktop.org/drm/drm/commit/?id=cbb11ef9871956244c38ab8520dc9abe87ccdb3b

The second one should just be updated against net-next, as the move of mana.h is still in review as far as I can tell. There may be a conflict at merge time but dealing with that is up to the maintainers.

If you are too busy to send updated versions of those, I do not mind doing it, as they impact the work on #1750.

nhukc commented 2 years ago

@nhukc From what I can tell the following changes are still floating around not picked up:

The first one has a conflict against the drm-next tree; the issue is still there but the function got updated in a rework:

https://cgit.freedesktop.org/drm/drm/commit/?id=47e801bd0749f0691a137255e2db35f5348f4f4f https://cgit.freedesktop.org/drm/drm/commit/?id=cbb11ef9871956244c38ab8520dc9abe87ccdb3b

The second one should just be updated against net-next, as the move of mana.h is still in review as far as I can tell. There may be a conflict at merge time but dealing with that is up to the maintainers.

If you are too busy to send updated versions of those, I do not mind doing it, as they impact the work on #1750.

Yep, I'm too busy with other stuff to handle the rest of these. Feel free to take over. Thanks.

nathanchance commented 2 years ago

Yep, I'm too busy with other stuff to handle the rest of these. Feel free to take over. Thanks.

No worries, done!

https://lore.kernel.org/20221109001424.1422495-1-nathan@kernel.org/ https://lore.kernel.org/20221109002629.1446680-1-nathan@kernel.org/

I think we can close this issue in favor of tracking via #1750.