Subject: linux-next: runtime warning after merge of the landlock tree

From: Stephen Rothwell <[email-masked]>
Date: Wed, 7 Jun 2023 14:10:44 +1000

Hi all,

Today's linux-next qemu boot test (powerpc pseries_le_defconfig) produced
this warning:

WARNING: CPU: 0 PID: 53 at security/landlock/net.c:78 check_socket_access+0xfc/0x210
Modules linked in:
CPU: 0 PID: 53 Comm: init Not tainted 6.4.0-rc5-07746-gd88425633b73 #1
Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries
NIP:  c00000000090717c LR: c0000000008c54d4 CTR: c000000000907290
REGS: c000000006817970 TRAP: 0700   Not tainted  (6.4.0-rc5-07746-gd88425633b73)
MSR:  8000000000029033 <SF,EE,ME,IR,DR,RI,LE>  CR: 2800084a  XER: 20000000
CFAR: c0000000009070cc IRQMASK: 0 
GPR00: c0000000008c54d4 c000000006817c10 c000000001558e00 c000000005040000 
GPR04: c000000006817cf8 000000000000006e 0000000000000002 0000000000000000 
GPR08: 0000000000000000 0000000000000000 c00000000476bfe0 0000000000000000 
GPR12: c000000000907290 c000000002ad0000 0000000000000000 0000000000000000 
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR28: c000000005040000 c000000006817cf8 000000000000006e 0000000000000000 
NIP [c00000000090717c] check_socket_access+0xfc/0x210
LR [c0000000008c54d4] security_socket_connect+0x74/0xe0
Call Trace:
[c000000006817c10] [c000000006817c50] 0xc000000006817c50 (unreliable)
[c000000006817c50] [c000000006817ca0] 0xc000000006817ca0
[c000000006817c90] [c000000000e4e26c] __sys_connect_file+0x6c/0xe0
[c000000006817cd0] [c000000000e4e3c4] __sys_connect+0xe4/0x130
[c000000006817da0] [c000000000e50d1c] sys_socketcall+0x46c/0x530
[c000000006817e10] [c000000000030958] system_call_exception+0x128/0x330
[c000000006817e50] [c00000000000d6a0] system_call_common+0x160/0x2c4
--- interrupt: c00 at 0x7fff7fd9e544
NIP:  00007fff7fd9e544 LR: 00007fff7fd96c4c CTR: 0000000000000000
REGS: c000000006817e80 TRAP: 0c00   Not tainted  (6.4.0-rc5-07746-gd88425633b73)
MSR:  800000000280f033 <SF,VEC,VSX,EE,PR,FP,ME,IR,DR,RI,LE>  CR: 24000842  XER: 00000000
IRQMASK: 0 
GPR00: 0000000000000066 00007fffc31f3b30 00007fff7fe39900 0000000000000003 
GPR04: 00007fffc31f3b60 000000000000006e 0000000000000000 0000000000000000 
GPR08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR12: 0000000000000000 00007fff7feba9a0 0000000000000000 0000000000000000 
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
GPR20: 0000000000000016 0000000000000002 00007fff7fe33e14 00007fff7fe33e08 
GPR24: 0000000000000001 00007fff7fe33e16 00007fff7fe07b48 ffffffffffffffff 
GPR28: ffffffffffffffff 00007fff7fe30110 00007fff7fe33e08 00007fff7feb39b0 
NIP [00007fff7fd9e544] 0x7fff7fd9e544
LR [00007fff7fd96c4c] 0x7fff7fd96c4c
--- interrupt: c00
Code: ebc10030 38600000 e9410028 e92d0c78 7d4a4a79 39200000 7c6307b4 4082010c 38210040 ebe1fff8 4e800020 ebc10030 <0fe00000> 7c0802a6 fbc10030 f8010050 
---[ end trace 0000000000000000 ]---

-- 
Cheers,
Stephen Rothwell