Re: Linux 5.19-rc1

Guenter Roeck
2022-06-06T15:39:23Z

On Sun, Jun 05, 2022 at 05:42:33PM -0700, Linus Torvalds wrote:
> So the last two weeks were _fairly_ normal, although I will gripe and
> moan a bit about how many late pull requests I got. The second week
> started out very calm, but that was sadly only because a _lot_ of
> people left their final pull request pretty late. Not very pleasant at
> all.
>
. ... ]
>
> So hey, let's start calming things down and testing this all.
>

Build results:
total: 147 pass: 145 fail: 2
Failed builds:
arm:allmodconfig
powerpc:allmodconfig
Qemu test results:
total: 489 pass: 489 fail: 0

arm:allmodconfig:

Error log:
ERROR: modpost: missing MODULE_LICENSE() in drivers/watchdog/gxp-wdt.o

Guess that one is on me. Fix is at
https://patchwork.kernel.org/project/linux-watchdog/patch/20220603131419.2948578-1-linux@roeck-us.net/

powerpc:allmodconfig:

Error: External symbol 'memset' referenced from prom_init.c
make[3]: [arch/powerpc/kernel/Makefile:202: arch/powerpc/kernel/prom_init_check] Error 1 (ignored)
powerpc64-linux-ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.o uses hard float,
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.o uses soft float
powerpc64-linux-ld: failed to merge target specific data of
file drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_resource.o
powerpc64-linux-ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.o uses hard float,
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn315/dcn315_resource.o uses soft float
powerpc64-linux-ld: failed to merge target specific data of file
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn315/dcn315_resource.o
powerpc64-linux-ld: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.o uses hard float,
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn316/dcn316_resource.o uses soft float
powerpc64-linux-ld: failed to merge target specific data of file
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn316/dcn316_resource.o

Bisects to commit 41b7a347bf14 ("powerpc: Book3S 64-bit outline-only KASAN support")
which seems to change dependencies.

There is also a runtime warning, seen with various qemu arm boot tests.

WARNING: CPU: 0 PID: 1 at lib/refcount.c:28 of_platform_bus_create+0x33c/0x3dc
refcount_t: underflow; use-after-free.
Modules linked in:
CPU: 0 PID: 1 Comm: swapper Not tainted 5.19.0-rc1 #1
Hardware name: ARM-Versatile (Device Tree Support)
unwind_backtrace from show_stack+0x10/0x14
show_stack from dump_stack_lvl+0x38/0x5c
dump_stack_lvl from __warn+0xc8/0x1d4
__warn from warn_slowpath_fmt+0x90/0xc8
warn_slowpath_fmt from of_platform_bus_create+0x33c/0x3dc
of_platform_bus_create from of_platform_bus_create+0x1ec/0x3dc
of_platform_bus_create from of_platform_populate+0x68/0xd8
of_platform_populate from customize_machine+0x1c/0x30
customize_machine from do_one_initcall+0x8c/0x2fc
do_one_initcall from kernel_init_freeable+0x190/0x220
kernel_init_freeable from kernel_init+0x10/0x108
kernel_init from ret_from_fork+0x14/0x3c

This is fixed with commit d2ca1fd2bc70 ("ARM: 9207/1: amba: fix refcount
underflow if amba_device_add() fails") in linux-next.

Guenter