Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23181655 authored by Daniel Mentz's avatar Daniel Mentz Committed by Alistair Delva
Browse files

ANDROID: Disable kthread delayed work fp check in CFI builds



With non-canonical CFI, LLVM generates jump table entries for external
symbols in modules and as a result, a function pointer passed from a
module to the core kernel will have a different address.

Disable the warning for now.

Bug: 145210207
Signed-off-by: default avatarDaniel Mentz <danielmentz@google.com>
Change-Id: I576a07206a465902773481e51a84529f0ac2e84b
parent f4c28ebf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -886,7 +886,9 @@ static void __kthread_queue_delayed_work(struct kthread_worker *worker,
	struct timer_list *timer = &dwork->timer;
	struct kthread_work *work = &dwork->work;

#ifndef CONFIG_CFI_CLANG
	WARN_ON_ONCE(timer->function != kthread_delayed_work_timer_fn);
#endif

	/*
	 * If @delay is 0, queue @dwork->work immediately.  This is for