[kbuild] [mcgrof-next:20210820-add-disk-error-handling-next 89/90] drivers/block/floppy.c:4540 floppy_probe() error: uninitialized symbol 'err'.
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Luis Chamberlain tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210820-add-disk-error-handling-next head: 9a845121f1e14033032e7cbb772ca21f24be0cb3 commit: b08dbe6faf0fc2f3589d5e9b191899b7d9ab0b6d [89/90] block: make __register_blkdev() return an error :: branch date: 6 days ago :: commit date: 6 days ago config: i386-randconfig-m021-20210827 (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 Reported-by: Dan Carpenter New smatch warnings: drivers/block/floppy.c:4540 floppy_probe() error: uninitialized symbol 'err'. Old smatch warnings: drivers/block/floppy.c:2794 redo_fd_request() error: we previously assumed 'current_req' could be null (see line 2782) drivers/block/floppy.c:3543 fd_locked_ioctl() error: uninitialized symbol 'outparam'. vim +/err +4540 drivers/block/floppy.c 302cfee150291c Christoph Hellwig 2020-10-29 4519 b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4520 static int floppy_probe(dev_t dev) 302cfee150291c Christoph Hellwig 2020-10-29 4521 { 302cfee150291c Christoph Hellwig 2020-10-29 4522 unsigned int drive = (MINOR(dev) & 3) | ((MINOR(dev) & 0x80) >> 5); 302cfee150291c Christoph Hellwig 2020-10-29 4523 unsigned int type = (MINOR(dev) >> 2) & 0x1f; b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4524 int err; 302cfee150291c Christoph Hellwig 2020-10-29 4525 302cfee150291c Christoph Hellwig 2020-10-29 4526 if (drive >= N_DRIVE || !floppy_available(drive) || 302cfee150291c Christoph Hellwig 2020-10-29 4527 type >= ARRAY_SIZE(floppy_type)) b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4528 return -EINVAL; 302cfee150291c Christoph Hellwig 2020-10-29 4529 302cfee150291c Christoph Hellwig 2020-10-29 4530 mutex_lock(_probe_lock); 302cfee150291c Christoph Hellwig 2020-10-29 4531 if (!disks[drive][type]) { b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4532 if (floppy_alloc_disk(drive, type) == 0) { b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4533 err = add_disk(disks[drive][type]); b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4534 if (err) b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4535 blk_cleanup_disk(disks[drive][type]); b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4536 } 302cfee150291c Christoph Hellwig 2020-10-29 4537 } 302cfee150291c Christoph Hellwig 2020-10-29 4538 mutex_unlock(_probe_lock); b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 4539 b08dbe6faf0fc2 Luis Chamberlain 2021-07-14 @4540 return err; ^1da177e4c3f41 Linus Torvalds2005-04-16 4541 } ^1da177e4c3f41 Linus Torvalds2005-04-16 4542 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [linux-next:master 2736/10638] drivers/net/can/usb/peak_usb/pcan_usb.c:523 pcan_usb_decode_error() error: we previously assumed 'cf' could be null (see line 503)
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Stephane Grosjean CC: "Marc Kleine-Budde" tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 88fac11862d38306dd0d2398015744877140390d commit: c11dcee758302702a83c6e85e4c4c3d9af42d2b3 [2736/10638] can: peak_usb: pcan_usb_decode_error(): upgrade handling of bus state changes :: branch date: :: commit date: 5 weeks ago config: i386-randconfig-m021-20210827 (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 Reported-by: Dan Carpenter smatch warnings: drivers/net/can/usb/peak_usb/pcan_usb.c:523 pcan_usb_decode_error() error: we previously assumed 'cf' could be null (see line 503) vim +/cf +523 drivers/net/can/usb/peak_usb/pcan_usb.c 46be265d338833 Stephane Grosjean 2012-03-02 449 46be265d338833 Stephane Grosjean 2012-03-02 450 static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, 46be265d338833 Stephane Grosjean 2012-03-02 451 u8 status_len) 46be265d338833 Stephane Grosjean 2012-03-02 452 { 46be265d338833 Stephane Grosjean 2012-03-02 453struct sk_buff *skb; 46be265d338833 Stephane Grosjean 2012-03-02 454struct can_frame *cf; c11dcee7583027 Stephane Grosjean 2021-07-15 455enum can_state new_state = CAN_STATE_ERROR_ACTIVE; 46be265d338833 Stephane Grosjean 2012-03-02 456 46be265d338833 Stephane Grosjean 2012-03-02 457/* ignore this error until 1st ts received */ 46be265d338833 Stephane Grosjean 2012-03-02 458if (n == PCAN_USB_ERROR_QOVR) 46be265d338833 Stephane Grosjean 2012-03-02 459if (!mc->pdev->time_ref.tick_count) 46be265d338833 Stephane Grosjean 2012-03-02 460return 0; 46be265d338833 Stephane Grosjean 2012-03-02 461 c11dcee7583027 Stephane Grosjean 2021-07-15 462/* allocate an skb to store the error frame */ c11dcee7583027 Stephane Grosjean 2021-07-15 463skb = alloc_can_err_skb(mc->netdev, ); 46be265d338833 Stephane Grosjean 2012-03-02 464 c11dcee7583027 Stephane Grosjean 2021-07-15 465if (n & PCAN_USB_ERROR_RXQOVR) { c11dcee7583027 Stephane Grosjean 2021-07-15 466/* data overrun interrupt */ c11dcee7583027 Stephane Grosjean 2021-07-15 467 netdev_dbg(mc->netdev, "data overrun interrupt\n"); c11dcee7583027 Stephane Grosjean 2021-07-15 468 mc->netdev->stats.rx_over_errors++; c11dcee7583027 Stephane Grosjean 2021-07-15 469 mc->netdev->stats.rx_errors++; c11dcee7583027 Stephane Grosjean 2021-07-15 470if (cf) { c11dcee7583027 Stephane Grosjean 2021-07-15 471 cf->can_id |= CAN_ERR_CRTL; c11dcee7583027 Stephane Grosjean 2021-07-15 472 cf->data[1] |= CAN_ERR_CRTL_RX_OVERFLOW; 46be265d338833 Stephane Grosjean 2012-03-02 473} 46be265d338833 Stephane Grosjean 2012-03-02 474} 46be265d338833 Stephane Grosjean 2012-03-02 475 c11dcee7583027 Stephane Grosjean 2021-07-15 476if (n & PCAN_USB_ERROR_TXQFULL) c11dcee7583027 Stephane Grosjean 2021-07-15 477 netdev_dbg(mc->netdev, "device Tx queue full)\n"); c11dcee7583027 Stephane Grosjean 2021-07-15 478 46be265d338833 Stephane Grosjean 2012-03-02 479if (n & PCAN_USB_ERROR_BUS_OFF) { 46be265d338833 Stephane Grosjean 2012-03-02 480new_state = CAN_STATE_BUS_OFF; c11dcee7583027 Stephane Grosjean 2021-07-15 481} else if (n & PCAN_USB_ERROR_BUS_HEAVY) { c11dcee7583027 Stephane Grosjean 2021-07-15 482new_state = ((mc->pdev->bec.txerr >= 128) || c11dcee7583027 Stephane Grosjean 2021-07-15 483 (mc->pdev->bec.rxerr >= 128)) ? c11dcee7583027 Stephane Grosjean 2021-07-15 484 CAN_STATE_ERROR_PASSIVE : c11dcee7583027 Stephane Grosjean 2021-07-15 485 CAN_STATE_ERROR_WARNING; c11dcee7583027 Stephane Grosjean 2021-07-15 486} else { c11dcee7583027 Stephane Grosjean 2021-07-15 487new_state = CAN_STATE_ERROR_ACTIVE; 46be265d338833 Stephane Grosjean 2012-03-02 488} 46be265d338833 Stephane Grosjean 2012-03-02 489 c11dcee7583027 Stephane Grosjean 2021-07-15 490/* handle change of state */ c11dcee7583027 Stephane Grosjean 2021-07-15 491if (new_state != mc->pdev->dev.can.state) { c11dcee7583027 Stephane Grosjean 2021-07-15 492enum can_state tx_state = c11dcee7583027 Stephane Grosjean 2021-07-15 493 (mc->pdev->bec.txerr >= mc->pdev->bec.rxerr) ? c11dcee7583027 Stephane Grosjean 2021-07-15 494 new_state : 0; c11dcee7583027 Stephane Grosjean 2021-07-15 495enum can_state rx_state = c11dcee7583027
[kbuild] [djwong-xfs:vectorized-scrub 245/358] fs/xfs/libxfs/xfs_alloc.c:2564:3: warning: Value stored to 'agno' is never read [clang-analyzer-deadcode.DeadStores]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: "Darrick J. Wong" CC: linux-ker...@vger.kernel.org TO: "Darrick J. Wong" tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub head: f7b5acb4dc5e8a3845296b4662732360360b776e commit: b5e92cc0883a72a43c262daa8faecce72e21 [245/358] xfs: support logging EFIs for realtime extents :: branch date: 21 hours ago :: commit date: 21 hours ago config: riscv-randconfig-c006-20210826 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/commit/?id=b5e92cc0883a72a43c262daa8faecce72e21 git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git git fetch --no-tags djwong-xfs vectorized-scrub git checkout b5e92cc0883a72a43c262daa8faecce72e21 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) ^ include/linux/cpumask.h:241:2: note: expanded from macro 'for_each_cpu' for ((cpu) = -1;\ ^ kernel/sched/topology.c:2152:2: note: Assuming 'i' is < 'nr_cpu_ids' for_each_cpu(i, cpu_map) { ^ include/linux/cpumask.h:243:3: note: expanded from macro 'for_each_cpu' (cpu) < nr_cpu_ids;) ^~ kernel/sched/topology.c:2152:2: note: Loop condition is true. Entering loop body for_each_cpu(i, cpu_map) { ^ include/linux/cpumask.h:241:2: note: expanded from macro 'for_each_cpu' for ((cpu) = -1;\ ^ kernel/sched/topology.c:2153:14: note: Loop condition is false. Exiting loop for (sd = *per_cpu_ptr(d.sd, i); sd; sd = sd->parent) { ^ include/linux/percpu-defs.h:235:2: note: expanded from macro 'per_cpu_ptr' __verify_pcpu_ptr(ptr); \ ^ include/linux/percpu-defs.h:217:37: note: expanded from macro '__verify_pcpu_ptr' #define __verify_pcpu_ptr(ptr) \ ^ kernel/sched/topology.c:2153:3: note: Loop condition is true. Entering loop body for (sd = *per_cpu_ptr(d.sd, i); sd; sd = sd->parent) { ^ kernel/sched/topology.c:2155:8: note: Assuming the condition is false if (sd->flags & SD_OVERLAP) { ^~ kernel/sched/topology.c:2155:4: note: Taking false branch if (sd->flags & SD_OVERLAP) { ^ kernel/sched/topology.c:2159:9: note: Calling 'build_sched_groups' if (build_sched_groups(sd, i)) ^ kernel/sched/topology.c:1194:37: note: 'last' initialized to a null pointer value struct sched_group *first = NULL, *last = NULL; ^~~~ kernel/sched/topology.c:1200:2: note: Assuming 'debug_locks' is 0 lockdep_assert_held(_domains_mutex); ^ include/linux/lockdep.h:310:11: note: expanded from macro 'lockdep_assert_held' WARN_ON(debug_locks && \ ^~~ include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON' int __ret_warn_on = !!(condition); \ ^ kernel/sched/topology.c:1200:2: note: Left side of '&&' is false lockdep_assert_held(_domains_mutex); ^ include/linux/lockdep.h:310:23: note: expanded from macro 'lockdep_assert_held' WARN_ON(debug_locks && \ ^ kernel/sched/topology.c:1200:2: note: Taking false branch lockdep_assert_held(_domains_mutex); ^ include/linux/lockdep.h:310:3: note: expanded from macro 'lockdep_assert_held' WARN_ON(debug_locks &&
[kbuild] [intel-linux-intel-lts:5.10/yocto 9477/15122] drivers/net/pcs/pcs-xpcs.c:843:13: warning: Identical inner 'return' condition is always true. [identicalInnerCondition]
CC: kbuild-...@lists.01.org TO: Ong Boon Leong CC: Zhou Furong tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto head: cef410ba7c738624a98b855c955a0092789b224e commit: 4d8e49ce43d3128c2861f28619b7f3e682f95574 [9477/15122] net: pcs: add C37 SGMII AN support for intel mGbE controller :: branch date: 7 days ago :: commit date: 3 months ago 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 cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> drivers/net/pcs/pcs-xpcs.c:843:13: warning: Identical inner 'return' >> condition is always true. [identicalInnerCondition] return id | ret; ^ drivers/net/pcs/pcs-xpcs.c:842:9: note: outer condition: id|ret if (id | ret) ^ drivers/net/pcs/pcs-xpcs.c:843:13: note: identical inner condition: id|ret return id | ret; ^ drivers/net/pcs/pcs-xpcs.c:858:13: warning: Identical inner 'return' condition is always true. [identicalInnerCondition] return id | ret; ^ drivers/net/pcs/pcs-xpcs.c:857:9: note: outer condition: id|ret if (id | ret) ^ drivers/net/pcs/pcs-xpcs.c:858:13: note: identical inner condition: id|ret return id | ret; ^ vim +/return +843 drivers/net/pcs/pcs-xpcs.c fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 824 fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 825 static u32 xpcs_get_id(struct mdio_xpcs_args *xpcs) fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 826 { fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 827 int ret; fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 828 u32 id; fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 829 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 830 /* First, search C73 PCS using PCS MMD */ fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 831 ret = xpcs_read(xpcs, MDIO_MMD_PCS, MII_PHYSID1); fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 832 if (ret < 0) fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 833 return 0x; fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 834 fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 835 id = ret << 16; fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 836 fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 837 ret = xpcs_read(xpcs, MDIO_MMD_PCS, MII_PHYSID2); fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 838 if (ret < 0) fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 839 return 0x; fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 840 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 841 /* If Device IDs are not all zeros, we found C73 AN-type device */ 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 842 if (id | ret) fcb26bd2b6cab5 drivers/net/phy/mdio-xpcs.c Jose Abreu 2020-03-09 @843 return id | ret; 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 844 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 845 /* Next, search C37 PCS using Vendor-Specific MII MMD */ 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 846 ret = xpcs_read(xpcs, MDIO_MMD_VEND2, MII_PHYSID1); 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 847 if (ret < 0) 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 848 return 0x; 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 849 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 850 id = ret << 16; 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 851 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 852 ret = xpcs_read(xpcs, MDIO_MMD_VEND2, MII_PHYSID2); 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 853 if (ret < 0) 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 854 return 0x; 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 855 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 856 /* If Device IDs are not all zeros, we found C37 AN-type device */ 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 857 if (id | ret) 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon Leong 2021-03-15 858 return id | ret; 4d8e49ce43d312 drivers/net/pcs/pcs-xpcs.c Ong Boon
[kbuild] Re: [RFCv3 05/15] tcp: authopt: Add crypto initialization
CC: kbuild-...@lists.01.org In-Reply-To: References: TO: Leonard Crestez Hi Leonard, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on 3a62c333497b164868fdcd241842a1dd4e331825] url: https://github.com/0day-ci/linux/commits/Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20210825-053714 base: 3a62c333497b164868fdcd241842a1dd4e331825 :: branch date: 2 days ago :: commit date: 2 days ago config: x86_64-rhel-8.3-kselftests (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://github.com/0day-ci/linux/commit/5913479e836ff09dd831385883853e40af12fef8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20210825-053714 git checkout 5913479e836ff09dd831385883853e40af12fef8 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> net/ipv4/tcp_authopt.c:128:9: sparse: sparse: context imbalance in >> 'tcp_authopt_alg_get_tfm' - wrong count at exit net/ipv4/tcp_authopt.c:134:9: sparse: sparse: context imbalance in 'tcp_authopt_alg_put_tfm' - unexpected unlock vim +/tcp_authopt_alg_get_tfm +128 net/ipv4/tcp_authopt.c 5913479e836ff0 Leonard Crestez 2021-08-25 124 5913479e836ff0 Leonard Crestez 2021-08-25 125 static struct crypto_shash *tcp_authopt_alg_get_tfm(struct tcp_authopt_alg_imp *alg) 5913479e836ff0 Leonard Crestez 2021-08-25 126 { 5913479e836ff0 Leonard Crestez 2021-08-25 127 spin_lock_bh(>lock); 5913479e836ff0 Leonard Crestez 2021-08-25 @128 WARN_ON(alg->ref_cnt < 0); 5913479e836ff0 Leonard Crestez 2021-08-25 129 return alg->tfm; 5913479e836ff0 Leonard Crestez 2021-08-25 130 } 5913479e836ff0 Leonard Crestez 2021-08-25 131 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] Re: [PATCH v4] ixgbe: let the xdpdrv work with more than 64 cpus
CC: kbuild-...@lists.01.org In-Reply-To: <20210826141623.8151-1-kerneljasonx...@gmail.com> References: <20210826141623.8151-1-kerneljasonx...@gmail.com> TO: kerneljasonx...@gmail.com TO: jesse.brandeb...@intel.com TO: anthony.l.ngu...@intel.com TO: da...@davemloft.net TO: k...@kernel.org TO: a...@kernel.org TO: dan...@iogearbox.net TO: h...@kernel.org TO: john.fastab...@gmail.com TO: and...@kernel.org TO: ka...@fb.com Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tnguy-next-queue/dev-queue] [also build test WARNING on v5.14-rc7 next-20210826] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/kerneljasonxing-gmail-com/ixgbe-let-the-xdpdrv-work-with-more-than-64-cpus/20210826-221806 base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue :: branch date: 8 hours ago :: commit date: 8 hours ago config: microblaze-randconfig-s032-20210826 (attached as .config) compiler: microblaze-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://github.com/0day-ci/linux/commit/2452ffa7fe1ae306a6d0abd5c0c411e02da21774 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review kerneljasonxing-gmail-com/ixgbe-let-the-xdpdrv-work-with-more-than-64-cpus/20210826-221806 git checkout 2452ffa7fe1ae306a6d0abd5c0c411e02da21774 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=microblaze SHELL=/bin/bash drivers/net/ethernet/intel/ixgbe/ net/ipv6/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:10175:25: sparse: sparse: incompatible types in comparison expression (different address spaces): drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:10175:25: sparse:struct bpf_prog [noderef] __rcu * drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:10175:25: sparse:struct bpf_prog * >> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8614:9: sparse: sparse: >> context imbalance in 'ixgbe_xmit_xdp_ring' - different lock contexts for >> basic block >> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:10229:9: sparse: sparse: >> context imbalance in 'ixgbe_xdp_ring_update_tail_locked' - different lock >> contexts for basic block vim +/ixgbe_xmit_xdp_ring +8614 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 09a3b1f8b1af72 drivers/net/ixgbe/ixgbe_main.cStephen Hemminger 2009-03-21 8543 eadec877ce9ca4 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2018-07-09 8544 #endif 46515fdb1adff1 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Björn Töpel 2018-10-02 8545 int ixgbe_xmit_xdp_ring(struct ixgbe_adapter *adapter, 44fa2dbd475996 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jesper Dangaard Brouer 2018-04-17 8546struct xdp_frame *xdpf) 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8547 { 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8548struct ixgbe_tx_buffer *tx_buffer; 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8549union ixgbe_adv_tx_desc *tx_desc; 2452ffa7fe1ae3 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jason Xing 2021-08-26 8550struct ixgbe_ring *ring; 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8551u32 len, cmd_type; 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8552dma_addr_t dma; 2452ffa7fe1ae3 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jason Xing 2021-08-26 8553int index, ret; 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8554u16 i; 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8555 039930945a72d9 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jesper Dangaard Brouer 2018-04-17 8556len = xdpf->len; 33fdc82f08835d drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-04-24 8557 2452ffa7fe1ae3 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jason Xing 2021-08-26 8558index = ixgbe_determine_xdp_q_idx(smp_p
[kbuild] [jpirko-mlxsw:linecards 92/112] drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c:398 mlxfw_firmware_flash() warn: missing error code 'err'
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Jiri Pirko tree: https://github.com/jpirko/linux_mlxsw linecards head: a37df1af1f3e6a47a9718298d5e50b842f79b2d2 commit: 6865f62b66dc9b887cfdf27a5a465cc286e8cfcc [92/112] mlxfw: Get the PSID value using op instead of passing it in struct :: branch date: 32 hours ago :: commit date: 35 hours ago config: i386-randconfig-m021-20210826 (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 Reported-by: Dan Carpenter smatch warnings: drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c:398 mlxfw_firmware_flash() warn: missing error code 'err' vim +/err +398 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 410ed13cae39df Yotam Gigi 2017-05-23 346 410ed13cae39df Yotam Gigi 2017-05-23 347 int mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev, 44f18db5c16a83 Jiri Pirko 2019-06-04 348 const struct firmware *firmware, 44f18db5c16a83 Jiri Pirko 2019-06-04 349 struct netlink_ext_ack *extack) 410ed13cae39df Yotam Gigi 2017-05-23 350 { 410ed13cae39df Yotam Gigi 2017-05-23 351 struct mlxfw_mfa2_file *mfa2_file; 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 352 bool reactivate_supp = true; 6865f62b66dc9b Jiri Pirko 2021-06-04 353 const char *psid; 6865f62b66dc9b Jiri Pirko 2021-06-04 354 u16 psid_size; 410ed13cae39df Yotam Gigi 2017-05-23 355 u32 fwhandle; 410ed13cae39df Yotam Gigi 2017-05-23 356 int err; 410ed13cae39df Yotam Gigi 2017-05-23 357 410ed13cae39df Yotam Gigi 2017-05-23 358 if (!mlxfw_mfa2_check(firmware)) { 5042e8b97d4176 Saeed Mahameed 2020-02-21 359 MLXFW_ERR_MSG(mlxfw_dev, extack, 5042e8b97d4176 Saeed Mahameed 2020-02-21 360 "Firmware file is not MFA2", -EINVAL); 410ed13cae39df Yotam Gigi 2017-05-23 361 return -EINVAL; 410ed13cae39df Yotam Gigi 2017-05-23 362 } 410ed13cae39df Yotam Gigi 2017-05-23 363 410ed13cae39df Yotam Gigi 2017-05-23 364 mfa2_file = mlxfw_mfa2_file_init(firmware); f7fe7aa88fa25e Saeed Mahameed 2020-02-21 365 if (IS_ERR(mfa2_file)) { f7fe7aa88fa25e Saeed Mahameed 2020-02-21 366 err = PTR_ERR(mfa2_file); 5042e8b97d4176 Saeed Mahameed 2020-02-21 367 MLXFW_ERR_MSG(mlxfw_dev, extack, 5042e8b97d4176 Saeed Mahameed 2020-02-21 368 "Failed to initialize MFA2 firmware file", err); f7fe7aa88fa25e Saeed Mahameed 2020-02-21 369 return err; f7fe7aa88fa25e Saeed Mahameed 2020-02-21 370 } 410ed13cae39df Yotam Gigi 2017-05-23 371 6a3f707c0051a5 Saeed Mahameed 2020-02-21 372 mlxfw_info(mlxfw_dev, "Initialize firmware flash process\n"); 5853c41823ddbf Jiri Pirko 2019-06-04 373 mlxfw_status_notify(mlxfw_dev, "Initializing firmware flash process", 5853c41823ddbf Jiri Pirko 2019-06-04 374 NULL, 0, 0); 410ed13cae39df Yotam Gigi 2017-05-23 375 err = mlxfw_dev->ops->fsm_lock(mlxfw_dev, ); 410ed13cae39df Yotam Gigi 2017-05-23 376 if (err) { 5042e8b97d4176 Saeed Mahameed 2020-02-21 377 MLXFW_ERR_MSG(mlxfw_dev, extack, 5042e8b97d4176 Saeed Mahameed 2020-02-21 378 "Could not lock the firmware FSM", err); 410ed13cae39df Yotam Gigi 2017-05-23 379 goto err_fsm_lock; 410ed13cae39df Yotam Gigi 2017-05-23 380 } 410ed13cae39df Yotam Gigi 2017-05-23 381 410ed13cae39df Yotam Gigi 2017-05-23 382 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, 44f18db5c16a83 Jiri Pirko 2019-06-04 383 MLXFW_FSM_STATE_LOCKED, extack); 410ed13cae39df Yotam Gigi 2017-05-23 384 if (err) 410ed13cae39df Yotam Gigi 2017-05-23 385 goto err_state_wait_idle_to_locked; 410ed13cae39df Yotam Gigi 2017-05-23 386 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 387 err = mlxfw_fsm_reactivate(mlxfw_dev, extack, _supp); 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 388 if (err) 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 389 goto err_fsm_reactivate; 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 390 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 391 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 392 MLXFW_FSM_STATE_LOCKED, extack); 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 393 if (err) 958dfd0dc6d845 Eran Ben Elisha 2020-02-21 394 goto err_state_wait_reactivate_t
[kbuild] [xlnx:xlnx_rebase_v5.10 1665/1762] drivers/gpu/drm/xlnx/xlnx_bridge.h:97:15: sparse: sparse: duplicate inline
CC: kbuild-...@lists.01.org CC: linux-arm-ker...@lists.infradead.org TO: Jianqiang Chen CC: Michal Simek tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10 head: 09a4215f61493584f4410cab3477003e4046dab9 commit: c249c4e4c0d9c18809d3e3bdc9cb4cdfb6e72db9 [1665/1762] drm: xlnx: Update DP subsystem with downstream version :: branch date: 3 days ago :: commit date: 3 months ago config: arc-randconfig-s032-20210826 (attached as .config) compiler: arc-elf-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://github.com/Xilinx/linux-xlnx/commit/c249c4e4c0d9c18809d3e3bdc9cb4cdfb6e72db9 git remote add xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xlnx xlnx_rebase_v5.10 git checkout c249c4e4c0d9c18809d3e3bdc9cb4cdfb6e72db9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/gpu/drm/xlnx/zynqmp_disp.c: note: in included file: >> drivers/gpu/drm/xlnx/xlnx_bridge.h:97:15: sparse: sparse: duplicate inline drivers/gpu/drm/xlnx/zynqmp_disp.c:160:41: sparse: sparse: array of flexible structures vim +97 drivers/gpu/drm/xlnx/xlnx_bridge.h bf32bb05a6b47b Hyun Kwon 2018-01-23 96 f6b21d4b6cf674 Hyun Kwon 2018-02-08 @97 static inline inline int xlnx_bridge_helper_init(void) bf32bb05a6b47b Hyun Kwon 2018-01-23 98 { bf32bb05a6b47b Hyun Kwon 2018-01-23 99return 0; bf32bb05a6b47b Hyun Kwon 2018-01-23 100 } bf32bb05a6b47b Hyun Kwon 2018-01-23 101 :: The code at line 97 was first introduced by commit :: f6b21d4b6cf674613445d225d2f0717848e69c40 drm: xlnx: bridge: Fix the multiple definition error :: TO: Hyun Kwon :: CC: Michal Simek --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org .config.gz Description: application/gzip ___ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org
[kbuild] [tip:sched/core 2/11] kernel/sched/fair.c:446:21: warning: Access to field 'my_q' results in a dereference of a null pointer (loaded from variable 'se') [clang-analyzer-core.NullDereference]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org CC: x...@kernel.org TO: Josh Don CC: Peter Zijlstra CC: Vincent Guittot tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core head: 234b8ab6476c5edd5262e2ff563de9498d60044a commit: 304000390f88d049c85e9a0958ac5567f38816ee [2/11] sched: Cgroup SCHED_IDLE support :: branch date: 6 days ago :: commit date: 6 days ago config: mips-randconfig-c004-20210826 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=304000390f88d049c85e9a0958ac5567f38816ee git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git fetch --no-tags tip sched/core git checkout 304000390f88d049c85e9a0958ac5567f38816ee # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) ^ drivers/media/usb/cx231xx/cx231xx-core.c:194:6: note: Assuming field 'direction' is 0 if (req_data->direction) { ^~~ drivers/media/usb/cx231xx/cx231xx-core.c:194:2: note: Taking false branch if (req_data->direction) { ^ drivers/media/usb/cx231xx/cx231xx-core.c:205:11: note: Calling 'cx231xx_send_vendor_cmd' status = cx231xx_send_vendor_cmd(dev, _req); ^~ drivers/media/usb/cx231xx/cx231xx-core.c:325:2: note: Taking false branch if (dev->state & DEV_DISCONNECTED) ^ drivers/media/usb/cx231xx/cx231xx-core.c:328:7: note: Assuming field 'wLength' is <= URB_MAX_CTRL_SIZE if ((ven_req->wLength > URB_MAX_CTRL_SIZE)) ^~~~ drivers/media/usb/cx231xx/cx231xx-core.c:328:2: note: Taking false branch if ((ven_req->wLength > URB_MAX_CTRL_SIZE)) ^ drivers/media/usb/cx231xx/cx231xx-core.c:331:15: note: Field 'direction' is 0 if (ven_req->direction) ^ drivers/media/usb/cx231xx/cx231xx-core.c:331:2: note: Taking false branch if (ven_req->direction) ^ drivers/media/usb/cx231xx/cx231xx-core.c:340:7: note: Assuming field 'wLength' is <= 4 if ((ven_req->wLength > 4) && ((ven_req->bRequest == 0x4) || ^~~~ drivers/media/usb/cx231xx/cx231xx-core.c:340:29: note: Left side of '&&' is false if ((ven_req->wLength > 4) && ((ven_req->bRequest == 0x4) || ^ drivers/media/usb/cx231xx/cx231xx-core.c:383:9: note: 6th function call argument is an uninitialized value ret = __usb_control_msg(dev, pipe, ven_req->bRequest, ^ drivers/media/usb/cx231xx/cx231xx-core.c:635:2: warning: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores] status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, PWR_CTL_EN, ^ drivers/media/usb/cx231xx/cx231xx-core.c:635:2: note: Value stored to 'status' is never read status = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, PWR_CTL_EN, ^ drivers/media/usb/cx231xx/cx231xx-core.c:644:2: warning: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores] status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, ^~ drivers/media/usb/cx231xx/cx231xx-core.c:644:2: note: Value stored to 'status' is never read status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, ^~ drivers/media/usb/cx231xx/cx231xx-core.c:649:2: warning: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores] status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, ^~ drivers/media/usb/cx231xx/cx231xx-core.c:649:2: note: Value stored to 'status' is never read status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER, ^
[kbuild] arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in 'RCU_in_HARDIRQ' - wrong count at exit
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Boqun Feng CC: Peter Zijlstra tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 73f3af7b4611d77bdaea303fb639333eb28e37d7 commit: 9271a40d2a1429113160ccc4c16150921600bcc1 lockdep/selftest: Add wait context selftests date: 7 months ago :: branch date: 20 hours ago :: commit date: 7 months ago config: riscv-randconfig-s031-20210825 (attached as .config) compiler: riscv32-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9271a40d2a1429113160ccc4c16150921600bcc1 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 9271a40d2a1429113160ccc4c16150921600bcc1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) lib/locking-selftest.c:298:1: sparse: sparse: context imbalance in 'AA_spin' - wrong count at exit lib/locking-selftest.c:300:1: sparse: sparse: context imbalance in 'AA_wlock' - wrong count at exit lib/locking-selftest.c:302:1: sparse: sparse: context imbalance in 'AA_rlock' - wrong count at exit lib/locking-selftest.c:321:13: sparse: sparse: context imbalance in 'rlock_AA1' - wrong count at exit lib/locking-selftest.c:327:13: sparse: sparse: context imbalance in 'rlock_AA1B' - wrong count at exit lib/locking-selftest.c:347:13: sparse: sparse: context imbalance in 'rlock_AA2' - wrong count at exit lib/locking-selftest.c:359:13: sparse: sparse: context imbalance in 'rlock_AA3' - wrong count at exit lib/locking-selftest.c:722:1: sparse: sparse: context imbalance in 'double_unlock_spin' - unexpected unlock lib/locking-selftest.c:724:1: sparse: sparse: context imbalance in 'double_unlock_wlock' - unexpected unlock lib/locking-selftest.c:726:1: sparse: sparse: context imbalance in 'double_unlock_rlock' - unexpected unlock lib/locking-selftest.c:753:1: sparse: sparse: context imbalance in 'init_held_spin' - wrong count at exit lib/locking-selftest.c:755:1: sparse: sparse: context imbalance in 'init_held_wlock' - wrong count at exit lib/locking-selftest.c:757:1: sparse: sparse: context imbalance in 'init_held_rlock' - wrong count at exit lib/locking-selftest.c:2456:13: sparse: sparse: context imbalance in 'rcu_exit' - unexpected unlock lib/locking-selftest.c:2465:13: sparse: sparse: context imbalance in 'rcu_bh_exit' - unexpected unlock lib/locking-selftest.c:2474:13: sparse: sparse: context imbalance in 'rcu_sched_exit' - unexpected unlock lib/locking-selftest.c:2493:13: sparse: sparse: context imbalance in 'raw_spinlock_exit' - unexpected unlock lib/locking-selftest.c:2502:13: sparse: sparse: context imbalance in 'spinlock_exit' - unexpected unlock lib/locking-selftest.c: note: in included file (through include/linux/thread_info.h, include/asm-generic/preempt.h, arch/riscv/include/generated/asm/preempt.h, ...): >> arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in >> 'RCU_in_HARDIRQ' - wrong count at exit >> arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in >> 'RCU_in_NOTTHREADED_HARDIRQ' - wrong count at exit >> arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in >> 'RCU_in_SOFTIRQ' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU_BH' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU_CALLBACK' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU_SCHED' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RAW_SPINLOCK' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_SPINLOCK' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_MUTEX' - wrong count at exit arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in 'RAW_SPINLOCK_in_HARDIRQ' - wrong count at exit arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in 'RAW_SPINLOCK_in_NOTTHREADED_HARDIRQ' - wrong count at exit
[kbuild] [linux-next:master 9124/10638] sound/soc/intel/skylake/skl-topology.c:2578:38: sparse: sparse: incorrect type in assignment (different base types)
CC: kbuild-...@lists.01.org CC: Linux Memory Management List TO: Kareem Shaik CC: Mark Brown CC: Gustaw Lewandowski CC: Cezary Rojewski tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 88fac11862d38306dd0d2398015744877140390d commit: a4ad42d28618eef83bee02e0a19af0d467bd9722 [9124/10638] ASoC: Intel: Skylake: Support multiple format configs :: branch date: 5 hours ago :: commit date: 3 days ago config: i386-allyesconfig (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=a4ad42d28618eef83bee02e0a19af0d467bd9722 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout a4ad42d28618eef83bee02e0a19af0d467bd9722 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) sound/soc/intel/skylake/skl-topology.c:2297:33: sparse: got restricted __le32 [usertype] value sound/soc/intel/skylake/skl-topology.c:2291:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2291:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2324:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dma_buffer_size @@ got restricted __le32 [usertype] value @@ sound/soc/intel/skylake/skl-topology.c:2324:38: sparse: expected unsigned int [usertype] dma_buffer_size sound/soc/intel/skylake/skl-topology.c:2324:38: sparse: got restricted __le32 [usertype] value sound/soc/intel/skylake/skl-topology.c:2328:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] cpc @@ got restricted __le32 [usertype] value @@ sound/soc/intel/skylake/skl-topology.c:2328:26: sparse: expected unsigned int [usertype] cpc sound/soc/intel/skylake/skl-topology.c:2328:26: sparse: got restricted __le32 [usertype] value sound/soc/intel/skylake/skl-topology.c:2332:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] is_pages @@ got restricted __le32 [usertype] value @@ sound/soc/intel/skylake/skl-topology.c:2332:31: sparse: expected unsigned int [usertype] is_pages sound/soc/intel/skylake/skl-topology.c:2332:31: sparse: got restricted __le32 [usertype] value sound/soc/intel/skylake/skl-topology.c:2336:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] obs @@ got restricted __le32 [usertype] value @@ sound/soc/intel/skylake/skl-topology.c:2336:26: sparse: expected unsigned int [usertype] obs sound/soc/intel/skylake/skl-topology.c:2336:26: sparse: got restricted __le32 [usertype] value sound/soc/intel/skylake/skl-topology.c:2340:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ibs @@ got restricted __le32 [usertype] value @@ sound/soc/intel/skylake/skl-topology.c:2340:26: sparse: expected unsigned int [usertype] ibs sound/soc/intel/skylake/skl-topology.c:2340:26: sparse: got restricted __le32 [usertype] value sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2322:25: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2392:21: sparse: sparse: restricted __le32 degrades to integer sound/soc/intel/skylake/skl-topology.c:2397:49: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned char [usertype] max_input_pins @@ got restricted __le32 [usertype] value @@
[kbuild] Re: [cxl-cxl:pending 39/40] drivers/cxl/core/bus.c:501 devm_cxl_add_decoder() warn: variable dereferenced before check 'cxld' (see line 497)
On Wed, Aug 25, 2021 at 10:12:32AM +0300, Dan Carpenter wrote: > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 494 int > devm_cxl_add_decoder(struct device *host, struct cxl_decoder *cxld, > 574d46ed53b527 drivers/cxl/core/bus.c Dan Williams 2021-08-24 495 > int *target_map) > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 496 { > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 @497struct > cxl_port *port = to_cxl_port(cxld->dev.parent); > > > Dereference > > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 498struct > device *dev; > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 499int rc > = 0, i; > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 500 > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 @501if > (!cxld) > > ^ > Checked too late. > > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 502 > return -EINVAL; > 574d46ed53b527 drivers/cxl/core/bus.c Dan Williams 2021-08-24 503 > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 504if > (IS_ERR(cxld)) > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 505 > return PTR_ERR(cxld); > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 506 > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 507if > (cxld->interleave_ways < 1) { > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 508 > rc = -EINVAL; > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 509 > goto err; > > "dev" not initialized at this point. > > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 510} > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 511 > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 512 > device_lock(>dev); > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 513if > (list_empty(>dports)) > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 514 > rc = -EINVAL; > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 515 > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 516for (i > = 0; rc == 0 && target_map && i < cxld->nr_targets; i++) { > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 517 > struct cxl_dport *dport = find_dport(port, target_map[i]); > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 518 > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 519 > if (!dport) { > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 520 > rc = -ENXIO; > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 521 > break; > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 522 > } > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 523 > dev_dbg(host, "%s: target: %d\n", dev_name(dport->dport), i); > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 524 > cxld->target[i] = dport; > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 525} > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 526 > device_unlock(>dev); > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 527if (rc) > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 528 > goto err; > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 529 > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 530dev = > >dev; > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 531rc = > dev_set_name(dev, "decoder%d.%d", port->id, cxld->id); > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 532if (rc) > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 533 > goto err; > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 534 > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 535rc = > device_add(dev); > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 536if (rc) > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 537 > goto err; > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 538 > b7ca54b6255144 drivers/cxl/core/bus.c Dan Williams 2021-08-24 539return > devm_add_action_or_reset(host, unregister_cxl_dev, dev); > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 540 err: > 40ba17afdfabb0 drivers/cxl/core.c Dan Williams 2021-06-09 @541 > put_device(dev); > > Should be: > > put_device(>dev); > > But it feels like a
[kbuild] arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in 'RCU_in_HARDIRQ' - wrong count at exit
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Boqun Feng CC: Peter Zijlstra tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 73f3af7b4611d77bdaea303fb639333eb28e37d7 commit: 9271a40d2a1429113160ccc4c16150921600bcc1 lockdep/selftest: Add wait context selftests date: 7 months ago :: branch date: 14 hours ago :: commit date: 7 months ago config: riscv-randconfig-s031-20210825 (attached as .config) compiler: riscv32-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9271a40d2a1429113160ccc4c16150921600bcc1 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 9271a40d2a1429113160ccc4c16150921600bcc1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) lib/locking-selftest.c:298:1: sparse: sparse: context imbalance in 'AA_spin' - wrong count at exit lib/locking-selftest.c:300:1: sparse: sparse: context imbalance in 'AA_wlock' - wrong count at exit lib/locking-selftest.c:302:1: sparse: sparse: context imbalance in 'AA_rlock' - wrong count at exit lib/locking-selftest.c:321:13: sparse: sparse: context imbalance in 'rlock_AA1' - wrong count at exit lib/locking-selftest.c:327:13: sparse: sparse: context imbalance in 'rlock_AA1B' - wrong count at exit lib/locking-selftest.c:347:13: sparse: sparse: context imbalance in 'rlock_AA2' - wrong count at exit lib/locking-selftest.c:359:13: sparse: sparse: context imbalance in 'rlock_AA3' - wrong count at exit lib/locking-selftest.c:722:1: sparse: sparse: context imbalance in 'double_unlock_spin' - unexpected unlock lib/locking-selftest.c:724:1: sparse: sparse: context imbalance in 'double_unlock_wlock' - unexpected unlock lib/locking-selftest.c:726:1: sparse: sparse: context imbalance in 'double_unlock_rlock' - unexpected unlock lib/locking-selftest.c:753:1: sparse: sparse: context imbalance in 'init_held_spin' - wrong count at exit lib/locking-selftest.c:755:1: sparse: sparse: context imbalance in 'init_held_wlock' - wrong count at exit lib/locking-selftest.c:757:1: sparse: sparse: context imbalance in 'init_held_rlock' - wrong count at exit lib/locking-selftest.c:2456:13: sparse: sparse: context imbalance in 'rcu_exit' - unexpected unlock lib/locking-selftest.c:2465:13: sparse: sparse: context imbalance in 'rcu_bh_exit' - unexpected unlock lib/locking-selftest.c:2474:13: sparse: sparse: context imbalance in 'rcu_sched_exit' - unexpected unlock lib/locking-selftest.c:2493:13: sparse: sparse: context imbalance in 'raw_spinlock_exit' - unexpected unlock lib/locking-selftest.c:2502:13: sparse: sparse: context imbalance in 'spinlock_exit' - unexpected unlock lib/locking-selftest.c: note: in included file (through include/linux/thread_info.h, include/asm-generic/preempt.h, arch/riscv/include/generated/asm/preempt.h, ...): >> arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in >> 'RCU_in_HARDIRQ' - wrong count at exit >> arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in >> 'RCU_in_NOTTHREADED_HARDIRQ' - wrong count at exit >> arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in >> 'RCU_in_SOFTIRQ' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU_BH' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU_CALLBACK' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RCU_SCHED' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_RAW_SPINLOCK' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_SPINLOCK' - wrong count at exit lib/locking-selftest.c:2573:1: sparse: sparse: context imbalance in 'RCU_in_MUTEX' - wrong count at exit arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in 'RAW_SPINLOCK_in_HARDIRQ' - wrong count at exit arch/riscv/include/asm/current.h:31:9: sparse: sparse: context imbalance in 'RAW_SPINLOCK_in_NOTTHREADED_HARDIRQ' - wrong count at exit
[kbuild] include/trace/events/rcu.h:27:1: sparse: sparse: context imbalance in 'rcu_core' - wrong count at exit
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Frederic Weisbecker CC: "Paul E. McKenney" tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 73f3af7b4611d77bdaea303fb639333eb28e37d7 commit: 634954c2dbf88e67aa267798f60af6b9a476cf4b rcu/nocb: Locally accelerate callbacks as long as offloading isn't complete date: 8 months ago :: branch date: 14 hours ago :: commit date: 8 months ago config: x86_64-randconfig-s031-20210826 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=634954c2dbf88e67aa267798f60af6b9a476cf4b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 634954c2dbf88e67aa267798f60af6b9a476cf4b # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/rcu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_plugin.h:1496:5: sparse: sparse: symbol 'nocb_nobypass_lim_per_jiffy' was not declared. Should it be static? kernel/rcu/tree.c:1430:9: sparse: sparse: context imbalance in 'rcu_start_this_gp' - different lock contexts for basic block kernel/rcu/tree.c:1842:9: sparse: sparse: context imbalance in 'rcu_gp_init' - different lock contexts for basic block kernel/rcu/tree.c:2614:9: sparse: sparse: context imbalance in 'force_qs_rnp' - different lock contexts for basic block kernel/rcu/tree.c:2667:25: sparse: sparse: context imbalance in 'rcu_force_quiescent_state' - unexpected unlock kernel/rcu/tree.c: note: in included file (through kernel/rcu/rcu.h): >> include/trace/events/rcu.h:27:1: sparse: sparse: context imbalance in >> 'rcu_core' - wrong count at exit kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_stall.h:260:12: sparse: sparse: context imbalance in 'rcu_print_task_stall' - different lock contexts for basic block kernel/rcu/tree_stall.h:767:17: sparse: sparse: context imbalance in 'rcu_check_gp_start_stall' - different lock contexts for basic block kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_exp.h:189:9: sparse: sparse: context imbalance in '__rcu_report_exp_rnp' - different lock contexts for basic block kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_plugin.h:1542:16: sparse: sparse: context imbalance in 'rcu_nocb_bypass_trylock' - wrong count at exit kernel/rcu/tree_plugin.h:1559:13: sparse: sparse: context imbalance in 'rcu_nocb_lock' - wrong count at exit kernel/rcu/tree_plugin.h:1574:17: sparse: sparse: context imbalance in 'rcu_nocb_unlock' - unexpected unlock kernel/rcu/tree_plugin.h:1587:17: sparse: sparse: context imbalance in 'rcu_nocb_unlock_irqrestore' - unexpected unlock kernel/rcu/tree_plugin.h:1634:13: sparse: sparse: context imbalance in 'wake_nocb_gp' - wrong count at exit kernel/rcu/tree_plugin.h:1700:9: sparse: sparse: context imbalance in 'rcu_nocb_do_flush_bypass' - unexpected unlock kernel/rcu/tree_plugin.h:1715:13: sparse: sparse: context imbalance in 'rcu_nocb_flush_bypass' - wrong count at exit kernel/rcu/tree_plugin.h:1866:13: sparse: sparse: context imbalance in '__call_rcu_nocb_wake' - wrong count at exit kernel/rcu/tree_plugin.h:1930:9: sparse: sparse: context imbalance in 'do_nocb_bypass_wakeup_timer' - different lock contexts for basic block kernel/rcu/tree_plugin.h:2006:9: sparse: sparse: context imbalance in 'nocb_gp_wait' - different lock contexts for basic block kernel/rcu/tree_plugin.h:2216:9: sparse: sparse: context imbalance in 'nocb_cb_wait' - wrong count at exit kernel/rcu/tree_plugin.h:2252:13: sparse: sparse: context imbalance in 'do_nocb_deferred_wakeup_common' - different lock contexts for basic block kernel/rcu/tree_plugin.h:2317:9: sparse: sparse: context imbalance in 'rdp_offload_toggle' - wrong count at exit kernel/rcu/tree_plugin.h:2320:12: sparse: sparse: context imbalance in '__rcu_nocb_rdp_deoffload' - wrong count at exit vim +/rcu_core +27 include/trace/events/rcu.h 4f5fbd78a7b40b Yafang Shao 2019-03-26 15 29c00b4a1d9e27 Paul E. McKenney 2011-06-17 16 /* 300df91ca9358f Paul E. McKenney 2011-06-18 17 * Tracepoint for start/end markers used for utilization calculations. 300df91ca9358f Paul E. McKenney 2011-06-18 18 * By convention, the string is of the following forms: 300df91ca9358f Paul E. McKenney 2011-06-18 19 * 300df91ca9358f Paul E. McKenney 2011-06-18 20 * "Start &quo
[kbuild] kernel/rcu/tree.c:2737:9: sparse: sparse: context imbalance in 'rcu_core' - wrong count at exit
CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Frederic Weisbecker CC: "Paul E. McKenney" tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 73f3af7b4611d77bdaea303fb639333eb28e37d7 commit: 634954c2dbf88e67aa267798f60af6b9a476cf4b rcu/nocb: Locally accelerate callbacks as long as offloading isn't complete date: 8 months ago :: branch date: 13 hours ago :: commit date: 8 months ago config: sparc64-randconfig-s031-20210826 (attached as .config) compiler: sparc64-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-348-gf0e6938b-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=634954c2dbf88e67aa267798f60af6b9a476cf4b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 634954c2dbf88e67aa267798f60af6b9a476cf4b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash kernel/rcu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_plugin.h:1496:5: sparse: sparse: symbol 'nocb_nobypass_lim_per_jiffy' was not declared. Should it be static? kernel/rcu/tree.c:1430:9: sparse: sparse: context imbalance in 'rcu_start_this_gp' - different lock contexts for basic block kernel/rcu/tree.c:1588:28: sparse: sparse: context imbalance in 'rcu_advance_cbs_nowake' - wrong count at exit kernel/rcu/tree.c:1665:13: sparse: sparse: context imbalance in 'note_gp_changes' - different lock contexts for basic block kernel/rcu/tree.c:1842:9: sparse: sparse: context imbalance in 'rcu_gp_init' - different lock contexts for basic block kernel/rcu/tree.c:2614:9: sparse: sparse: context imbalance in 'force_qs_rnp' - different lock contexts for basic block kernel/rcu/tree.c:2667:25: sparse: sparse: context imbalance in 'rcu_force_quiescent_state' - unexpected unlock >> kernel/rcu/tree.c:2737:9: sparse: sparse: context imbalance in 'rcu_core' - >> wrong count at exit kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_stall.h:260:12: sparse: sparse: context imbalance in 'rcu_print_task_stall' - different lock contexts for basic block kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_exp.h:189:9: sparse: sparse: context imbalance in '__rcu_report_exp_rnp' - different lock contexts for basic block kernel/rcu/tree.c: note: in included file: kernel/rcu/tree_plugin.h:1504:13: sparse: sparse: context imbalance in 'rcu_nocb_bypass_lock' - wrong count at exit kernel/rcu/tree_plugin.h:1539:13: sparse: sparse: context imbalance in 'rcu_nocb_bypass_trylock' - wrong count at exit kernel/rcu/tree_plugin.h:1559:13: sparse: sparse: context imbalance in 'rcu_nocb_lock' - wrong count at exit kernel/rcu/tree_plugin.h:1575:17: sparse: sparse: context imbalance in 'rcu_nocb_unlock' - unexpected unlock kernel/rcu/tree_plugin.h:1588:17: sparse: sparse: context imbalance in 'rcu_nocb_unlock_irqrestore' - unexpected unlock kernel/rcu/tree_plugin.h:1634:13: sparse: sparse: context imbalance in 'wake_nocb_gp' - wrong count at exit kernel/rcu/tree_plugin.h:1700:9: sparse: sparse: context imbalance in 'rcu_nocb_do_flush_bypass' - unexpected unlock kernel/rcu/tree_plugin.h:1715:13: sparse: sparse: context imbalance in 'rcu_nocb_flush_bypass' - wrong count at exit kernel/rcu/tree_plugin.h:1866:13: sparse: sparse: context imbalance in '__call_rcu_nocb_wake' - wrong count at exit kernel/rcu/tree_plugin.h:1930:9: sparse: sparse: context imbalance in 'do_nocb_bypass_wakeup_timer' - different lock contexts for basic block kernel/rcu/tree_plugin.h:2006:9: sparse: sparse: context imbalance in 'nocb_gp_wait' - different lock contexts for basic block kernel/rcu/tree_plugin.h:2216:9: sparse: sparse: context imbalance in 'nocb_cb_wait' - wrong count at exit kernel/rcu/tree_plugin.h:2252:13: sparse: sparse: context imbalance in 'do_nocb_deferred_wakeup_common' - different lock contexts for basic block kernel/rcu/tree_plugin.h:2317:9: sparse: sparse: context imbalance in 'rdp_offload_toggle' - wrong count at exit kernel/rcu/tree_plugin.h:2320:12: sparse: sparse: context imbalance in '__rcu_nocb_rdp_deoffload' - wrong count at exit vim +/rcu_core +2737 kernel/rcu/tree.c a657f2617010ae kernel/rcu/tree.c Paul E. McKenney 2020-08-08 2695 fb60e533beab3b kernel/rcu/tree.c Paul E. McKenney 2018-11-21 2696 /*
[kbuild] [bcache:nvdimm-meta 11/12] drivers/md/bcache/journal.c:123:27: warning: Access to field 'keys' results in a dereference of an undefined pointer value (loaded from variable 'j') [clang-analyze
CC: clang-built-li...@googlegroups.com CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Coly Li tree: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git nvdimm-meta head: 80de5dc2a60df7adc4cdd2ed063dae948a93e089 commit: ab89b985340028f590e633e9095b3c6255a74fc2 [11/12] bcache: read jset from NVDIMM pages for journal replay :: branch date: 8 days ago :: commit date: 8 days ago config: riscv-randconfig-c006-20210825 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/commit/?id=ab89b985340028f590e633e9095b3c6255a74fc2 git remote add bcache https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git git fetch --no-tags bcache nvdimm-meta git checkout ab89b985340028f590e633e9095b3c6255a74fc2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) can_skb_prv(skb)->skbcnt = 0; ^~~~ net/can/raw.c:820:24: note: Value assigned to field 'end' err = memcpy_from_msg(skb_put(skb, size), msg, size); ^~ net/can/raw.c:821:6: note: 'err' is >= 0 if (err < 0) ^~~ net/can/raw.c:821:2: note: Taking false branch if (err < 0) ^ net/can/raw.c:824:2: note: Calling 'skb_setup_tx_timestamp' skb_setup_tx_timestamp(skb, sk->sk_tsflags); ^~~ include/net/sock.h:2561:39: note: Passing value via 3rd parameter 'tx_flags' _sock_tx_timestamp(skb->sk, tsflags, _shinfo(skb)->tx_flags, ^~ include/net/sock.h:2561:2: note: Calling '_sock_tx_timestamp' _sock_tx_timestamp(skb->sk, tsflags, _shinfo(skb)->tx_flags, ^~~~ include/net/sock.h:2543:6: note: Assuming 'tsflags' is not equal to 0 if (unlikely(tsflags)) { ^ include/linux/compiler.h:48:24: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ^~~ include/linux/compiler.h:33:32: note: expanded from macro '__branch_check__' __r = __builtin_expect(!!(x), expect); \ ^~~~ include/net/sock.h:2543:2: note: Taking true branch if (unlikely(tsflags)) { ^ include/net/sock.h:2545:7: note: Assuming the condition is true if (tsflags & SOF_TIMESTAMPING_OPT_ID && tskey && ^ include/net/sock.h:2545:7: note: Left side of '&&' is true include/net/sock.h:2545:44: note: Assuming 'tskey' is null if (tsflags & SOF_TIMESTAMPING_OPT_ID && tskey && ^ include/net/sock.h:2545:7: note: Assuming pointer value is null if (tsflags & SOF_TIMESTAMPING_OPT_ID && tskey && ^~ include/net/sock.h:2545:50: note: Left side of '&&' is false if (tsflags & SOF_TIMESTAMPING_OPT_ID && tskey && ^ include/net/sock.h:2549:6: note: Assuming the condition is false if (unlikely(sock_flag(sk, SOCK_WIFI_STATUS))) ^ include/linux/compiler.h:48:24: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ^~~ include/linux/compiler.h:33:32: note: expanded from macro '__branch_check__' __r = __builtin_expect(!!(x), expect); \ ^~~~ include/net/sock.h:2549:2: note: Taking true branch if (unlikely(sock_flag(sk, SOCK_WIFI_STATUS))) ^ include/net/sock.h:2550:13: note: Dereference of null pointer (loaded from variable 'tx_flags') *tx_flags |= SKBTX_WIFI_STATUS; ^