diff options
author | Vasily Gorbik <[email protected]> | 2020-06-18 17:17:19 +0200 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2020-06-29 16:28:39 +0200 |
commit | 95e61b1b5d6394b53d147c0fcbe2ae70fbe09446 (patch) | |
tree | 2011e99be78a33fb38c1e3b99552754c4121cb8d /tools/perf/scripts/python/netdev-times.py | |
parent | d6df52e9996dcc2062c3d9c9123288468bb95b52 (diff) |
s390/setup: init jump labels before command line parsing
Command line parameters might set static keys. This is true for s390 at
least since commit 6471384af2a6 ("mm: security: introduce init_on_alloc=1
and init_on_free=1 boot options"). To avoid the following WARN:
static_key_enable_cpuslocked(): static key 'init_on_alloc+0x0/0x40' used
before call to jump_label_init()
call jump_label_init() just before parse_early_param().
jump_label_init() is safe to call multiple times (x86 does that), doesn't
do any memory allocations and hence should be safe to call that early.
Fixes: 6471384af2a6 ("mm: security: introduce init_on_alloc=1 and init_on_free=1 boot options")
Cc: <[email protected]> # 5.3: d6df52e9996d: s390/maccess: add no DAT mode to kernel_write
Cc: <[email protected]> # 5.3
Reviewed-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions