linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-4.9.y 9986/9999] ptrace.c:undefined reference to `abort'
@ 2019-07-05 16:08 kbuild test robot
  2019-07-05 16:15 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2019-07-05 16:08 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: kbuild-all, Greg Kroah-Hartman, Andrew Morton,
	Linux Memory Management List, Sasha Levin

[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head:   af13e6db0db43996e060d2b9ca57f60b09d08cb8
commit: 273b0e9d8a3e0970fab8ad1b037adf9e3a9fc63b [9986/9999] bug.h: work around GCC PR82365 in BUG()
config: arc-defconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 273b0e9d8a3e0970fab8ad1b037adf9e3a9fc63b
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/arc/built-in.o: In function `genregs_set':
>> ptrace.c:(.text+0x9bc): undefined reference to `abort'
>> ptrace.c:(.text+0x9bc): undefined reference to `abort'
   arch/arc/built-in.o: In function `genregs_get':
   ptrace.c:(.text+0x2de8): undefined reference to `abort'
   ptrace.c:(.text+0x2de8): undefined reference to `abort'
   arch/arc/built-in.o: In function `arc_pmu_device_probe':
>> perf_event.c:(.text+0x99e6): undefined reference to `abort'
   arch/arc/built-in.o:perf_event.c:(.text+0x99e6): more undefined references to `abort' follow

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7715 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-stable-rc:linux-4.9.y 9986/9999] ptrace.c:undefined reference to `abort'
  2019-07-05 16:08 [linux-stable-rc:linux-4.9.y 9986/9999] ptrace.c:undefined reference to `abort' kbuild test robot
@ 2019-07-05 16:15 ` Greg Kroah-Hartman
  2019-07-05 16:31   ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2019-07-05 16:15 UTC (permalink / raw)
  To: kbuild test robot
  Cc: Arnd Bergmann, kbuild-all, Andrew Morton,
	Linux Memory Management List, Sasha Levin

On Sat, Jul 06, 2019 at 12:08:59AM +0800, kbuild test robot wrote:
> tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
> head:   af13e6db0db43996e060d2b9ca57f60b09d08cb8
> commit: 273b0e9d8a3e0970fab8ad1b037adf9e3a9fc63b [9986/9999] bug.h: work around GCC PR82365 in BUG()
> config: arc-defconfig (attached as .config)
> compiler: arc-elf-gcc (GCC) 7.4.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 273b0e9d8a3e0970fab8ad1b037adf9e3a9fc63b
>         # save the attached .config to linux build tree
>         GCC_VERSION=7.4.0 make.cross ARCH=arc 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    arch/arc/built-in.o: In function `genregs_set':
> >> ptrace.c:(.text+0x9bc): undefined reference to `abort'
> >> ptrace.c:(.text+0x9bc): undefined reference to `abort'
>    arch/arc/built-in.o: In function `genregs_get':
>    ptrace.c:(.text+0x2de8): undefined reference to `abort'
>    ptrace.c:(.text+0x2de8): undefined reference to `abort'
>    arch/arc/built-in.o: In function `arc_pmu_device_probe':
> >> perf_event.c:(.text+0x99e6): undefined reference to `abort'
>    arch/arc/built-in.o:perf_event.c:(.text+0x99e6): more undefined references to `abort' follow

I've queued up af1be2e21203 ("ARC: handle gcc generated __builtin_trap
for older compiler") to hopefully resolve this now.

thanks,

greg k-h


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-stable-rc:linux-4.9.y 9986/9999] ptrace.c:undefined reference to `abort'
  2019-07-05 16:15 ` Greg Kroah-Hartman
@ 2019-07-05 16:31   ` Arnd Bergmann
  2019-07-05 18:24     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2019-07-05 16:31 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: kbuild test robot, kbuild-all, Andrew Morton,
	Linux Memory Management List, Sasha Levin

On Fri, Jul 5, 2019 at 6:15 PM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Sat, Jul 06, 2019 at 12:08:59AM +0800, kbuild test robot wrote:
> >    arch/arc/built-in.o: In function `arc_pmu_device_probe':
> > >> perf_event.c:(.text+0x99e6): undefined reference to `abort'
> >    arch/arc/built-in.o:perf_event.c:(.text+0x99e6): more undefined references to `abort' follow
>
> I've queued up af1be2e21203 ("ARC: handle gcc generated __builtin_trap
> for older compiler") to hopefully resolve this now.

Thanks, I remember the same problem happening in mainline now,
and this should solve the issue.

I also see that the backported patch that introduced the regression
has succeed in getting rid of many of the warnings in 4.9.y, and kernelci
itself does not run into the abort() issue because it has a different
compiler version:

https://kernelci.org/build/stable-rc/branch/linux-4.9.y/kernel/v4.9.184-93-gaf13e6db0db4/

All that remains now is

cc1: error: '-march=r3000' requires '-mfp32'
(.text+0x1bf20): undefined reference to `iommu_is_span_boundary'
(.text+0x1bbd0): undefined reference to `iommu_is_span_boundary'
warning: (SIBYTE_SWARM && SIBYTE_SENTOSA && SIBYTE_BIGSUR &&
SWIOTLB_XEN && AMD_IOMMU) selects SWIOTLB which has unmet direct
dependencies (CAVIUM_OCTEON_SOC || MACH_LOONGSON64 && CPU_LOONGSON3 ||
NLM_XLP_BOARD || NLM_XLR_BOARD)
arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but
not used [-Wunused-function]
drivers/clk/sunxi/clk-sun8i-bus-gates.c:85:27: warning: 'clk_parent'
may be used uninitialized in this function [-Wmaybe-uninitialized]
arch/arm64/kernel/vdso.c:127:6: warning: 'memcmp' reading 4 bytes from
a region of size 1 [-Wstringop-overflow=]

The two arm specific issues are fixed with these patches

4e903450bcb9 ("clk: sunxi: fix uninitialized access")
dbbb08f500d6 ("arm64, vdso: Define vdso_{start,end} as array")

The arc unwind fix needs to make it into mainline first, and the rest are mips
issues that may need a custom fix since there is no specific upstream
patch that could be backported.

      Arnd


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-stable-rc:linux-4.9.y 9986/9999] ptrace.c:undefined reference to `abort'
  2019-07-05 16:31   ` Arnd Bergmann
@ 2019-07-05 18:24     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2019-07-05 18:24 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: kbuild test robot, kbuild-all, Andrew Morton,
	Linux Memory Management List, Sasha Levin

On Fri, Jul 05, 2019 at 06:31:51PM +0200, Arnd Bergmann wrote:
> On Fri, Jul 5, 2019 at 6:15 PM Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > On Sat, Jul 06, 2019 at 12:08:59AM +0800, kbuild test robot wrote:
> > >    arch/arc/built-in.o: In function `arc_pmu_device_probe':
> > > >> perf_event.c:(.text+0x99e6): undefined reference to `abort'
> > >    arch/arc/built-in.o:perf_event.c:(.text+0x99e6): more undefined references to `abort' follow
> >
> > I've queued up af1be2e21203 ("ARC: handle gcc generated __builtin_trap
> > for older compiler") to hopefully resolve this now.
> 
> Thanks, I remember the same problem happening in mainline now,
> and this should solve the issue.
> 
> I also see that the backported patch that introduced the regression
> has succeed in getting rid of many of the warnings in 4.9.y, and kernelci
> itself does not run into the abort() issue because it has a different
> compiler version:
> 
> https://kernelci.org/build/stable-rc/branch/linux-4.9.y/kernel/v4.9.184-93-gaf13e6db0db4/
> 
> All that remains now is
> 
> cc1: error: '-march=r3000' requires '-mfp32'
> (.text+0x1bf20): undefined reference to `iommu_is_span_boundary'
> (.text+0x1bbd0): undefined reference to `iommu_is_span_boundary'
> warning: (SIBYTE_SWARM && SIBYTE_SENTOSA && SIBYTE_BIGSUR &&
> SWIOTLB_XEN && AMD_IOMMU) selects SWIOTLB which has unmet direct
> dependencies (CAVIUM_OCTEON_SOC || MACH_LOONGSON64 && CPU_LOONGSON3 ||
> NLM_XLP_BOARD || NLM_XLR_BOARD)
> arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but
> not used [-Wunused-function]
> drivers/clk/sunxi/clk-sun8i-bus-gates.c:85:27: warning: 'clk_parent'
> may be used uninitialized in this function [-Wmaybe-uninitialized]
> arch/arm64/kernel/vdso.c:127:6: warning: 'memcmp' reading 4 bytes from
> a region of size 1 [-Wstringop-overflow=]
> 
> The two arm specific issues are fixed with these patches
> 
> 4e903450bcb9 ("clk: sunxi: fix uninitialized access")

That applies.

> dbbb08f500d6 ("arm64, vdso: Define vdso_{start,end} as array")

That one does not :(

Care to backport it?  :)

Now we can start tackling the gcc9 issues... :(

thanks,

greg k-h


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-05 18:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-05 16:08 [linux-stable-rc:linux-4.9.y 9986/9999] ptrace.c:undefined reference to `abort' kbuild test robot
2019-07-05 16:15 ` Greg Kroah-Hartman
2019-07-05 16:31   ` Arnd Bergmann
2019-07-05 18:24     ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox