CC: [email protected] BCC: [email protected] CC: [email protected] TO: Chao Yu <[email protected]>, Chao Yu <[email protected]> CC: Jaegeuk Kim <[email protected]>
Hi Chao, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 79b00034e9dcd2b065c1665c8b42f62b6b80a9be commit: 89e53ff1651a61cf2abef9356e2f60d0086215be f2fs: atgc: fix to set default age threshold date: 10 months ago :::::: branch date: 14 hours ago :::::: commit date: 10 months ago config: riscv-randconfig-m031-20211210 (https://download.01.org/0day-ci/archive/20220312/[email protected]/config) compiler: riscv64-linux-gcc (GCC) 11.2.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/crypto/cavium/cpt/cptpf_mbox.c:31 cpt_clear_mbox_intr() warn: should '1 << vf' be a 64 bit type? arch/riscv/kernel/signal.c:42 restore_fp_state() warn: maybe return -EFAULT instead of the bytes remaining? arch/riscv/kernel/signal.c:70 save_fp_state() warn: maybe return -EFAULT instead of the bytes remaining? drivers/video/fbdev/riva/riva_hw.c:1823 SetStartAddress3() warn: inconsistent indenting drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:1295 create_engine_group() error: we previously assumed 'mirrored_eng_grp' could be null (see line 1251) drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:1348 ucode_load_store() warn: variable dereferenced before check 'val' (see line 1341) sound/soc/qcom/qdsp6/q6afe.c:995 q6afe_set_param() warn: is 'p' large enough for 'struct apr_pkt'? 0 sound/soc/rockchip/rockchip_i2s.c:691 rockchip_i2s_probe() warn: 'i2s->hclk' not released on lines: 618,624,631. sound/soc/stm/stm32_sai_sub.c:506 stm32_sai_isr() error: uninitialized symbol 'sr'. sound/soc/stm/stm32_sai_sub.c:506 stm32_sai_isr() error: uninitialized symbol 'imr'. sound/soc/stm/stm32_sai_sub.c:793 stm32_sai_startup() error: uninitialized symbol 'cr2'. sound/soc/stm/stm32_sai_sub.c:872 stm32_sai_set_slots() error: uninitialized symbol 'slotr'. drivers/net/wireless/ath/wcn36xx/main.c:582 wcn36xx_set_key() error: we previously assumed 'sta' could be null (see line 524) drivers/net/usb/hso.c:1400 hso_serial_set_termios() error: we previously assumed 'old' could be null (see line 1390) drivers/net/wireless/ath/wcn36xx/smd.c:525 wcn36xx_smd_load_nv() error: we previously assumed 'wcn->nv' could be null (see line 516) drivers/net/wireless/ath/wcn36xx/smd.c:1908 wcn36xx_smd_send_beacon() warn: potential spectre issue 'msg_body.beacon' [w] arch/riscv/kernel/perf_event.c:160 riscv_map_cache_event() warn: inconsistent indenting drivers/net/wireless/ath/ath10k/ahb.c:92 ath10k_ahb_clock_init() warn: passing zero to 'PTR_ERR' lib/test_kasan.c:179 kmalloc_pagealloc_oob_right() error: buffer overflow 'ptr' 8202 <= 8202 Old smatch warnings: arch/riscv/kernel/signal.c:95 restore_sigcontext() warn: maybe return -EFAULT instead of the bytes remaining? arch/riscv/kernel/signal.c:148 setup_sigcontext() warn: maybe return -EFAULT instead of the bytes remaining? drivers/video/fbdev/riva/riva_hw.c:979 nv10CalcArbitration() warn: inconsistent indenting drivers/video/fbdev/riva/riva_hw.c:1825 SetStartAddress3() warn: inconsistent indenting drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:1363 ucode_load_store() warn: variable dereferenced before check 'val' (see line 1341) drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:1375 ucode_load_store() warn: variable dereferenced before check 'val' (see line 1341) sound/soc/qcom/qdsp6/q6afe.c:1049 q6afe_port_set_param_v2() warn: is 'p' large enough for 'struct apr_pkt'? 0 sound/soc/stm/stm32_sai_sub.c:1507 stm32_sai_sub_parse_of() warn: 'sai->pdata->pclk' not released on lines: 1502. drivers/net/usb/hso.c:2627 hso_create_bulk_serial_device() warn: variable dereferenced before check 'serial->tiocmget' (see line 2621) drivers/net/wireless/ath/ath10k/ahb.c:99 ath10k_ahb_clock_init() warn: passing zero to 'PTR_ERR' drivers/net/wireless/ath/ath10k/ahb.c:106 ath10k_ahb_clock_init() warn: passing zero to 'PTR_ERR' lib/test_kasan.c:135 kmalloc_oob_right() error: buffer overflow 'ptr' 123 <= 123 lib/test_kasan.c:159 kmalloc_node_oob_right() error: buffer overflow 'ptr' 4096 <= 4096 lib/test_kasan.c:286 krealloc_more_oob_helper() warn: potentially one past the end of array 'ptr2[size2]' lib/test_kasan.c:286 krealloc_more_oob_helper() warn: potentially one past the end of array 'ptr2[size2]' lib/test_kasan.c:315 krealloc_less_oob_helper() warn: potentially one past the end of array 'ptr2[size2]' lib/test_kasan.c:315 krealloc_less_oob_helper() warn: potentially one past the end of array 'ptr2[size2]' lib/test_kasan.c:329 krealloc_less_oob_helper() warn: potentially one past the end of array 'ptr2[middle]' lib/test_kasan.c:329 krealloc_less_oob_helper() warn: potentially one past the end of array 'ptr2[middle]' lib/test_kasan.c:378 krealloc_uaf() warn: passing freed memory 'ptr1' lib/test_kasan.c:416 kmalloc_uaf_16() error: dereferencing freed memory 'ptr2' lib/test_kasan.c:518 kmalloc_uaf_memset() warn: passing freed memory 'ptr' lib/test_kasan.c:658 kasan_global_oob() error: buffer overflow 'global_array' 10 <= 13 lib/test_kasan.c:677 ksize_unpoisons_memory() error: buffer overflow 'ptr' 123 <= 123 lib/test_kasan.c:698 ksize_uaf() warn: passing freed memory 'ptr' lib/test_kasan.c:757 kmem_cache_double_free() error: double free of 'p' lib/test_kasan.c:832 kasan_memcmp() error: memcmp() 'ptr' too small (24 vs 25) vim +31 drivers/crypto/cavium/cpt/cptpf_mbox.c 9e2c7d99941d00 George Cherian 2017-02-07 27 9e2c7d99941d00 George Cherian 2017-02-07 28 static void cpt_clear_mbox_intr(struct cpt_device *cpt, u32 vf) 9e2c7d99941d00 George Cherian 2017-02-07 29 { 9e2c7d99941d00 George Cherian 2017-02-07 30 /* W1C for the VF */ 9e2c7d99941d00 George Cherian 2017-02-07 @31 cpt_write_csr64(cpt->reg_base, CPTX_PF_MBOX_INTX(0, 0), (1 << vf)); 9e2c7d99941d00 George Cherian 2017-02-07 32 } 9e2c7d99941d00 George Cherian 2017-02-07 33 :::::: The code at line 31 was first introduced by commit :::::: 9e2c7d99941d000a36f68a3594cec27a1bbea274 crypto: cavium - Add Support for Octeon-tx CPT Engine :::::: TO: George Cherian <[email protected]> :::::: CC: Herbert Xu <[email protected]> --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
