include/net/sock.h:2098:16: sparse: sparse: cast to non-scalar
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e5f0a698b34ed76002dc5cff3804a61c80233a7a commit: c51da3f7a161c6822232be832abdffe47eb55b4c net: remove sock_i_uid() date: 3 months ago config: alpha-randconfig-r122-20250929 (https://download.01.org/0day-ci/archive/20250929/[email protected]/config) compiler: alpha-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250929/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
net/packet/diag.c: note: in included file (through include/linux/sock_diag.h):
>> include/net/sock.h:2098:16: sparse: sparse: cast to non-scalar
include/net/sock.h:2098:16: sparse: sparse: cast from non-scalar
--
net/packet/af_packet.c:1099:13: sparse: sparse: context imbalance in '__packet_lookup_frame_in_block' - different lock contexts for basic block net/packet/af_packet.c:2541:17: sparse: sparse: context imbalance in 'tpacket_rcv' - unexpected unlock net/packet/af_packet.c: note: in included file (through include/net/inet_sock.h, include/net/ip.h):
>> include/net/sock.h:2098:16: sparse: sparse: cast to non-scalar
include/net/sock.h:2098:16: sparse: sparse: cast from non-scalar
vim +2098 include/net/sock.h
^1da177e4c3f415 Linus Torvalds 2005-04-16 2094
e84a4927a404f36 Eric Dumazet 2025-06-20 2095 static inline kuid_t sk_uid(const struct sock *sk)
e84a4927a404f36 Eric Dumazet 2025-06-20 2096 {
e84a4927a404f36 Eric Dumazet 2025-06-20 2097 /* Paired with WRITE_ONCE() in sockfs_setattr() */
e84a4927a404f36 Eric Dumazet 2025-06-20 @2098 return READ_ONCE(sk->sk_uid);
e84a4927a404f36 Eric Dumazet 2025-06-20 2099 }
e84a4927a404f36 Eric Dumazet 2025-06-20 2100 :::::: The code at line 2098 was first introduced by commit
:::::: e84a4927a404f369c842c19de93b216627fcc690 net: annotate races around sk->sk_uid
:::::: TO: Eric Dumazet <[email protected]>
:::::: CC: Jakub Kicinski <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 38 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e5f0a698b34ed76002dc5cff3804a61c80233a7a commit: c51da3f7a161c6822232be832abdffe47eb55b4c net: remove sock_i_uid() date: 3 months ago config: alpha-randconfig-r122-20250929 (https://download.01.org/0day-ci/archive/20250929/[email protected]/config) compiler: alpha-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250929/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/sparse warnings: (new ones prefixed by >>)
net/packet/diag.c: note: in included file (throughinclude/linux/sock_diag.h):Quoted 1 line
Quoted 1 line
include/net/sock.h:2098:16: sparse: sparse: cast to non-scalar
include/net/sock.h:2098:16: sparse: sparse: cast from non-scalar
--
net/packet/af_packet.c:1099:13: sparse: sparse: context imbalance in '__packet_lookup_frame_in_block' - different lock contexts for basic blocknet/packet/af_packet.c:2541:17: sparse: sparse: context imbalance in 'tpacket_rcv' - unexpected unlocknet/packet/af_packet.c: note: in included file (throughinclude/net/inet_sock.h,include/net/ip.h):Quoted 1 line
Quoted 1 line
include/net/sock.h:2098:16: sparse: sparse: cast to non-scalar
include/net/sock.h:2098:16: sparse: sparse: cast from non-scalarvim +2098
include/net/sock.h^1da177e4c3f415 Linus Torvalds 2005-04-16 2094 e84a4927a404f36 Eric Dumazet 2025-06-20 2095 static inline kuid_t sk_uid(const struct sock *sk) e84a4927a404f36 Eric Dumazet 2025-06-20 2096 { e84a4927a404f36 Eric Dumazet 2025-06-20 2097 /* Paired with WRITE_ONCE() in sockfs_setattr() */ e84a4927a404f36 Eric Dumazet 2025-06-20 @2098 return READ_ONCE(sk->sk_uid); e84a4927a404f36 Eric Dumazet 2025-06-20 2099 } e84a4927a404f36 Eric Dumazet 2025-06-20 2100:::::: The code at line 2098 was first introduced by commit
::::::e84a4927a404f369c842c19de93b216627fcc690net: annotate races aroundsk->sk_uid
Quoted 6 lines
:::::: TO: Eric Dumazet <[email protected]>
:::::: CC: Jakub Kicinski <[email protected]>--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
This seems an Alpha issue to me ?
I can submit the following fix if there is an agreement.
arch/alpha/include/asm/rwonce.h +0 -0
100644
arch/alpha/include/asm/rwonce.h +3 -3
@@ -22,10 +22,10 @@*/ #define __READ_ONCE (x) \ ({ \ - __unqual_scalar_typeof(x) __x = \ - (*(volatile typeof(__x) *)(&(x))); \ + __auto_type __x = \ + (*(const volatile __unqual_scalar_typeof(x) *)&(x)); \ mb(); \ - (typeof(x))__x; \ + __x; \ })#endif /* CONFIG_SMP */
Quoted 60 lines · Eric Dumazet
Quoted 38 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e5f0a698b34ed76002dc5cff3804a61c80233a7a commit: c51da3f7a161c6822232be832abdffe47eb55b4c net: remove sock_i_uid() date: 3 months ago config: alpha-randconfig-r122-20250929 (https://download.01.org/0day-ci/archive/20250929/[email protected]/config) compiler: alpha-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250929/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/sparse warnings: (new ones prefixed by >>)
net/packet/diag.c: note: in included file (throughinclude/linux/sock_diag.h):Quoted 1 line
Quoted 1 line
include/net/sock.h:2098:16: sparse: sparse: cast to non-scalar
include/net/sock.h:2098:16: sparse: sparse: cast from non-scalar
--
net/packet/af_packet.c:1099:13: sparse: sparse: context imbalance in '__packet_lookup_frame_in_block' - different lock contexts for basic blocknet/packet/af_packet.c:2541:17: sparse: sparse: context imbalance in 'tpacket_rcv' - unexpected unlocknet/packet/af_packet.c: note: in included file (throughinclude/net/inet_sock.h,include/net/ip.h):Quoted 1 line
Quoted 1 line
include/net/sock.h:2098:16: sparse: sparse: cast to non-scalar
include/net/sock.h:2098:16: sparse: sparse: cast from non-scalarvim +2098
include/net/sock.h^1da177e4c3f415 Linus Torvalds 2005-04-16 2094 e84a4927a404f36 Eric Dumazet 2025-06-20 2095 static inline kuid_t sk_uid(const struct sock *sk) e84a4927a404f36 Eric Dumazet 2025-06-20 2096 { e84a4927a404f36 Eric Dumazet 2025-06-20 2097 /* Paired with WRITE_ONCE() in sockfs_setattr() */ e84a4927a404f36 Eric Dumazet 2025-06-20 @2098 return READ_ONCE(sk->sk_uid); e84a4927a404f36 Eric Dumazet 2025-06-20 2099 } e84a4927a404f36 Eric Dumazet 2025-06-20 2100:::::: The code at line 2098 was first introduced by commit
::::::e84a4927a404f369c842c19de93b216627fcc690net: annotate races aroundsk->sk_uidQuoted 6 lines
:::::: TO: Eric Dumazet <[email protected]>
:::::: CC: Jakub Kicinski <[email protected]>--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wikiThis seems an Alpha issue to me ?
I can submit the following fix if there is an agreement.
arch/alpha/include/asm/rwonce.h +0
-0100644
arch/alpha/include/asm/rwonce.h +0
-0@@ -22,10 +22,10 @@*/ #define __READ_ONCE (x) \ ({ \
arch/alpha/include/asm/rwonce.h line 31
Quoted 10 lines
arch/alpha/include/asm/rwonce.h +3
-3-__unqual_scalar_typeof (x) __x = \ - (*(volatile typeof (__x) *)(&(x))); \ +__auto_type __x = \ + (*(const volatile __unqual_scalar_typeof (x) *)&(x)); \mb (); \ - (typeof (x ))__x; \ + __x; \ })#endif /* CONFIG_SMP */
Gentle ping.
Is alpha arch still alive ?