Files
android_kernel_xiaomi_sm8450/kernel/kthread.c
Sami Tolvanen 0f186b1e6e ANDROID: kthread: cfi: disable callback pointer check with modules
With CFI, a callback function passed to __kthread_queue_delayed_work
from a module can point to a jump table entry defined in the module
instead of the one used in the core kernel, which breaks this test:

  WARN_ON_ONCE(timer->function != kthread_delayed_work_timer_fn);

To work around the problem, disable the warning when CFI and modules
are both enabled.

Bug: 145210207
Change-Id: I5b0a60bb69ce8e2bc0d8e4bf6736457b6425b6cf
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2021-01-14 16:31:11 +00:00

37 KiB