CC: [email protected]
CC: [email protected]
TO: Julian Braha <[email protected]>
CC: Andrew Morton <[email protected]>
CC: Linux Memory Management List <[email protected]>

Hi Julian,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   c17a3066b4c1acdf36fa307faaa391f558ac0420
commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on 
ARCH_WANT_FRAME_POINTERS
date:   5 days ago
:::::: branch date: 3 hours ago
:::::: commit date: 5 days ago
config: csky-randconfig-m031-20210414 (attached as .config)
compiler: csky-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

New smatch warnings:
drivers/net/ethernet/freescale/enetc/enetc_qos.c:1350 enetc_config_clsflower() 
warn: should '(((1))) << (entry->id)' be a 64 bit type?
drivers/net/sungem_phy.c:412 genmii_read_link() warn: inconsistent indenting
drivers/net/wireless/realtek/rtw88/debug.c:613 rtw_debugfs_get_tx_pwr_tbl() 
warn: argument 4 to %02x specifier has type 'schar'
drivers/net/ethernet/sfc/efx_common.c:757 efx_reset_up() warn: missing error 
code 'rc'
drivers/net/ethernet/sfc/ef10.c:2243 efx_ef10_tx_tso_desc() warn: assigning 
(-208) to unsigned variable 'ip_tot_len'
drivers/net/wireless/ath/ath9k/init.c:721 ath9k_init_softc() warn: bitwise AND 
condition is false here
drivers/net/wireless/ath/ath9k/recv.c:984 ath9k_antenna_check() warn: bitwise 
AND condition is false here
drivers/net/wireless/ath/ath11k/htc.c:271 ath11k_htc_rx_completion_handler() 
warn: potential spectre issue 'htc->endpoint' [r] (local cap)
drivers/net/wireless/ath/ath11k/wmi.c:6171 ath11k_mgmt_rx_event() warn: 
'rx_ev.snr + -95' 4294967201 can't fit into 127 'status->signal'
drivers/net/wireless/ath/ath11k/dp_rx.c:1622 
ath11k_htt_backpressure_event_handler() warn: potential spectre issue 
'ab->soc_stats.bp_stats.umac_ring_bp_stats' [r] (local cap)
drivers/net/wireless/ath/ath11k/dp_rx.c:1629 
ath11k_htt_backpressure_event_handler() warn: potential spectre issue 
'ab->soc_stats.bp_stats.lmac_ring_bp_stats' [r] (local cap)
drivers/net/wireless/ath/ath11k/dp_rx.c:1629 
ath11k_htt_backpressure_event_handler() warn: potential spectre issue 
'ab->soc_stats.bp_stats.lmac_ring_bp_stats[ring_id]' [r] (local cap)
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c:854 
mlx5_fpga_ipsec_release_sa_ctx() warn: bitwise AND condition is false here
drivers/net/wireless/ath/ath10k/wmi.c:2569 ath10k_wmi_event_mgmt_rx() warn: 
'snr + -95' 4294967201 can't fit into 127 'status->signal'
drivers/net/ethernet/sfc/ef100.c:70 ef100_pci_parse_ef100_entry() warn: should 
'_ef100_pci_get_bar_bits_with_width(efx, entry_location, 67, 29) << 4' be a 64 
bit type?
drivers/net/wireless/ath/ath9k/ar9003_phy.c:284 
ar9003_hw_spur_mitigate_mrc_cck() error: buffer overflow 'spur_freq' 4 <= 4
drivers/net/wireless/ath/ath9k/ar9003_calib.c:1310 
ar9003_hw_do_pcoem_manual_peak_cal() warn: bitwise AND condition is false here
drivers/net/wireless/ath/ath9k/ar9003_calib.c:1404 ar9003_hw_init_cal_pcoem() 
warn: bitwise AND condition is false here
drivers/net/ethernet/sun/cassini.c:1238 cas_init_rx_dma() warn: we never enter 
this loop
drivers/net/ethernet/sun/cassini.c:3510 cas_start_dma() warn: we never enter 
this loop
drivers/net/ethernet/sun/cassini.c:4568 cas_get_link_ksettings() error: 
uninitialized symbol 'speed'.
drivers/net/ethernet/sun/cassini.c:4572 cas_get_link_ksettings() error: 
uninitialized symbol 'full_duplex'.
drivers/net/wireless/realtek/rtlwifi/base.c:1424 rtl_action_proc() warn: 
potential spectre issue 'sta_entry->tids' [r] (local cap)
arch/csky/kernel/signal.c:25 restore_fpu_state() warn: maybe return -EFAULT 
instead of the bytes remaining?
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 18
arch/csky/kernel/stacktrace.c:72 walk_stackframe() error: uninitialized symbol 
'current_sp'.

Old smatch warnings:
drivers/net/wireless/realtek/rtw88/debug.c:273 rtw_debugfs_set_rsvd_page() 
warn: sscanf doesn't return error codes
drivers/net/wireless/ath/ath9k/ar9003_calib.c:1322 
ar9003_hw_do_pcoem_manual_peak_cal() warn: bitwise AND condition is false here
drivers/net/ethernet/sun/cassini.c:1246 cas_init_rx_dma() warn: we never enter 
this loop
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 19
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 20
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 21
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 22
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 23
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 24
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 25
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 26
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 27
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 28
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 29
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 30
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 31
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 32
arch/csky/kernel/process.c:86 dump_task_regs() error: buffer overflow 
'*pr_regs' 18 <= 33

vim +1350 drivers/net/ethernet/freescale/enetc/enetc_qos.c

888ae5a3952bad Po Liu 2020-05-01  1331  
888ae5a3952bad Po Liu 2020-05-01  1332  static int 
enetc_config_clsflower(struct enetc_ndev_priv *priv,
888ae5a3952bad Po Liu 2020-05-01  1333                                    
struct flow_cls_offload *cls_flower)
888ae5a3952bad Po Liu 2020-05-01  1334  {
888ae5a3952bad Po Liu 2020-05-01  1335          struct flow_rule *rule = 
flow_cls_offload_flow_rule(cls_flower);
888ae5a3952bad Po Liu 2020-05-01  1336          struct netlink_ext_ack *extack 
= cls_flower->common.extack;
888ae5a3952bad Po Liu 2020-05-01  1337          struct flow_dissector 
*dissector = rule->match.dissector;
888ae5a3952bad Po Liu 2020-05-01  1338          struct flow_action *action = 
&rule->action;
888ae5a3952bad Po Liu 2020-05-01  1339          struct flow_action_entry *entry;
888ae5a3952bad Po Liu 2020-05-01  1340          struct actions_fwd *fwd;
888ae5a3952bad Po Liu 2020-05-01  1341          u64 actions = 0;
888ae5a3952bad Po Liu 2020-05-01  1342          int i, err;
888ae5a3952bad Po Liu 2020-05-01  1343  
888ae5a3952bad Po Liu 2020-05-01  1344          if 
(!flow_action_has_entries(action)) {
888ae5a3952bad Po Liu 2020-05-01  1345                  
NL_SET_ERR_MSG_MOD(extack, "At least one action is needed");
888ae5a3952bad Po Liu 2020-05-01  1346                  return -EINVAL;
888ae5a3952bad Po Liu 2020-05-01  1347          }
888ae5a3952bad Po Liu 2020-05-01  1348  
888ae5a3952bad Po Liu 2020-05-01  1349          flow_action_for_each(i, entry, 
action)
888ae5a3952bad Po Liu 2020-05-01 @1350                  actions |= 
BIT(entry->id);
888ae5a3952bad Po Liu 2020-05-01  1351  
888ae5a3952bad Po Liu 2020-05-01  1352          fwd = 
enetc_check_flow_actions(actions, dissector->used_keys);
888ae5a3952bad Po Liu 2020-05-01  1353          if (!fwd) {
888ae5a3952bad Po Liu 2020-05-01  1354                  
NL_SET_ERR_MSG_MOD(extack, "Unsupported filter type!");
888ae5a3952bad Po Liu 2020-05-01  1355                  return -EOPNOTSUPP;
888ae5a3952bad Po Liu 2020-05-01  1356          }
888ae5a3952bad Po Liu 2020-05-01  1357  
888ae5a3952bad Po Liu 2020-05-01  1358          if (fwd->output & 
FILTER_ACTION_TYPE_PSFP) {
888ae5a3952bad Po Liu 2020-05-01  1359                  err = 
enetc_psfp_parse_clsflower(priv, cls_flower);
888ae5a3952bad Po Liu 2020-05-01  1360                  if (err) {
888ae5a3952bad Po Liu 2020-05-01  1361                          
NL_SET_ERR_MSG_MOD(extack, "Invalid PSFP inputs");
888ae5a3952bad Po Liu 2020-05-01  1362                          return err;
888ae5a3952bad Po Liu 2020-05-01  1363                  }
888ae5a3952bad Po Liu 2020-05-01  1364          } else {
888ae5a3952bad Po Liu 2020-05-01  1365                  
NL_SET_ERR_MSG_MOD(extack, "Unsupported actions");
888ae5a3952bad Po Liu 2020-05-01  1366                  return -EOPNOTSUPP;
888ae5a3952bad Po Liu 2020-05-01  1367          }
888ae5a3952bad Po Liu 2020-05-01  1368  
888ae5a3952bad Po Liu 2020-05-01  1369          return 0;
888ae5a3952bad Po Liu 2020-05-01  1370  }
888ae5a3952bad Po Liu 2020-05-01  1371  

:::::: The code at line 1350 was first introduced by commit
:::::: 888ae5a3952badf11fdcd210f5da9994462ec2fc net: enetc: add tc flower psfp 
offload driver

:::::: TO: Po Liu <[email protected]>
:::::: CC: David S. Miller <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to