Re: [GIT PULL] x86/urgent for v6.3-rc7

From: Linus Torvalds
Date: Sun Apr 16 2023 - 13:33:51 EST


On Sun, Apr 16, 2023 at 5:29 AM Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> - Drop __init annotation from two rtc functions which get called after
> boot is done, in order to prevent a crash

.. ahh, and our automation to catch these things didn't find it,
because they are only accessed from x86_wallclock_init(), which is
also __init.

So it all looked superficially good, except for the "oh, we saved them
into a data structure that _isn't_ init".

It would require automation much smarter than the one we have to catch
that kind of thing.

Linus