[kbuild] [ceph-client:wip-fscrypt 29/63] fs/ceph/mds_client.c:3915:19: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: ceph-de...@vger.kernel.org TO: Jeff Layton tree: https://github.com/ceph/ceph-client.git wip-fscrypt head: 4ec0d0e0cc68c6525ace02e7a8a5bb57a4242997 commit: 16a6682845642c1929a94e826c4426c22ef909d4 [29/63] ceph: add encrypted fname handling to ceph_mdsc_build_path :: branch date: 2 days ago :: commit date: 2 days ago config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220222/202202220447.nspdr0sv-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # https://github.com/ceph/ceph-client/commit/16a6682845642c1929a94e826c4426c22ef909d4 git remote add ceph-client https://github.com/ceph/ceph-client.git git fetch --no-tags ceph-client wip-fscrypt git checkout 16a6682845642c1929a94e826c4426c22ef909d4 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 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 >>) Suppressed 3 warnings (3 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 5 warnings generated. arch/x86/include/asm/paravirt.h:55:2: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign] PVOP_VCALL0(cpu.io_delay); ^ arch/x86/include/asm/paravirt_types.h:512:2: note: expanded from macro 'PVOP_VCALL0' __PVOP_VCALL(op) ^ arch/x86/include/asm/paravirt_types.h:492:8: note: expanded from macro '__PVOP_VCALL' (void)PVOP_CALL(, op, CLBR_ANY, PVOP_VCALL_CLOBBERS,\ ^ arch/x86/include/asm/paravirt_types.h:447:3: note: expanded from macro 'PVOP_CALL' PVOP_CALL_ARGS; \ ^ arch/x86/include/asm/paravirt_types.h:405:16: note: expanded from macro 'PVOP_CALL_ARGS' unsigned long __edi = __edi, __esi = __esi, \ ^ drivers/usb/host/pci-quirks.c:509:2: note: Calling 'usb_amd_quirk_pll' usb_amd_quirk_pll(0); ^~~~ drivers/usb/host/pci-quirks.c:343:12: note: 'disable' is 0 u32 bit = disable ? 0 : 1; ^~~ drivers/usb/host/pci-quirks.c:343:12: note: '?' condition is false drivers/usb/host/pci-quirks.c:346:2: note: Loop condition is false. Exiting loop spin_lock_irqsave(&amd_lock, flags); ^ include/linux/spinlock.h:379:2: note: expanded from macro 'spin_lock_irqsave' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^ include/linux/spinlock.h:240:2: note: expanded from macro 'raw_spin_lock_irqsave' do {\ ^ drivers/usb/host/pci-quirks.c:346:2: note: Loop condition is false. Exiting loop spin_lock_irqsave(&amd_lock, flags); ^ include/linux/spinlock.h:377:43: note: expanded from macro 'spin_lock_irqsave' #define spin_lock_irqsave(lock, flags) \ ^ drivers/usb/host/pci-quirks.c:348:6: note: 'disable' is 0 if (disable) { ^~~ drivers/usb/host/pci-quirks.c:348:2: note: Taking false branch if (disable) { ^ drivers/usb/host/pci-quirks.c:356:7: note: Assuming field 'isoc_reqs' is <= 0 if (amd_chipset.isoc_reqs > 0) { ^ drivers/usb/host/pci-quirks.c:356:3: note: Taking false branch if (amd_chipset.isoc_reqs > 0) { ^ drivers/usb/host/pci-quirks.c:362:6: note: Assuming field 'gen' is equal to AMD_CHIPSET_SB800 if (amd_chipset.sb_type.gen == AMD_CHIPSET_SB800 || ^~~~ drivers/usb/host/pci-quirks.c:362:51: note: Left side of '||' is true if (amd_chipset.sb_type.gen == AMD_CHIPSET_SB800 || ^ drivers/usb/host/pci-quirks.c:365:3: note: Calling 'outb_p' outb_p(AB_REG_BAR_LOW, 0xcd6); ^ arch/x86/include/asm/io.h:337:16: note: expanded from macro 'outb_p' #define outb_p outb_p ^ arch/x86/include/asm/io.h:320:1: note: Calling 'slow_down_io' BUILDIO(b, b, char) ^ arch/x86/include/asm/io.h:278:2: note: expanded f
[kbuild] [ceph-client:wip-fscrypt 29/63] fs/ceph/mds_client.c:3915:19: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign]
CC: l...@lists.linux.dev CC: kbuild-...@lists.01.org CC: ceph-de...@vger.kernel.org TO: Jeff Layton tree: https://github.com/ceph/ceph-client.git wip-fscrypt head: 4ec0d0e0cc68c6525ace02e7a8a5bb57a4242997 commit: 16a6682845642c1929a94e826c4426c22ef909d4 [29/63] ceph: add encrypted fname handling to ceph_mdsc_build_path :: branch date: 33 hours ago :: commit date: 33 hours ago config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220221/202202210649.1d2hrquz-...@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # https://github.com/ceph/ceph-client/commit/16a6682845642c1929a94e826c4426c22ef909d4 git remote add ceph-client https://github.com/ceph/ceph-client.git git fetch --no-tags ceph-client wip-fscrypt git checkout 16a6682845642c1929a94e826c4426c22ef909d4 # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 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 >>) fs/notify/fanotify/fanotify_user.c:1598:24: note: Left side of '&&' is false if (mask & FAN_RENAME && !(fid_mode & FAN_REPORT_NAME)) ^ fs/notify/fanotify/fanotify_user.c:1601:6: note: Assuming the condition is false if (flags & FAN_MARK_FLUSH) { ^~ fs/notify/fanotify/fanotify_user.c:1601:2: note: Taking false branch if (flags & FAN_MARK_FLUSH) { ^ fs/notify/fanotify/fanotify_user.c:1614:6: note: Assuming 'ret' is 0 if (ret) ^~~ fs/notify/fanotify/fanotify_user.c:1614:2: note: Taking false branch if (ret) ^ fs/notify/fanotify/fanotify_user.c:1617:6: note: Assuming the condition is false if (flags & FAN_MARK_ADD) { ^~~~ fs/notify/fanotify/fanotify_user.c:1617:2: note: Taking false branch if (flags & FAN_MARK_ADD) { ^ fs/notify/fanotify/fanotify_user.c:1623:6: note: Assuming 'fid_mode' is 0 if (fid_mode) { ^~~~ fs/notify/fanotify/fanotify_user.c:1623:2: note: Taking false branch if (fid_mode) { ^ fs/notify/fanotify/fanotify_user.c:1636:6: note: 'mark_type' is not equal to FAN_MARK_INODE if (mark_type == FAN_MARK_INODE) ^ fs/notify/fanotify/fanotify_user.c:1636:2: note: Taking false branch if (mark_type == FAN_MARK_INODE) ^ fs/notify/fanotify/fanotify_user.c:1642:6: note: Assuming 'mnt' is null if (mnt || !S_ISDIR(inode->i_mode)) { ^~~ fs/notify/fanotify/fanotify_user.c:1642:6: note: Left side of '||' is false fs/notify/fanotify/fanotify_user.c:1642:14: note: Access to field 'i_mode' results in a dereference of a null pointer (loaded from variable 'inode') if (mnt || !S_ISDIR(inode->i_mode)) { ^ include/uapi/linux/stat.h:23:22: note: expanded from macro 'S_ISDIR' #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) ^~ Suppressed 6 warnings (6 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 4 warnings generated. Suppressed 4 warnings (4 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. 6 warnings generated. drivers/acpi/power.c:951:2: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(acpi_device_name(device), ACPI_POWER_DEVICE_NAME); ^~ drivers/acpi/power.c:951:2: note: Call to function 'st