vmlinux.o: warning: objtool: look_up_lock_class.isra.0()+0xe4: call to rcu_read_lock_any_held() leaves .noinstr.text section

From: kernel test robot
Date: Sat Aug 14 2021 - 05:21:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dfa377c35d70c31139b1274ec49f87d380996c42
commit: 49faa77759b211fff344898edc23bb780707fff5 locking/lockdep: Improve noinstr vs errors
date: 8 weeks ago
config: x86_64-buildonly-randconfig-r001-20210812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=49faa77759b211fff344898edc23bb780707fff5
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 49faa77759b211fff344898edc23bb780707fff5
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

vmlinux.o: warning: objtool: do_machine_check()+0x5e9: call to memset() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: look_up_lock_class.isra.0()+0xe4: call to rcu_read_lock_any_held() leaves .noinstr.text section

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip