Hi all,
After merging the bpf-next tree, today's linux-next build (powerpc
pseries_le_defconfig) produced these runtime warnings in my qemu boot
tests:
ipip: IPv4 and MPLS over IPv4 tunneling driver
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c00000000209ba3c CTR: c00000000209b9a4
REGS: c0000000049bf960 TRAP: 0700 Not tainted (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000482 XER: 00000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c00000000209ba3c c0000000049bfc00 c0000000015c9900 000000000000001b
GPR04: c0000000012bc980 000000000000019a 000000000000019a 0000000000000133
GPR08: c000000002969900 0000000000000001 c000000002969900 c000000002969900
GPR12: c00000000209b9a4 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1060
GPR28: 0000000000000000 0000000000000007 c0000000020c10a8 c000000002968f80
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c00000000209ba3c] cubictcp_register+0x98/0xc8
Call Trace:
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
NET: Registered PF_INET6 protocol family
.
.
.
Running code patching self-tests ...
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c00000000204900c CTR: c000000002048fe0
REGS: c0000000049bf970 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000482 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c00000000204900c c0000000049bfc10 c0000000015c9900 000000000000001a
GPR04: c000000001218fb0 0000000000000002 c0000000049bfc02 0000000035b5793c
GPR08: 0000000000000000 0000000000000001 0000000000000000 000000009e3fcb99
GPR12: c000000002048fe0 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c000000002048fe0
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c00000000204900c] bpf_rstat_kfunc_init+0x2c/0x40
Call Trace:
[c0000000049bfc10] [c0000000020c10b0] 0xc0000000020c10b0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
registered taskstats version 1
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c000000002050fdc CTR: c000000002050fb8
REGS: c0000000049bf970 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000482 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c000000002050fdc c0000000049bfc10 c0000000015c9900 000000000000001d
GPR04: c000000001223600 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000024000242
GPR12: c000000002050fb8 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c000000002050fb8
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c000000002050fdc] bpf_fs_kfuncs_init+0x24/0x38
Call Trace:
[c0000000049bfc10] [c0000000020c10b0] 0xc0000000020c10b0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c000000002050fa4 CTR: c000000002050f80
REGS: c0000000049bf970 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000482 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c000000002050fa4 c0000000049bfc10 c0000000015c9900 000000000000001a
GPR04: c0000000012235e8 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000024000242
GPR12: c000000002050f80 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c000000002050f80
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c000000002050fa4] bpf_key_sig_kfuncs_init+0x24/0x38
Call Trace:
[c0000000049bfc10] [c0000000020c10b0] 0xc0000000020c10b0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c0000000020517dc CTR: c000000002051790
REGS: c0000000049bf940 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000422 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c0000000020517dc c0000000049bfbe0 c0000000015c9900 000000000000001a
GPR04: c000000001227670 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000024000282
GPR12: c000000002051790 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c000000001227670
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c0000000020517dc] kfunc_init+0x4c/0x110
Call Trace:
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c0000000003976c8 CTR: c00000000039769c
REGS: c0000000049bf970 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000422 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c0000000003976c8 c0000000049bfc10 c0000000015c9900 0000000000000000
GPR04: c000000001228d70 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000024000282
GPR12: c00000000039769c c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c00000000039769c
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c0000000003976c8] init_subsystem+0x2c/0x40
Call Trace:
[c0000000049bfc10] [c0000000020c10b0] 0xc0000000020c10b0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c000000002051ed8 CTR: 0000000000000000
REGS: c0000000049bf950 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000220 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c000000002051ed8 c0000000049bfbf0 c0000000015c9900 000000000000001a
GPR04: c00000000122ad08 0000000000000001 c000000004810c00 c00000007fc92c30
GPR08: 0000000000000017 0000000000000001 0000000000000008 0000000024000222
GPR12: 0000000000000034 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c00000000122ad08
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c000000002051ed8] cpumask_kfunc_init+0x98/0xf0
Call Trace:
[c0000000049bfbf0] [c000000002051e84] cpumask_kfunc_init+0x44/0xf0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
Loading compiled-in X.509 certificates
.
.
.
netconsole: network logging started
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c000000000f0099c CTR: c000000000f00970
REGS: c0000000049bf970 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000282 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c000000000f0099c c0000000049bfc10 c0000000015c9900 000000000000001a
GPR04: c0000000012b12c0 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000000000000
GPR12: c000000000f00970 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c000000000f00970
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c000000000f0099c] init_subsystem+0x2c/0x40
Call Trace:
[c0000000049bfc10] [c0000000020c10b0] 0xc0000000020c10b0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c000000002094ab0 CTR: c000000002094a70
REGS: c0000000049bf960 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000282 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c000000002094ab0 c0000000049bfc00 c0000000015c9900 0000000000000003
GPR04: c0000000012b1260 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000000000000
GPR12: c000000002094a70 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000012aef20 c0000000012b1260
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c000000002094ab0] bpf_kfunc_init+0x40/0x18c
Call Trace:
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c000000002094ccc CTR: c000000002094ca0
REGS: c0000000049bf970 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000282 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c000000002094ccc c0000000049bfc10 c0000000015c9900 0000000000000006
GPR04: c0000000012b25e0 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000000000000
GPR12: c000000002094ca0 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c000000002094ca0
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c000000002094ccc] xdp_metadata_init+0x2c/0x40
Call Trace:
[c0000000049bfc10] [c0000000020c10b0] 0xc0000000020c10b0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c000000002095890 CTR: c000000002095800
REGS: c0000000049bf940 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000282 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c000000002095890 c0000000049bfbe0 c0000000015c9900 0000000000000003
GPR04: c0000000012b5938 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 0000000000000000
GPR12: c000000002095800 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c0000000012b5938
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c000000002095890] bpf_prog_test_run_init+0x90/0xec
Call Trace:
[c0000000049bfbe0] [c000000002095848] bpf_prog_test_run_init+0x48/0xec (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
modprobe (54) used greatest stack depth: 28336 bytes left
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.8.0-rc2-03380-gd0c0d80c1162 #2
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP: c0000000003bfbfc LR: c00000000209bd0c CTR: c00000000209bce0
REGS: c0000000049bf970 TRAP: 0700 Tainted: G W (6.8.0-rc2-03380-gd0c0d80c1162)
MSR: 800000000282b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE> CR: 24000242 XER: 20000000
CFAR: c0000000003bfbb0 IRQMASK: 0
GPR00: c00000000209bd0c c0000000049bfc10 c0000000015c9900 000000000000001b
GPR04: c0000000012bcb28 0000000000000002 c0000000049bfc02 fffffffffffe0000
GPR08: 0000000000000000 0000000000000001 0000000000000000 c00000000291fb90
GPR12: c00000000209bce0 c000000002b60000 c0000000000110cc 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1068
GPR28: 0000000000000000 0000000000000008 c0000000020c10b0 c00000000209bce0
NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
LR [c00000000209bd0c] bpf_tcp_ca_kfunc_init+0x2c/0x74
Call Trace:
[c0000000049bfc10] [c0000000020c10b0] 0xc0000000020c10b0 (unreliable)
[c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
[c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
[c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
[c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
--- interrupt: 0 at 0x0
Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
---[ end trace 0000000000000000 ]---
Freeing unused kernel image (initmem) memory: 6464K
Exposed (and maybe caused) by commit
6e7769e6419f ("bpf: treewide: Annotate BPF kfuncs in BTF")
--
Cheers,
Stephen Rothwell
Hi Stephen,
Thanks for the report.
On Thu, Feb 01, 2024 at 02:23:48PM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the bpf-next tree, today's linux-next build (powerpc
> pseries_le_defconfig) produced these runtime warnings in my qemu boot
I can't quite find that config in-tree. Mind giving me a pointer?
> tests:
>
> ipip: IPv4 and MPLS over IPv4 tunneling driver
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
> Modules linked in:
> CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-rc2-03380-gd0c0d80c1162 #2
> Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
> NIP: c0000000003bfbfc LR: c00000000209ba3c CTR: c00000000209b9a4
> REGS: c0000000049bf960 TRAP: 0700 Not tainted (6.8.0-rc2-03380-gd0c0d80c1162)
> MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000482 XER: 00000000
> CFAR: c0000000003bfbb0 IRQMASK: 0
> GPR00: c00000000209ba3c c0000000049bfc00 c0000000015c9900 000000000000001b
> GPR04: c0000000012bc980 000000000000019a 000000000000019a 0000000000000133
> GPR08: c000000002969900 0000000000000001 c000000002969900 c000000002969900
> GPR12: c00000000209b9a4 c000000002b60000 c0000000000110cc 0000000000000000
> GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
> GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
> GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1060
> GPR28: 0000000000000000 0000000000000007 c0000000020c10a8 c000000002968f80
> NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
> LR [c00000000209ba3c] cubictcp_register+0x98/0xc8
> Call Trace:
> [c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
> [c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
> [c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
> [c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
> --- interrupt: 0 at 0x0
> Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
> ---[ end trace 0000000000000000 ]---
> NET: Registered PF_INET6 protocol family
[...]
>
> Exposed (and maybe caused) by commit
>
> 6e7769e6419f ("bpf: treewide: Annotate BPF kfuncs in BTF")
>
My guess is the config does not enable CONFIG_DEBUG_INFO_BTF which
causes compilation to use the dummy definitions for BTF_KFUNCS_START().
I think there's probably a few ways to fix it. This untested diff should
work if I am guessing correctly. There's probably a cleaner way to do
this. I'll take a closer look in the morning.
diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h
index 0fe4f1cd1918..e24aabfe8ecc 100644
--- a/include/linux/btf_ids.h
+++ b/include/linux/btf_ids.h
@@ -227,7 +227,7 @@ BTF_SET8_END(name)
#define BTF_SET_END(name)
#define BTF_SET8_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
#define BTF_SET8_END(name)
-#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
+#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS };
#define BTF_KFUNCS_END(name)
#endif /* CONFIG_DEBUG_INFO_BTF */
Thanks,
Daniel
On Wed, Jan 31, 2024 at 7:55 PM Daniel Xu <[email protected]> wrote:
>
>
>
> diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h
> index 0fe4f1cd1918..e24aabfe8ecc 100644
> --- a/include/linux/btf_ids.h
> +++ b/include/linux/btf_ids.h
> @@ -227,7 +227,7 @@ BTF_SET8_END(name)
> #define BTF_SET_END(name)
> #define BTF_SET8_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
> #define BTF_SET8_END(name)
> -#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
> +#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS };
> #define BTF_KFUNCS_END(name)
Most likely you're correct.
Force pushed bpf-next with this fix.
Hi Alexei,
On Wed, 31 Jan 2024 19:55:01 -0800 Alexei Starovoitov <[email protected]> wrote:
>
> On Wed, Jan 31, 2024 at 7:23 PM Stephen Rothwell <[email protected]> wrote:
> >
> > After merging the bpf-next tree, today's linux-next build (powerpc
> > pseries_le_defconfig) produced these runtime warnings in my qemu boot
> > tests:
>
> le - little endian?
Yes.
> Do you see this on other architectures or powerpr_le only?
I only do qemu boot tests on powerpc le, sorry.
--
Cheers,
Stephen Rothwell
Hi Daniel,
On Wed, 31 Jan 2024 20:55:43 -0700 Daniel Xu <[email protected]> wrote:
>
> Hi Stephen,
>
> Thanks for the report.
>
> On Thu, Feb 01, 2024 at 02:23:48PM +1100, Stephen Rothwell wrote:
> > Hi all,
> >
> > After merging the bpf-next tree, today's linux-next build (powerpc
> > pseries_le_defconfig) produced these runtime warnings in my qemu boot
>
> I can't quite find that config in-tree. Mind giving me a pointer?
Its a constructed config ("make pseries_le_config")
$ grep BPF .config
CONFIG_BPF=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
# BPF subsystem
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_BPF_JIT_DEFAULT_ON=y
CONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# CONFIG_BPF_PRELOAD is not set
CONFIG_BPF_LSM=y
# end of BPF subsystem
CONFIG_CGROUP_BPF=y
CONFIG_NETFILTER_BPF_LINK=y
CONFIG_NET_CLS_BPF=m
CONFIG_NET_ACT_BPF=m
# CONFIG_BPF_STREAM_PARSER is not set
# HID-BPF support
# end of HID-BPF support
CONFIG_BPF_EVENTS=y
CONFIG_TEST_BPF=m
> My guess is the config does not enable CONFIG_DEBUG_INFO_BTF which
> causes compilation to use the dummy definitions for BTF_KFUNCS_START().
Correct, see above.
--
Cheers,
Stephen Rothwell
Hi all,
On Wed, 31 Jan 2024 20:02:28 -0800 Alexei Starovoitov <[email protected]> wrote:
>
> On Wed, Jan 31, 2024 at 7:55 PM Daniel Xu <[email protected]> wrote:
> >
> > diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h
> > index 0fe4f1cd1918..e24aabfe8ecc 100644
> > --- a/include/linux/btf_ids.h
> > +++ b/include/linux/btf_ids.h
> > @@ -227,7 +227,7 @@ BTF_SET8_END(name)
> > #define BTF_SET_END(name)
> > #define BTF_SET8_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
> > #define BTF_SET8_END(name)
> > -#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
> > +#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS };
> > #define BTF_KFUNCS_END(name)
>
> Most likely you're correct.
> Force pushed bpf-next with this fix.
That fixed it for me, thanks.
--
Cheers,
Stephen Rothwell
Dear All,
On 01.02.2024 04:55, Daniel Xu wrote:
> Hi Stephen,
>
> Thanks for the report.
>
> On Thu, Feb 01, 2024 at 02:23:48PM +1100, Stephen Rothwell wrote:
>> Hi all,
>>
>> After merging the bpf-next tree, today's linux-next build (powerpc
>> pseries_le_defconfig) produced these runtime warnings in my qemu boot
> I can't quite find that config in-tree. Mind giving me a pointer?
>
>> tests:
>>
>> ipip: IPv4 and MPLS over IPv4 tunneling driver
>> ------------[ cut here ]------------
>> WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74
>> Modules linked in:
>> CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-rc2-03380-gd0c0d80c1162 #2
>> Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
>> NIP: c0000000003bfbfc LR: c00000000209ba3c CTR: c00000000209b9a4
>> REGS: c0000000049bf960 TRAP: 0700 Not tainted (6.8.0-rc2-03380-gd0c0d80c1162)
>> MSR: 8000000002029033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 24000482 XER: 00000000
>> CFAR: c0000000003bfbb0 IRQMASK: 0
>> GPR00: c00000000209ba3c c0000000049bfc00 c0000000015c9900 000000000000001b
>> GPR04: c0000000012bc980 000000000000019a 000000000000019a 0000000000000133
>> GPR08: c000000002969900 0000000000000001 c000000002969900 c000000002969900
>> GPR12: c00000000209b9a4 c000000002b60000 c0000000000110cc 0000000000000000
>> GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250
>> GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1060
>> GPR28: 0000000000000000 0000000000000007 c0000000020c10a8 c000000002968f80
>> NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74
>> LR [c00000000209ba3c] cubictcp_register+0x98/0xc8
>> Call Trace:
>> [c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8
>> [c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520
>> [c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c
>> [c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c
>> --- interrupt: 0 at 0x0
>> Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121
>> ---[ end trace 0000000000000000 ]---
>> NET: Registered PF_INET6 protocol family
> [...]
>
>> Exposed (and maybe caused) by commit
>>
>> 6e7769e6419f ("bpf: treewide: Annotate BPF kfuncs in BTF")
>>
> My guess is the config does not enable CONFIG_DEBUG_INFO_BTF which
> causes compilation to use the dummy definitions for BTF_KFUNCS_START().
>
> I think there's probably a few ways to fix it. This untested diff should
> work if I am guessing correctly. There's probably a cleaner way to do
> this. I'll take a closer look in the morning.
I've observed this issue while testing today's linux-next on ARM64 bit
boards. The below patch fixes (or hides?) this warning. Feel free to add:
Tested-by: Marek Szyprowski <[email protected]>
> diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h
> index 0fe4f1cd1918..e24aabfe8ecc 100644
> --- a/include/linux/btf_ids.h
> +++ b/include/linux/btf_ids.h
> @@ -227,7 +227,7 @@ BTF_SET8_END(name)
> #define BTF_SET_END(name)
> #define BTF_SET8_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
> #define BTF_SET8_END(name)
> -#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { 0 };
> +#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS };
> #define BTF_KFUNCS_END(name)
>
> #endif /* CONFIG_DEBUG_INFO_BTF */
>
>
> Thanks,
> Daniel
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland