Re: powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data23' from `kernel/ptrace.o' being placed in section `.bss..Lubsan_data23'

From: Yujie Liu
Date: Mon Apr 22 2024 - 05:16:24 EST


On Fri, Apr 19, 2024 at 10:42:18PM +0300, Adrian Hunter wrote:
> On 19/04/24 01:22, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 2668e3ae2ef36d5e7c52f818ad7d90822c037de4
> > commit: 5284984a4fbacb0883bfebe905902cdda2891a07 bug: Fix no-return-statement warning with !CONFIG_BUG
> > date: 8 days ago
> > config: powerpc-randconfig-r033-20211126 (https://download.01.org/0day-ci/archive/20240419/202404190642.z54cLsGE-lkp@xxxxxxxxx/config)
> > compiler: powerpc-linux-gcc (GCC) 13.2.0
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240419/202404190642.z54cLsGE-lkp@xxxxxxxxx/reproduce)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202404190642.z54cLsGE-lkp@xxxxxxxxx/
> >
> > All warnings (new ones prefixed by >>):
> >
> >>> powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data23' from `kernel/ptrace.o' being placed in section `.bss..Lubsan_data23'
> > powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data18' from `drivers/cxl/core/port.o' being placed in section `.bss..Lubsan_data18'
> >>> powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data23' from `kernel/ptrace.o' being placed in section `.bss..Lubsan_data23'
> > powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data18' from `drivers/cxl/core/port.o' being placed in section `.bss..Lubsan_data18'
> >>> powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data23' from `kernel/ptrace.o' being placed in section `.bss..Lubsan_data23'
> > powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data18' from `drivers/cxl/core/port.o' being placed in section `.bss..Lubsan_data18'
> >
>
> The same warnings are visible in v6.8 that does not
> contain commit 5284984a4fbacb0883bfebe905902cdda2891a07
> so this is not due to that commit.

Sorry for this wrong report. The suffix numbers of the bss symbols may
change on different commits, so the bot wrongly treated them as
different warnings.

On commit f87cbcb345d0:

powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data0' from `kernel/ptrace.o' being placed in section `.bss..Lubsan_data0'
powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data1' from `drivers/cxl/core/port.o' being placed in section `.bss..Lubsan_data1'

On commit 5284984a4fba:

powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data23' from `kernel/ptrace.o' being placed in section `.bss..Lubsan_data23'
powerpc-linux-ld: warning: orphan section `.bss..Lubsan_data18' from `drivers/cxl/core/port.o' being placed in section `.bss..Lubsan_data18'

We will fix the bot so that these warnings are correctly treated as the
same warnings.

Thanks,
Yujie