Re: [RFC PATCH 11/11] driver/int3400_thermal: Fix prototype matching
From: Joao Moreira
Date: Wed Apr 20 2022 - 18:28:31 EST
Where/why is the mismatch happening?
Mismatch happens in dev_attr_show from drivers/base/core.c. There,
kobject * is cast to device * before the call, probably because attr is
also cast to device_attribute, which may have a mismatching hook
prototype, I guess.
I haven't tried it with any other CFI scheme other than my own
implementation and I did not run this on GDB or anything... I'm just
reporting based on the violation that FineIBT logged and in the fact
that this patch fixed it, so I'm unsure if there is anything buried
here.