* drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
@ 2021-08-25 6:56 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-08-25 6:56 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3893 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6e764bcd1cf72a2846c0e53d3975a09b242c04c9
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 4 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 4 months ago
config: x86_64-randconfig-m001-20210824 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:376 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_uc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:384 opa_vnic_get_sc() warn: possible spectre second half. 'sc'
vim +374 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 361
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 362 /* opa_vnic_get_sc - return the service class */
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 363 static u8 opa_vnic_get_sc(struct __opa_veswport_info *info,
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 364 struct sk_buff *skb)
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 365 {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 367 u16 vlan_tci;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 368 u8 sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 369
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 370 if (!__vlan_get_tag(skb, &vlan_tci)) {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 372
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 373 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @374 sc = info->vport.pcp_to_sc_mc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 375 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @376 sc = info->vport.pcp_to_sc_uc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 377 } else {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 378 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 379 sc = info->vport.non_vlan_sc_mc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 380 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 381 sc = info->vport.non_vlan_sc_uc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 382 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 383
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @384 return sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 385 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 386
:::::: The code at line 374 was first introduced by commit
:::::: 7d6f728c677e9d01b42d3cc9eb9ef40a2de92ea3 IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev
:::::: TO: Vishwanathapura, Niranjana <niranjana.vishwanathapura@intel.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36158 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
@ 2022-02-07 14:26 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2022-02-07 14:26 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3965 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dfd42facf1e4ada021b939b4e19c935dcdd55566
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 9 months ago
:::::: branch date: 18 hours ago
:::::: commit date: 9 months ago
config: x86_64-randconfig-m001-20220207 (https://download.01.org/0day-ci/archive/20220207/202202072248.AsWTLOdA-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:376 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_uc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:384 opa_vnic_get_sc() warn: possible spectre second half. 'sc'
vim +374 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 361
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 362 /* opa_vnic_get_sc - return the service class */
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 363 static u8 opa_vnic_get_sc(struct __opa_veswport_info *info,
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 364 struct sk_buff *skb)
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 365 {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 367 u16 vlan_tci;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 368 u8 sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 369
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 370 if (!__vlan_get_tag(skb, &vlan_tci)) {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 372
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 373 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @374 sc = info->vport.pcp_to_sc_mc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 375 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @376 sc = info->vport.pcp_to_sc_uc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 377 } else {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 378 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 379 sc = info->vport.non_vlan_sc_mc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 380 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 381 sc = info->vport.non_vlan_sc_uc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 382 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 383
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @384 return sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 385 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 386
:::::: The code at line 374 was first introduced by commit
:::::: 7d6f728c677e9d01b42d3cc9eb9ef40a2de92ea3 IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev
:::::: TO: Vishwanathapura, Niranjana <niranjana.vishwanathapura@intel.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
@ 2021-11-24 19:27 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-11-24 19:27 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4053 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5d9f4cf36721aba199975a9be7863a3ff5cd4b59
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 7 months ago
:::::: branch date: 21 hours ago
:::::: commit date: 7 months ago
config: x86_64-randconfig-m001-20211122 (https://download.01.org/0day-ci/archive/20211125/202111250317.6hp6SBin-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:376 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_uc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:384 opa_vnic_get_sc() warn: possible spectre second half. 'sc'
drivers/infiniband/sw/siw/iwarp.h:114 __ddp_get_version() warn: mask and shift to zero
vim +374 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 361
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 362 /* opa_vnic_get_sc - return the service class */
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 363 static u8 opa_vnic_get_sc(struct __opa_veswport_info *info,
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 364 struct sk_buff *skb)
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 365 {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 367 u16 vlan_tci;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 368 u8 sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 369
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 370 if (!__vlan_get_tag(skb, &vlan_tci)) {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 372
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 373 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @374 sc = info->vport.pcp_to_sc_mc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 375 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @376 sc = info->vport.pcp_to_sc_uc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 377 } else {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 378 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 379 sc = info->vport.non_vlan_sc_mc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 380 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 381 sc = info->vport.non_vlan_sc_uc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 382 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 383
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @384 return sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 385 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 386
:::::: The code at line 374 was first introduced by commit
:::::: 7d6f728c677e9d01b42d3cc9eb9ef40a2de92ea3 IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev
:::::: TO: Vishwanathapura, Niranjana <niranjana.vishwanathapura@intel.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
@ 2021-11-23 2:13 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-11-23 2:13 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3981 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 136057256686de39cc3a07c2e39ef6bc43003ff6
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 7 months ago
:::::: branch date: 28 hours ago
:::::: commit date: 7 months ago
config: x86_64-randconfig-m001-20211122 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:376 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_uc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:384 opa_vnic_get_sc() warn: possible spectre second half. 'sc'
drivers/infiniband/sw/siw/iwarp.h:114 __ddp_get_version() warn: mask and shift to zero
vim +374 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 361
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 362 /* opa_vnic_get_sc - return the service class */
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 363 static u8 opa_vnic_get_sc(struct __opa_veswport_info *info,
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 364 struct sk_buff *skb)
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 365 {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 367 u16 vlan_tci;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 368 u8 sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 369
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 370 if (!__vlan_get_tag(skb, &vlan_tci)) {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 372
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 373 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @374 sc = info->vport.pcp_to_sc_mc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 375 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @376 sc = info->vport.pcp_to_sc_uc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 377 } else {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 378 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 379 sc = info->vport.non_vlan_sc_mc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 380 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 381 sc = info->vport.non_vlan_sc_uc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 382 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 383
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @384 return sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 385 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 386
:::::: The code at line 374 was first introduced by commit
:::::: 7d6f728c677e9d01b42d3cc9eb9ef40a2de92ea3 IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev
:::::: TO: Vishwanathapura, Niranjana <niranjana.vishwanathapura@intel.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34459 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
@ 2021-11-11 20:48 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-11-11 20:48 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3893 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: debe436e77c72fcee804fb867f275e6d31aa999c
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 7 months ago
:::::: branch date: 20 hours ago
:::::: commit date: 7 months ago
config: x86_64-randconfig-m001-20211010 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:376 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_uc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:384 opa_vnic_get_sc() warn: possible spectre second half. 'sc'
vim +374 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 361
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 362 /* opa_vnic_get_sc - return the service class */
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 363 static u8 opa_vnic_get_sc(struct __opa_veswport_info *info,
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 364 struct sk_buff *skb)
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 365 {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 367 u16 vlan_tci;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 368 u8 sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 369
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 370 if (!__vlan_get_tag(skb, &vlan_tci)) {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 372
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 373 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @374 sc = info->vport.pcp_to_sc_mc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 375 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @376 sc = info->vport.pcp_to_sc_uc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 377 } else {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 378 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 379 sc = info->vport.non_vlan_sc_mc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 380 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 381 sc = info->vport.non_vlan_sc_uc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 382 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 383
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @384 return sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 385 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 386
:::::: The code at line 374 was first introduced by commit
:::::: 7d6f728c677e9d01b42d3cc9eb9ef40a2de92ea3 IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev
:::::: TO: Vishwanathapura, Niranjana <niranjana.vishwanathapura@intel.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38495 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
@ 2021-06-23 1:01 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-06-23 1:01 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3978 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0c18f29aae7ce3dadd26d8ee3505d07cc982df75
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 8 weeks ago
:::::: branch date: 7 hours ago
:::::: commit date: 8 weeks ago
config: x86_64-randconfig-m001-20210622 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:376 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_uc' [r]
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:384 opa_vnic_get_sc() warn: possible spectre second half. 'sc'
drivers/infiniband/sw/siw/iwarp.h:114 __ddp_get_version() warn: mask and shift to zero
vim +374 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 361
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 362 /* opa_vnic_get_sc - return the service class */
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 363 static u8 opa_vnic_get_sc(struct __opa_veswport_info *info,
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 364 struct sk_buff *skb)
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 365 {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 367 u16 vlan_tci;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 368 u8 sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 369
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 370 if (!__vlan_get_tag(skb, &vlan_tci)) {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 371 u8 pcp = OPA_VNIC_VLAN_PCP(vlan_tci);
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 372
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 373 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @374 sc = info->vport.pcp_to_sc_mc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 375 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @376 sc = info->vport.pcp_to_sc_uc[pcp];
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 377 } else {
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 378 if (is_multicast_ether_addr(mac_hdr->h_dest))
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 379 sc = info->vport.non_vlan_sc_mc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 380 else
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 381 sc = info->vport.non_vlan_sc_uc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 382 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 383
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 @384 return sc;
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 385 }
7d6f728c677e9d Vishwanathapura, Niranjana 2017-04-12 386
:::::: The code at line 374 was first introduced by commit
:::::: 7d6f728c677e9d01b42d3cc9eb9ef40a2de92ea3 IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev
:::::: TO: Vishwanathapura, Niranjana <niranjana.vishwanathapura@intel.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 50140 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-02-07 14:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 6:56 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c:374 opa_vnic_get_sc() warn: potential spectre issue 'info->vport.pcp_to_sc_mc' [r] kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-02-07 14:26 kernel test robot
2021-11-24 19:27 kernel test robot
2021-11-23 2:13 kernel test robot
2021-11-11 20:48 kernel test robot
2021-06-23 1:01 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.