Content-Type: multipart/mixed; boundary="===============3047515013558387809==" MIME-Version: 1.0 From: Eric W. Biederman To: kbuild-all@lists.01.org Subject: Re: [ebiederm-user-namespace:signal-for-v5.17 4/12] arch/x86/kernel/dumpstack.o: warning: objtool: oops_end() falls through to next function show_opcodes() Date: Wed, 15 Dec 2021 11:36:23 -0600 Message-ID: <87czlxsrc8.fsf@email.froward.int.ebiederm.org> In-Reply-To: List-Id: --===============3047515013558387809== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Rong Chen writes: > On 12/15/21 12:48, Eric W. Biederman wrote: >> Rong Chen writes: >> >>> On 12/15/21 01:29, Eric W. Biederman wrote: >>>> kernel test robot writes: >>>> >>>>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user= -namespace.git signal-for-v5.17 >>>>> head: 6b1248798eb6f6d5285db214299996ecc5dc1e6b >>>>> commit: 0e25498f8cd43c1b5aa327f373dd094e9a006da7 [4/12] exit: Add and= use make_task_dead. >>>>> config: x86_64-randconfig-a011-20211213 (https://download.01.org/0day= -ci/archive/20211214/202112140949.Uq5sFKR1-lkp(a)intel.com/config) >>>>> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 >>>>> reproduce (this is a W=3D1 build): >>>>> # https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/= user-namespace.git/commit/?id=3D0e25498f8cd43c1b5aa327f373dd094e9a006da7 >>>>> git remote add ebiederm-user-namespace https://git.kernel.o= rg/pub/scm/linux/kernel/git/ebiederm/user-namespace.git >>>>> git fetch --no-tags ebiederm-user-namespace signal-for-v5.17 >>>>> git checkout 0e25498f8cd43c1b5aa327f373dd094e9a006da7 >>>>> # save the config file to linux build tree >>>>> mkdir build_dir >>>>> make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash ar= ch/x86/kernel/ kernel/ lib/kunit/ >>>>> >>>>> If you fix the issue, kindly add following tag as appropriate >>>>> Reported-by: kernel test robot >>>>> >>>>> All warnings (new ones prefixed by >>): >>>>> >>>>>>> lib/kunit/kunit-example-test.o: warning: objtool: .text.unlikely: u= nexpected end of section >>>>> -- >>>>>>> arch/x86/kernel/dumpstack.o: warning: objtool: oops_end() falls thr= ough to next function show_opcodes() >>>> I am confused. This change patches objtool to rename >>>> rewind_stack_and_do_exit to rewind_stack_and_make_dead in the list >>>> global_noreturns in tools/objtool/check.c >>>> >>>> There is no other change to oops_end other than that renaming. >>>> >>>> Did the robot somehow mange to run an old version of objtool while >>>> building and this get this error? >>>> >>>> I tried and I am not currently able to reproduce this error. Do you >>>> have any additional pointers on how I might reproduce this? >>> Hi Eric, >>> >>> The reproduce step in report based on a full build, I can reproduce >>> the warnings with the below command: >>> >>> =C2=A0 make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash >> Any chance you could do "make arch/x86/kernel/dumpstack.s" and send it >> to me? > > $ make O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash arch/x86/kernel/dump= stack.s > make[1]: Entering directory '/mnt/memdrive/linux/build_dir' > =C2=A0 GEN=C2=A0=C2=A0=C2=A0=C2=A0 Makefile > =C2=A0 CALL=C2=A0=C2=A0=C2=A0 ../scripts/checksyscalls.sh > =C2=A0 CALL=C2=A0=C2=A0=C2=A0 ../scripts/atomic/check-atomics.sh > =C2=A0 DESCEND objtool > =C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 arch/x86/kernel/dumpstack.s > make[1]: Leaving directory '/mnt/memdrive/linux/build_dir' > > $ make O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash arch/x86/kernel/ > make[1]: Entering directory '/mnt/memdrive/linux/build_dir' > =C2=A0 GEN=C2=A0=C2=A0=C2=A0=C2=A0 Makefile > =C2=A0 CALL=C2=A0=C2=A0=C2=A0 ../scripts/checksyscalls.sh > =C2=A0 CALL=C2=A0=C2=A0=C2=A0 ../scripts/atomic/check-atomics.sh > =C2=A0 DESCEND objtool > =C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 arch/x86/kernel/dumpstack.o > arch/x86/kernel/dumpstack.o: warning: objtool: oops_end() falls > through to next function show_opcodes() > =C2=A0 AR=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 arch/x86/kernel/built-in.a > make[1]: Leaving directory '/mnt/memdrive/linux/build_dir' Thanks. What I was actually hoping for was the assembly code of oops_end so I could understand the objtool error. I have tracked it down now. I accidentally deleted a comma, which caused C string concatenation which merged two symbols together, and caused this warning. What an annoying typo. Eric --===============3047515013558387809==--