android_kernel_sony_sdm845/init
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Josh Poimboeuf 052d89b469 jump_label: Disable jump labels in __exit code
With the following commit:

  333522447063 ("jump_label: Explicitly disable jump labels in __init code")

... we explicitly disabled jump labels in __init code, so they could be
detected and not warned about in the following commit:

  dc1dd184c2f0 ("jump_label: Warn on failed jump_label patching attempt")

In-kernel __exit code has the same issue.  It's never used, so it's
freed along with the rest of initmem.  But jump label entries in __exit
code aren't explicitly disabled, so we get the following warning when
enabling pr_debug() in __exit code:

  can't patch jump_label at dmi_sysfs_exit+0x0/0x2d
  WARNING: CPU: 0 PID: 22572 at kernel/jump_label.c:376 __jump_label_update+0x9d/0xb0

Fix the warning by disabling all jump labels in initmem (which includes
both __init and __exit code).

Reported-and-tested-by: Li Wang <liwang@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: dc1dd184c2f0 ("jump_label: Warn on failed jump_label patching attempt")
Link: http://lkml.kernel.org/r/7121e6e595374f06616c505b6e690e275c0054d1.1521483452.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Change-Id: I6009e2dee9a8401e61736fbebf76445f7de35a8e
2021-06-06 18:42:18 +03:00
..
calibrate.c
do_mounts.c CHROMIUM: dm: boot time specification of dm= 2017-01-27 13:55:15 -08:00
do_mounts.h CHROMIUM: dm: boot time specification of dm= 2017-01-27 13:55:15 -08:00
do_mounts_dm.c init: Initialize uuid pointer 2017-06-05 17:07:49 -07:00
do_mounts_initrd.c
do_mounts_md.c
do_mounts_rd.c init: use pr_cont() when displaying rotator during ramdisk loading. 2016-11-24 09:32:20 -08:00
init_task.c
initramfs.c ANDROID: initramfs: call free_initrd() when skipping init 2017-12-05 18:05:48 +00:00
Kconfig Merge branch 'android-4.9-q' of https://android.googlesource.com/kernel/common into lineage-18.1-caf-sdm845 2021-04-26 01:27:02 +03:00
main.c jump_label: Disable jump labels in __exit code 2021-06-06 18:42:18 +03:00
Makefile CHROMIUM: dm: boot time specification of dm= 2017-01-27 13:55:15 -08:00
noinitramfs.c ANDROID: initramfs: Add skip_initramfs command line option 2017-01-27 13:52:19 -08:00
version.c UPSTREAM: locking/atomic, kref: Add KREF_INIT() 2021-01-05 16:00:48 +00:00