From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6757797389905345875==" MIME-Version: 1.0 From: kernel test robot Subject: Re: [PATCH 1/3] [v3] Kbuild: move to -std=gnu11 Date: Thu, 10 Mar 2022 18:17:16 +0800 Message-ID: <202203101812.cBlOgUAf-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============6757797389905345875== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CC: llvm(a)lists.linux.dev CC: kbuild-all(a)lists.01.org BCC: lkp(a)intel.com In-Reply-To: <20220301145233.3689119-1-arnd@kernel.org> References: <20220301145233.3689119-1-arnd@kernel.org> TO: Arnd Bergmann Hi Arnd, I love your patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on drm-intel/for-linux-next staging/staging-testin= g kdave/for-next soc/for-next linus/master v5.17-rc7 next-20220309] [cannot apply to masahiroy-kbuild/for-next] [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/Arnd-Bergmann/Kbuild-move-= to-std-gnu11/20220301-225348 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for= -next/core :::::: branch date: 9 days ago :::::: commit date: 9 days ago config: arm-randconfig-c002-20220301 (https://download.01.org/0day-ci/archi= ve/20220310/202203101812.cBlOgUAf-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc= 04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/afebabb39f6a871f6e6d69f60= 1738fbce1c1b37c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Arnd-Bergmann/Kbuild-move-to-std-g= nu11/20220301-225348 git checkout afebabb39f6a871f6e6d69f601738fbce1c1b37c # save the config file to linux build tree COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross ARCH= =3Darm 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 >>) init/main.c:643:2: warning: Call to function 'strcpy' is insecure as it = does not provide bounding of the memory buffer. Replace unbounded copy func= tions with analogous functions that support length arguments such as 'strlc= py'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(static_command_line + xlen, command_line); ^~~~~~ init/main.c:643:2: note: Call to function 'strcpy' is insecure as it doe= s not provide bounding of the memory buffer. Replace unbounded copy functio= ns with analogous functions that support length arguments such as 'strlcpy'= . CWE-119 strcpy(static_command_line + xlen, command_line); ^~~~~~ init/main.c:655:4: warning: Call to function 'strcpy' is insecure as it = does not provide bounding of the memory buffer. Replace unbounded copy func= tions with analogous functions that support length arguments such as 'strlc= py'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(saved_command_line + len, extra_init_args= ); ^~~~~~ init/main.c:655:4: note: Call to function 'strcpy' is insecure as it doe= s not provide bounding of the memory buffer. Replace unbounded copy functio= ns with analogous functions that support length arguments such as 'strlcpy'= . CWE-119 strcpy(saved_command_line + len, extra_init_args= ); ^~~~~~ init/main.c:657:4: warning: Call to function 'strcpy' is insecure as it = does not provide bounding of the memory buffer. Replace unbounded copy func= tions with analogous functions that support length arguments such as 'strlc= py'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(saved_command_line + len, ^~~~~~ init/main.c:657:4: note: Call to function 'strcpy' is insecure as it doe= s not provide bounding of the memory buffer. Replace unbounded copy functio= ns with analogous functions that support length arguments such as 'strlcpy'= . CWE-119 strcpy(saved_command_line + len, ^~~~~~ init/main.c:661:4: warning: Call to function 'strcpy' is insecure as it = does not provide bounding of the memory buffer. Replace unbounded copy func= tions with analogous functions that support length arguments such as 'strlc= py'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(saved_command_line + len, " -- "); ^~~~~~ init/main.c:661:4: note: Call to function 'strcpy' is insecure as it doe= s not provide bounding of the memory buffer. Replace unbounded copy functio= ns with analogous functions that support length arguments such as 'strlcpy'= . CWE-119 strcpy(saved_command_line + len, " -- "); ^~~~~~ init/main.c:663:4: warning: Call to function 'strcpy' is insecure as it = does not provide bounding of the memory buffer. Replace unbounded copy func= tions with analogous functions that support length arguments such as 'strlc= py'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(saved_command_line + len, extra_init_args= ); ^~~~~~ init/main.c:663:4: note: Call to function 'strcpy' is insecure as it doe= s not provide bounding of the memory buffer. Replace unbounded copy functio= ns with analogous functions that support length arguments such as 'strlcpy'= . CWE-119 strcpy(saved_command_line + len, extra_init_args= ); ^~~~~~ init/main.c:917:10: warning: Call to function 'sprintf' is insecure as i= t does not provide bounding of the memory buffer or security checks introdu= ced in the C11 standard. Replace with analogous functions that support leng= th arguments or provides boundary checks such as 'sprintf_s' in case of C11= [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] end +=3D sprintf(end, " %s", *p); ^~~~~~~ init/main.c:917:10: note: Call to function 'sprintf' is insecure as it d= oes not provide bounding of the memory buffer or security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'sprintf_s' in case of C11 end +=3D sprintf(end, " %s", *p); ^~~~~~~ init/main.c:919:10: warning: Call to function 'sprintf' is insecure as i= t does not provide bounding of the memory buffer or security checks introdu= ced in the C11 standard. Replace with analogous functions that support leng= th arguments or provides boundary checks such as 'sprintf_s' in case of C11= [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] end +=3D sprintf(end, " %s", *p); ^~~~~~~ init/main.c:919:10: note: Call to function 'sprintf' is insecure as it d= oes not provide bounding of the memory buffer or security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'sprintf_s' in case of C11 end +=3D sprintf(end, " %s", *p); ^~~~~~~ init/main.c:1188:4: warning: Call to function 'strcpy' is insecure as it= does not provide bounding of the memory buffer. Replace unbounded copy fun= ctions with analogous functions that support length arguments such as 'strl= cpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(entry->buf, str_entry); ^~~~~~ init/main.c:1188:4: note: Call to function 'strcpy' is insecure as it do= es not provide bounding of the memory buffer. Replace unbounded copy functi= ons with analogous functions that support length arguments such as 'strlcpy= '. CWE-119 strcpy(entry->buf, str_entry); ^~~~~~ init/main.c:1306:3: warning: Call to function 'sprintf' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] sprintf(msgbuf, "preemption imbalance "); ^~~~~~~ init/main.c:1306:3: note: Call to function 'sprintf' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'sprintf_s' in case of C11 sprintf(msgbuf, "preemption imbalance "); ^~~~~~~ init/main.c:1388:3: warning: Call to function 'strcpy' is insecure as it= does not provide bounding of the memory buffer. Replace unbounded copy fun= ctions with analogous functions that support length arguments such as 'strl= cpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(command_line, saved_command_line); ^~~~~~ init/main.c:1388:3: note: Call to function 'strcpy' is insecure as it do= es not provide bounding of the memory buffer. Replace unbounded copy functi= ons with analogous functions that support length arguments such as 'strlcpy= '. CWE-119 strcpy(command_line, saved_command_line); ^~~~~~ Suppressed 51 warnings (48 in non-user code, 3 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. Suppressed 11 warnings (8 in non-user code, 3 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. arch/arm/kernel/devtree.c:232:6: warning: Access to field 'dt_fixup' res= ults in a dereference of a null pointer (loaded from variable 'mdesc') [cla= ng-analyzer-core.NullDereference] if (mdesc->dt_fixup) ^~~~~ arch/arm/kernel/devtree.c:206:6: note: Assuming 'dt_virt' is non-null if (!dt_virt || !early_init_dt_verify(dt_virt)) ^~~~~~~~ arch/arm/kernel/devtree.c:206:6: note: Left side of '||' is false arch/arm/kernel/devtree.c:206:18: note: Assuming the condition is false if (!dt_virt || !early_init_dt_verify(dt_virt)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm/kernel/devtree.c:206:2: note: Taking false branch if (!dt_virt || !early_init_dt_verify(dt_virt)) ^ arch/arm/kernel/devtree.c:209:2: note: Value assigned to 'mdesc' mdesc =3D of_flat_dt_match_machine(mdesc_best, arch_get_next_mac= h); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm/kernel/devtree.c:211:6: note: Assuming 'mdesc' is null if (!mdesc) { ^~~~~~ arch/arm/kernel/devtree.c:211:2: note: Taking true branch if (!mdesc) { ^ arch/arm/kernel/devtree.c:221:10: note: Assuming 'size' is <=3D 0 while (size > 0) { ^~~~~~~~ arch/arm/kernel/devtree.c:221:3: note: Loop condition is false. Executio= n continues on line 226 while (size > 0) { ^ arch/arm/kernel/devtree.c:232:6: note: Access to field 'dt_fixup' result= s in a dereference of a null pointer (loaded from variable 'mdesc') if (mdesc->dt_fixup) ^~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. >> arch/arm/kernel/crash_dump.c:49:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, vaddr + offset, csize); ^~~~~~ arch/arm/kernel/crash_dump.c:49:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, vaddr + offset, csize); ^~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 65 warnings generated. fs/ecryptfs/main.c:215:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset((void *)mount_crypt_stat, 0, ^~~~~~ fs/ecryptfs/main.c:215:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset((void *)mount_crypt_stat, 0, ^~~~~~ fs/ecryptfs/main.c:299:4: warning: Call to function 'strncpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(cipher_name_dst, cipher_name_src, ^~~~~~~ fs/ecryptfs/main.c:299:4: note: Call to function 'strncpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'strncpy_s' in case of C11 strncpy(cipher_name_dst, cipher_name_src, ^~~~~~~ fs/ecryptfs/main.c:331:4: warning: Call to function 'strncpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(fnek_dst, fnek_src, ECRYPTFS_SIG_SIZE_HE= X); ^~~~~~~ fs/ecryptfs/main.c:331:4: note: Call to function 'strncpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'strncpy_s' in case of C11 strncpy(fnek_dst, fnek_src, ECRYPTFS_SIG_SIZE_HE= X); ^~~~~~~ fs/ecryptfs/main.c:353:4: warning: Call to function 'strncpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(fn_cipher_name_dst, fn_cipher_name_src, ^~~~~~~ fs/ecryptfs/main.c:353:4: note: Call to function 'strncpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'strncpy_s' in case of C11 strncpy(fn_cipher_name_dst, fn_cipher_name_src, ^~~~~~~ fs/ecryptfs/main.c:401:3: warning: Call to function 'strcpy' is insecure= as it does not provide bounding of the memory buffer. Replace unbounded co= py functions with analogous functions that support length arguments such as= 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(mount_crypt_stat->global_default_fn_cipher_name, ^~~~~~ fs/ecryptfs/main.c:401:3: note: 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 's= trlcpy'. CWE-119 strcpy(mount_crypt_stat->global_default_fn_cipher_name, ^~~~~~ fs/ecryptfs/main.c:772:9: warning: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buff, PAGE_SIZE, "%d\n", ECRYPTFS_VERSIONING_MAS= K); ^~~~~~~~ fs/ecryptfs/main.c:772:9: note: Call to function 'snprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'snprintf_s' in case of C11 return snprintf(buff, PAGE_SIZE, "%d\n", ECRYPTFS_VERSIONING_MAS= K); ^~~~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. fs/debugfs/file.c:63:9: warning: Use of memory after it is freed [clang-= analyzer-unix.Malloc] return fsd->real_fops; ^ fs/debugfs/file.c:252:6: note: Calling 'debugfs_file_get' if (debugfs_file_get(dentry)) ^~~~~~~~~~~~~~~~~~~~~~~~ fs/debugfs/file.c:87:10: note: Left side of '||' is false d_fsd =3D READ_ONCE(dentry->d_fsdata); ^ include/asm-generic/rwonce.h:49:2: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ include/asm-generic/rwonce.h:36:21: note: expanded from macro 'compileti= me_assert_rwonce_type' compiletime_assert(__native_word(t) || sizeof(t) =3D=3D sizeof(l= ong long), \ ^ include/linux/compiler_types.h:313:3: note: expanded from macro '__nativ= e_word' (sizeof(t) =3D=3D sizeof(char) || sizeof(t) =3D=3D sizeof(short)= || \ ^ fs/debugfs/file.c:87:10: note: Left side of '||' is false d_fsd =3D READ_ONCE(dentry->d_fsdata); ^ include/asm-generic/rwonce.h:49:2: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ include/asm-generic/rwonce.h:36:21: note: expanded from macro 'compileti= me_assert_rwonce_type' compiletime_assert(__native_word(t) || sizeof(t) =3D=3D sizeof(l= ong long), \ ^ include/linux/compiler_types.h:313:3: note: expanded from macro '__nativ= e_word' (sizeof(t) =3D=3D sizeof(char) || sizeof(t) =3D=3D sizeof(short)= || \ ^ fs/debugfs/file.c:87:10: note: Left side of '||' is true d_fsd =3D READ_ONCE(dentry->d_fsdata); ^ include/asm-generic/rwonce.h:49:2: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ include/asm-generic/rwonce.h:36:21: note: expanded from macro 'compileti= me_assert_rwonce_type' compiletime_assert(__native_word(t) || sizeof(t) =3D=3D sizeof(l= ong long), \ ^ include/linux/compiler_types.h:314:28: note: expanded from macro '__nati= ve_word' sizeof(t) =3D=3D sizeof(int) || sizeof(t) =3D=3D sizeof(long)) ^ fs/debugfs/file.c:87:10: note: Taking false branch d_fsd =3D READ_ONCE(dentry->d_fsdata); -- ^~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_bmap_btree.h:19:3: note: expanded from macro 'XFS_BMBT= _BLOCK_LEN' (xfs_has_crc(((mp))) ? \ ^~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:419:14: note: '?' condition is false new_size =3D XFS_BMAP_BROOT_SPACE_CALC(mp, new_max); ^ fs/xfs/libxfs/xfs_bmap_btree.h:68:8: note: expanded from macro 'XFS_BMAP= _BROOT_SPACE_CALC' (int)(XFS_BMBT_BLOCK_LEN(mp) + \ ^ fs/xfs/libxfs/xfs_bmap_btree.h:19:3: note: expanded from macro 'XFS_BMBT= _BLOCK_LEN' (xfs_has_crc(((mp))) ? \ ^ fs/xfs/libxfs/xfs_inode_fork.c:422:6: note: Assuming 'new_size' is <=3D 0 if (new_size > 0) { ^~~~~~~~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:422:2: note: Taking false branch if (new_size > 0) { ^ fs/xfs/libxfs/xfs_inode_fork.c:430:3: note: Null pointer value stored to= 'new_broot' new_broot =3D NULL; ^~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:436:6: note: 'new_max' is > 0 if (new_max > 0) { ^~~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:436:2: note: Taking true branch if (new_max > 0) { ^ fs/xfs/libxfs/xfs_inode_fork.c:440:16: note: '?' condition is false op =3D (char *)XFS_BMBT_REC_ADDR(mp, ifp->if_broot, 1); ^ fs/xfs/libxfs/xfs_bmap_btree.h:25:4: note: expanded from macro 'XFS_BMBT= _REC_ADDR' XFS_BMBT_BLOCK_LEN(mp) + \ ^ fs/xfs/libxfs/xfs_bmap_btree.h:19:3: note: expanded from macro 'XFS_BMBT= _BLOCK_LEN' (xfs_has_crc(((mp))) ? \ ^ fs/xfs/libxfs/xfs_inode_fork.c:441:16: note: '?' condition is false np =3D (char *)XFS_BMBT_REC_ADDR(mp, new_broot, 1); ^ fs/xfs/libxfs/xfs_bmap_btree.h:25:4: note: expanded from macro 'XFS_BMBT= _REC_ADDR' XFS_BMBT_BLOCK_LEN(mp) + \ ^ fs/xfs/libxfs/xfs_bmap_btree.h:19:3: note: expanded from macro 'XFS_BMBT= _BLOCK_LEN' (xfs_has_crc(((mp))) ? \ ^ fs/xfs/libxfs/xfs_inode_fork.c:441:3: note: Null pointer value stored to= 'np' np =3D (char *)XFS_BMBT_REC_ADDR(mp, new_broot, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:442:3: note: Null pointer passed as 1st a= rgument to memory copy function memcpy(np, op, new_max * (uint)sizeof(xfs_bmbt_rec_t)); ^ ~~ fs/xfs/libxfs/xfs_inode_fork.c:451:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(np, op, new_max * (uint)sizeof(xfs_fsblock_t)); ^~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:451:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(np, op, new_max * (uint)sizeof(xfs_fsblock_t)); ^~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:617:4: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); ^~~~~~ fs/xfs/libxfs/xfs_inode_fork.c:617:4: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(cp, ifp->if_u1.if_data, ifp->if_bytes); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. fs/proc/proc_sysctl.c:980:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_name, name, namelen); ^~~~~~ fs/proc/proc_sysctl.c:980:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(new_name, name, namelen); ^~~~~~ fs/proc/proc_sysctl.c:1197:3: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(link_name, entry->procname, len); ^~~~~~ fs/proc/proc_sysctl.c:1197:3: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(link_name, entry->procname, len); ^~~~~~ fs/proc/proc_sysctl.c:1231:3: warning: Value stored to 'link' is never r= ead [clang-analyzer-deadcode.DeadStores] link =3D find_entry(&head, dir, procname, strlen(procnam= e)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/proc/proc_sysctl.c:1231:3: note: Value stored to 'link' is never read link =3D find_entry(&head, dir, procname, strlen(procnam= e)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/proc/proc_sysctl.c:1442:2: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(pos, name, namelen); ^~~~~~ fs/proc/proc_sysctl.c:1442:2: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(pos, name, namelen); ^~~~~~ fs/proc/proc_sysctl.c:1752:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(set, 0, sizeof(*set)); ^~~~~~ fs/proc/proc_sysctl.c:1752:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(set, 0, sizeof(*set)); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> arch/arm/mm/ioremap.c:124:3: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(pgd_offset(mm, VMALLOC_START), ^~~~~~ arch/arm/mm/ioremap.c:124:3: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(pgd_offset(mm, VMALLOC_START), ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> arch/arm/mm/pgd.c:42:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(new_pgd, 0, USER_PTRS_PER_PGD * sizeof(pgd_t)); ^~~~~~ arch/arm/mm/pgd.c:42:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(new_pgd, 0, USER_PTRS_PER_PGD * sizeof(pgd_t)); ^~~~~~ >> arch/arm/mm/pgd.c:48:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_pgd + USER_PTRS_PER_PGD, init_pgd + USER_PTRS_PER_PGD, ^~~~~~ arch/arm/mm/pgd.c:48:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(new_pgd + USER_PTRS_PER_PGD, init_pgd + USER_PTRS_PER_PGD, ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. Suppressed 47 warnings (43 in non-user code, 4 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 32 warnings generated. Suppressed 32 warnings (32 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. kernel/utsname_sysctl.c:39:2: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&uts_table, table, sizeof(uts_table)); ^~~~~~ kernel/utsname_sysctl.c:39:2: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(&uts_table, table, sizeof(uts_table)); ^~~~~~ kernel/utsname_sysctl.c:49:2: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tmp_data, get_uts(table), sizeof(tmp_data)); ^~~~~~ kernel/utsname_sysctl.c:49:2: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(tmp_data, get_uts(table), sizeof(tmp_data)); ^~~~~~ kernel/utsname_sysctl.c:61:3: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(get_uts(table), tmp_data, sizeof(tmp_data)); ^~~~~~ kernel/utsname_sysctl.c:61:3: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(get_uts(table), tmp_data, sizeof(tmp_data)); ^~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 68 warnings generated. kernel/taskstats.c:120:2: warning: Value stored to 'rc' is never read [c= lang-analyzer-deadcode.DeadStores] rc =3D 0; ^ ~ kernel/taskstats.c:120:2: note: Value stored to 'rc' is never read rc =3D 0; ^ ~ kernel/taskstats.c:159:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(stats, 0, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:159:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(stats, 0, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:210:3: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(stats, first->signal->stats, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:210:3: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(stats, first->signal->stats, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:212:3: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(stats, 0, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:212:3: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(stats, 0, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:420:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(stats, 0, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:420:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(stats, 0, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:634:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(stats, tsk->signal->stats, sizeof(*stats)); ^~~~~~ kernel/taskstats.c:634:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(stats, tsk->signal->stats, sizeof(*stats)); ^~~~~~ Suppressed 62 warnings (62 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 12 warnings generated. crypto/poly1305_generic.c:49:4: warning: Value stored to 'src' is never = read [clang-analyzer-deadcode.DeadStores] src +=3D POLY1305_BLOCK_SIZE; ^ crypto/poly1305_generic.c:49:4: note: Value stored to 'src' is never read crypto/poly1305_generic.c:80:3: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] -- ^~~~~~ fs/ecryptfs/crypto.c:126:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset((src + crypt_stat->iv_bytes), 0, 16); ^~~~~~ fs/ecryptfs/crypto.c:126:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset((src + crypt_stat->iv_bytes), 0, 16); ^~~~~~ fs/ecryptfs/crypto.c:127:2: warning: Call to function 'snprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf((src + crypt_stat->iv_bytes), 16, "%lld", offset); ^~~~~~~~ fs/ecryptfs/crypto.c:127:2: note: Call to function 'snprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'snprintf_s' in case of C11 snprintf((src + crypt_stat->iv_bytes), 16, "%lld", offset); ^~~~~~~~ fs/ecryptfs/crypto.c:139:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(iv, dst, crypt_stat->iv_bytes); ^~~~~~ fs/ecryptfs/crypto.c:139:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(iv, dst, crypt_stat->iv_bytes); ^~~~~~ fs/ecryptfs/crypto.c:168:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset((void *)crypt_stat, 0, sizeof(struct ecryptfs_crypt_stat)= ); ^~~~~~ fs/ecryptfs/crypto.c:168:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset((void *)crypt_stat, 0, sizeof(struct ecryptfs_crypt_stat)= ); ^~~~~~ fs/ecryptfs/crypto.c:196:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(crypt_stat, 0, sizeof(struct ecryptfs_crypt_stat)); ^~~~~~ fs/ecryptfs/crypto.c:196:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(crypt_stat, 0, sizeof(struct ecryptfs_crypt_stat)); ^~~~~~ fs/ecryptfs/crypto.c:216:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_s= tat)); ^~~~~~ fs/ecryptfs/crypto.c:216:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_s= tat)); ^~~~~~ fs/ecryptfs/crypto.c:651:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(crypt_stat->root_iv, dst, crypt_stat->iv_bytes); ^~~~~~ fs/ecryptfs/crypto.c:651:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(crypt_stat->root_iv, dst, crypt_stat->iv_bytes); ^~~~~~ fs/ecryptfs/crypto.c:654:3: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(crypt_stat->root_iv, 0, crypt_stat->iv_bytes); ^~~~~~ fs/ecryptfs/crypto.c:654:3: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(crypt_stat->root_iv, 0, crypt_stat->iv_bytes); ^~~~~~ fs/ecryptfs/crypto.c:790:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(crypt_stat->cipher, ^~~~~~ fs/ecryptfs/crypto.c:790:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(crypt_stat->cipher, ^~~~~~ fs/ecryptfs/crypto.c:969:4: warning: Call to function 'strcpy' is insecu= re 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(str, ecryptfs_cipher_code_str_map[i].ciph= er_str); ^~~~~~ fs/ecryptfs/crypto.c:969:4: note: Call to function 'strcpy' is insecure = as it does not provide bounding of the memory buffer. Replace unbounded cop= y functions with analogous functions that support length arguments such as = 'strlcpy'. CWE-119 strcpy(str, ecryptfs_cipher_code_str_map[i].ciph= er_str); ^~~~~~ fs/ecryptfs/crypto.c:1407:3: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(page_virt, 0, PAGE_SIZE); ^~~~~~ fs/ecryptfs/crypto.c:1407:3: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(page_virt, 0, PAGE_SIZE); ^~~~~~ fs/ecryptfs/crypto.c:1440:3: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(page_virt, 0, PAGE_SIZE); ^~~~~~ fs/ecryptfs/crypto.c:1440:3: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(page_virt, 0, PAGE_SIZE); ^~~~~~ fs/ecryptfs/crypto.c:1523:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy((void *)(*copied_name), (void *)name, name_size); ^~~~~~ fs/ecryptfs/crypto.c:1523:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy((void *)(*copied_name), (void *)name, name_size); ^~~~~~ fs/ecryptfs/crypto.c:1633:2: warning: Call to function 'strncpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(tmp_tfm->cipher_name, cipher_name, ^~~~~~~ fs/ecryptfs/crypto.c:1633:2: note: Call to function 'strncpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'strncpy_s' in case of C11 strncpy(tmp_tfm->cipher_name, cipher_name, ^~~~~~~ fs/ecryptfs/crypto.c:1767:3: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(last_block, (&src[src_size - 3]), 3); ^~~~~~ fs/ecryptfs/crypto.c:1767:3: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(last_block, (&src[src_size - 3]), 3); ^~~~~~ fs/ecryptfs/crypto.c:1941:4: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy((*encoded_name), ^~~~~~ fs/ecryptfs/crypto.c:1941:4: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy((*encoded_name), ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. >> arch/arm/kernel/signal.c:106:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&kframe, 0, sizeof(kframe)); ^~~~~~ arch/arm/kernel/signal.c:106:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(&kframe, 0, sizeof(kframe)); ^~~~~~ arch/arm/kernel/signal.c:662:2: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(addr + offset, sigreturn_codes, sizeof(sigreturn_codes)); ^~~~~~ arch/arm/kernel/signal.c:662:2: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(addr + offset, sigreturn_codes, sizeof(sigreturn_codes)); ^~~~~~ Suppressed 46 warnings (43 in non-user code, 3 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. Suppressed 35 warnings (34 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (15 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. arch/arm/kernel/traps.c:92:9: warning: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] p +=3D sprintf(p, " r%d:%08x", reg, *stack--); ^~~~~~~ arch/arm/kernel/traps.c:92:9: note: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 p +=3D sprintf(p, " r%d:%08x", reg, *stack--); ^~~~~~~ arch/arm/kernel/traps.c:135:3: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(str, ' ', sizeof(str)); ^~~~~~ arch/arm/kernel/traps.c:135:3: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(str, ' ', sizeof(str)); ^~~~~~ arch/arm/kernel/traps.c:142:6: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(str + i * 9, " %08lx", v= al); ^~~~~~~ arch/arm/kernel/traps.c:142:6: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 sprintf(str + i * 9, " %08lx", v= al); ^~~~~~~ arch/arm/kernel/traps.c:144:6: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(str + i * 9, " ????????"= ); ^~~~~~~ arch/arm/kernel/traps.c:144:6: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 sprintf(str + i * 9, " ????????"= ); ^~~~~~~ arch/arm/kernel/traps.c:183:9: warning: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHa= ndling] p +=3D sprintf(p, i =3D=3D 0 ? "(%0*x) " : "%0*x= ", ^~~~~~~ arch/arm/kernel/traps.c:183:9: note: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 p +=3D sprintf(p, i =3D=3D 0 ? "(%0*x) " : "%0*x= ", ^~~~~~~ arch/arm/kernel/traps.c:186:4: warning: Value stored to 'p' is never rea= d [clang-analyzer-deadcode.DeadStores] p +=3D sprintf(p, "bad PC value"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm/kernel/traps.c:186:4: note: Value stored to 'p' is never read p +=3D sprintf(p, "bad PC value"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm/kernel/traps.c:186:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] p +=3D sprintf(p, "bad PC value"); ^~~~~~~ arch/arm/kernel/traps.c:186:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 p +=3D sprintf(p, "bad PC value"); ^~~~~~~ >> arch/arm/kernel/traps.c:777:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vectors + 0x1000 - kuser_sz, __kuser_helper_start, kuser_= sz); ^~~~~~ arch/arm/kernel/traps.c:777:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(vectors + 0x1000 - kuser_sz, __kuser_helper_start, kuser_= sz); ^~~~~~ arch/arm/kernel/traps.c:784:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vectors + 0xfe0, vectors + 0xfe8, 4); ^~~~~~ arch/arm/kernel/traps.c:784:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(vectors + 0xfe0, vectors + 0xfe8, 4); ^~~~~~ arch/arm/kernel/traps.c:816:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy((void *)vectors, __vectors_start, __vectors_end - __vecto= rs_start); ^~~~~~ arch/arm/kernel/traps.c:816:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy((void *)vectors, __vectors_start, __vectors_end - __vecto= rs_start); ^~~~~~ arch/arm/kernel/traps.c:817:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy((void *)vectors + 0x1000, __stubs_start, __stubs_end - __= stubs_start); ^~~~~~ arch/arm/kernel/traps.c:817:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy((void *)vectors + 0x1000, __stubs_start, __stubs_end - __= stubs_start); ^~~~~~ Suppressed 42 warnings (35 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. >> arch/arm/probes/kprobes/opt-arm.c:237:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(code, (unsigned long *)optprobe_template_entry, ^~~~~~ arch/arm/probes/kprobes/opt-arm.c:237:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(code, (unsigned long *)optprobe_template_entry, ^~~~~~ arch/arm/probes/kprobes/opt-arm.c:303:3: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(op->optinsn.copied_insn, op->kp.addr, ^~~~~~ arch/arm/probes/kprobes/opt-arm.c:303:3: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(op->optinsn.copied_insn, op->kp.addr, ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 78 warnings generated. >> arch/arm/net/bpf_jit_32.c:1920:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ctx, 0, sizeof(ctx)); ^~~~~~ arch/arm/net/bpf_jit_32.c:1920:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(&ctx, 0, sizeof(ctx)); ^~~~~~ Suppressed 77 warnings (76 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. Suppressed 35 warnings (34 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 9 warnings generated. Suppressed 9 warnings (9 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 67 warnings generated. crypto/algapi.c:238:2: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, ^~~~~~ crypto/algapi.c:238:2: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, ^~~~~~ crypto/algapi.c:878:6: warning: Call to function 'snprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(inst->alg.cra_name, CRYPTO_MAX_ALG_NAME, "%s(%s)", = name, ^~~~~~~~ crypto/algapi.c:878:6: note: Call to function 'snprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'snprintf_s' in case of C11 if (snprintf(inst->alg.cra_name, CRYPTO_MAX_ALG_NAME, "%s(%s)", = name, ^~~~~~~~ crypto/algapi.c:882:6: warning: Call to function 'snprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s= (%s)", ^~~~~~~~ crypto/algapi.c:882:6: note: Call to function 'snprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'snprintf_s' in case of C11 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s= (%s)", ^~~~~~~~ crypto/algapi.c:1058:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&alg->stats, 0, sizeof(alg->stats)); ^~~~~~ crypto/algapi.c:1058:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&alg->stats, 0, sizeof(alg->stats)); ^~~~~~ Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. fs/qnx6/inode.c:512:3: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ei->di_block_ptr, p->ptr, sizeof(p->ptr)); ^~~~~~ fs/qnx6/inode.c:512:3: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(ei->di_block_ptr, p->ptr, sizeof(p->ptr)); ^~~~~~ fs/qnx6/inode.c:573:2: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, ^~~~~~ fs/qnx6/inode.c:573:2: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. fs/qnx6/super_mmi.c:31:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&qsb->Inode, &sb->Inode, sizeof(sb->Inode)); ^~~~~~ fs/qnx6/super_mmi.c:31:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(&qsb->Inode, &sb->Inode, sizeof(sb->Inode)); ^~~~~~ fs/qnx6/super_mmi.c:32:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&qsb->Bitmap, &sb->Bitmap, sizeof(sb->Bitmap)); ^~~~~~ fs/qnx6/super_mmi.c:32:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(&qsb->Bitmap, &sb->Bitmap, sizeof(sb->Bitmap)); ^~~~~~ fs/qnx6/super_mmi.c:33:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&qsb->Longfile, &sb->Longfile, sizeof(sb->Longfile)); ^~~~~~ fs/qnx6/super_mmi.c:33:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(&qsb->Longfile, &sb->Longfile, sizeof(sb->Longfile)); ^~~~~~ fs/qnx6/super_mmi.c:116:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(bh1->b_data, qsb, sizeof(struct qnx6_super_block)= ); ^~~~~~ fs/qnx6/super_mmi.c:116:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(bh1->b_data, qsb, sizeof(struct qnx6_super_block)= ); -- 34 warnings generated. fs/nsfs.c:226:9: warning: Call to function 'snprintf' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] res =3D snprintf(buf, size, "%s:[%u]", name, ns->inum); ^~~~~~~~ fs/nsfs.c:226:9: note: Call to function 'snprintf' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'snprintf_s' in case of C11 res =3D snprintf(buf, size, "%s:[%u]", name, ns->inum); ^~~~~~~~ Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 61 warnings generated. fs/fs_context.c:566:2: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ctx->legacy_data + size, param->key, len); ^~~~~~ fs/fs_context.c:566:2: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(ctx->legacy_data + size, param->key, len); ^~~~~~ fs/fs_context.c:570:3: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ctx->legacy_data + size, param->string, param->si= ze); ^~~~~~ fs/fs_context.c:570:3: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(ctx->legacy_data + size, param->string, param->si= ze); ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. crypto/asymmetric_keys/x509_cert_parser.c:404:3: warning: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, ^~~~~~ crypto/asymmetric_keys/x509_cert_parser.c:404:3: note: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buffer, ^~~~~~ crypto/asymmetric_keys/x509_cert_parser.c:408:3: warning: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer + ctx->o_size + 2, ^~~~~~ crypto/asymmetric_keys/x509_cert_parser.c:408:3: note: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buffer + ctx->o_size + 2, ^~~~~~ crypto/asymmetric_keys/x509_cert_parser.c:428:2: warning: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, name, namesize); ^~~~~~ crypto/asymmetric_keys/x509_cert_parser.c:428:2: note: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buffer, name, namesize); ^~~~~~ Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. crypto/asymmetric_keys/x509_public_key.c:214:6: warning: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] p =3D memcpy(desc, cert->subject, sulen); ^~~~~~ crypto/asymmetric_keys/x509_public_key.c:214:6: note: Call to function '= memcpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memcpy_s' in case of C11 p =3D memcpy(desc, cert->subject, sulen); ^~~~~~ Suppressed 28 warnings (28 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. >> fs/sysv/ialloc.c:130:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(raw_inode, 0, sizeof(struct sysv_inode)); ^~~~~~ fs/sysv/ialloc.c:130:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(raw_inode, 0, sizeof(struct sysv_inode)); ^~~~~~ fs/sysv/ialloc.c:170:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(SYSV_I(inode)->i_data, 0, sizeof(SYSV_I(inode)->i_data)); ^~~~~~ fs/sysv/ialloc.c:170:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(SYSV_I(inode)->i_data, 0, sizeof(SYSV_I(inode)->i_data)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 3 warnings generated. arch/arm/kernel/early_printk.c:20:3: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, s, l); ^~~~~~ arch/arm/kernel/early_printk.c:20:3: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, s, l); ^~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. Suppressed 11 warnings (11 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (43 in non-user code, 2 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (43 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> arch/arm/mm/dma-mapping.c:251:4: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(ptr, 0, PAGE_SIZE); ^~~~~~ arch/arm/mm/dma-mapping.c:251:4: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(ptr, 0, PAGE_SIZE); ^~~~~~ arch/arm/mm/dma-mapping.c:262:3: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(ptr, 0, size); ^~~~~~ arch/arm/mm/dma-mapping.c:262:3: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(ptr, 0, size); ^~~~~~ Suppressed 44 warnings (43 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. kernel/time/ntp.c:293:29: warning: The result of the left shift is undef= ined because the left operand is negative [clang-analyzer-core.UndefinedBin= aryOperatorResult] return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), sec= s); ^ kernel/time/ntp.c:767:6: note: Assuming the condition is false if (txc->modes & ADJ_ADJTIME) { ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:767:2: note: Taking false branch if (txc->modes & ADJ_ADJTIME) { ^ kernel/time/ntp.c:781:7: note: Assuming field 'modes' is not equal to 0 if (txc->modes) { ^~~~~~~~~~ kernel/time/ntp.c:781:3: note: Taking true branch if (txc->modes) { ^ kernel/time/ntp.c:788:4: note: Calling 'process_adjtimex_modes' process_adjtimex_modes(txc, time_tai); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:712:6: note: Assuming the condition is false if (txc->modes & ADJ_STATUS) ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:712:2: note: Taking false branch if (txc->modes & ADJ_STATUS) ^ kernel/time/ntp.c:715:6: note: Assuming the condition is false if (txc->modes & ADJ_NANO) ^~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:715:2: note: Taking false branch if (txc->modes & ADJ_NANO) ^ kernel/time/ntp.c:718:6: note: Assuming the condition is false if (txc->modes & ADJ_MICRO) ^~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:718:2: note: Taking false branch if (txc->modes & ADJ_MICRO) ^ kernel/time/ntp.c:721:6: note: Assuming the condition is false if (txc->modes & ADJ_FREQUENCY) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:721:2: note: Taking false branch if (txc->modes & ADJ_FREQUENCY) { ^ kernel/time/ntp.c:729:6: note: Assuming the condition is false if (txc->modes & ADJ_MAXERROR) ^~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:729:2: note: Taking false branch if (txc->modes & ADJ_MAXERROR) ^ kernel/time/ntp.c:732:6: note: Assuming the condition is false if (txc->modes & ADJ_ESTERROR) ^~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:732:2: note: Taking false branch if (txc->modes & ADJ_ESTERROR) ^ kernel/time/ntp.c:735:6: note: Assuming the condition is false if (txc->modes & ADJ_TIMECONST) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:735:2: note: Taking false branch if (txc->modes & ADJ_TIMECONST) { ^ kernel/time/ntp.c:743:6: note: Assuming the condition is false if (txc->modes & ADJ_TAI && ^~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:743:27: note: Left side of '&&' is false if (txc->modes & ADJ_TAI && ^ kernel/time/ntp.c:747:6: note: Assuming the condition is true if (txc->modes & ADJ_OFFSET) ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:747:2: note: Taking true branch if (txc->modes & ADJ_OFFSET) ^ kernel/time/ntp.c:748:3: note: Calling 'ntp_update_offset' ntp_update_offset(txc->offset); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:302:6: note: Assuming the condition is false if (!(time_status & STA_PLL)) ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/ntp.c:302:2: note: Taking false branch if (!(time_status & STA_PLL)) ^ kernel/time/ntp.c:305:6: note: Assuming the condition is false if (!(time_status & STA_NANO)) { -- fs/xfs/libxfs/xfs_inode_buf.c:324:3: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(to->di_pad2, 0, sizeof(to->di_pad2)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. fs/xfs/libxfs/xfs_rmap.c:244:2: warning: 4th function call argument is a= n uninitialized value [clang-analyzer-core.CallAndMessage] xfs_warn(mp, ^ fs/xfs/libxfs/xfs_rmap.c:2682:6: note: Assuming 'error' is 0 if (error) ^~~~~ fs/xfs/libxfs/xfs_rmap.c:2682:2: note: Taking false branch if (error) ^ fs/xfs/libxfs/xfs_rmap.c:2684:6: note: Assuming 'has_record' is not equa= l to 0 if (!has_record) { ^~~~~~~~~~~ fs/xfs/libxfs/xfs_rmap.c:2684:2: note: Taking false branch if (!has_record) { ^ fs/xfs/libxfs/xfs_rmap.c:2689:10: note: Calling 'xfs_rmap_get_rec' error =3D xfs_rmap_get_rec(cur, &irec, &has_record); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_rmap.c:209:6: note: Assuming 'error' is 0 if (error || !*stat) ^~~~~ fs/xfs/libxfs/xfs_rmap.c:209:6: note: Left side of '||' is false fs/xfs/libxfs/xfs_rmap.c:209:15: note: Assuming the condition is false if (error || !*stat) ^~~~~~ fs/xfs/libxfs/xfs_rmap.c:209:2: note: Taking false branch if (error || !*stat) ^ fs/xfs/libxfs/xfs_rmap.c:212:6: note: Calling 'xfs_rmap_btrec_to_irec' if (xfs_rmap_btrec_to_irec(rec, irec)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_rmap.c:190:9: note: Calling 'xfs_rmap_irec_offset_unpa= ck' return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offs= et), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ fs/xfs/libxfs/xfs_rmap.h:70:6: note: Assuming the condition is true if (offset & ~(XFS_RMAP_OFF_MASK | XFS_RMAP_OFF_FLAGS)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_rmap.h:70:2: note: Taking true branch if (offset & ~(XFS_RMAP_OFF_MASK | XFS_RMAP_OFF_FLAGS)) ^ fs/xfs/libxfs/xfs_rmap.h:71:3: note: Returning without writing to 'irec-= >rm_flags' return -EFSCORRUPTED; ^ fs/xfs/libxfs/xfs_rmap.h:71:3: note: Returning the value -117, which par= ticipates in a condition later return -EFSCORRUPTED; ^~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_rmap.c:190:9: note: Returning from 'xfs_rmap_irec_offs= et_unpack' return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offs= et), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ fs/xfs/libxfs/xfs_rmap.c:190:2: note: Returning without writing to 'irec= ->rm_flags' return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offs= et), ^ fs/xfs/libxfs/xfs_rmap.c:190:2: note: Returning the value -117, which pa= rticipates in a condition later return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offs= et), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ fs/xfs/libxfs/xfs_rmap.c:212:6: note: Returning from 'xfs_rmap_btrec_to_= irec' if (xfs_rmap_btrec_to_irec(rec, irec)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_rmap.c:212:2: note: Taking true branch if (xfs_rmap_btrec_to_irec(rec, irec)) ^ fs/xfs/libxfs/xfs_rmap.c:213:3: note: Control jumps to line 241 goto out_bad_rec; ^ fs/xfs/libxfs/xfs_rmap.c:244:2: note: 4th function call argument is an u= ninitialized value xfs_warn(mp, ^ fs/xfs/libxfs/xfs_rmap.c:2646:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&low, 0, sizeof(low)); ^~~~~~ fs/xfs/libxfs/xfs_rmap.c:2646:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&low, 0, sizeof(low)); ^~~~~~ fs/xfs/libxfs/xfs_rmap.c:2648:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&high, 0xFF, sizeof(high)); ^~~~~~ fs/xfs/libxfs/xfs_rmap.c:2648:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&high, 0xFF, sizeof(high)); ^~~~~~ fs/xfs/libxfs/xfs_rmap.c:2744:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&high, 0xFF, sizeof(high)); ^~~~~~ fs/xfs/libxfs/xfs_rmap.c:2744:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&high, 0xFF, sizeof(high)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. >> arch/arm/mm/flush.c:192:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dst, src, len); ^~~~~~ arch/arm/mm/flush.c:192:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(dst, src, len); ^~~~~~ Suppressed 44 warnings (43 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. block/blk-mq-sysfs.c:98:9: warning: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(page, "%u\n", hctx->tags->nr_tags); ^~~~~~~ block/blk-mq-sysfs.c:98:9: note: Call to function 'sprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'sprintf_s' in case of C11 return sprintf(page, "%u\n", hctx->tags->nr_tags); ^~~~~~~ block/blk-mq-sysfs.c:104:9: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(page, "%u\n", hctx->tags->nr_reserved_tags); ^~~~~~~ block/blk-mq-sysfs.c:104:9: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 return sprintf(page, "%u\n", hctx->tags->nr_reserved_tags); ^~~~~~~ block/blk-mq-sysfs.c:115:10: warning: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(pos + page, size - pos, "%u", i= ); ^~~~~~~~ block/blk-mq-sysfs.c:115:10: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 ret =3D snprintf(pos + page, size - pos, "%u", i= ); ^~~~~~~~ block/blk-mq-sysfs.c:117:10: warning: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(pos + page, size - pos, ", %u",= i); ^~~~~~~~ block/blk-mq-sysfs.c:117:10: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 ret =3D snprintf(pos + page, size - pos, ", %u",= i); ^~~~~~~~ block/blk-mq-sysfs.c:126:8: warning: Call to function 'snprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(pos + page, size + 1 - pos, "\n"); ^~~~~~~~ block/blk-mq-sysfs.c:126:8: note: Call to function 'snprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'snprintf_s' in case of C11 ret =3D snprintf(pos + page, size + 1 - pos, "\n"); ^~~~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. fs/configfs/file.c:270:4: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tbuf, buffer->bin_buffer, ^~~~~~ fs/configfs/file.c:270:4: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(tbuf, buffer->bin_buffer, ^~~~~~ fs/configfs/file.c:276:3: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(tbuf + buffer->bin_buffer_size, 0, ^~~~~~ fs/configfs/file.c:276:3: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(tbuf + buffer->bin_buffer_size, 0, ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. fs/configfs/dir.c:1315:2: warning: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, dentry->d_name.len + 1, "%s", dentry->d_name.name= ); ^~~~~~~~ fs/configfs/dir.c:1315:2: note: Call to function 'snprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'snprintf_s' in case of C11 snprintf(name, dentry->d_name.len + 1, "%s", dentry->d_name.name= ); ^~~~~~~~ Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. fs/tracefs/inode.c:65:2: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(name, dname, len); ^~~~~~ fs/tracefs/inode.c:65:2: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(name, dname, len); ^~~~~~ Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. ipc/msgutil.c:128:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(dst + 1, src + 1, alen); ^~~~~~ ipc/msgutil.c:128:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(dst + 1, src + 1, alen); ^~~~~~ ipc/msgutil.c:136:3: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(dst_pseg + 1, src_pseg + 1, alen); ^~~~~~ ipc/msgutil.c:136:3: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(dst_pseg + 1, src_pseg + 1, alen); ^~~~~~ Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. fs/udf/balloc.c:543:13: warning: The result of the left shift is undefin= ed because the left operand is negative [clang-analyzer-core.UndefinedBinar= yOperatorResult] (etype << 30) | elen, 1); ^ fs/udf/balloc.c:680:6: note: Assuming the condition is false if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) -- kernel/time/clocksource.c:1219:2: note: Taking false branch if (clocksource_is_watchdog(cs)) { ^ kernel/time/clocksource.c:1226:6: note: Assuming 'cs' is equal to 'curr_= clocksource' if (cs =3D=3D curr_clocksource) { ^~~~~~~~~~~~~~~~~~~~~~ kernel/time/clocksource.c:1226:2: note: Taking true branch if (cs =3D=3D curr_clocksource) { ^ kernel/time/clocksource.c:1229:7: note: Assuming 'curr_clocksource' is n= ot equal to 'cs' if (curr_clocksource =3D=3D cs) ^~~~~~~~~~~~~~~~~~~~~~ kernel/time/clocksource.c:1229:3: note: Taking false branch if (curr_clocksource =3D=3D cs) ^ kernel/time/clocksource.c:1233:6: note: Assuming the condition is true if (clocksource_is_suspend(cs)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/clocksource.c:1233:2: note: Taking true branch if (clocksource_is_suspend(cs)) { ^ kernel/time/clocksource.c:1239:3: note: Calling 'clocksource_suspend_sel= ect' clocksource_suspend_select(true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/clocksource.c:713:6: note: 'fallback' is true if (fallback) ^~~~~~~~ kernel/time/clocksource.c:713:2: note: Taking true branch if (fallback) ^ kernel/time/clocksource.c:716:22: note: Null pointer value stored to 'cs' list_for_each_entry(cs, &clocksource_list, list) { ^ include/linux/list.h:638:7: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/clocksource.c:716:2: note: Loop condition is true. Entering= loop body list_for_each_entry(cs, &clocksource_list, list) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ kernel/time/clocksource.c:718:7: note: 'fallback' is true if (fallback && cs =3D=3D old_suspend) ^~~~~~~~ kernel/time/clocksource.c:718:7: note: Left side of '&&' is true kernel/time/clocksource.c:718:19: note: Assuming 'cs' is equal to 'old_s= uspend' if (fallback && cs =3D=3D old_suspend) ^~~~~~~~~~~~~~~~~ kernel/time/clocksource.c:718:3: note: Taking true branch if (fallback && cs =3D=3D old_suspend) ^ kernel/time/clocksource.c:719:4: note: Execution continues on line 716 continue; ^ kernel/time/clocksource.c:716:2: note: Dereference of null pointer list_for_each_entry(cs, &clocksource_list, list) { ^ include/linux/list.h:640:13: note: expanded from macro 'list_for_each_en= try' pos =3D list_next_entry(pos, member)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:564:2: note: expanded from macro 'list_next_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:520:2: note: expanded from macro 'list_entry' container_of(ptr, type, member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:18:25: note: expanded from macro 'container= _of' void *__mptr =3D (void *)(ptr); = \ ^~~~~ kernel/time/clocksource.c:1282:10: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] count =3D snprintf(buf, PAGE_SIZE, "%s\n", curr_clocksource->nam= e); ^~~~~~~~ kernel/time/clocksource.c:1282:10: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 count =3D snprintf(buf, PAGE_SIZE, "%s\n", curr_clocksource->nam= e); ^~~~~~~~ kernel/time/clocksource.c:1300:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dst, buf, cnt); ^~~~~~ kernel/time/clocksource.c:1300:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(dst, buf, cnt); ^~~~~~ kernel/time/clocksource.c:1391:13: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] count +=3D snprintf(buf + count, ^~~~~~~~ kernel/time/clocksource.c:1391:13: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 count +=3D snprintf(buf + count, ^~~~~~~~ kernel/time/clocksource.c:1397:11: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] count +=3D snprintf(buf + count, ^~~~~~~~ kernel/time/clocksource.c:1397:11: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 count +=3D snprintf(buf + count, ^~~~~~~~ Suppressed 17 warnings (17 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. >> arch/arm/kernel/atags_proc.c:30:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(atags_copy, tags, sizeof(atags_copy)); ^~~~~~ arch/arm/kernel/atags_proc.c:30:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(atags_copy, tags, sizeof(atags_copy)); ^~~~~~ arch/arm/kernel/atags_proc.c:62:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(b->data, atags_copy, size); ^~~~~~ arch/arm/kernel/atags_proc.c:62:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(b->data, atags_copy, size); ^~~~~~ Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. >> arch/arm/kernel/module.c:375:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(maps, 0, sizeof(maps)); ^~~~~~ arch/arm/kernel/module.c:375:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(maps, 0, sizeof(maps)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. fs/orangefs/acl.c:129:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&iattr, 0, sizeof iattr); ^~~~~~ fs/orangefs/acl.c:129:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&iattr, 0, sizeof iattr); ^~~~~~ fs/orangefs/acl.c:190:3: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&iattr, 0, sizeof iattr); ^~~~~~ fs/orangefs/acl.c:190:3: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&iattr, 0, sizeof iattr); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. fs/orangefs/file.c:276:3: warning: Value stored to 'buffer_index' is nev= er read [clang-analyzer-deadcode.DeadStores] buffer_index =3D -1; ^ ~~ fs/orangefs/file.c:276:3: note: Value stored to 'buffer_index' is never = read buffer_index =3D -1; ^ ~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 62 warnings generated. fs/orangefs/xattr.c:141:4: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, cx->val, cx->length); ^~~~~~ fs/orangefs/xattr.c:141:4: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(buffer, cx->val, cx->length); ^~~~~~ fs/orangefs/xattr.c:142:4: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(buffer + cx->length, 0, size - cx->length= ); ^~~~~~ fs/orangefs/xattr.c:142:4: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(buffer + cx->length, 0, size - cx->length= ); ^~~~~~ fs/orangefs/xattr.c:153:2: warning: Call to function 'strcpy' is insecur= e as it does not provide bounding of the memory buffer. Replace unbounded c= opy functions with analogous functions that support length arguments such a= s 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(new_op->upcall.req.getxattr.key, name); ^~~~~~ fs/orangefs/xattr.c:153:2: note: Call to function 'strcpy' is insecure a= s 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 strcpy(new_op->upcall.req.getxattr.key, name); ^~~~~~ fs/orangefs/xattr.c:174:5: warning: Call to function 'strcpy' is insecur= e as it does not provide bounding of the memory buffer. Replace unbounded c= opy functions with analogous functions that support length arguments such a= s 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(cx->key, name); ^~~~~~ fs/orangefs/xattr.c:174:5: note: Call to function 'strcpy' is insecure a= s 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 strcpy(cx->key, name); ^~~~~~ fs/orangefs/xattr.c:206:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, new_op->downcall.resp.getxattr.val, length); ^~~~~~ fs/orangefs/xattr.c:206:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(buffer, new_op->downcall.resp.getxattr.val, length); ^~~~~~ fs/orangefs/xattr.c:207:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(buffer + length, 0, size - length); ^~~~~~ fs/orangefs/xattr.c:207:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(buffer + length, 0, size - length); ^~~~~~ fs/orangefs/xattr.c:221:3: warning: Call to function 'strcpy' is insecur= e as it does not provide bounding of the memory buffer. Replace unbounded c= opy functions with analogous functions that support length arguments such a= s 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(cx->key, name); ^~~~~~ fs/orangefs/xattr.c:221:3: note: Call to function 'strcpy' is insecure a= s 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 strcpy(cx->key, name); ^~~~~~ fs/orangefs/xattr.c:222:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cx->val, buffer, length); ^~~~~~ fs/orangefs/xattr.c:222:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(cx->val, buffer, length); ^~~~~~ fs/orangefs/xattr.c:228:4: warning: Call to function 'strcpy' is insecur= e as it does not provide bounding of the memory buffer. Replace unbounded c= opy functions with analogous functions that support length arguments such a= s 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(cx->key, name); ^~~~~~ fs/orangefs/xattr.c:228:4: note: Call to function 'strcpy' is insecure a= s 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 strcpy(cx->key, name); ^~~~~~ fs/orangefs/xattr.c:229:4: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cx->val, buffer, length); ^~~~~~ fs/orangefs/xattr.c:229:4: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(cx->val, buffer, length); ^~~~~~ fs/orangefs/xattr.c:268:2: warning: Call to function 'strcpy' is insecur= e as it does not provide bounding of the memory buffer. Replace unbounded c= opy functions with analogous functions that support length arguments such a= s 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(new_op->upcall.req.removexattr.key, name); ^~~~~~ fs/orangefs/xattr.c:268:2: note: Call to function 'strcpy' is insecure a= s 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 strcpy(new_op->upcall.req.removexattr.key, name); ^~~~~~ fs/orangefs/xattr.c:362:2: warning: Call to function 'strcpy' is insecur= e as it does not provide bounding of the memory buffer. Replace unbounded c= opy functions with analogous functions that support length arguments such a= s 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(new_op->upcall.req.setxattr.keyval.key, name); ^~~~~~ fs/orangefs/xattr.c:362:2: note: Call to function 'strcpy' is insecure a= s 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 strcpy(new_op->upcall.req.setxattr.keyval.key, name); ^~~~~~ fs/orangefs/xattr.c:364:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_op->upcall.req.setxattr.keyval.val, value, size); ^~~~~~ fs/orangefs/xattr.c:364:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(new_op->upcall.req.setxattr.keyval.val, value, size); ^~~~~~ fs/orangefs/xattr.c:430:3: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(buffer, 0, size); ^~~~~~ fs/orangefs/xattr.c:430:3: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(buffer, 0, size); ^~~~~~ fs/orangefs/xattr.c:492:4: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer + total, ^~~~~~ fs/orangefs/xattr.c:492:4: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(buffer + total, ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 81 warnings generated. kernel/fork.c:1051:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&mm->rss_stat, 0, sizeof(mm->rss_stat)); ^~~~~~ kernel/fork.c:1051:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&mm->rss_stat, 0, sizeof(mm->rss_stat)); ^~~~~~ kernel/fork.c:1102:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(mm, 0, sizeof(*mm)); ^~~~~~ kernel/fork.c:1102:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(mm, 0, sizeof(*mm)); ^~~~~~ kernel/fork.c:1446:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(mm, oldmm, sizeof(*mm)); ^~~~~~ kernel/fork.c:1446:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(mm, oldmm, sizeof(*mm)); ^~~~~~ kernel/fork.c:1575:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sig->action, current->sighand->action, sizeof(sig->action= )); ^~~~~~ kernel/fork.c:1575:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(sig->action, current->sighand->action, sizeof(sig->action= )); ^~~~~~ kernel/fork.c:1643:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); ^~~~~~ kernel/fork.c:1643:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); ^~~~~~ kernel/fork.c:2108:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&p->irqtrace, 0, sizeof(p->irqtrace)); ^~~~~~ kernel/fork.c:2108:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&p->irqtrace, 0, sizeof(p->irqtrace)); ^~~~~~ Suppressed 75 warnings (72 in non-user code, 3 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 9 warnings generated. Suppressed 9 warnings (8 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 61 warnings generated. Suppressed 61 warnings (61 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 25 warnings generated. >> arch/arm/vfp/vfpmodule.c:109:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(vfp, 0, sizeof(union vfp_state)); ^~~~~~ arch/arm/vfp/vfpmodule.c:109:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(vfp, 0, sizeof(union vfp_state)); ^~~~~~ >> arch/arm/vfp/vfpmodule.c:561:2: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ufp->fpregs, &hwstate->fpregs, sizeof(hwstate->fpregs)); ^~~~~~ arch/arm/vfp/vfpmodule.c:561:2: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(&ufp->fpregs, &hwstate->fpregs, sizeof(hwstate->fpregs)); ^~~~~~ arch/arm/vfp/vfpmodule.c:600:2: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&hwstate->fpregs, &ufp->fpregs, sizeof(hwstate->fpregs)); ^~~~~~ arch/arm/vfp/vfpmodule.c:600:2: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(&hwstate->fpregs, &ufp->fpregs, sizeof(hwstate->fpregs)); ^~~~~~ Suppressed 22 warnings (21 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 41 warnings generated. >> arch/arm/kernel/process.c:185:4: warning: Call to function 'snprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, sizeof(buf), " Table: %08x DAC: = %08x", ^~~~~~~~ arch/arm/kernel/process.c:185:4: note: Call to function 'snprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, sizeof(buf), " Table: %08x DAC: = %08x", ^~~~~~~~ arch/arm/kernel/process.c:221:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(thread->used_cp, 0, sizeof(thread->used_cp)); ^~~~~~ arch/arm/kernel/process.c:221:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(thread->used_cp, 0, sizeof(thread->used_cp)); ^~~~~~ arch/arm/kernel/process.c:222:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&tsk->thread.debug, 0, sizeof(struct debug_info)); ^~~~~~ arch/arm/kernel/process.c:222:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&tsk->thread.debug, 0, sizeof(struct debug_info)); ^~~~~~ arch/arm/kernel/process.c:223:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&thread->fpstate, 0, sizeof(union fp_state)); ^~~~~~ arch/arm/kernel/process.c:223:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&thread->fpstate, 0, sizeof(union fp_state)); ^~~~~~ arch/arm/kernel/process.c:242:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); ^~~~~~ arch/arm/kernel/process.c:242:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); ^~~~~~ arch/arm/kernel/process.c:260:3: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(childregs, 0, sizeof(struct pt_regs)); ^~~~~~ arch/arm/kernel/process.c:260:3: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(childregs, 0, sizeof(struct pt_regs)); ^~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 60 warnings generated. fs/proc/proc_net.c:367:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(netd->name, "net", 4); ^~~~~~ fs/proc/proc_net.c:367:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(netd->name, "net", 4); ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 54 warnings generated. >> fs/proc/vmcore.c:154:5: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, nr_bytes); ^~~~~~ fs/proc/vmcore.c:154:5: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(buf, 0, nr_bytes); ^~~~~~ >> fs/proc/vmcore.c:244:3: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(target, src, size); ^~~~~~ fs/proc/vmcore.c:244:3: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(target, src, size); ^~~~~~ fs/proc/vmcore.c:901:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tmp, &phdr, sizeof(phdr)); ^~~~~~ fs/proc/vmcore.c:901:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(tmp, &phdr, sizeof(phdr)); ^~~~~~ >> fs/proc/vmcore.c:907:2: warning: Call to function 'memmove' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(tmp, tmp+i, ((*elfsz)-sizeof(Elf64_Ehdr)-sizeof(Elf64_Ph= dr))); ^~~~~~~ fs/proc/vmcore.c:907:2: note: Call to function 'memmove' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memmove_s' in case of C11 memmove(tmp, tmp+i, ((*elfsz)-sizeof(Elf64_Ehdr)-sizeof(Elf64_Ph= dr))); ^~~~~~~ fs/proc/vmcore.c:908:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(elfptr + *elfsz, 0, i); ^~~~~~ fs/proc/vmcore.c:908:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(elfptr + *elfsz, 0, i); ^~~~~~ fs/proc/vmcore.c:1092:2: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tmp, &phdr, sizeof(phdr)); ^~~~~~ fs/proc/vmcore.c:1092:2: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(tmp, &phdr, sizeof(phdr)); ^~~~~~ fs/proc/vmcore.c:1098:2: warning: Call to function 'memmove' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memmove(tmp, tmp+i, ((*elfsz)-sizeof(Elf32_Ehdr)-sizeof(Elf32_Ph= dr))); ^~~~~~~ fs/proc/vmcore.c:1098:2: note: Call to function 'memmove' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memmove_s' in case of C11 memmove(tmp, tmp+i, ((*elfsz)-sizeof(Elf32_Ehdr)-sizeof(Elf32_Ph= dr))); ^~~~~~~ fs/proc/vmcore.c:1099:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(elfptr + *elfsz, 0, i); ^~~~~~ fs/proc/vmcore.c:1099:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(elfptr + *elfsz, 0, i); ^~~~~~ >> fs/proc/vmcore.c:1390:2: warning: Call to function 'strncpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] strncpy((char *)vdd_hdr->name, VMCOREDD_NOTE_NAME, ^~~~~~~ fs/proc/vmcore.c:1390:2: note: Call to function 'strncpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'strncpy_s' in case of C11 strncpy((char *)vdd_hdr->name, VMCOREDD_NOTE_NAME, ^~~~~~~ fs/proc/vmcore.c:1392:2: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vdd_hdr->dump_name, data->dump_name, sizeof(vdd_hdr->dump= _name)); ^~~~~~ fs/proc/vmcore.c:1392:2: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(vdd_hdr->dump_name, data->dump_name, sizeof(vdd_hdr->dump= _name)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. crypto/asymmetric_keys/pkcs8_parser.c:103:2: warning: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ctx, 0, sizeof(ctx)); ^~~~~~ crypto/asymmetric_keys/pkcs8_parser.c:103:2: note: Call to function 'mem= set' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memset_s' in case of C11 memset(&ctx, 0, sizeof(ctx)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 9 warnings generated. crypto/asymmetric_keys/pkcs7_verify.c:101:3: warning: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(sig->digest, 0, sig->digest_size); ^~~~~~ crypto/asymmetric_keys/pkcs7_verify.c:101:3: note: Call to function 'mem= set' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memset_s' in case of C11 memset(sig->digest, 0, sig->digest_size); ^~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. block/disk-events.c:347:11: warning: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandl= ing] pos +=3D sprintf(buf + pos, "%s%s", ^~~~~~~ block/disk-events.c:347:11: note: Call to function 'sprintf' is insecure= as it does not provide bounding of the memory buffer or security checks in= troduced in the C11 standard. Replace with analogous functions that support= length arguments or provides boundary checks such as 'sprintf_s' in case o= f C11 pos +=3D sprintf(buf + pos, "%s%s", ^~~~~~~ block/disk-events.c:352:10: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] pos +=3D sprintf(buf + pos, "\n"); ^~~~~~~ block/disk-events.c:352:10: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 pos +=3D sprintf(buf + pos, "\n"); ^~~~~~~ block/disk-events.c:379:10: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "-1\n"); ^~~~~~~ block/disk-events.c:379:10: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "-1\n"); ^~~~~~~ block/disk-events.c:380:9: warning: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%ld\n", disk->ev->poll_msecs); ^~~~~~~ block/disk-events.c:380:9: note: Call to function 'sprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%ld\n", disk->ev->poll_msecs); ^~~~~~~ block/disk-events.c:390:17: warning: Call to function 'sscanf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] if (!count || !sscanf(buf, "%ld", &intv)) ^~~~~~ block/disk-events.c:390:17: note: Call to function 'sscanf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'sscanf_s' in case of C11 if (!count || !sscanf(buf, "%ld", &intv)) ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. Suppressed 28 warnings (28 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. fs/autofs/root.c:562:2: warning: Call to function 'strcpy' is insecure a= s 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(cp, symname); ^~~~~~ fs/autofs/root.c:562:2: note: Call to function 'strcpy' is insecure as i= t does not provide bounding of the memory buffer. Replace unbounded copy fu= nctions with analogous functions that support length arguments such as 'str= lcpy'. CWE-119 strcpy(cp, symname); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. fs/autofs/waitq.c:95:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&pkt, 0, sizeof(pkt)); /* For security reasons */ ^~~~~~ fs/autofs/waitq.c:95:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&pkt, 0, sizeof(pkt)); /* For security reasons */ ^~~~~~ fs/autofs/waitq.c:110:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(mp->name, wq->name.name, wq->name.len); ^~~~~~ fs/autofs/waitq.c:110:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(mp->name, wq->name.name, wq->name.len); ^~~~~~ fs/autofs/waitq.c:123:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ep->name, wq->name.name, wq->name.len); ^~~~~~ fs/autofs/waitq.c:123:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(ep->name, wq->name.name, wq->name.len); ^~~~~~ fs/autofs/waitq.c:143:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(packet->name, wq->name.name, wq->name.len); ^~~~~~ fs/autofs/waitq.c:143:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(packet->name, wq->name.name, wq->name.len); ^~~~~~ fs/autofs/waitq.c:350:14: warning: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] qstr.len =3D sprintf(name, "%p", dentry); ^~~~~~~ fs/autofs/waitq.c:350:14: note: Call to function 'sprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'sprintf_s' in case of C11 qstr.len =3D sprintf(name, "%p", dentry); ^~~~~~~ fs/autofs/waitq.c:391:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&wq->name, &qstr, sizeof(struct qstr)); ^~~~~~ fs/autofs/waitq.c:391:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(&wq->name, &qstr, sizeof(struct qstr)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. kernel/cgroup/cgroup-v1.c:1101:3: warning: Call to function 'strcpy' is = insecure as it does not provide bounding of the memory buffer. Replace unbo= unded copy functions with analogous functions that support length arguments= such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(root->release_agent_path, ctx->release_agent); ^~~~~~ kernel/cgroup/cgroup-v1.c:1101:3: note: Call to function 'strcpy' is ins= ecure as it does not provide bounding of the memory buffer. Replace unbound= ed copy functions with analogous functions that support length arguments su= ch as 'strlcpy'. CWE-119 strcpy(root->release_agent_path, ctx->release_agent); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. >> kernel/cgroup/debug.c:225:4: warning: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(pbuf, sizeof(pbuf) - 1, " P=3D%d", ^~~~~~~~ kernel/cgroup/debug.c:225:4: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 snprintf(pbuf, sizeof(pbuf) - 1, " P=3D%d", ^~~~~~~~ Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 14 warnings generated. Suppressed 14 warnings (14 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. kernel/kmod.c:142:8: warning: Call to function 'vsnprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D vsnprintf(module_name, MODULE_NAME_LEN, fmt, args); ^~~~~~~~~ kernel/kmod.c:142:8: note: Call to function 'vsnprintf' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'vsnprintf_s' in case of C11 ret =3D vsnprintf(module_name, MODULE_NAME_LEN, fmt, args); ^~~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 103 warnings generated. kernel/sched/core.c:4250:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&p->stats, 0, sizeof(p->stats)); ^~~~~~ kernel/sched/core.c:4250:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(&p->stats, 0, sizeof(p->stats)); ^~~~~~ kernel/sched/core.c:4429:3: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&p->sched_info, 0, sizeof(p->sched_info)); ^~~~~~ kernel/sched/core.c:4429:3: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(&p->sched_info, 0, sizeof(p->sched_info)); ^~~~~~ kernel/sched/core.c:5510:16: warning: Value stored to 'preempt_disable_i= p' during its initialization is never read [clang-analyzer-deadcode.DeadSto= res] unsigned long preempt_disable_ip =3D get_preempt_disable_ip(curr= ent); ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ kernel/sched/core.c:5510:16: note: Value stored to 'preempt_disable_ip' = during its initialization is never read unsigned long preempt_disable_ip =3D get_preempt_disable_ip(curr= ent); ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ kernel/sched/core.c:6295:3: warning: Value stored to 'rq' is never read = [clang-analyzer-deadcode.DeadStores] rq =3D context_switch(rq, prev, next, &rf); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/core.c:6295:3: note: Value stored to 'rq' is never read rq =3D context_switch(rq, prev, next, &rf); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/core.c:7651:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(attr, 0, sizeof(*attr)); ^~~~~~ kernel/sched/core.c:7651:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(attr, 0, sizeof(*attr)); ^~~~~~ kernel/sched/core.c:9329:3: warning: Value stored to 'ptr' is never read= [clang-analyzer-deadcode.DeadStores] ptr +=3D nr_cpu_ids * sizeof(void **); ^ kernel/sched/core.c:9329:3: note: Value stored to 'ptr' is never read kernel/sched/core.c:10759:6: warning: Call to function 'sscanf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(buf, "%20s %llu", tok, periodp) < 1) ^~~~~~ kernel/sched/core.c:10759:6: note: Call to function 'sscanf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sscanf_s' in case of C11 if (sscanf(buf, "%20s %llu", tok, periodp) < 1) ^~~~~~ kernel/sched/core.c:10764:6: warning: Call to function 'sscanf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(tok, "%llu", quotap)) ^~~~~~ kernel/sched/core.c:10764:6: note: Call to function 'sscanf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sscanf_s' in case of C11 if (sscanf(tok, "%llu", quotap)) ^~~~~~ Suppressed 95 warnings (89 in non-user code, 6 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. fs/configfs/symlink.c:51:3: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer + length, config_item_name(p), cur); ^~~~~~ fs/configfs/symlink.c:51:3: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(buffer + length, config_item_name(p), cur); ^~~~~~ fs/configfs/symlink.c:70:3: warning: Call to function 'strcpy' is insecu= re 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(s,"../"); ^~~~~~ fs/configfs/symlink.c:70:3: note: Call to function 'strcpy' is insecure = as it does not provide bounding of the memory buffer. Replace unbounded cop= y functions with analogous functions that support length arguments such as = 'strlcpy'. CWE-119 strcpy(s,"../"); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 9 warnings generated. fs/configfs/item.c:60:9: warning: Call to function 'vsnprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] need =3D vsnprintf(item->ci_namebuf, limit, fmt, args); ^~~~~~~~~ fs/configfs/item.c:60:9: note: Call to function 'vsnprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'vsnprintf_s' in case of C11 need =3D vsnprintf(item->ci_namebuf, limit, fmt, args); ^~~~~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. fs/devpts/inode.c:584:2: warning: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] -- ^ fs/userfaultfd.c:1103:2: note: Loop condition is false. Exiting loop __set_current_state(TASK_RUNNING); ^ include/linux/sched.h:205:3: note: expanded from macro '__set_current_st= ate' WRITE_ONCE(current->__state, (state_value)); \ ^ include/asm-generic/rwonce.h:61:2: note: expanded from macro 'WRITE_ONCE' __WRITE_ONCE(x, val); \ ^ include/asm-generic/rwonce.h:53:35: note: expanded from macro '__WRITE_O= NCE' #define __WRITE_ONCE(x, val) \ ^ fs/userfaultfd.c:1103:2: note: Loop condition is false. Exiting loop __set_current_state(TASK_RUNNING); ^ include/linux/sched.h:205:3: note: expanded from macro '__set_current_st= ate' WRITE_ONCE(current->__state, (state_value)); \ ^ include/asm-generic/rwonce.h:58:33: note: expanded from macro 'WRITE_ONC= E' #define WRITE_ONCE(x, val) \ ^ fs/userfaultfd.c:1103:2: note: Loop condition is false. Exiting loop __set_current_state(TASK_RUNNING); ^ include/linux/sched.h:203:2: note: expanded from macro '__set_current_st= ate' do { \ ^ fs/userfaultfd.c:1106:7: note: 'ret' is 0 if (!ret && msg->event =3D=3D UFFD_EVENT_FORK) { ^~~ fs/userfaultfd.c:1106:6: note: Left side of '&&' is true if (!ret && msg->event =3D=3D UFFD_EVENT_FORK) { ^ fs/userfaultfd.c:1106:14: note: Assuming field 'event' is equal to UFFD_= EVENT_FORK if (!ret && msg->event =3D=3D UFFD_EVENT_FORK) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/userfaultfd.c:1106:2: note: Taking true branch if (!ret && msg->event =3D=3D UFFD_EVENT_FORK) { ^ fs/userfaultfd.c:1107:32: note: Passing null pointer value via 1st param= eter 'new' ret =3D resolve_userfault_fork(fork_nctx, inode, msg); ^~~~~~~~~ fs/userfaultfd.c:1107:9: note: Calling 'resolve_userfault_fork' ret =3D resolve_userfault_fork(fork_nctx, inode, msg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/userfaultfd.c:986:14: note: Access to field 'flags' results in a dere= ference of a null pointer (loaded from variable 'new') O_RDWR | (new->flags & UFFD_SHARED_FCNTL_FLAGS),= inode); ^~~ fs/userfaultfd.c:1969:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&uffdio_api, 0, sizeof(uffdio_api)); ^~~~~~ fs/userfaultfd.c:1969:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&uffdio_api, 0, sizeof(uffdio_api)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. fs/xfs/libxfs/xfs_refcount.c:114:19: warning: Value stored to 'agno' dur= ing its initialization is never read [clang-analyzer-deadcode.DeadStores] xfs_agnumber_t agno =3D cur->bc_ag.pag->pag_agn= o; ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_refcount.c:114:19: note: Value stored to 'agno' during= its initialization is never read xfs_agnumber_t agno =3D cur->bc_ag.pag->pag_agn= o; ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/libxfs/xfs_refcount.c:1715:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&low, 0, sizeof(low)); ^~~~~~ fs/xfs/libxfs/xfs_refcount.c:1715:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(&low, 0, sizeof(low)); ^~~~~~ fs/xfs/libxfs/xfs_refcount.c:1716:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&high, 0, sizeof(high)); ^~~~~~ fs/xfs/libxfs/xfs_refcount.c:1716:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(&high, 0, sizeof(high)); ^~~~~~ fs/xfs/libxfs/xfs_refcount.c:1777:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&low, 0, sizeof(low)); ^~~~~~ fs/xfs/libxfs/xfs_refcount.c:1777:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(&low, 0, sizeof(low)); ^~~~~~ fs/xfs/libxfs/xfs_refcount.c:1779:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&high, 0xFF, sizeof(high)); ^~~~~~ fs/xfs/libxfs/xfs_refcount.c:1779:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(&high, 0xFF, sizeof(high)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. crypto/seqiv.c:33:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); ^~~~~~ crypto/seqiv.c:33:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(req->iv, subreq->iv, crypto_aead_ivsize(geniv)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. >> fs/sysv/balloc.c:84:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/sysv/balloc.c:84:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ >> fs/sysv/balloc.c:86:3: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zon= e_t)); ^~~~~~ fs/sysv/balloc.c:86:3: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zon= e_t)); ^~~~~~ fs/sysv/balloc.c:144:3: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sbi->s_bcache, get_chunk(sb, bh), ^~~~~~ fs/sysv/balloc.c:144:3: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(sbi->s_bcache, get_chunk(sb, bh), ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> fs/sysv/itree.c:149:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, blocksize); ^~~~~~ fs/sysv/itree.c:149:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, blocksize); ^~~~~~ Suppressed 43 warnings (42 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 68 warnings generated. security/commoncap.c:441:5: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&nscap->data, &cap->data, sizeof(= __le32) * 2 * VFS_CAP_U32); ^~~~~~ security/commoncap.c:441:5: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(&nscap->data, &cap->data, sizeof(= __le32) * 2 * VFS_CAP_U32); ^~~~~~ security/commoncap.c:472:4: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cap->data, &nscap->data, sizeof(__le32) = * 2 * VFS_CAP_U32); ^~~~~~ security/commoncap.c:472:4: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(&cap->data, &nscap->data, sizeof(__le32) = * 2 * VFS_CAP_U32); ^~~~~~ security/commoncap.c:582:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&nscap->data, &cap->data, sizeof(__le32) * 2 * VFS_CAP_U3= 2); ^~~~~~ security/commoncap.c:582:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(&nscap->data, &cap->data, sizeof(__le32) * 2 * VFS_CAP_U3= 2); ^~~~~~ security/commoncap.c:660:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cpu_caps, 0, sizeof(struct cpu_vfs_cap_data)); ^~~~~~ security/commoncap.c:660:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(cpu_caps, 0, sizeof(struct cpu_vfs_cap_data)); ^~~~~~ Suppressed 64 warnings (64 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. Suppressed 29 warnings (28 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 97 warnings generated. kernel/bpf/core.c:237:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(fp, fp_old, fp_old->pages * PAGE_SIZE); ^~~~~~ kernel/bpf/core.c:237:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(fp, fp_old, fp_old->pages * PAGE_SIZE); ^~~~~~ kernel/bpf/core.c:284:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(ws, 0, sizeof(ws)); ^~~~~~ kernel/bpf/core.c:284:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(ws, 0, sizeof(ws)); ^~~~~~ kernel/bpf/core.c:311:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&raw[psize], 0, raw_size - psize); ^~~~~~ kernel/bpf/core.c:311:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&raw[psize], 0, raw_size - psize); ^~~~~~ kernel/bpf/core.c:333:2: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(fp->tag, result, sizeof(fp->tag)); ^~~~~~ kernel/bpf/core.c:333:2: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(fp->tag, result, sizeof(fp->tag)); ^~~~~~ kernel/bpf/core.c:452:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(prog->insnsi + off, patch, sizeof(*patch)); ^~~~~~ kernel/bpf/core.c:452:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(prog->insnsi + off, patch, sizeof(*patch)); ^~~~~~ kernel/bpf/core.c:488:2: warning: Call to function 'memmove' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, ^~~~~~~ kernel/bpf/core.c:488:2: note: Call to function 'memmove' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memmove_s' in case of C11 memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, ^~~~~~~ kernel/bpf/core.c:490:2: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); ^~~~~~ kernel/bpf/core.c:490:2: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); ^~~~~~ kernel/bpf/core.c:508:2: warning: Call to function 'memmove' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memmove(prog->insnsi + off, prog->insnsi + off + cnt, ^~~~~~~ kernel/bpf/core.c:508:2: note: Call to function 'memmove' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memmove_s' in case of C11 memmove(prog->insnsi + off, prog->insnsi + off + cnt, -- ipc/sem.c:1665:2: note: Control jumps to 'case 17:' at line 1683 switch (cmd) { ^ ipc/sem.c:1684:10: note: Calling 'semctl_main' return semctl_main(ns, semid, semnum, cmd, p); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipc/sem.c:1418:6: note: Calling 'IS_ERR' if (IS_ERR(sma)) { ^~~~~~~~~~~ include/linux/err.h:36:2: note: Returning zero, which participates in a = condition later return IS_ERR_VALUE((unsigned long)ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipc/sem.c:1418:6: note: Returning from 'IS_ERR' if (IS_ERR(sma)) { ^~~~~~~~~~~ ipc/sem.c:1418:2: note: Taking false branch if (IS_ERR(sma)) { ^ ipc/sem.c:1426:35: note: 'cmd' is equal to SETALL if (ipcperms(ns, &sma->sem_perm, cmd =3D=3D SETALL ? S_IWUGO : S= _IRUGO)) ^~~ ipc/sem.c:1426:35: note: '?' condition is true ipc/sem.c:1426:6: note: Assuming the condition is false if (ipcperms(ns, &sma->sem_perm, cmd =3D=3D SETALL ? S_IWUGO : S= _IRUGO)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ ipc/sem.c:1426:2: note: Taking false branch if (ipcperms(ns, &sma->sem_perm, cmd =3D=3D SETALL ? S_IWUGO : S= _IRUGO)) ^ ipc/sem.c:1429:8: note: Calling 'security_sem_semctl' err =3D security_sem_semctl(&sma->sem_perm, cmd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/security.h:1278:2: note: Returning zero, which participate= s in a condition later return 0; ^~~~~~~~ ipc/sem.c:1429:8: note: Returning from 'security_sem_semctl' err =3D security_sem_semctl(&sma->sem_perm, cmd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipc/sem.c:1430:6: note: 'err' is 0 if (err) ^~~ ipc/sem.c:1430:2: note: Taking false branch if (err) ^ ipc/sem.c:1434:2: note: Control jumps to 'case 17:' at line 1475 switch (cmd) { ^ ipc/sem.c:1480:7: note: Assuming the condition is false if (!ipc_rcu_getref(&sma->sem_perm)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipc/sem.c:1480:3: note: Taking false branch if (!ipc_rcu_getref(&sma->sem_perm)) { ^ ipc/sem.c:1486:7: note: Assuming 'nsems' is <=3D SEMMSL_FAST if (nsems > SEMMSL_FAST) { ^~~~~~~~~~~~~~~~~~~ ipc/sem.c:1486:3: note: Taking false branch if (nsems > SEMMSL_FAST) { ^ ipc/sem.c:1495:7: note: Calling 'copy_from_user' if (copy_from_user(sem_io, p, nsems*sizeof(ushort))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/uaccess.h:191:6: note: Assuming the condition is true if (likely(check_copy_size(to, n, false))) ^ include/linux/compiler.h:77:38: note: expanded from macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^~~~ include/linux/uaccess.h:191:2: note: Taking false branch if (likely(check_copy_size(to, n, false))) ^ include/linux/uaccess.h:193:2: note: Returning without writing to '*to' return n; ^ include/linux/uaccess.h:193:2: note: Returning value (loaded from 'n'), = which participates in a condition later return n; ^~~~~~~~ ipc/sem.c:1495:7: note: Returning from 'copy_from_user' if (copy_from_user(sem_io, p, nsems*sizeof(ushort))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipc/sem.c:1495:7: note: Assuming the condition is false if (copy_from_user(sem_io, p, nsems*sizeof(ushort))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipc/sem.c:1495:3: note: Taking false branch if (copy_from_user(sem_io, p, nsems*sizeof(ushort))) { ^ ipc/sem.c:1501:8: note: The value 0 is assigned to 'i' for (i =3D 0; i < nsems; i++) { ^~~~~ ipc/sem.c:1501:15: note: Assuming 'i' is < 'nsems' for (i =3D 0; i < nsems; i++) { ^~~~~~~~~ ipc/sem.c:1501:3: note: Loop condition is true. Entering loop body for (i =3D 0; i < nsems; i++) { ^ ipc/sem.c:1502:18: note: The left operand of '>' is a garbage value if (sem_io[i] > SEMVMX) { ~~~~~~~~~ ^ Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. >> fs/sysv/dir.c:215:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy (de->name, name, namelen); ^~~~~~ fs/sysv/dir.c:215:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy (de->name, name, namelen); ^~~~~~ >> fs/sysv/dir.c:216:2: warning: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memset (de->name + namelen, 0, SYSV_DIRSIZE - namelen - 2); ^~~~~~ fs/sysv/dir.c:216:2: note: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 memset (de->name + namelen, 0, SYSV_DIRSIZE - namelen - 2); ^~~~~~ fs/sysv/dir.c:265:2: warning: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memset(base, 0, PAGE_SIZE); ^~~~~~ fs/sysv/dir.c:265:2: note: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 memset(base, 0, PAGE_SIZE); ^~~~~~ fs/sysv/dir.c:339:2: warning: Value stored to 'err' is never read [clang= -analyzer-deadcode.DeadStores] err =3D dir_commit_chunk(page, pos, SYSV_DIRSIZE); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/sysv/dir.c:339:2: note: Value stored to 'err' is never read err =3D dir_commit_chunk(page, pos, SYSV_DIRSIZE); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 20 warnings generated. lib/xxhash.c:81:2: warning: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memcpy(dst, src, sizeof(*dst)); ^~~~~~ lib/xxhash.c:81:2: note: Call to function 'memcpy' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memcpy_s' in case of C11 memcpy(dst, src, sizeof(*dst)); ^~~~~~ lib/xxhash.c:87:2: warning: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memcpy(dst, src, sizeof(*dst)); ^~~~~~ lib/xxhash.c:87:2: note: Call to function 'memcpy' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memcpy_s' in case of C11 memcpy(dst, src, sizeof(*dst)); ^~~~~~ lib/xxhash.c:247:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(&state, 0, sizeof(state)); ^~~~~~ lib/xxhash.c:247:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(&state, 0, sizeof(state)); ^~~~~~ lib/xxhash.c:252:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(statePtr, &state, sizeof(state)); ^~~~~~ lib/xxhash.c:252:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(statePtr, &state, sizeof(state)); ^~~~~~ lib/xxhash.c:261:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(&state, 0, sizeof(state)); ^~~~~~ lib/xxhash.c:261:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(&state, 0, sizeof(state)); ^~~~~~ lib/xxhash.c:266:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(statePtr, &state, sizeof(state)); ^~~~~~ lib/xxhash.c:266:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(statePtr, &state, sizeof(state)); ^~~~~~ lib/xxhash.c:282:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy((uint8_t *)(state->mem32) + state->memsize, input= , len); ^~~~~~ lib/xxhash.c:282:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy((uint8_t *)(state->mem32) + state->memsize, input= , len); ^~~~~~ lib/xxhash.c:290:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy((uint8_t *)(state->mem32) + state->memsize, input, ^~~~~~ lib/xxhash.c:290:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy((uint8_t *)(state->mem32) + state->memsize, input, ^~~~~~ lib/xxhash.c:331:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(state->mem32, p, (size_t)(b_end-p)); ^~~~~~ lib/xxhash.c:331:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(state->mem32, p, (size_t)(b_end-p)); ^~~~~~ lib/xxhash.c:388:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(((uint8_t *)state->mem64) + state->memsize, input= , len); ^~~~~~ lib/xxhash.c:388:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(((uint8_t *)state->mem64) + state->memsize, input= , len); ^~~~~~ lib/xxhash.c:396:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(((uint8_t *)p64) + state->memsize, input, ^~~~~~ lib/xxhash.c:396:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(((uint8_t *)p64) + state->memsize, input, ^~~~~~ lib/xxhash.c:436:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(state->mem64, p, (size_t)(b_end-p)); ^~~~~~ lib/xxhash.c:436:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(state->mem64, p, (size_t)(b_end-p)); ^~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. fs/ecryptfs/debug.c:37:3: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sig, auth_tok->token.password.signature, -- ^~~~~~ fs/ecryptfs/miscdev.c:417:3: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&counter_nbo, &data[PKT_CTR_OFFSET], PKT_CTR_SIZE= ); ^~~~~~ fs/ecryptfs/miscdev.c:417:3: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(&counter_nbo, &data[PKT_CTR_OFFSET], PKT_CTR_SIZE= ); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. crypto/echainiv.c:65:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&nseqno, info + ivsize - 8, 8); ^~~~~~ crypto/echainiv.c:65:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(&nseqno, info + ivsize - 8, 8); ^~~~~~ crypto/echainiv.c:67:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(info, 0, ivsize); ^~~~~~ crypto/echainiv.c:67:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(info, 0, ivsize); ^~~~~~ crypto/echainiv.c:74:3: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&a, ctx->salt + ivsize - 8, 8); ^~~~~~ crypto/echainiv.c:74:3: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(&a, ctx->salt + ivsize - 8, 8); ^~~~~~ crypto/echainiv.c:79:3: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(info + ivsize - 8, &a, 8); ^~~~~~ crypto/echainiv.c:79:3: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(info + ivsize - 8, &a, 8); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. fs/autofs/expire.c:546:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&pkt, 0, sizeof(pkt)); ^~~~~~ fs/autofs/expire.c:546:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(&pkt, 0, sizeof(pkt)); ^~~~~~ fs/autofs/expire.c:556:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(pkt.name, dentry->d_name.name, pkt.len); ^~~~~~ fs/autofs/expire.c:556:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(pkt.name, dentry->d_name.name, pkt.len); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. fs/autofs/dev-ioctl.c:519:34: warning: Although the value stored to 'dev= id' is used in the enclosing expression, the value is never actually read f= rom 'devid' [clang-analyzer-deadcode.DeadStores] param->ismountpoint.out.devid =3D devid =3D 0; ^ ~ fs/autofs/dev-ioctl.c:519:34: note: Although the value stored to 'devid'= is used in the enclosing expression, the value is never actually read from= 'devid' param->ismountpoint.out.devid =3D devid =3D 0; ^ ~ Suppressed 28 warnings (28 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. fs/adfs/dir.c:30:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(dst, dir->bhs[index]->b_data + offset, remain); ^~~~~~ fs/adfs/dir.c:30:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(dst, dir->bhs[index]->b_data + offset, remain); ^~~~~~ fs/adfs/dir.c:37:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(dst, dir->bhs[index]->b_data + offset, len); ^~~~~~ fs/adfs/dir.c:37:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(dst, dir->bhs[index]->b_data + offset, len); ^~~~~~ fs/adfs/dir.c:55:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(dir->bhs[index]->b_data + offset, src, remain); ^~~~~~ fs/adfs/dir.c:55:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(dir->bhs[index]->b_data + offset, src, remain); ^~~~~~ fs/adfs/dir.c:62:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(dir->bhs[index]->b_data + offset, src, len); ^~~~~~ fs/adfs/dir.c:62:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(dir->bhs[index]->b_data + offset, src, len); ^~~~~~ fs/adfs/dir.c:115:4: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(bhs, dir->bhs, dir->nr_buffers * sizeof(*= bhs)); ^~~~~~ fs/adfs/dir.c:115:4: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(bhs, dir->bhs, dir->nr_buffers * sizeof(*= bhs)); ^~~~~~ fs/adfs/dir.c:277:29: warning: Value stored to 'ops' during its initiali= zation is never read [clang-analyzer-deadcode.DeadStores] const struct adfs_dir_ops *ops =3D ADFS_SB(sb)->s_dir; ^~~ ~~~~~~~~~~~~~~~~~~ fs/adfs/dir.c:277:29: note: Value stored to 'ops' during its initializat= ion is never read const struct adfs_dir_ops *ops =3D ADFS_SB(sb)->s_dir; ^~~ ~~~~~~~~~~~~~~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. >> arch/arm/kernel/ptrace.c:626:9: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] return membuf_store(&to, vfp->fpscr); ^ include/linux/regset.h:70:4: note: expanded from macro 'membuf_store' memcpy(__s->p, &__v, __size); \ ^~~~~~ arch/arm/kernel/ptrace.c:626:9: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 return membuf_store(&to, vfp->fpscr); ^ include/linux/regset.h:70:4: note: expanded from macro 'membuf_store' memcpy(__s->p, &__v, __size); \ ^~~~~~ Suppressed 50 warnings (48 in non-user code, 2 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. Suppressed 35 warnings (34 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. mm/mincore.c:110:3: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(vec, 1, nr); ^~~~~~ mm/mincore.c:110:3: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(vec, 1, nr); ^~~~~~ mm/mincore.c:197:3: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(vec, 1, pages); ^~~~~~ mm/mincore.c:197:3: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(vec, 1, pages); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. mm/mmap.c:1984:2: warning: Value stored to 'gap_end' is never read [clan= g-analyzer-deadcode.DeadStores] gap_end =3D ULONG_MAX; /* Only for VM_BUG_ON below */ ^ mm/mmap.c:1984:2: note: Value stored to 'gap_end' is never read mm/mmap.c:3251:3: warning: Value stored to 'faulted_in_anon_vma' is neve= r read [clang-analyzer-deadcode.DeadStores] faulted_in_anon_vma =3D false; ^ ~~~~~ mm/mmap.c:3251:3: note: Value stored to 'faulted_in_anon_vma' is never r= ead faulted_in_anon_vma =3D false; ^ ~~~~~ mm/mmap.c:3693:2: warning: Value stored to 'ret' is never read [clang-an= alyzer-deadcode.DeadStores] ret =3D percpu_counter_init(&vm_committed_as, 0, GFP_KERNEL); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mm/mmap.c:3693:2: note: Value stored to 'ret' is never read ret =3D percpu_counter_init(&vm_committed_as, 0, GFP_KERNEL); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 46 warnings (46 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. mm/mmu_gather.c:86:3: warning: Value stored to 'batch' is never read [cl= ang-analyzer-deadcode.DeadStores] batch =3D tlb->active; ^ ~~~~~~~~~~~ mm/mmu_gather.c:86:3: note: Value stored to 'batch' is never read batch =3D tlb->active; ^ ~~~~~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. mm/slab_common.c:1062:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&sinfo, 0, sizeof(sinfo)); ^~~~~~ mm/slab_common.c:1062:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&sinfo, 0, sizeof(sinfo)); ^~~~~~ mm/slab_common.c:1188:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ret, kasan_reset_tag(p), ks); ^~~~~~ mm/slab_common.c:1188:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(ret, kasan_reset_tag(p), ks); ^~~~~~ Suppressed 46 warnings (46 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. mm/dmapool.c:376:3: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(retval, 0, pool->size); ^~~~~~ mm/dmapool.c:376:3: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(retval, 0, pool->size); ^~~~~~ mm/dmapool.c:425:3: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(vaddr, 0, pool->size); ^~~~~~ mm/dmapool.c:425:3: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 -- ^~~~ fs/nls/nls_base.c:227:10: note: Dereference of null pointer *op++ =3D (u8) u; ~~~~~~^~~~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. fs/xfs/libxfs/xfs_attr_remote.c:310:3: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(*dst, src + hdr_size, byte_cnt); ^~~~~~ fs/xfs/libxfs/xfs_attr_remote.c:310:3: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(*dst, src + hdr_size, byte_cnt); ^~~~~~ fs/xfs/libxfs/xfs_attr_remote.c:349:3: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dst + hdr_size, *src, byte_cnt); ^~~~~~ fs/xfs/libxfs/xfs_attr_remote.c:349:3: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(dst + hdr_size, *src, byte_cnt); ^~~~~~ fs/xfs/libxfs/xfs_attr_remote.c:358:4: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(dst + hdr_size + byte_cnt, 0, ^~~~~~ fs/xfs/libxfs/xfs_attr_remote.c:358:4: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(dst + hdr_size + byte_cnt, 0, ^~~~~~ fs/xfs/libxfs/xfs_attr_remote.c:581:2: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(map, 0, sizeof(struct xfs_bmbt_irec)); ^~~~~~ fs/xfs/libxfs/xfs_attr_remote.c:581:2: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(map, 0, sizeof(struct xfs_bmbt_irec)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. fs/xfs/libxfs/xfs_bmap.c:646:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ fs/xfs/libxfs/xfs_bmap.c:646:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ fs/xfs/libxfs/xfs_bmap.c:800:2: warning: Value stored to 'error' is neve= r read [clang-analyzer-deadcode.DeadStores] error =3D 0; ^ ~ fs/xfs/libxfs/xfs_bmap.c:800:2: note: Value stored to 'error' is never r= ead error =3D 0; ^ ~ fs/xfs/libxfs/xfs_bmap.c:801:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ fs/xfs/libxfs/xfs_bmap.c:801:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ fs/xfs/libxfs/xfs_bmap.c:960:3: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&dargs, 0, sizeof(dargs)); ^~~~~~ fs/xfs/libxfs/xfs_bmap.c:960:3: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(&dargs, 0, sizeof(dargs)); ^~~~~~ fs/xfs/libxfs/xfs_bmap.c:3988:3: warning: Value stored to 'error' is nev= er read [clang-analyzer-deadcode.DeadStores] error =3D xfs_bmap_extsize_align(mp, got, &prev, extsz, = 0, eof, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ fs/xfs/libxfs/xfs_bmap.c:3988:3: note: Value stored to 'error' is never = read error =3D xfs_bmap_extsize_align(mp, got, &prev, extsz, = 0, eof, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ fs/xfs/libxfs/xfs_bmap.c:5032:2: warning: Value stored to 'qfield' is ne= ver read [clang-analyzer-deadcode.DeadStores] qfield =3D 0; ^ ~ fs/xfs/libxfs/xfs_bmap.c:5032:2: note: Value stored to 'qfield' is never= read qfield =3D 0; ^ ~ fs/xfs/libxfs/xfs_bmap.c:5734:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&new, got, sizeof(new)); ^~~~~~ fs/xfs/libxfs/xfs_bmap.c:5734:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(&new, got, sizeof(new)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. Suppressed 35 warnings (34 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. >> arch/arm/probes/kprobes/test-core.c:1501:3: warning: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(expected_memory, mem, expected_memory_size(mem)); ^~~~~~ arch/arm/probes/kprobes/test-core.c:1501:3: note: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(expected_memory, mem, expected_memory_size(mem)); ^~~~~~ Suppressed 37 warnings (34 in non-user code, 3 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. lib/parser.c:340:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(dest, src->from, len); ^~~~~~ lib/parser.c:340:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(dest, src->from, len); ^~~~~~ Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 6 warnings generated. lib/crypto/chacha.c:81:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(x, state, 64); ^~~~~~ lib/crypto/chacha.c:81:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(x, state, 64); ^~~~~~ lib/crypto/chacha.c:107:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(x, state, 64); ^~~~~~ lib/crypto/chacha.c:107:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(x, state, 64); ^~~~~~ lib/crypto/chacha.c:111:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&stream[0], &x[0], 16); ^~~~~~ lib/crypto/chacha.c:111:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(&stream[0], &x[0], 16); ^~~~~~ lib/crypto/chacha.c:112:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&stream[4], &x[12], 16); ^~~~~~ lib/crypto/chacha.c:112:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(&stream[4], &x[12], 16); ^~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. crypto/ahash.c:151:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(alignbuffer, key, keylen); ^~~~~~ crypto/ahash.c:151:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(alignbuffer, key, keylen); ^~~~~~ crypto/ahash.c:261:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(priv->result, req->result, ^~~~~~ crypto/ahash.c:261:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(priv->result, req->result, ^~~~~~ crypto/ahash.c:504:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&rhash, 0, sizeof(rhash)); ^~~~~~ crypto/ahash.c:504:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&rhash, 0, sizeof(rhash)); ^~~~~~ Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 71 warnings generated. crypto/shash.c:57:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(alignbuffer, key, keylen); ^~~~~~ crypto/shash.c:57:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(alignbuffer, key, keylen); ^~~~~~ crypto/shash.c:113:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, data, unaligned_len); ^~~~~~ crypto/shash.c:113:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(buf, data, unaligned_len); ^~~~~~ crypto/shash.c:115:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, unaligned_len); ^~~~~~ crypto/shash.c:115:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(buf, 0, unaligned_len); -- ^~~~~~~ kernel/module.c:1051:9: note: Call to function 'sprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'sprintf_s' in case of C11 return sprintf(buffer, "%i\n", module_refcount(mk->mod)); ^~~~~~~ kernel/module.c:1154:9: warning: Call to function 'sprintf' is insecure = as it does not provide bounding of the memory buffer or security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'sprintf_s' in case of= C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buffer, "%s\n", state); ^~~~~~~ kernel/module.c:1154:9: note: Call to function 'sprintf' is insecure as = it does not provide bounding of the memory buffer or security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buffer, "%s\n", state); ^~~~~~~ kernel/module.c:1176:9: warning: Call to function 'sprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buffer, "%u\n", mk->mod->core_layout.size); ^~~~~~~ kernel/module.c:1176:9: note: Call to function 'sprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'sprintf_s' in case of C11 return sprintf(buffer, "%u\n", mk->mod->core_layout.size); ^~~~~~~ kernel/module.c:1185:9: warning: Call to function 'sprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buffer, "%u\n", mk->mod->init_layout.size); ^~~~~~~ kernel/module.c:1185:9: note: Call to function 'sprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'sprintf_s' in case of C11 return sprintf(buffer, "%u\n", mk->mod->init_layout.size); ^~~~~~~ kernel/module.c:1444:2: warning: Call to function 'strncpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(ownername, module_name(fsa.owner), MODULE_NAME_LEN); ^~~~~~~ kernel/module.c:1444:2: note: Call to function 'strncpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'strncpy_s' in case of C11 strncpy(ownername, module_name(fsa.owner), MODULE_NAME_LEN); ^~~~~~~ kernel/module.c:1518:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, bounce, count); ^~~~~~ kernel/module.c:1518:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(buf, bounce, count); ^~~~~~ kernel/module.c:1615:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, bin_attr->private + pos, count); ^~~~~~ kernel/module.c:1615:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(buf, bin_attr->private + pos, count); ^~~~~~ kernel/module.c:1766:4: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(temp_attr, attr, sizeof(*temp_attr)); ^~~~~~ kernel/module.c:1766:4: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(temp_attr, attr, sizeof(*temp_attr)); ^~~~~~ kernel/module.c:1833:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj)); ^~~~~~ kernel/module.c:1833:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj)); ^~~~~~ kernel/module.c:3438:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(ptr, 0, mod->core_layout.size); ^~~~~~ kernel/module.c:3438:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(ptr, 0, mod->core_layout.size); ^~~~~~ kernel/module.c:3454:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(ptr, 0, mod->init_layout.size); ^~~~~~ kernel/module.c:3454:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(ptr, 0, mod->init_layout.size); ^~~~~~ kernel/module.c:3475:4: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dest, (void *)shdr->sh_addr, shdr->sh_siz= e); ^~~~~~ kernel/module.c:3475:4: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(dest, (void *)shdr->sh_addr, shdr->sh_siz= e); ^~~~~~ kernel/module.c:4344:3: warning: Call to function 'strncpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(namebuf, ret, KSYM_NAME_LEN - 1); ^~~~~~~ kernel/module.c:4344:3: note: Call to function 'strncpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'strncpy_s' in case of C11 strncpy(namebuf, ret, KSYM_NAME_LEN - 1); ^~~~~~~ Suppressed 45 warnings (44 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. kernel/user_namespace.c:775:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(forward, map->extent, ^~~~~~ kernel/user_namespace.c:775:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(forward, map->extent, ^~~~~~ kernel/user_namespace.c:947:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&new_map, 0, sizeof(struct uid_gid_map)); ^~~~~~ kernel/user_namespace.c:947:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(&new_map, 0, sizeof(struct uid_gid_map)); ^~~~~~ kernel/user_namespace.c:1066:3: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(map->extent, new_map.extent, ^~~~~~ kernel/user_namespace.c:1066:3: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(map->extent, new_map.extent, ^~~~~~ Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. >> kernel/pid_namespace.c:49:2: warning: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, sizeof(name), "pid_%u", level + 1); ^~~~~~~~ kernel/pid_namespace.c:49:2: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 snprintf(name, sizeof(name), "pid_%u", level + 1); ^~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 82 warnings generated. kernel/audit.c:946:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, payload, size); ^~~~~~ kernel/audit.c:946:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(data, payload, size); ^~~~~~ kernel/audit.c:1229:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&s, 0, sizeof(s)); ^~~~~~ kernel/audit.c:1229:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&s, 0, sizeof(s)); ^~~~~~ kernel/audit.c:1247:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&s, 0, sizeof(s)); ^~~~~~ kernel/audit.c:1247:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&s, 0, sizeof(s)); ^~~~~~ kernel/audit.c:1249:3: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&s, data, min_t(size_t, sizeof(s), data_len)); ^~~~~~ kernel/audit.c:1249:3: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(&s, data, min_t(size_t, sizeof(s), data_len)); ^~~~~~ kernel/audit.c:1435:3: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sizes, bufp, 2 * sizeof(u32)); ^~~~~~ kernel/audit.c:1435:3: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(sizes, bufp, 2 * sizeof(u32)); ^~~~~~ kernel/audit.c:1480:4: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sig_data->ctx, ctx, len); ^~~~~~ kernel/audit.c:1480:4: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(sig_data->ctx, ctx, len); ^~~~~~ kernel/audit.c:1503:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&s, 0, sizeof(s)); ^~~~~~ kernel/audit.c:1503:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&s, 0, sizeof(s)); ^~~~~~ kernel/audit.c:1505:3: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&s, data, min_t(size_t, sizeof(s), data_len)); ^~~~~~ kernel/audit.c:1505:3: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(&s, data, min_t(size_t, sizeof(s), data_len)); ^~~~~~ kernel/audit.c:1965:8: warning: Call to function 'vsnprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] len =3D vsnprintf(skb_tail_pointer(skb), avail, fmt, args); ^~~~~~~~~ kernel/audit.c:1965:8: note: Call to function 'vsnprintf' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'vsnprintf_s' in case of C11 len =3D vsnprintf(skb_tail_pointer(skb), avail, fmt, args); ^~~~~~~~~ kernel/audit.c:1974:9: warning: Call to function 'vsnprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] len =3D vsnprintf(skb_tail_pointer(skb), avail, fmt, arg= s2); ^~~~~~~~~ kernel/audit.c:1974:9: note: Call to function 'vsnprintf' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'vsnprintf_s' in case of C11 len =3D vsnprintf(skb_tail_pointer(skb), avail, fmt, arg= s2); ^~~~~~~~~ kernel/audit.c:2068:2: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, string, slen); ^~~~~~ kernel/audit.c:2068:2: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(ptr, string, slen); ^~~~~~ Suppressed 71 warnings (71 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. -- ^~~~~~ kernel/time/posix-cpu-timers.c:1447:2: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(&timer, 0, sizeof timer); ^~~~~~ kernel/time/posix-cpu-timers.c:1458:3: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&it, 0, sizeof(it)); ^~~~~~ kernel/time/posix-cpu-timers.c:1458:3: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(&it, 0, sizeof(it)); ^~~~~~ Suppressed 28 warnings (28 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. fs/xfs/xfs_bmap_item.c:579:2: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buip->bui_format.bui_extents, extp, count * sizeof(*extp)= ); ^~~~~~ fs/xfs/xfs_bmap_item.c:579:2: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(buip->bui_format.bui_extents, extp, count * sizeof(*extp)= ); ^~~~~~ fs/xfs/xfs_bmap_item.c:613:3: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dst_bui_fmt, src_bui_fmt, len); ^~~~~~ fs/xfs/xfs_bmap_item.c:613:3: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(dst_bui_fmt, src_bui_fmt, len); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. fs/xfs/xfs_buf_item_recover.c:505:3: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(xfs_buf_offset(bp, ^~~~~~ fs/xfs/xfs_buf_item_recover.c:505:3: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(xfs_buf_offset(bp, ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. fs/xfs/xfs_dquot_item_recover.c:148:2: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ddq, recddq, item->ri_buf[1].i_len); ^~~~~~ fs/xfs/xfs_dquot_item_recover.c:148:2: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(ddq, recddq, item->ri_buf[1].i_len); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. kernel/crash_core.c:318:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, name, note->n_namesz); ^~~~~~ kernel/crash_core.c:318:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(buf, name, note->n_namesz); ^~~~~~ kernel/crash_core.c:320:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, data, data_len); ^~~~~~ kernel/crash_core.c:320:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(buf, data, data_len); ^~~~~~ kernel/crash_core.c:328:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, sizeof(struct elf_note)); ^~~~~~ kernel/crash_core.c:328:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(buf, 0, sizeof(struct elf_note)); ^~~~~~ kernel/crash_core.c:345:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, vmcoreinfo_data, vmcoreinfo_size); ^~~~~~ kernel/crash_core.c:345:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(ptr, vmcoreinfo_data, vmcoreinfo_size); ^~~~~~ kernel/crash_core.c:375:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r); ^~~~~~ kernel/crash_core.c:375:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r); ^~~~~~ Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. lib/crypto/blake2s-generic.c:56:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(m, block, BLAKE2S_BLOCK_SIZE); ^~~~~~ lib/crypto/blake2s-generic.c:56:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(m, block, BLAKE2S_BLOCK_SIZE); ^~~~~~ lib/crypto/blake2s-generic.c:58:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(v, state->h, 32); ^~~~~~ lib/crypto/blake2s-generic.c:58:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(v, state->h, 32); ^~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 15 warnings generated. Suppressed 15 warnings (15 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. >> arch/arm/kernel/module-plts.c:48:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(plt->lit, fixed_plts, sizeof(fixed_plts)); ^~~~~~ arch/arm/kernel/module-plts.c:48:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(plt->lit, fixed_plts, sizeof(fixed_plts)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 1 warning generated. Suppressed 1 warnings (1 with check filters). 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. >> arch/arm/kernel/machine_kexec.c:170:17: warning: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] reboot_entry =3D fncpy(reboot_code_buffer, ^ arch/arm/include/asm/fncpy.h:72:2: note: expanded from macro 'fncpy' memcpy(dest_buf, (void const *)(__funcp_address & ~1), size); \ ^~~~~~ arch/arm/kernel/machine_kexec.c:170:17: note: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 reboot_entry =3D fncpy(reboot_code_buffer, ^ arch/arm/include/asm/fncpy.h:72:2: note: expanded from macro 'fncpy' memcpy(dest_buf, (void const *)(__funcp_address & ~1), size); \ ^~~~~~ Suppressed 36 warnings (35 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. crypto/hmac.c:65:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(ipad, inkey, keylen); ^~~~~~ crypto/hmac.c:65:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(ipad, inkey, keylen); ^~~~~~ crypto/hmac.c:67:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(ipad + keylen, 0, bs - keylen); ^~~~~~ crypto/hmac.c:67:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(ipad + keylen, 0, bs - keylen); ^~~~~~ crypto/hmac.c:68:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(opad, ipad, bs); ^~~~~~ crypto/hmac.c:68:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(opad, ipad, bs); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. lib/rhashtable.c:792:21: warning: Value stored to 'p' during its initial= ization is never read [clang-analyzer-deadcode.DeadStores] struct rhash_head *p =3D iter->p; ^ ~~~~~~~ lib/rhashtable.c:792:21: note: Value stored to 'p' during its initializa= tion is never read struct rhash_head *p =3D iter->p; ^ ~~~~~~~ lib/rhashtable.c:1025:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(ht, 0, sizeof(*ht)); ^~~~~~ lib/rhashtable.c:1025:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(ht, 0, sizeof(*ht)); ^~~~~~ lib/rhashtable.c:1028:2: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ht->p, params, sizeof(*params)); ^~~~~~ lib/rhashtable.c:1028:2: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(&ht->p, params, sizeof(*params)); ^~~~~~ Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. Suppressed 11 warnings (11 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 41 warnings generated. lib/string_helpers.c:112:12: warning: Assigned value is garbage or undef= ined [clang-analyzer-core.uninitialized.Assign] remainder +=3D rounding[j]; ^ ~~~~~~~~~~~ lib/string_helpers.c:60:6: note: Assuming 'blk_size' is not equal to 0 if (blk_size =3D=3D 0) ^~~~~~~~~~~~~ lib/string_helpers.c:60:2: note: Taking false branch if (blk_size =3D=3D 0) ^ lib/string_helpers.c:62:6: note: Assuming 'size' is not equal to 0 if (size =3D=3D 0) ^~~~~~~~~ lib/string_helpers.c:62:2: note: Taking false branch if (size =3D=3D 0) ^ lib/string_helpers.c:76:2: note: Loop condition is false. Execution cont= inues on line 81 while (blk_size >> 32) { ^ lib/string_helpers.c:81:2: note: Loop condition is false. Execution cont= inues on line 88 while (size >> 32) { -- 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. lib/mpi/ec.c:209:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:209:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:231:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:231:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:260:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(wp, n, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:260:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(wp, n, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:263:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(m, n+LIMB_SIZE_25519-1, (wsize+1) * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:263:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(m, n+LIMB_SIZE_25519-1, (wsize+1) * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:266:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(n, m, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:266:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(n, m, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:279:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(m, 0, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:279:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(m, 0, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:316:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:316:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:336:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:336:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(n, 0, sizeof(n)); ^~~~~~ lib/mpi/ec.c:427:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(n, 0, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:427:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(n, 0, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:437:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(n, 0, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ lib/mpi/ec.c:437:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(n, 0, wsize * BYTES_PER_MPI_LIMB); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. include/asm-generic/unaligned.h:32:2: warning: Undefined or garbage valu= e returned to caller [clang-analyzer-core.uninitialized.UndefReturn] return le32_to_cpu(__get_unaligned_t(__le32, p)); ^ lib/crypto/chacha20poly1305.c:183:2: note: Calling 'chacha_init' chacha_init(chacha_state, k, (u8 *)iv); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/crypto/chacha.h:85:2: note: Taking false branch if (IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA)) ^ include/crypto/chacha.h:88:3: note: Calling 'chacha_init_generic' chacha_init_generic(state, key, iv); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/crypto/chacha.h:78:14: note: Calling 'get_unaligned_le32' state[13] =3D get_unaligned_le32(iv + 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/unaligned.h:32:2: note: Undefined or garbage value r= eturned to caller return le32_to_cpu(__get_unaligned_t(__le32, p)); ^ lib/crypto/chacha20poly1305.c:41:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(iv, 0, 8); ^~~~~~ lib/crypto/chacha20poly1305.c:41:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(iv, 0, 8); ^~~~~~ lib/crypto/chacha20poly1305.c:42:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(iv + 8, nonce + 16, 8); ^~~~~~ lib/crypto/chacha20poly1305.c:42:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(iv + 8, nonce + 16, 8); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. >> lib/crypto/chacha20poly1305-selftest.c:8844:2: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&bottom_row[4], nonce, 12); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8844:2: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&bottom_row[4], nonce, 12); ^~~~~~ >> lib/crypto/chacha20poly1305-selftest.c:8902:3: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8902:3: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8924:3: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(computed_output, chacha20poly1305_enc_vectors[i].= input, ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8924:3: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(computed_output, chacha20poly1305_enc_vectors[i].= input, ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8945:3: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8945:3: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8966:3: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(computed_output, chacha20poly1305_dec_vectors[i].= input, ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8966:3: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(computed_output, chacha20poly1305_dec_vectors[i].= input, ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8988:3: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:8988:3: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:9007:3: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:9007:3: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(computed_output, 0, MAXIMUM_TEST_BUFFER_LEN); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:9027:7: warning: Value stored to = 'total_len' is never read [clang-analyzer-deadcode.DeadStores] for (total_len =3D POLY1305_DIGEST_SIZE; IS_ENABLED(DEBUG_CHACHA= 20POLY1305_SLOW_CHUNK_TEST) ^ lib/crypto/chacha20poly1305-selftest.c:9027:7: note: Value stored to 'to= tal_len' is never read lib/crypto/chacha20poly1305-selftest.c:9040:5: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(computed_output, 0, total_len); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:9040:5: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(computed_output, 0, total_len); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:9041:5: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(input, 0, total_len); ^~~~~~ lib/crypto/chacha20poly1305-selftest.c:9041:5: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(input, 0, total_len); ^~~~~~ Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 19 warnings generated. crypto/md5.c:150:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy((char *)mctx->block + (sizeof(mctx->block) - avai= l), ^~~~~~ crypto/md5.c:150:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy((char *)mctx->block + (sizeof(mctx->block) - avai= l), ^~~~~~ crypto/md5.c:155:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), ^~~~~~ crypto/md5.c:155:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), ^~~~~~ crypto/md5.c:163:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(mctx->block, data, sizeof(mctx->block)); ^~~~~~ crypto/md5.c:163:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(mctx->block, data, sizeof(mctx->block)); ^~~~~~ crypto/md5.c:169:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(mctx->block, data, len); ^~~~~~ crypto/md5.c:169:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(mctx->block, data, len); ^~~~~~ crypto/md5.c:183:3: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(p, 0x00, padding + sizeof (u64)); ^~~~~~ crypto/md5.c:183:3: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(p, 0x00, padding + sizeof (u64)); ^~~~~~ crypto/md5.c:189:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(p, 0, padding); ^~~~~~ crypto/md5.c:189:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(p, 0, padding); ^~~~~~ crypto/md5.c:196:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(out, mctx->hash, sizeof(mctx->hash)); ^~~~~~ crypto/md5.c:196:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(out, mctx->hash, sizeof(mctx->hash)); ^~~~~~ crypto/md5.c:197:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(mctx, 0, sizeof(*mctx)); ^~~~~~ crypto/md5.c:197:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 -- ^~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:402:9: note: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 ZSTD_memcpy(dt, &DTableH, sizeof(DTableH)); ^ lib/zstd/decompress/../common/zstd_deps.h:32:28: note: expanded from mac= ro 'ZSTD_memcpy' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:793:13: warning: Call to fun= ction 'memmove' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memmove_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memmove(oLitEnd, match, sequence.matchLength); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:793:13: note: Call to functi= on 'memmove' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memmove_s' in case of C11 ZSTD_memmove(oLitEnd, match, sequence.matchLength); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:798:13: warning: Call to fun= ction 'memmove' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memmove_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memmove(oLitEnd, match, length1); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:798:13: note: Call to functi= on 'memmove' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memmove_s' in case of C11 ZSTD_memmove(oLitEnd, match, length1); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:859:13: warning: Call to fun= ction 'memmove' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memmove_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memmove(oLitEnd, match, sequence.matchLength); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:859:13: note: Call to functi= on 'memmove' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memmove_s' in case of C11 ZSTD_memmove(oLitEnd, match, sequence.matchLength); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:864:13: warning: Call to fun= ction 'memmove' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memmove_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memmove(oLitEnd, match, length1); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:864:13: note: Call to functi= on 'memmove' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memmove_s' in case of C11 ZSTD_memmove(oLitEnd, match, length1); ^ lib/zstd/decompress/../common/zstd_deps.h:33:29: note: expanded from mac= ro 'ZSTD_memmove' #define ZSTD_memmove(d,s,n) __builtin_memmove((d),(s),(n)) ^~~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:1215:13: warning: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memcpy(op, litPtr, lastLLSize); ^ lib/zstd/decompress/../common/zstd_deps.h:32:28: note: expanded from mac= ro 'ZSTD_memcpy' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:1215:13: note: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 ZSTD_memcpy(op, litPtr, lastLLSize); ^ lib/zstd/decompress/../common/zstd_deps.h:32:28: note: expanded from mac= ro 'ZSTD_memcpy' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:1320:13: warning: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memcpy(op, litPtr, lastLLSize); ^ lib/zstd/decompress/../common/zstd_deps.h:32:28: note: expanded from mac= ro 'ZSTD_memcpy' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/decompress/zstd_decompress_block.c:1320:13: note: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 ZSTD_memcpy(op, litPtr, lastLLSize); ^ lib/zstd/decompress/../common/zstd_deps.h:32:28: note: expanded from mac= ro 'ZSTD_memcpy' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ Suppressed 4 warnings (4 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 73 warnings generated. ipc/mqueue.c:327:3: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(&info->attr, 0, sizeof(info->attr)); ^~~~~~ ipc/mqueue.c:327:3: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(&info->attr, 0, sizeof(info->attr)); ^~~~~~ ipc/mqueue.c:631:2: warning: Call to function 'snprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buffer, sizeof(buffer), ^~~~~~~~ ipc/mqueue.c:631:2: note: Call to function 'snprintf' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'snprintf_s' in case of C11 snprintf(buffer, sizeof(buffer), ^~~~~~~~ Suppressed 71 warnings (71 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. >> ipc/mq_sysctl.c:25:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&mq_table, table, sizeof(mq_table)); ^~~~~~ ipc/mq_sysctl.c:25:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(&mq_table, table, sizeof(mq_table)); ^~~~~~ ipc/mq_sysctl.c:35:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&mq_table, table, sizeof(mq_table)); ^~~~~~ ipc/mq_sysctl.c:35:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(&mq_table, table, sizeof(mq_table)); ^~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 39 warnings generated. kernel/params.c:279:3: 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 's= trlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(*(char **)kp->arg, val); ^~~~~~ kernel/params.c:279:3: note: Call to function 'strcpy' is insecure as it= does not provide bounding of the memory buffer. Replace unbounded copy fun= ctions with analogous functions that support length arguments such as 'strl= cpy'. CWE-119 strcpy(*(char **)kp->arg, val); ^~~~~~ kernel/params.c:320:9: warning: Call to function 'sprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buffer, "%c\n", *(bool *)kp->arg ? 'Y' : 'N'); ^~~~~~~ kernel/params.c:320:9: note: Call to function 'sprintf' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'sprintf_s' in case of C11 return sprintf(buffer, "%c\n", *(bool *)kp->arg ? 'Y' : 'N'); ^~~~~~~ kernel/params.c:379:9: warning: Call to function 'sprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buffer, "%c\n", (*(bool *)kp->arg) ? 'N' : 'Y'); ^~~~~~~ kernel/params.c:379:9: note: Call to function 'sprintf' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'sprintf_s' in case of C11 return sprintf(buffer, "%c\n", (*(bool *)kp->arg) ? 'N' : 'Y'); ^~~~~~~ kernel/params.c:519: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 's= trlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(kps->string, val); ^~~~~~ kernel/params.c:519:2: note: Call to function 'strcpy' is insecure as it= does not provide bounding of the memory buffer. Replace unbounded copy fun= ctions with analogous functions that support length arguments such as 'strl= cpy'. CWE-119 strcpy(kps->string, val); ^~~~~~ kernel/params.c:668:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&mk->mp->attrs[mk->mp->num], 0, sizeof(mk->mp->attrs[0])); ^~~~~~ kernel/params.c:668:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&mk->mp->attrs[mk->mp->num], 0, sizeof(mk->mp->attrs[0])); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 52 warnings generated. kernel/kexec_core.c:771:4: warning: Value stored to 'addr' is never read= [clang-analyzer-deadcode.DeadStores] addr =3D old_addr; ^ ~~~~~~~~ kernel/kexec_core.c:771:4: note: Value stored to 'addr' is never read addr =3D old_addr; ^ ~~~~~~~~ kernel/kexec_core.c:791:2: warning: Value stored to 'result' is never re= ad [clang-analyzer-deadcode.DeadStores] result =3D 0; ^ ~ kernel/kexec_core.c:791:2: note: Value stored to 'result' is never read result =3D 0; ^ ~ kernel/kexec_core.c:821:3: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] clear_page(ptr); ^ arch/arm/include/asm/page.h:139:26: note: expanded from macro 'clear_pag= e' #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE) ^~~~~~ kernel/kexec_core.c:821:3: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 clear_page(ptr); ^ arch/arm/include/asm/page.h:139:26: note: expanded from macro 'clear_pag= e' #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE) ^~~~~~ kernel/kexec_core.c:829:4: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, kbuf, uchunk); ^~~~~~ kernel/kexec_core.c:829:4: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(ptr, kbuf, uchunk); ^~~~~~ kernel/kexec_core.c:890:4: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(ptr + uchunk, 0, mchunk - uchunk); ^~~~~~ kernel/kexec_core.c:890:4: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(ptr + uchunk, 0, mchunk - uchunk); ^~~~~~ kernel/kexec_core.c:895:4: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, kbuf, uchunk); ^~~~~~ kernel/kexec_core.c:895:4: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(ptr, kbuf, uchunk); ^~~~~~ kernel/kexec_core.c:1079:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&prstatus, 0, sizeof(prstatus)); ^~~~~~ kernel/kexec_core.c:1079:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(&prstatus, 0, sizeof(prstatus)); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 9 warnings generated. crypto/jitterentropy-kcapi.c:69:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dest, src, n); -- ^ drivers/pwm/core.c:850:6: note: Calling 'IS_ERR' if (IS_ERR(pwm)) ^~~~~~~~~~~ include/linux/err.h:36:9: note: Assuming the condition is false return IS_ERR_VALUE((unsigned long)ptr); ^ include/linux/err.h:22:34: note: expanded from macro 'IS_ERR_VALUE' #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >=3D (unsign= ed long)-MAX_ERRNO) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/err.h:36:2: note: Returning zero, which participates in a = condition later return IS_ERR_VALUE((unsigned long)ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/pwm/core.c:850:6: note: Returning from 'IS_ERR' if (IS_ERR(pwm)) ^~~~~~~~~~~ drivers/pwm/core.c:850:2: note: Taking false branch if (IS_ERR(pwm)) ^ drivers/pwm/core.c:854:6: note: Calling 'IS_ERR' if (IS_ERR(dl)) { ^~~~~~~~~~ include/linux/err.h:36:2: note: Returning zero, which participates in a = condition later return IS_ERR_VALUE((unsigned long)ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/pwm/core.c:854:6: note: Returning from 'IS_ERR' if (IS_ERR(dl)) { ^~~~~~~~~~ drivers/pwm/core.c:854:2: note: Taking false branch if (IS_ERR(dl)) { ^ drivers/pwm/core.c:866:7: note: 'con_id' is null if (!con_id) { ^~~~~~ drivers/pwm/core.c:866:2: note: Taking true branch if (!con_id) { ^ drivers/pwm/core.c:869:7: note: 'err' is < 0 if (err < 0) ^~~ drivers/pwm/core.c:869:3: note: Taking true branch if (err < 0) ^ drivers/pwm/core.c:870:13: note: Access to field 'name' results in a der= eference of a null pointer (loaded from variable 'np') con_id =3D np->name; ^~ drivers/pwm/core.c:906:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/pwm/core.c:906:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. kernel/rcu/tree.c:279:2: warning: Value stored to 'seq' is never read [c= lang-analyzer-deadcode.DeadStores] seq =3D rcu_dynticks_inc(1); ^ ~~~~~~~~~~~~~~~~~~~ kernel/rcu/tree.c:279:2: note: Value stored to 'seq' is never read seq =3D rcu_dynticks_inc(1); ^ ~~~~~~~~~~~~~~~~~~~ kernel/rcu/tree.c:298:2: warning: Value stored to 'seq' is never read [c= lang-analyzer-deadcode.DeadStores] seq =3D rcu_dynticks_inc(1); ^ ~~~~~~~~~~~~~~~~~~~ kernel/rcu/tree.c:298:2: note: Value stored to 'seq' is never read seq =3D rcu_dynticks_inc(1); ^ ~~~~~~~~~~~~~~~~~~~ kernel/rcu/tree.c:2383:19: warning: Value stored to 'rnp' during its ini= tialization is never read [clang-analyzer-deadcode.DeadStores] struct rcu_node *rnp =3D rdp->mynode; ^~~ ~~~~~~~~~~~ kernel/rcu/tree.c:2383:19: note: Value stored to 'rnp' during its initia= lization is never read struct rcu_node *rnp =3D rdp->mynode; ^~~ ~~~~~~~~~~~ kernel/rcu/tree.c:2448:19: warning: Value stored to 'rnp' during its ini= tialization is never read [clang-analyzer-deadcode.DeadStores] struct rcu_node *rnp =3D rdp->mynode; /* Outgoing CPU's rdp & r= np. */ ^~~ ~~~~~~~~~~~ kernel/rcu/tree.c:2448:19: note: Value stored to 'rnp' during its initia= lization is never read struct rcu_node *rnp =3D rdp->mynode; /* Outgoing CPU's rdp & r= np. */ ^~~ ~~~~~~~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 2 warnings generated. Suppressed 2 warnings (2 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (26 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. >> lib/decompress_unlzo.c:163:3: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(in_buf_save, in_buf, in_len); ^~~~~~ lib/decompress_unlzo.c:163:3: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(in_buf_save, in_buf, in_len); ^~~~~~ lib/decompress_unlzo.c:232:4: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(out_buf, in_buf, src_len); ^~~~~~ lib/decompress_unlzo.c:232:4: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(out_buf, in_buf, src_len); ^~~~~~ Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (26 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (26 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. lib/dump_stack.c:35:2: warning: Call to function 'vsnprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] vsnprintf(dump_stack_arch_desc_str, sizeof(dump_stack_arch_desc_= str), ^~~~~~~~~ lib/dump_stack.c:35:2: note: Call to function 'vsnprintf' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'vsnprintf_s' in case of C11 vsnprintf(dump_stack_arch_desc_str, sizeof(dump_stack_arch_desc_= str), ^~~~~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. block/partitions/amiga.c:76:3: warning: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); ^~~~~~~~ block/partitions/amiga.c:76:3: note: Call to function 'snprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'snprintf_s' in case of C11 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); ^~~~~~~~ block/partitions/amiga.c:118:19: warning: The left operand of '<' is a g= arbage value [clang-analyzer-core.UndefinedBinaryOperatorResult] if (dostype[3] < ' ') ~~~~~~~~~~ ^ block/partitions/amiga.c:38:2: note: Loop condition is true. Entering l= oop body for (blk =3D 0; ; blk++, put_dev_sector(sect)) { ^ block/partitions/amiga.c:39:7: note: 'blk' is not equal to RDB_ALLOCATIO= N_LIMIT if (blk =3D=3D RDB_ALLOCATION_LIMIT) ^~~ block/partitions/amiga.c:39:3: note: Taking false branch if (blk =3D=3D RDB_ALLOCATION_LIMIT) ^ block/partitions/amiga.c:42:7: note: Assuming 'data' is non-null if (!data) { ^~~~~ block/partitions/amiga.c:42:3: note: Taking false branch if (!data) { ^ block/partitions/amiga.c:48:7: note: Assuming the condition is false if (*(__be32 *)data !=3D cpu_to_be32(IDNAME_RIGIDDISK)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block/partitions/amiga.c:48:3: note: Taking false branch if (*(__be32 *)data !=3D cpu_to_be32(IDNAME_RIGIDDISK)) ^ block/partitions/amiga.c:52:7: note: Assuming the condition is true if (checksum_block((__be32 *)data, be32_to_cpu(rdb->rdb_= SummedLongs) & 0x7F) =3D=3D 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~ block/partitions/amiga.c:52:3: note: Taking true branch if (checksum_block((__be32 *)data, be32_to_cpu(rdb->rdb_= SummedLongs) & 0x7F) =3D=3D 0) ^ block/partitions/amiga.c:53:4: note: Execution continues on line 70 break; ^ block/partitions/amiga.c:81:17: note: Assuming 'blk' is > 0 for (part =3D 1; blk>0 && part<=3D16; part++, put_dev_sector(sec= t)) { ^~~~~ block/partitions/amiga.c:81:17: note: Left side of '&&' is true block/partitions/amiga.c:81:2: note: Loop condition is true. Entering l= oop body for (part =3D 1; blk>0 && part<=3D16; part++, put_dev_sector(sec= t)) { ^ block/partitions/amiga.c:84:7: note: Assuming 'data' is non-null if (!data) { ^~~~~ block/partitions/amiga.c:84:3: note: Taking false branch if (!data) { ^ block/partitions/amiga.c:92:7: note: Assuming the condition is false if (pb->pb_ID !=3D cpu_to_be32(IDNAME_PARTITION)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block/partitions/amiga.c:92:3: note: Taking false branch if (pb->pb_ID !=3D cpu_to_be32(IDNAME_PARTITION)) ^ block/partitions/amiga.c:94:7: note: Assuming the condition is false if (checksum_block((__be32 *)pb, be32_to_cpu(pb->pb_Summ= edLongs) & 0x7F) !=3D 0 ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~ block/partitions/amiga.c:94:3: note: Taking false branch if (checksum_block((__be32 *)pb, be32_to_cpu(pb->pb_Summ= edLongs) & 0x7F) !=3D 0 ) ^ block/partitions/amiga.c:104:7: note: Assuming 'nr_sects' is not equal t= o 0 if (!nr_sects) ^~~~~~~~~ block/partitions/amiga.c:104:3: note: Taking false branch -- lib/bootconfig.c:290:2: note: Loop condition is true. Entering loop body while (node && node !=3D root) { ^ lib/bootconfig.c:292:7: note: 'depth' is not equal to XBC_DEPTH_MAX if (depth =3D=3D XBC_DEPTH_MAX) ^~~~~ lib/bootconfig.c:292:3: note: Taking false branch if (depth =3D=3D XBC_DEPTH_MAX) ^ lib/bootconfig.c:294:10: note: Calling 'xbc_node_get_parent' node =3D xbc_node_get_parent(node); ^~~~~~~~~~~~~~~~~~~~~~~~~ lib/bootconfig.c:131:9: note: Assuming field 'parent' is not equal to XB= C_NODE_MAX return node->parent =3D=3D XBC_NODE_MAX ? NULL : &xbc_nodes[node= ->parent]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/bootconfig.c:131:9: note: '?' condition is false lib/bootconfig.c:131:2: note: Returning pointer, which participates in a= condition later return node->parent =3D=3D XBC_NODE_MAX ? NULL : &xbc_nodes[node= ->parent]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ lib/bootconfig.c:294:10: note: Returning from 'xbc_node_get_parent' node =3D xbc_node_get_parent(node); ^~~~~~~~~~~~~~~~~~~~~~~~~ lib/bootconfig.c:290:9: note: Assuming 'node' is null while (node && node !=3D root) { ^~~~ lib/bootconfig.c:290:14: note: Left side of '&&' is false while (node && node !=3D root) { ^ lib/bootconfig.c:296:7: note: 'node' is null if (!node && root) ^~~~ lib/bootconfig.c:296:6: note: Left side of '&&' is true if (!node && root) ^ lib/bootconfig.c:296:15: note: Assuming 'root' is null if (!node && root) ^~~~ lib/bootconfig.c:296:2: note: Taking false branch if (!node && root) ^ lib/bootconfig.c:299:2: note: Loop condition is true. Entering loop body while (--depth >=3D 0) { ^ lib/bootconfig.c:300:3: note: Null pointer value stored to 'node' node =3D xbc_nodes + keys[depth]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/bootconfig.c:301:55: note: Passing null pointer value via 1st parame= ter 'node' ret =3D snprintf(buf, size, "%s%s", xbc_node_get_data(no= de), ^~~~ lib/bootconfig.c:301:37: note: Calling 'xbc_node_get_data' ret =3D snprintf(buf, size, "%s%s", xbc_node_get_data(no= de), ^~~~~~~~~~~~~~~~~~~~~~~ lib/bootconfig.c:169:15: note: Access to field 'data' results in a deref= erence of a null pointer (loaded from variable 'node') int offset =3D node->data & ~XBC_VALUE; ^~~~ lib/bootconfig.c:301:9: warning: Call to function 'snprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(buf, size, "%s%s", xbc_node_get_data(no= de), ^~~~~~~~ lib/bootconfig.c:301:9: note: Call to function 'snprintf' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'snprintf_s' in case of C11 ret =3D snprintf(buf, size, "%s%s", xbc_node_get_data(no= de), ^~~~~~~~ lib/bootconfig.c:945:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(xbc_data, data, size); ^~~~~~ lib/bootconfig.c:945:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(xbc_data, data, size); ^~~~~~ lib/bootconfig.c:956:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(xbc_nodes, 0, sizeof(struct xbc_node) * XBC_NODE_MAX); ^~~~~~ lib/bootconfig.c:956:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(xbc_nodes, 0, sizeof(struct xbc_node) * XBC_NODE_MAX); ^~~~~~ Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/dma/dw/dw.c:93:2: warning: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(dw->name, sizeof(dw->name), "dw:dmac%d", id); ^~~~~~~~ drivers/dma/dw/dw.c:93:2: note: Call to function 'snprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'snprintf_s' in case of C11 snprintf(dw->name, sizeof(dw->name), "dw:dmac%d", id); ^~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/dma/dw/idma32.c:219:2: warning: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(dw->name, sizeof(dw->name), "idma32:dmac%d", id); ^~~~~~~~ drivers/dma/dw/idma32.c:219:2: note: Call to function 'snprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'snprintf_s' in case of C11 snprintf(dw->name, sizeof(dw->name), "idma32:dmac%d", id); ^~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. >> drivers/dma/sh/shdma-base.c:334:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&cb, 0, sizeof(cb)); ^~~~~~ drivers/dma/sh/shdma-base.c:334:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&cb, 0, sizeof(cb)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. fs/xfs/libxfs/xfs_rtbitmap.c:349:8: warning: Although the value stored t= o 'bufp' is used in the enclosing expression, the value is never actually r= ead from 'bufp' [clang-analyzer-deadcode.DeadStores] b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ fs/xfs/libxfs/xfs_rtbitmap.c:349:8: note: Although the value stored to '= bufp' is used in the enclosing expression, the value is never actually read= from 'bufp' b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ fs/xfs/libxfs/xfs_rtbitmap.c:394:8: warning: Although the value stored t= o 'bufp' is used in the enclosing expression, the value is never actually r= ead from 'bufp' [clang-analyzer-deadcode.DeadStores] b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ fs/xfs/libxfs/xfs_rtbitmap.c:394:8: note: Although the value stored to '= bufp' is used in the enclosing expression, the value is never actually read= from 'bufp' b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ fs/xfs/libxfs/xfs_rtbitmap.c:847:8: warning: Although the value stored t= o 'bufp' is used in the enclosing expression, the value is never actually r= ead from 'bufp' [clang-analyzer-deadcode.DeadStores] b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ fs/xfs/libxfs/xfs_rtbitmap.c:847:8: note: Although the value stored to '= bufp' is used in the enclosing expression, the value is never actually read= from 'bufp' b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ fs/xfs/libxfs/xfs_rtbitmap.c:893:8: warning: Although the value stored t= o 'bufp' is used in the enclosing expression, the value is never actually r= ead from 'bufp' [clang-analyzer-deadcode.DeadStores] b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ fs/xfs/libxfs/xfs_rtbitmap.c:893:8: note: Although the value stored to '= bufp' is used in the enclosing expression, the value is never actually read= from 'bufp' b =3D bufp =3D bp->b_addr; ^ ~~~~~~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 75 warnings generated. drivers/base/core.c:542:2: warning: Call to function 'snprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, len, "consumer:%s:%s", dev_bus_name(con), dev_name= (con)); ^~~~~~~~ drivers/base/core.c:542:2: note: Call to function 'snprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'snprintf_s' in case of C11 snprintf(buf, len, "consumer:%s:%s", dev_bus_name(con), dev_name= (con)); ^~~~~~~~ drivers/base/core.c:547:2: warning: Call to function 'snprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name= (sup)); ^~~~~~~~ drivers/base/core.c:547:2: note: Call to function 'snprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'snprintf_s' in case of C11 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name= (sup)); ^~~~~~~~ drivers/base/core.c:555:2: warning: Call to function 'snprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, len, "consumer:%s:%s", dev_bus_name(con), dev_name= (con)); ^~~~~~~~ drivers/base/core.c:555:2: note: Call to function 'snprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'snprintf_s' in case of C11 snprintf(buf, len, "consumer:%s:%s", dev_bus_name(con), dev_name= (con)); ^~~~~~~~ drivers/base/core.c:589:3: warning: Call to function 'snprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), = dev_name(sup)); ^~~~~~~~ drivers/base/core.c:589:3: note: Call to function 'snprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'snprintf_s' in case of C11 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), = dev_name(sup)); ^~~~~~~~ drivers/base/core.c:592:2: warning: Call to function 'snprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, len, "consumer:%s:%s", dev_bus_name(con), dev_name= (con)); ^~~~~~~~ drivers/base/core.c:592:2: note: Call to function 'snprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'snprintf_s' in case of C11 snprintf(buf, len, "consumer:%s:%s", dev_bus_name(con), dev_name= (con)); ^~~~~~~~ drivers/base/core.c:2690:9: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] return print_dev_t(buf, dev->devt); ^ include/linux/kdev_t.h:15:2: note: expanded from macro 'print_dev_t' sprintf((buffer), "%u:%u\n", MAJOR(dev), MINOR(dev)) ^~~~~~~ drivers/base/core.c:2690:9: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 return print_dev_t(buf, dev->devt); ^ include/linux/kdev_t.h:15:2: note: expanded from macro 'print_dev_t' sprintf((buffer), "%u:%u\n", MAJOR(dev), MINOR(dev)) ^~~~~~~ drivers/base/core.c:3229:3: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] format_dev_t(devt_str, dev->devt); ^ include/linux/kdev_t.h:19:3: note: expanded from macro 'format_dev_t' sprintf(buffer, "%u:%u", MAJOR(dev), MINOR(dev)); \ ^~~~~~~ drivers/base/core.c:3229:3: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 format_dev_t(devt_str, dev->devt); ^ include/linux/kdev_t.h:19:3: note: expanded from macro 'format_dev_t' sprintf(buffer, "%u:%u", MAJOR(dev), MINOR(dev)); \ ^~~~~~~ drivers/base/core.c:3242:3: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] format_dev_t(devt_str, dev->devt); ^ include/linux/kdev_t.h:19:3: note: expanded from macro 'format_dev_t' sprintf(buffer, "%u:%u", MAJOR(dev), MINOR(dev)); \ -- ^ ~~~~~~~~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:806:9: warning: 4th function call arg= ument is an uninitialized value [clang-analyzer-core.CallAndMessage] return sprintf(buf, "%s %d %d %d\n", res, ^ drivers/misc/lis3lv02d/lis3lv02d.c:794:10: note: Calling 'lis3lv02d_self= test' switch (lis3lv02d_selftest(lis3, values)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:276:6: note: Assuming field 'whoami' = is not equal to WAI_8B if (lis3->whoami =3D=3D WAI_8B) { ^~~~~~~~~~~~~~~~~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:276:2: note: Taking false branch if (lis3->whoami =3D=3D WAI_8B) { ^ drivers/misc/lis3lv02d/lis3lv02d.c:289:7: note: Assuming field 'whoami' = is equal to WAI_3DC if ((lis3->whoami =3D=3D WAI_3DC) || (lis3->whoami =3D=3D WAI_3D= LH)) { ^~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:289:32: note: Left side of '||' is tr= ue if ((lis3->whoami =3D=3D WAI_3DC) || (lis3->whoami =3D=3D WAI_3D= LH)) { ^ drivers/misc/lis3lv02d/lis3lv02d.c:303:6: note: 'ret' is -6 if (ret) ^~~ drivers/misc/lis3lv02d/lis3lv02d.c:303:2: note: Taking true branch if (ret) ^ drivers/misc/lis3lv02d/lis3lv02d.c:304:3: note: Control jumps to line 356 goto fail; ^ drivers/misc/lis3lv02d/lis3lv02d.c:357:2: note: Returning without writin= g to '*results' return ret; ^ drivers/misc/lis3lv02d/lis3lv02d.c:794:10: note: Returning from 'lis3lv0= 2d_selftest' switch (lis3lv02d_selftest(lis3, values)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:794:2: note: Control jumps to the 'de= fault' case at line 802 switch (lis3lv02d_selftest(lis3, values)) { ^ drivers/misc/lis3lv02d/lis3lv02d.c:804:3: note: Execution continues on = line 806 break; ^ drivers/misc/lis3lv02d/lis3lv02d.c:806:9: note: 4th function call argume= nt is an uninitialized value return sprintf(buf, "%s %d %d %d\n", res, ^ drivers/misc/lis3lv02d/lis3lv02d.c:806:9: warning: Call to function 'spr= intf' is insecure as it does not provide bounding of the memory buffer or s= ecurity checks introduced in the C11 standard. Replace with analogous funct= ions that support length arguments or provides boundary checks such as 'spr= intf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUns= afeBufferHandling] return sprintf(buf, "%s %d %d %d\n", res, ^~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:806:9: note: Call to function 'sprint= f' is insecure as it does not provide bounding of the memory buffer or secu= rity checks introduced in the C11 standard. Replace with analogous function= s that support length arguments or provides boundary checks such as 'sprint= f_s' in case of C11 return sprintf(buf, "%s %d %d %d\n", res, ^~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:820:9: warning: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "(%d,%d,%d)\n", x, y, z); ^~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:820:9: note: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "(%d,%d,%d)\n", x, y, z); ^~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:832:9: warning: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", lis3->odrs[odr_idx]); ^~~~~~~ drivers/misc/lis3lv02d/lis3lv02d.c:832:9: note: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", lis3->odrs[odr_idx]); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. drivers/dma/sf-pdma/sf-pdma.c:59:6: warning: Access to field 'desc' resu= lts in a dereference of a null pointer (loaded from variable 'chan') [clang= -analyzer-core.NullDereference] if (chan->desc && !chan->desc->in_use) { ^ drivers/dma/sf-pdma/sf-pdma.c:95:2: note: 'chan' initialized here struct sf_pdma_chan *chan =3D to_sf_pdma_chan(dchan); ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/dma/sf-pdma/sf-pdma.c:99:6: note: Assuming 'chan' is null if (chan && (!len || !dest || !src)) { ^~~~ drivers/dma/sf-pdma/sf-pdma.c:99:11: note: Left side of '&&' is false if (chan && (!len || !dest || !src)) { ^ drivers/dma/sf-pdma/sf-pdma.c:105:28: note: Passing null pointer value v= ia 1st parameter 'chan' desc =3D sf_pdma_alloc_desc(chan); ^~~~ drivers/dma/sf-pdma/sf-pdma.c:105:9: note: Calling 'sf_pdma_alloc_desc' desc =3D sf_pdma_alloc_desc(chan); ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/dma/sf-pdma/sf-pdma.c:57:2: note: Loop condition is false. Exit= ing loop spin_lock_irqsave(&chan->lock, flags); ^ include/linux/spinlock.h:379:2: note: expanded from macro 'spin_lock_irq= save' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^ include/linux/spinlock.h:240:2: note: expanded from macro 'raw_spin_lock= _irqsave' do { \ ^ drivers/dma/sf-pdma/sf-pdma.c:57:2: note: Loop condition is false. Exit= ing loop spin_lock_irqsave(&chan->lock, flags); ^ include/linux/spinlock.h:377:43: note: expanded from macro 'spin_lock_ir= qsave' #define spin_lock_irqsave(lock, flags) \ ^ drivers/dma/sf-pdma/sf-pdma.c:59:6: note: Access to field 'desc' results= in a dereference of a null pointer (loaded from variable 'chan') if (chan->desc && !chan->desc->in_use) { ^~~~ >> drivers/dma/sf-pdma/sf-pdma.c:126:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&chan->cfg, cfg, sizeof(*cfg)); ^~~~~~ drivers/dma/sf-pdma/sf-pdma.c:126:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(&chan->cfg, cfg, sizeof(*cfg)); ^~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/regulator/max8660.c:396:3: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(of_node, 0, sizeof(of_node)); ^~~~~~ drivers/regulator/max8660.c:396:3: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(of_node, 0, sizeof(of_node)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/regulator/max8997-regulator.c:1047:2: warning: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(max8997->buck125_gpios, pdata->buck125_gpios, sizeof(int)= * 3); ^~~~~~ drivers/regulator/max8997-regulator.c:1047:2: note: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(max8997->buck125_gpios, pdata->buck125_gpios, sizeof(int)= * 3); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/edac/edac_device_sysfs.c:35:9: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", ctl_info->log_ue); ^~~~~~~ drivers/edac/edac_device_sysfs.c:35:9: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", ctl_info->log_ue); ^~~~~~~ drivers/edac/edac_device_sysfs.c:52:9: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", ctl_info->log_ce); ^~~~~~~ drivers/edac/edac_device_sysfs.c:52:9: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", ctl_info->log_ce); ^~~~~~~ drivers/edac/edac_device_sysfs.c:69:9: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", ctl_info->panic_on_ue); ^~~~~~~ drivers/edac/edac_device_sysfs.c:69:9: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", ctl_info->panic_on_ue); ^~~~~~~ drivers/edac/edac_device_sysfs.c:86:9: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", ctl_info->poll_msec); ^~~~~~~ drivers/edac/edac_device_sysfs.c:86:9: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", ctl_info->poll_msec); ^~~~~~~ drivers/edac/edac_device_sysfs.c:245:2: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&edac_dev->kobj, 0, sizeof(struct kobject)); ^~~~~~ drivers/edac/edac_device_sysfs.c:245:2: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(&edac_dev->kobj, 0, sizeof(struct kobject)); ^~~~~~ drivers/edac/edac_device_sysfs.c:312:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", instance->counters.ue_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:312:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", instance->counters.ue_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:318:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", instance->counters.ce_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:318:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", instance->counters.ce_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:419:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", block->counters.ue_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:419:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", block->counters.ue_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:427:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(data, "%u\n", block->counters.ce_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:427:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(data, "%u\n", block->counters.ce_count); ^~~~~~~ drivers/edac/edac_device_sysfs.c:523:2: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&block->kobj, 0, sizeof(struct kobject)); ^~~~~~ drivers/edac/edac_device_sysfs.c:523:2: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(&block->kobj, 0, sizeof(struct kobject)); -- ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1220:10: warning: Call to functio= n 'sprintf' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'sprintf_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "none\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1220:10: note: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "none\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1222:10: warning: Call to functio= n 'sprintf' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'sprintf_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "host\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1222:10: note: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "host\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1224:10: warning: Call to functio= n 'sprintf' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'sprintf_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "dedicated\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1224:10: note: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "dedicated\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1226:10: warning: Call to functio= n 'sprintf' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'sprintf_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "boost\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1226:10: note: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "boost\n"); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1244:6: warning: Call to function= 'sscanf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sscanf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(buf, "%x %x", ®, &val) !=3D 2) ^~~~~~ drivers/power/supply/bq2415x_charger.c:1244:6: note: Call to function 's= scanf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sscanf_s' in case of C11 if (sscanf(buf, "%x %x", ®, &val) !=3D 2) ^~~~~~ drivers/power/supply/bq2415x_charger.c:1264:10: warning: Call to functio= n 'sprintf' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'sprintf_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%#.2x=3Derror %d\n", reg, ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1264:10: note: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%#.2x=3Derror %d\n", reg, ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1265:9: warning: Call to function= 'sprintf' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'sprintf_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%#.2x=3D%#.2x\n", reg, ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1265:9: note: Call to function 's= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%#.2x=3D%#.2x\n", reg, ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1341:9: warning: Call to function= 'sprintf' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'sprintf_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1341:9: note: Call to function 's= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1404:9: warning: Call to function= 'sprintf' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'sprintf_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1404:9: note: Call to function 's= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1501:3: warning: Call to function= 'sprintf' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'sprintf_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(revstr, "1.%d", ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1501:3: note: Call to function 's= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'sprintf_s' in case of C11 sprintf(revstr, "1.%d", ret); ^~~~~~~ drivers/power/supply/bq2415x_charger.c:1622:3: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&bq->init_data, pdata, sizeof(bq->init_data)); ^~~~~~ drivers/power/supply/bq2415x_charger.c:1622:3: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&bq->init_data, pdata, sizeof(bq->init_data)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/pinctrl/devicetree.c:380:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(out_args, 0, sizeof(*out_args)); ^~~~~~ drivers/pinctrl/devicetree.c:380:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(out_args, 0, sizeof(*out_args)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/pinctrl/pinctrl-ocelot.c:1282:3: warning: Value stored to 'ret' = is never read [clang-analyzer-deadcode.DeadStores] ret =3D 0; ^ ~ drivers/pinctrl/pinctrl-ocelot.c:1282:3: note: Value stored to 'ret' is = never read ret =3D 0; ^ ~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 24 warnings generated. >> drivers/platform/chrome/cros_ec_proto.c:79:2: warning: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(out + sizeof(*request), msg->data, msg->outsize); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:79:2: note: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(out + sizeof(*request), msg->data, msg->outsize); ^~~~~~ >> drivers/platform/chrome/cros_ec_proto.c:277:2: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(msg, 0, sizeof(*msg)); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:277:2: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(msg, 0, sizeof(*msg)); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:661:2: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(msg, 0, sizeof(*msg)); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:661:2: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(msg, 0, sizeof(*msg)); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:688:2: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ec_dev->event_data.data, msg->data, ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:688:2: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&ec_dev->event_data.data, msg->data, ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:824:4: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(features, 0, sizeof(*features)); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:824:4: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(features, 0, sizeof(*features)); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:935:3: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(msg->data, outdata, outsize); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:935:3: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(msg->data, outdata, outsize); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:942:3: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(indata, msg->data, insize); ^~~~~~ drivers/platform/chrome/cros_ec_proto.c:942:3: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(indata, msg->data, insize); ^~~~~~ Suppressed 17 warnings (10 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. fs/splice.c:725:2: warning: Undefined or garbage value returned to calle= r [clang-analyzer-core.uninitialized.UndefReturn] return ret; ^ ~~~ fs/splice.c:630:2: note: 'ret' declared without an initial value ssize_t ret; ^~~~~~~~~~~ fs/splice.c:632:15: note: Assuming 'array' is non-null if (unlikely(!array)) ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ fs/splice.c:632:2: note: Taking false branch if (unlikely(!array)) ^ fs/splice.c:638:2: note: Loop condition is false. Execution continues on= line 717 while (sd.total_len) { ^ fs/splice.c:722:9: note: Field 'num_spliced' is 0 if (sd.num_spliced) ^ fs/splice.c:722:2: note: Taking false branch if (sd.num_spliced) ^ fs/splice.c:725:2: note: Undefined or garbage value returned to caller return ret; ^ ~~~ fs/splice.c:853:2: warning: Value stored to 'ret' is never read [clang-a= nalyzer-deadcode.DeadStores] ret =3D 0; ^ ~ fs/splice.c:853:2: note: Value stored to 'ret' is never read ret =3D 0; ^ ~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. fs/notify/mark.c:841:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(mark, 0, sizeof(*mark)); ^~~~~~ fs/notify/mark.c:841:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(mark, 0, sizeof(*mark)); ^~~~~~ Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. drivers/fpga/fpga-mgr.c:447:9: warning: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHa= ndling] return sprintf(buf, "%s\n", mgr->name); -- ^ drivers/i3c/device.c:219:2: note: Returning from 'i3c_device_get_info' i3c_device_get_info(i3cdev, &devinfo); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/i3c/device.c:221:10: note: The left operand of '&' is a garbage = value manuf =3D I3C_PID_MANUF_ID(devinfo.pid); ^ include/linux/i3c/device.h:79:40: note: expanded from macro 'I3C_PID_MAN= UF_ID' #define I3C_PID_MANUF_ID(pid) (((pid) & GENMASK_ULL(47, 33)) >= > 33) ~~~ ^ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 57 warnings generated. drivers/i3c/master.c:141:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%x\n", desc->info.bcr); ^~~~~~~ drivers/i3c/master.c:141:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%x\n", desc->info.bcr); ^~~~~~~ drivers/i3c/master.c:158:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%x\n", desc->info.dcr); ^~~~~~~ drivers/i3c/master.c:158:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%x\n", desc->info.dcr); ^~~~~~~ drivers/i3c/master.c:175:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%llx\n", desc->info.pid); ^~~~~~~ drivers/i3c/master.c:175:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%llx\n", desc->info.pid); ^~~~~~~ drivers/i3c/master.c:192:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%02x\n", desc->info.dyn_addr); ^~~~~~~ drivers/i3c/master.c:192:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%02x\n", desc->info.dyn_addr); ^~~~~~~ drivers/i3c/master.c:223:9: warning: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandl= ing] ret =3D sprintf(buf + offset, offset ? " %s" : "%s", ^~~~~~~ drivers/i3c/master.c:223:9: note: Call to function 'sprintf' is insecure= as it does not provide bounding of the memory buffer or security checks in= troduced in the C11 standard. Replace with analogous functions that support= length arguments or provides boundary checks such as 'sprintf_s' in case o= f C11 ret =3D sprintf(buf + offset, offset ? " %s" : "%s", ^~~~~~~ drivers/i3c/master.c:231:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf + offset, "\n"); ^~~~~~~ drivers/i3c/master.c:231:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf + offset, "\n"); ^~~~~~~ drivers/i3c/master.c:257:10: warning: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "i3c:dcr%02Xmanuf%04X", devinfo.dcr, ^~~~~~~ drivers/i3c/master.c:257:10: note: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "i3c:dcr%02Xmanuf%04X", devinfo.dcr, ^~~~~~~ drivers/i3c/master.c:260:9: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "i3c:dcr%02Xmanuf%04Xpart%04Xext%04X", ^~~~~~~ drivers/i3c/master.c:260:9: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "i3c:dcr%02Xmanuf%04Xpart%04Xext%04X", ^~~~~~~ drivers/i3c/master.c:462:9: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "unknown\n"); ^~~~~~~ drivers/i3c/master.c:462:9: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "unknown\n"); ^~~~~~~ drivers/i3c/master.c:464:9: warning: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandl= ing] ret =3D sprintf(buf, "%s\n", i3c_bus_mode_strings[i3cbus= ->mode]); ^~~~~~~ drivers/i3c/master.c:464:9: note: Call to function 'sprintf' is insecure= as it does not provide bounding of the memory buffer or security checks in= troduced in the C11 standard. Replace with analogous functions that support= length arguments or provides boundary checks such as 'sprintf_s' in case o= f C11 ret =3D sprintf(buf, "%s\n", i3c_bus_mode_strings[i3cbus= ->mode]); ^~~~~~~ drivers/i3c/master.c:479:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%d-%llx\n", i3cbus->id, ^~~~~~~ drivers/i3c/master.c:479:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%d-%llx\n", i3cbus->id, ^~~~~~~ drivers/i3c/master.c:495:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%ld\n", i3cbus->scl_rate.i3c); ^~~~~~~ drivers/i3c/master.c:495:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%ld\n", i3cbus->scl_rate.i3c); ^~~~~~~ drivers/i3c/master.c:510:8: warning: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%ld\n", i3cbus->scl_rate.i2c); ^~~~~~~ drivers/i3c/master.c:510:8: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%ld\n", i3cbus->scl_rate.i2c); ^~~~~~~ drivers/i3c/master.c:2183:2: warning: Call to function 'strncpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(adap->name, dev_name(master->dev.parent), sizeof(adap->n= ame)); ^~~~~~~ drivers/i3c/master.c:2183:2: note: Call to function 'strncpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'strncpy_s' in case of C11 strncpy(adap->name, dev_name(master->dev.parent), sizeof(adap->n= ame)); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. >> kernel/trace/trace_kprobe.c:148:3: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); ^~~~~~~~ kernel/trace/trace_kprobe.c:148:3: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, sizeof(buf), "0x%p", tk->rp.kp.addr); ^~~~~~~~ kernel/trace/trace_kprobe.c:150:3: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, sizeof(buf), "%s+%u", ^~~~~~~~ kernel/trace/trace_kprobe.c:150:3: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, sizeof(buf), "%s+%u", ^~~~~~~~ kernel/trace/trace_kprobe.c:153:3: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, sizeof(buf), "%s", trace_kprobe_symbol(tk)= ); ^~~~~~~~ kernel/trace/trace_kprobe.c:153:3: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, sizeof(buf), "%s", trace_kprobe_symbol(tk)= ); ^~~~~~~~ >> kernel/trace/trace_kprobe.c:775:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, &argv[0][1], len); ^~~~~~ kernel/trace/trace_kprobe.c:775:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, &argv[0][1], len); ^~~~~~ kernel/trace/trace_kprobe.c:843:4: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, MAX_EVENT_NAME_LEN, "%c_%s_%ld", ^~~~~~~~ kernel/trace/trace_kprobe.c:843:4: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, MAX_EVENT_NAME_LEN, "%c_%s_%ld", ^~~~~~~~ kernel/trace/trace_kprobe.c:846:4: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, MAX_EVENT_NAME_LEN, "%c_0x%p", ^~~~~~~~ kernel/trace/trace_kprobe.c:846:4: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, MAX_EVENT_NAME_LEN, "%c_0x%p", ^~~~~~~~ kernel/trace/trace_kprobe.c:975:3: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, MAX_EVENT_NAME_LEN, "r:kprobes/%s", name); ^~~~~~~~ kernel/trace/trace_kprobe.c:975:3: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, MAX_EVENT_NAME_LEN, "r:kprobes/%s", name); ^~~~~~~~ kernel/trace/trace_kprobe.c:977:3: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, MAX_EVENT_NAME_LEN, "p:kprobes/%s", name); ^~~~~~~~ kernel/trace/trace_kprobe.c:977:3: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, MAX_EVENT_NAME_LEN, "p:kprobes/%s", name); ^~~~~~~~ kernel/trace/trace_kprobe.c:1077:2: warning: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, MAX_EVENT_NAME_LEN, "-:%s", name); ^~~~~~~~ kernel/trace/trace_kprobe.c:1077:2: note: Call to function 'snprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf, MAX_EVENT_NAME_LEN, "-:%s", name); ^~~~~~~~ >> kernel/trace/trace_kprobe.c:1595:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&entry[1], 0, dsize); ^~~~~~ kernel/trace/trace_kprobe.c:1595:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(&entry[1], 0, dsize); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 2 warnings generated. 4 warnings generated. lib/zstd/common/fse_decompress.c:101:9: warning: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memcpy(dt, &DTableH, sizeof(DTableH)); ^ lib/zstd/common/zstd_deps.h:32:28: note: expanded from macro 'ZSTD_memcp= y' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/common/fse_decompress.c:101:9: note: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 ZSTD_memcpy(dt, &DTableH, sizeof(DTableH)); ^ lib/zstd/common/zstd_deps.h:32:28: note: expanded from macro 'ZSTD_memcp= y' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/mfd/sky81452.c:47:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cells, 0, sizeof(cells)); ^~~~~~ drivers/mfd/sky81452.c:47:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(cells, 0, sizeof(cells)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. Suppressed 17 warnings (17 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. Suppressed 38 warnings (38 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 21 warnings generated. Suppressed 21 warnings (21 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. drivers/scsi/sg.c:504:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(old_hdr->sense_buffer, srp->sense_b, ^~~~~~ drivers/scsi/sg.c:504:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(old_hdr->sense_buffer, srp->sense_b, ^~~~~~ drivers/scsi/sg.c:702:3: warning: 4th function call argument is an unini= tialized value [clang-analyzer-core.CallAndMessage] printk_ratelimited(KERN_WARNING ^ include/linux/printk.h:640:3: note: expanded from macro 'printk_ratelimi= ted' printk(fmt, ##__VA_ARGS__); \ ^ ~~~~~~~~~~~ include/linux/printk.h:446:44: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^ ~~~~~~~~~~~ include/linux/printk.h:418:3: note: expanded from macro 'printk_index_wr= ap' _p_func(_fmt, ##__VA_ARGS__); \ ^ ~~~~~~~~~~~ drivers/scsi/sg.c:616:11: note: Calling 'sg_check_file_access' retval =3D sg_check_file_access(filp, __func__); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/sg.c:222:22: note: Left side of '&&' is false if (filp->f_cred !=3D current_real_cred()) { ^ include/linux/cred.h:308:2: note: expanded from macro 'current_real_cred' rcu_dereference_protected(current->real_cred, 1) ^ include/linux/rcupdate.h:594:2: note: expanded from macro 'rcu_dereferen= ce_protected' __rcu_dereference_protected((p), __UNIQUE_ID(rcu), (c), __rcu) ^ include/linux/rcupdate.h:398:2: note: expanded from macro '__rcu_derefer= ence_protected' RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() u= sage"); \ ^ include/linux/rcupdate.h:319:11: note: expanded from macro 'RCU_LOCKDEP_= WARN' if ((c) && debug_lockdep_rcu_enabled() && !__warned) { \ ^ drivers/scsi/sg.c:222:22: note: Loop condition is false. Exiting loop if (filp->f_cred !=3D current_real_cred()) { ^ include/linux/cred.h:308:2: note: expanded from macro 'current_real_cred' -- ^ include/linux/hid.h:1035:2: note: Taking true branch if (unlikely(c > limit || !bmap)) { ^ include/linux/hid.h:1036:3: note: Assuming the condition is true pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:639:6: note: expanded from macro 'printk_ratelimi= ted' if (__ratelimit(&_rs)) \ ^~~~~~~~~~~~~~~~~ include/linux/ratelimit_types.h:41:28: note: expanded from macro '__rate= limit' #define __ratelimit(state) ___ratelimit(state, __func__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/hid.h:1036:3: note: Taking true branch pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^ include/linux/printk.h:639:2: note: expanded from macro 'printk_ratelimi= ted' if (__ratelimit(&_rs)) \ ^ include/linux/hid.h:1036:3: note: Loop condition is false. Exiting loop pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^ include/linux/printk.h:640:3: note: expanded from macro 'printk_ratelimi= ted' printk(fmt, ##__VA_ARGS__); \ ^ include/linux/printk.h:446:26: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^ include/linux/printk.h:417:3: note: expanded from macro 'printk_index_wr= ap' __printk_index_emit(_fmt, NULL, NULL); \ ^ include/linux/printk.h:392:34: note: expanded from macro '__printk_index= _emit' #define __printk_index_emit(...) do {} while (0) ^ include/linux/hid.h:1037:9: note: Access to field 'name' results in a de= reference of a null pointer (loaded from variable 'input') input->name, c, type); ^ include/linux/printk.h:656:49: note: expanded from macro 'pr_warn_rateli= mited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:640:17: note: expanded from macro 'printk_ratelim= ited' printk(fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ include/linux/printk.h:446:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:418:19: note: expanded from macro 'printk_index_w= rap' _p_func(_fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. block/blk-crypto-profile.c:80:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(profile, 0, sizeof(*profile)); ^~~~~~ block/blk-crypto-profile.c:80:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(profile, 0, sizeof(*profile)); ^~~~~~ block/blk-crypto-profile.c:491:3: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(parent->modes_supported, 0, ^~~~~~ block/blk-crypto-profile.c:491:3: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(parent->modes_supported, 0, ^~~~~~ block/blk-crypto-profile.c:555:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dst->modes_supported, src->modes_supported, ^~~~~~ block/blk-crypto-profile.c:555:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(dst->modes_supported, src->modes_supported, ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 20 warnings generated. drivers/cpufreq/s3c24xx-cpufreq.c:65:21: warning: Although the value sto= red to 'armclk' is used in the enclosing expression, the value is never act= ually read from 'armclk' [clang-analyzer-deadcode.DeadStores] cfg->freq.armclk =3D armclk =3D clk_get_rate(clk_arm); ^ ~~~~~~~~~~~~~~~~~~~~~ drivers/cpufreq/s3c24xx-cpufreq.c:65:21: note: Although the value stored= to 'armclk' is used in the enclosing expression, the value is never actual= ly read from 'armclk' cfg->freq.armclk =3D armclk =3D clk_get_rate(clk_arm); ^ ~~~~~~~~~~~~~~~~~~~~~ >> drivers/cpufreq/s3c24xx-cpufreq.c:635:3: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vals, plls, size); ^~~~~~ drivers/cpufreq/s3c24xx-cpufreq.c:635:3: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(vals, plls, size); ^~~~~~ include/linux/cpufreq.h:1022:22: warning: Branch condition evaluates to = a garbage value [clang-analyzer-core.uninitialized.Branch] bool efficiencies =3D policy->efficiencies_available && ^ drivers/cpufreq/s3c24xx-cpufreq.c:280:6: note: Assuming 'target_freq' is= not equal to 'last_target' if (target_freq =3D=3D last_target) ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/cpufreq/s3c24xx-cpufreq.c:280:2: note: Taking false branch if (target_freq =3D=3D last_target) ^ drivers/cpufreq/s3c24xx-cpufreq.c:285:2: note: Loop condition is false. = Exiting loop s3c_freq_dbg("%s: policy %p, target %u, relation %u\n", ^ include/linux/soc/samsung/s3c-cpufreq-core.h:260:28: note: expanded from= macro 's3c_freq_dbg' #define s3c_freq_dbg(x...) printk(KERN_INFO x) ^ include/linux/printk.h:446:26: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^ include/linux/printk.h:417:3: note: expanded from macro 'printk_index_wr= ap' __printk_index_emit(_fmt, NULL, NULL); \ ^ include/linux/printk.h:392:34: note: expanded from macro '__printk_index= _emit' #define __printk_index_emit(...) do {} while (0) ^ drivers/cpufreq/s3c24xx-cpufreq.c:288:6: note: Assuming 'ftab' is null if (ftab) { ^~~~ drivers/cpufreq/s3c24xx-cpufreq.c:288:2: note: Taking false branch if (ftab) { ^ drivers/cpufreq/s3c24xx-cpufreq.c:301:6: note: Assuming 'pll_reg' is non= -null if (!pll_reg || cpu_cur.lock_pll) { ^~~~~~~~ drivers/cpufreq/s3c24xx-cpufreq.c:301:6: note: Left side of '||' is false drivers/cpufreq/s3c24xx-cpufreq.c:301:18: note: Assuming field 'lock_pll= ' is 0 if (!pll_reg || cpu_cur.lock_pll) { ^~~~~~~~~~~~~~~~ drivers/cpufreq/s3c24xx-cpufreq.c:301:2: note: Taking false branch if (!pll_reg || cpu_cur.lock_pll) { ^ drivers/cpufreq/s3c24xx-cpufreq.c:320:11: note: Calling 'cpufreq_frequen= cy_table_target' index =3D cpufreq_frequency_table_target(&tmp_policy, ta= rget_freq, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~ include/linux/cpufreq.h:1022:22: note: Branch condition evaluates to a g= arbage value bool efficiencies =3D policy->efficiencies_available && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 17 warnings (16 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> drivers/regulator/pwm-regulator.c:335:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&drvdata->desc, &pwm_regulator_desc, sizeof(drvdata->desc= )); ^~~~~~ drivers/regulator/pwm-regulator.c:335:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&drvdata->desc, &pwm_regulator_desc, sizeof(drvdata->desc= )); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/regulator/rk808-regulator.c:274:3: warning: Value stored to 'ret= ' is never read [clang-analyzer-deadcode.DeadStores] ret =3D regmap_write(rdev->regmap, rdev->desc->vsel_reg,= val); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ drivers/regulator/rk808-regulator.c:274:3: note: Value stored to 'ret' i= s never read ret =3D regmap_write(rdev->regmap, rdev->desc->vsel_reg,= val); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. include/linux/hid.h:1037:9: warning: Access to field 'name' results in a= dereference of a null pointer (loaded from variable 'input') [clang-analyz= er-core.NullDereference] input->name, c, type); ^ drivers/hid/hid-icade.c:194:6: note: Assuming the condition is true if ((usage->hid & HID_USAGE_PAGE) =3D=3D HID_UP_KEYBOARD) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-icade.c:194:2: note: Taking true branch if ((usage->hid & HID_USAGE_PAGE) =3D=3D HID_UP_KEYBOARD) { ^ drivers/hid/hid-icade.c:197:8: note: 'trans' is non-null if (!trans) ^~~~~ drivers/hid/hid-icade.c:197:3: note: Taking false branch if (!trans) ^ drivers/hid/hid-icade.c:200:3: note: Calling 'hid_map_usage' hid_map_usage(hi, usage, bit, max, EV_KEY, trans->to); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/hid.h:1008:2: note: 'input' initialized here struct input_dev *input =3D hidinput->input; ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/hid.h:1012:2: note: Control jumps to 'case 1:' at line 10= 21 switch (type) { ^ include/linux/hid.h:1024:3: note: Execution continues on line 1035 break; ^ include/linux/hid.h:1035:15: note: Assuming 'c' is <=3D 'limit' if (unlikely(c > limit || !bmap)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/hid.h:1035:15: note: Left side of '||' is false if (unlikely(c > limit || !bmap)) { ^ include/linux/hid.h:1035:28: note: Assuming 'bmap' is null if (unlikely(c > limit || !bmap)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/hid.h:1035:2: note: Taking true branch if (unlikely(c > limit || !bmap)) { ^ include/linux/hid.h:1036:3: note: Assuming the condition is true pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:639:6: note: expanded from macro 'printk_ratelimi= ted' if (__ratelimit(&_rs)) \ ^~~~~~~~~~~~~~~~~ include/linux/ratelimit_types.h:41:28: note: expanded from macro '__rate= limit' #define __ratelimit(state) ___ratelimit(state, __func__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/hid.h:1036:3: note: Taking true branch pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^ include/linux/printk.h:639:2: note: expanded from macro 'printk_ratelimi= ted' if (__ratelimit(&_rs)) \ ^ include/linux/hid.h:1036:3: note: Loop condition is false. Exiting loop pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) -- ^~~~~~~ net/bridge/br_sysfs_if.c:239:1: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] BRPORT_ATTR_FLAG(multicast_flood, BR_MCAST_FLOOD); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ net/bridge/br_sysfs_if.c:239:1: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 BRPORT_ATTR_FLAG(multicast_flood, BR_MCAST_FLOOD); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ net/bridge/br_sysfs_if.c:240:1: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] BRPORT_ATTR_FLAG(broadcast_flood, BR_BCAST_FLOOD); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ net/bridge/br_sysfs_if.c:240:1: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 BRPORT_ATTR_FLAG(broadcast_flood, BR_BCAST_FLOOD); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ net/bridge/br_sysfs_if.c:241:1: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] BRPORT_ATTR_FLAG(neigh_suppress, BR_NEIGH_SUPPRESS); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ net/bridge/br_sysfs_if.c:241:1: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 BRPORT_ATTR_FLAG(neigh_suppress, BR_NEIGH_SUPPRESS); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ net/bridge/br_sysfs_if.c:242:1: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] BRPORT_ATTR_FLAG(isolated, BR_ISOLATED); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ net/bridge/br_sysfs_if.c:242:1: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 BRPORT_ATTR_FLAG(isolated, BR_ISOLATED); ^ net/bridge/br_sysfs_if.c:50:9: note: expanded from macro 'BRPORT_ATTR_FL= AG' return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ ^~~~~~~ Suppressed 84 warnings (83 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/dma/qcom/hidma_ll.c:535:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(lldev->tre_ring + lldev->tre_write_offset, ^~~~~~ drivers/dma/qcom/hidma_ll.c:535:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(lldev->tre_ring + lldev->tre_write_offset, ^~~~~~ drivers/dma/qcom/hidma_ll.c:817:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(lldev->trepool, 0, required_bytes); ^~~~~~ drivers/dma/qcom/hidma_ll.c:817:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(lldev->trepool, 0, required_bytes); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. drivers/dma/qcom/hidma.c:621:3: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf, "%d\n", mdev->chidx); ^~~~~~~ drivers/dma/qcom/hidma.c:621:3: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 sprintf(buf, "%d\n", mdev->chidx); ^~~~~~~ Suppressed 35 warnings (34 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/dma/qcom/hidma_dbg.c:155:3: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(chan->dbg_name, "chan%d", chidx); ^~~~~~~ drivers/dma/qcom/hidma_dbg.c:155:3: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 sprintf(chan->dbg_name, "chan%d", chidx); ^~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. lib/xarray.c:2029:18: warning: Value stored to 'node' during its initial= ization is never read [clang-analyzer-deadcode.DeadStores] struct xa_node *node =3D xas->xa_node; ^~~~ ~~~~~~~~~~~~ lib/xarray.c:2029:18: note: Value stored to 'node' during its initializa= tion is never read struct xa_node *node =3D xas->xa_node; ^~~~ ~~~~~~~~~~~~ Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 19 warnings generated. >> drivers/bus/brcmstb_gisb.c:202:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d", timeout); ^~~~~~~ drivers/bus/brcmstb_gisb.c:202:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d", timeout); ^~~~~~~ >> drivers/bus/brcmstb_gisb.c:259:3: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(m_fmt, sizeof(m_fmt), "0x%08x", master); ^~~~~~~~ drivers/bus/brcmstb_gisb.c:259:3: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(m_fmt, sizeof(m_fmt), "0x%08x", master); ^~~~~~~~ drivers/bus/brcmstb_gisb.c:333:3: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(m_fmt, sizeof(m_fmt), "0x%08x", master); ^~~~~~~~ drivers/bus/brcmstb_gisb.c:333:3: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(m_fmt, sizeof(m_fmt), "0x%08x", master); ^~~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/base/platform.c:578:3: warning: Call to function 'strcpy' is ins= ecure as it does not provide bounding of the memory buffer. Replace unbound= ed copy functions with analogous functions that support length arguments su= ch as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(pa->name, name); ^~~~~~ drivers/base/platform.c:578:3: note: Call to function 'strcpy' is insecu= re 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 strcpy(pa->name, name); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. drivers/base/cpu.c:364:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&cpu->dev, 0x00, sizeof(struct device)); ^~~~~~ drivers/base/cpu.c:364:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(&cpu->dev, 0x00, sizeof(struct device)); ^~~~~~ Suppressed 36 warnings (36 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. drivers/base/devres.c:120:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(dr, 0, offsetof(struct devres, data)); ^~~~~~ drivers/base/devres.c:120:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(dr, 0, offsetof(struct devres, data)); ^~~~~~ drivers/base/devres.c:921:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_dr->data, old_dr->data, ^~~~~~ drivers/base/devres.c:921:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(new_dr->data, old_dr->data, ^~~~~~ drivers/base/devres.c:955:3: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, s, size); ^~~~~~ drivers/base/devres.c:955:3: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(buf, s, size); ^~~~~~ drivers/base/devres.c:1001:8: warning: Call to function 'vsnprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] len =3D vsnprintf(NULL, 0, fmt, aq); ^~~~~~~~~ drivers/base/devres.c:1001:8: note: Call to function 'vsnprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'vsnprintf_s' in case of C11 len =3D vsnprintf(NULL, 0, fmt, aq); ^~~~~~~~~ drivers/base/devres.c:1008:2: warning: Call to function 'vsnprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] vsnprintf(p, len+1, fmt, ap); ^~~~~~~~~ drivers/base/devres.c:1008:2: note: Call to function 'vsnprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'vsnprintf_s' in case of C11 vsnprintf(p, len+1, fmt, ap); ^~~~~~~~~ drivers/base/devres.c:1077:3: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(p, src, len); ^~~~~~ drivers/base/devres.c:1077:3: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(p, src, len); ^~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. fs/xfs/libxfs/xfs_defer.c:787:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dres, &dfc->dfc_held, sizeof(struct xfs_defer_resources)); -- ^ include/net/caif/caif_layer.h:31:3: note: expanded from macro 'caif_asse= rt' WARN_ON(!(assert)); \ ^ include/asm-generic/bug.h:122:2: note: expanded from macro 'WARN_ON' if (unlikely(__ret_warn_on)) \ ^ net/caif/cfcnfg.c:407:2: note: Loop condition is false. Exiting loop caif_assert(phyinfo->phy_layer !=3D NULL); ^ include/net/caif/caif_layer.h:31:3: note: expanded from macro 'caif_asse= rt' WARN_ON(!(assert)); \ ^ include/asm-generic/bug.h:123:3: note: expanded from macro 'WARN_ON' __WARN(); \ ^ include/asm-generic/bug.h:88:19: note: expanded from macro '__WARN' #define __WARN() __WARN_printf(TAINT_WARN, NULL) ^ include/asm-generic/bug.h:90:3: note: expanded from macro '__WARN_printf' instrumentation_begin(); \ ^ include/linux/instrumentation.h:57:34: note: expanded from macro 'instru= mentation_begin' # define instrumentation_begin() do { } while(0) ^ net/caif/cfcnfg.c:407:2: note: Loop condition is false. Exiting loop caif_assert(phyinfo->phy_layer !=3D NULL); ^ include/net/caif/caif_layer.h:31:3: note: expanded from macro 'caif_asse= rt' WARN_ON(!(assert)); \ ^ include/asm-generic/bug.h:123:3: note: expanded from macro 'WARN_ON' __WARN(); \ ^ include/asm-generic/bug.h:88:19: note: expanded from macro '__WARN' #define __WARN() __WARN_printf(TAINT_WARN, NULL) ^ include/asm-generic/bug.h:92:3: note: expanded from macro '__WARN_printf' instrumentation_end(); \ ^ include/linux/instrumentation.h:58:33: note: expanded from macro 'instru= mentation_end' # define instrumentation_end() do { } while(0) ^ net/caif/cfcnfg.c:407:2: note: Loop condition is false. Exiting loop caif_assert(phyinfo->phy_layer !=3D NULL); ^ include/net/caif/caif_layer.h:31:3: note: expanded from macro 'caif_asse= rt' WARN_ON(!(assert)); \ ^ include/asm-generic/bug.h:123:3: note: expanded from macro 'WARN_ON' __WARN(); \ ^ include/asm-generic/bug.h:88:19: note: expanded from macro '__WARN' #define __WARN() __WARN_printf(TAINT_WARN, NULL) ^ include/asm-generic/bug.h:89:38: note: expanded from macro '__WARN_print= f' #define __WARN_printf(taint, arg...) do { \ ^ net/caif/cfcnfg.c:407:2: note: Loop condition is false. Exiting loop caif_assert(phyinfo->phy_layer !=3D NULL); ^ include/net/caif/caif_layer.h:27:33: note: expanded from macro 'caif_ass= ert' #define caif_assert(assert) \ ^ net/caif/cfcnfg.c:408:14: note: Access to field 'id' results in a derefe= rence of a null pointer (loaded from field 'phy_layer') caif_assert(phyinfo->phy_layer->id =3D=3D phyid); ^ include/net/caif/caif_layer.h:29:8: note: expanded from macro 'caif_asse= rt' if (!(assert)) { \ ^~~~~~ Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/i2c/busses/i2c-designware-master.c:891:2: warning: Call to funct= ion 'snprintf' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'snprintf_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(adap->name, sizeof(adap->name), ^~~~~~~~ drivers/i2c/busses/i2c-designware-master.c:891:2: note: Call to function= 'snprintf' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(adap->name, sizeof(adap->name), ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. >> drivers/i2c/busses/i2c-taos-evm.c:73:8: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] p +=3D sprintf(p, "@%02X", addr); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:73:8: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 p +=3D sprintf(p, "@%02X", addr); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:78:4: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(p, "$#%02X", command); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:78:4: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 sprintf(p, "$#%02X", command); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:80:4: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(p, "$"); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:80:4: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 sprintf(p, "$"); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:84:4: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(p, "$%02X#%02X", command, data->byte); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:84:4: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 sprintf(p, "$%02X#%02X", command, data->byte); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:86:4: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(p, "$%02X", command); ^~~~~~~ drivers/i2c/busses/i2c-taos-evm.c:86:4: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 sprintf(p, "$%02X", command); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. drivers/power/supply/power_supply_sysfs.c:251:13: warning: Call to funct= ion 'sprintf' is insecure as it does not provide bounding of the memory buf= fer or security checks introduced in the C11 standard. Replace with analogo= us functions that support length arguments or provides boundary checks such= as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.Depreca= tedOrUnsafeBufferHandling] count +=3D sprintf(buf + count, "[%s] ", ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:251:13: note: Call to function= 'sprintf' is insecure as it does not provide bounding of the memory buffer= or security checks introduced in the C11 standard. Replace with analogous = functions that support length arguments or provides boundary checks such as= 'sprintf_s' in case of C11 count +=3D sprintf(buf + count, "[%s] ", ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:255:13: warning: Call to funct= ion 'sprintf' is insecure as it does not provide bounding of the memory buf= fer or security checks introduced in the C11 standard. Replace with analogo= us functions that support length arguments or provides boundary checks such= as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.Depreca= tedOrUnsafeBufferHandling] count +=3D sprintf(buf + count, "%s ", ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:255:13: note: Call to function= 'sprintf' is insecure as it does not provide bounding of the memory buffer= or security checks introduced in the C11 standard. Replace with analogous = functions that support length arguments or provides boundary checks such as= 'sprintf_s' in case of C11 count +=3D sprintf(buf + count, "%s ", ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:299:10: warning: Call to funct= ion 'sprintf' is insecure as it does not provide bounding of the memory buf= fer or security checks introduced in the C11 standard. Replace with analogo= us functions that support length arguments or provides boundary checks such= as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.Depreca= tedOrUnsafeBufferHandling] return sprintf(buf, "%s\n", ps_attr->text_values[value.i= ntval]); ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:299:10: note: Call to function= 'sprintf' is insecure as it does not provide bounding of the memory buffer= or security checks introduced in the C11 standard. Replace with analogous = functions that support length arguments or provides boundary checks such as= 'sprintf_s' in case of C11 return sprintf(buf, "%s\n", ps_attr->text_values[value.i= ntval]); ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:308:9: warning: Call to functi= on 'sprintf' is insecure as it does not provide bounding of the memory buff= er or security checks introduced in the C11 standard. Replace with analogou= s functions that support length arguments or provides boundary checks such = as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.Deprecat= edOrUnsafeBufferHandling] ret =3D sprintf(buf, "%s\n", value.strval); ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:308:9: note: Call to function = 'sprintf' is insecure as it does not provide bounding of the memory buffer = or security checks introduced in the C11 standard. Replace with analogous f= unctions that support length arguments or provides boundary checks such as = 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%s\n", value.strval); ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:311:9: warning: Call to functi= on 'sprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'sprintf_s' in case of C11 [cl= ang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%d\n", value.intval); ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:311:9: note: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%d\n", value.intval); ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:415:4: warning: Call to functi= on 'sprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'sprintf_s' in case of C11 [cl= ang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(power_supply_attrs[i].attr_name, "_err_%= d", i); ^~~~~~~ drivers/power/supply/power_supply_sysfs.c:415:4: note: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 sprintf(power_supply_attrs[i].attr_name, "_err_%= d", i); ^~~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. mm/vmscan.c:239:3: warning: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memset(new->map, (int)0xff, old_map_size); ^~~~~~ mm/vmscan.c:239:3: note: Call to function 'memset' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memset_s' in case of C11 memset(new->map, (int)0xff, old_map_size); ^~~~~~ mm/vmscan.c:240:3: warning: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memset((void *)new->map + old_map_size, 0, map_size - ol= d_map_size); ^~~~~~ mm/vmscan.c:240:3: note: Call to function 'memset' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memset_s' in case of C11 memset((void *)new->map + old_map_size, 0, map_size - ol= d_map_size); ^~~~~~ mm/vmscan.c:242:3: warning: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memcpy(new->nr_deferred, old->nr_deferred, old_defer_siz= e); ^~~~~~ mm/vmscan.c:242:3: note: Call to function 'memcpy' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memcpy_s' in case of C11 memcpy(new->nr_deferred, old->nr_deferred, old_defer_siz= e); ^~~~~~ mm/vmscan.c:243:3: warning: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memset((void *)new->nr_deferred + old_defer_size, 0, ^~~~~~ mm/vmscan.c:243:3: note: Call to function 'memset' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memset_s' in case of C11 memset((void *)new->nr_deferred + old_defer_size, 0, -- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/core.c:3937:2: note: Taking false branch if (!nvme_ns_head_multipath(ns->head)) ^ drivers/nvme/host/core.c:3946:6: note: 'last_path' is false if (last_path) ^~~~~~~~~ drivers/nvme/host/core.c:3946:2: note: Taking false branch if (last_path) ^ drivers/nvme/host/core.c:3948:2: note: Calling 'nvme_put_ns' nvme_put_ns(ns); ^~~~~~~~~~~~~~~ drivers/nvme/host/core.c:597:2: note: Calling 'kref_put' kref_put(&ns->kref, nvme_free_ns); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kref.h:64:6: note: Assuming the condition is true if (refcount_dec_and_test(&kref->refcount)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kref.h:64:2: note: Taking true branch if (refcount_dec_and_test(&kref->refcount)) { ^ include/linux/kref.h:65:3: note: Calling 'nvme_free_ns' release(kref); ^~~~~~~~~~~~~ drivers/nvme/host/core.c:587:2: note: Memory is released kfree(ns); ^~~~~~~~~ include/linux/kref.h:65:3: note: Returning; memory was released release(kref); ^~~~~~~~~~~~~ drivers/nvme/host/core.c:597:2: note: Returning; memory was released kref_put(&ns->kref, nvme_free_ns); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/core.c:3948:2: note: Returning; memory was released vi= a 1st parameter nvme_put_ns(ns); ^~~~~~~~~~~~~~~ drivers/nvme/host/core.c:3956:3: note: Returning; memory was released vi= a 1st parameter nvme_ns_remove(ns); ^~~~~~~~~~~~~~~~~~ drivers/nvme/host/core.c:3957:3: note: Use of memory after it is freed nvme_put_ns(ns); ^ ~~ drivers/nvme/host/core.c:4489:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ctrl->ka_cmd, 0, sizeof(ctrl->ka_cmd)); ^~~~~~ drivers/nvme/host/core.c:4489:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&ctrl->ka_cmd, 0, sizeof(ctrl->ka_cmd)); ^~~~~~ Suppressed 65 warnings (65 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. drivers/misc/xilinx_sdfec.c:298:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&status, 0, sizeof(status)); ^~~~~~ drivers/misc/xilinx_sdfec.c:298:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&status, 0, sizeof(status)); ^~~~~~ drivers/misc/xilinx_sdfec.c:444:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&turbo_params, 0, sizeof(turbo_params)); ^~~~~~ drivers/misc/xilinx_sdfec.c:444:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&turbo_params, 0, sizeof(turbo_params)); ^~~~~~ drivers/misc/xilinx_sdfec.c:1416:2: warning: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(xsdfec->dev_name, DEV_NAME_LEN, "xsdfec%d", xsdfec->dev= _id); ^~~~~~~~ drivers/misc/xilinx_sdfec.c:1416:2: note: Call to function 'snprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'snprintf_s' in case of C11 snprintf(xsdfec->dev_name, DEV_NAME_LEN, "xsdfec%d", xsdfec->dev= _id); ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. >> drivers/power/supply/apm_power.c:78:2: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&bp, 0, sizeof(struct find_bat_param)); ^~~~~~ drivers/power/supply/apm_power.c:78:2: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(&bp, 0, sizeof(struct find_bat_param)); ^~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 12 warnings generated. drivers/power/supply/88pm860x_battery.c:197:3: warning: Value stored to = 'ret' is never read [clang-analyzer-deadcode.DeadStores] ret =3D ((buf[4] >> 6) << 10) | ((buf[3] >> 6) << 8) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/power/supply/88pm860x_battery.c:197:3: note: Value stored to 're= t' is never read ret =3D ((buf[4] >> 6) << 10) | ((buf[3] >> 6) << 8) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/power/supply/88pm860x_battery.c:315:2: warning: Call to function= 'memset' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memset_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(ccnt, 0, sizeof(*ccnt)); ^~~~~~ drivers/power/supply/88pm860x_battery.c:315:2: note: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 memset(ccnt, 0, sizeof(*ccnt)); ^~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 21 warnings generated. Suppressed 21 warnings (21 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/dma-buf/dma-resv.c:525:34: warning: Access to field 'shared_coun= t' results in a dereference of a null pointer (loaded from variable 'list')= [clang-analyzer-core.NullDereference] RCU_INIT_POINTER(list->shared[list->shared_count= ++], f); ^ include/linux/rcupdate.h:860:14: note: expanded from macro 'RCU_INIT_POI= NTER' WRITE_ONCE(p, RCU_INITIALIZER(v)); \ ^ include/asm-generic/rwonce.h:61:15: note: expanded from macro 'WRITE_ONC= E' __WRITE_ONCE(x, val); \ ^ include/asm-generic/rwonce.h:55:27: note: expanded from macro '__WRITE_O= NCE' *(volatile typeof(x) *)&(x) =3D (val); = \ ^ drivers/dma-buf/dma-resv.c:494:2: note: Assuming 'debug_locks' is 0 dma_resv_assert_held(dst); ^ include/linux/dma-resv.h:271:35: note: expanded from macro 'dma_resv_ass= ert_held' #define dma_resv_assert_held(obj) lockdep_assert_held(&(obj)->lock.base) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/lockdep.h:316:2: note: expanded from macro 'lockdep_assert= _held' lockdep_assert(lockdep_is_held(l) !=3D LOCK_STATE_NOT_HELD) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/lockdep.h:310:15: note: expanded from macro 'lockdep_asser= t' do { WARN_ON(debug_locks && !(cond)); } while (0) ^~~~~~~~~~~ include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON' int __ret_warn_on =3D !!(condition); = \ ^~~~~~~~~ drivers/dma-buf/dma-resv.c:494:2: note: Left side of '&&' is false dma_resv_assert_held(dst); ^ include/linux/dma-resv.h:271:35: note: expanded from macro 'dma_resv_ass= ert_held' #define dma_resv_assert_held(obj) lockdep_assert_held(&(obj)->lock.base) ^ include/linux/lockdep.h:316:2: note: expanded from macro 'lockdep_assert= _held' lockdep_assert(lockdep_is_held(l) !=3D LOCK_STATE_NOT_HELD) ^ include/linux/lockdep.h:310:27: note: expanded from macro 'lockdep_asser= t' do { WARN_ON(debug_locks && !(cond)); } while (0) ^ drivers/dma-buf/dma-resv.c:494:2: note: Taking false branch dma_resv_assert_held(dst); ^ include/linux/dma-resv.h:271:35: note: expanded from macro 'dma_resv_ass= ert_held' #define dma_resv_assert_held(obj) lockdep_assert_held(&(obj)->lock.base) ^ include/linux/lockdep.h:316:2: note: expanded from macro 'lockdep_assert= _held' lockdep_assert(lockdep_is_held(l) !=3D LOCK_STATE_NOT_HELD) ^ include/linux/lockdep.h:310:7: note: expanded from macro 'lockdep_assert' do { WARN_ON(debug_locks && !(cond)); } while (0) ^ include/asm-generic/bug.h:122:2: note: expanded from macro 'WARN_ON' if (unlikely(__ret_warn_on)) \ ^ drivers/dma-buf/dma-resv.c:494:2: note: Loop condition is false. Exitin= g loop dma_resv_assert_held(dst); ^ include/linux/dma-resv.h:271:35: note: expanded from macro 'dma_resv_ass= ert_held' #define dma_resv_assert_held(obj) lockdep_assert_held(&(obj)->lock.base) ^ include/linux/lockdep.h:316:2: note: expanded from macro 'lockdep_assert= _held' lockdep_assert(lockdep_is_held(l) !=3D LOCK_STATE_NOT_HELD) ^ include/linux/lockdep.h:310:2: note: expanded from macro 'lockdep_assert' do { WARN_ON(debug_locks && !(cond)); } while (0) ^ drivers/dma-buf/dma-resv.c:496:2: note: Null pointer value stored to 'li= st' list =3D NULL; ^~~~~~~~~~~ drivers/dma-buf/dma-resv.c:499:2: note: Calling 'dma_resv_iter_begin' dma_resv_iter_begin(&cursor, src, true); -- ^ drivers/gpio/gpiolib-of.c:1026:6: note: 'ret' is 0 if (ret) ^~~ drivers/gpio/gpiolib-of.c:1026:2: note: Taking false branch if (ret) ^ drivers/gpio/gpiolib-of.c:1031:8: note: Calling 'of_gpiochip_scan_gpios' ret =3D of_gpiochip_scan_gpios(chip); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-of.c:689:50: note: Assuming 'np' is not equal to nu= ll for_each_available_child_of_node(chip->of_node, np) { ^ include/linux/of.h:1371:58: note: expanded from macro 'for_each_availabl= e_child_of_node' for (child =3D of_get_next_available_child(parent, NULL); child = !=3D NULL; \ ^~~~~~~~= ~~~~~ drivers/gpio/gpiolib-of.c:689:2: note: Loop condition is true. Entering= loop body for_each_available_child_of_node(chip->of_node, np) { ^ include/linux/of.h:1371:2: note: expanded from macro 'for_each_available= _child_of_node' for (child =3D of_get_next_available_child(parent, NULL); child = !=3D NULL; \ ^ drivers/gpio/gpiolib-of.c:690:3: note: Taking false branch if (!of_property_read_bool(np, "gpio-hog")) ^ drivers/gpio/gpiolib-of.c:693:9: note: Calling 'of_gpiochip_add_hog' ret =3D of_gpiochip_add_hog(chip, np); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-of.c:655:2: note: 'name' declared without an initia= l value const char *name; ^~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-of.c:659:2: note: Loop condition is true. Entering= loop body for (i =3D 0;; i++) { ^ drivers/gpio/gpiolib-of.c:660:10: note: Calling 'of_parse_own_gpio' desc =3D of_parse_own_gpio(hog, chip, i, &name, &lflags,= &dflags); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~ drivers/gpio/gpiolib-of.c:591:7: note: 'chip_np' is non-null if (!chip_np) ^~~~~~~ drivers/gpio/gpiolib-of.c:591:2: note: Taking false branch if (!chip_np) ^ drivers/gpio/gpiolib-of.c:599:6: note: 'ret' is not equal to 0 if (ret) ^~~ drivers/gpio/gpiolib-of.c:599:2: note: Taking true branch if (ret) ^ drivers/gpio/gpiolib-of.c:600:3: note: Returning without writing to '*na= me' return ERR_PTR(ret); ^ drivers/gpio/gpiolib-of.c:660:10: note: Returning from 'of_parse_own_gpi= o' desc =3D of_parse_own_gpio(hog, chip, i, &name, &lflags,= &dflags); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~ drivers/gpio/gpiolib-of.c:661:7: note: Calling 'IS_ERR' if (IS_ERR(desc)) ^~~~~~~~~~~~ include/linux/err.h:36:9: note: Assuming the condition is false return IS_ERR_VALUE((unsigned long)ptr); ^ include/linux/err.h:22:34: note: expanded from macro 'IS_ERR_VALUE' #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >=3D (unsign= ed long)-MAX_ERRNO) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/err.h:36:2: note: Returning zero, which participates in a = condition later return IS_ERR_VALUE((unsigned long)ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-of.c:661:7: note: Returning from 'IS_ERR' if (IS_ERR(desc)) ^~~~~~~~~~~~ drivers/gpio/gpiolib-of.c:661:3: note: Taking false branch if (IS_ERR(desc)) ^ drivers/gpio/gpiolib-of.c:664:9: note: 2nd function call argument is an = uninitialized value ret =3D gpiod_hog(desc, name, lflags, dflags); ^ ~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/i2c/muxes/i2c-mux-mlxcpld.c:152:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&data->pdata, pdata, sizeof(*pdata)); ^~~~~~ drivers/i2c/muxes/i2c-mux-mlxcpld.c:152:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&data->pdata, pdata, sizeof(*pdata)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. >> fs/hfs/dir.c:166:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(&rd->key, &fd.key->cat, sizeof(struct hfs_cat_key)); ^~~~~~ fs/hfs/dir.c:166:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(&rd->key, &fd.key->cat, sizeof(struct hfs_cat_key)); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. >> fs/hfs/extent.c:464:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec)); ^~~~~~ fs/hfs/extent.c:464:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec)); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. >> fs/affs/file.c:548:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data + pos, AFFS_DATA(bh) + boff, tmp); ^~~~~~ fs/affs/file.c:548:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(data + pos, AFFS_DATA(bh) + boff, tmp); ^~~~~~ >> fs/affs/file.c:580:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(AFFS_DATA(bh) + boff, 0, tmp); ^~~~~~ fs/affs/file.c:580:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(AFFS_DATA(bh) + boff, 0, tmp); ^~~~~~ fs/affs/file.c:641:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(page_address(page) + to, 0, PAGE_SIZE - to); ^~~~~~ fs/affs/file.c:641:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(page_address(page) + to, 0, PAGE_SIZE - to); ^~~~~~ fs/affs/file.c:728:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(AFFS_DATA(bh) + boff, data + from, tmp); ^~~~~~ fs/affs/file.c:728:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(AFFS_DATA(bh) + boff, data + from, tmp); ^~~~~~ fs/affs/file.c:747:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(AFFS_DATA(bh), data + from, bsize); ^~~~~~ fs/affs/file.c:747:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(AFFS_DATA(bh), data + from, bsize); ^~~~~~ fs/affs/file.c:781:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(AFFS_DATA(bh), data + from, tmp); ^~~~~~ fs/affs/file.c:781:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(AFFS_DATA(bh), data + from, tmp); ^~~~~~ fs/affs/file.c:890:4: warning: Value stored to 'res' is never read [clan= g-analyzer-deadcode.DeadStores] res =3D mapping->a_ops->write_end(NULL, mapping,= isize, 0, 0, page, fsdata); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~ fs/affs/file.c:890:4: note: Value stored to 'res' is never read res =3D mapping->a_ops->write_end(NULL, mapping,= isize, 0, 0, page, fsdata); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 62 warnings generated. Suppressed 62 warnings (62 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 63 warnings generated. Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 85 warnings generated. net/ieee802154/header_ops.c:24:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + pos, &addr->pan_id, 2); ^~~~~~ net/ieee802154/header_ops.c:24:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + pos, &addr->pan_id, 2); ^~~~~~ net/ieee802154/header_ops.c:30:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + pos, &addr->short_addr, 2); ^~~~~~ net/ieee802154/header_ops.c:30:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + pos, &addr->short_addr, 2); ^~~~~~ net/ieee802154/header_ops.c:35:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_= LEN); ^~~~~~ net/ieee802154/header_ops.c:35:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_= LEN); ^~~~~~ net/ieee802154/header_ops.c:51:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, hdr, 1); ^~~~~~ net/ieee802154/header_ops.c:51:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, hdr, 1); ^~~~~~ net/ieee802154/header_ops.c:52:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + 1, &hdr->frame_counter, 4); ^~~~~~ net/ieee802154/header_ops.c:52:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + 1, &hdr->frame_counter, 4); ^~~~~~ net/ieee802154/header_ops.c:62:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + pos, &hdr->short_src, 4); ^~~~~~ net/ieee802154/header_ops.c:62:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + pos, &hdr->short_src, 4); ^~~~~~ net/ieee802154/header_ops.c:67:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LE= N); ^~~~~~ net/ieee802154/header_ops.c:67:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LE= N); ^~~~~~ net/ieee802154/header_ops.c:115:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, fc, 2); ^~~~~~ net/ieee802154/header_ops.c:115:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, fc, 2); ^~~~~~ net/ieee802154/header_ops.c:117:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(skb_push(skb, pos), buf, pos); ^~~~~~ net/ieee802154/header_ops.c:117:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(skb_push(skb, pos), buf, pos); -- ^~~~ drivers/soundwire/stream.c:1362:2: note: Taking false branch if (!m_rt) { ^ drivers/soundwire/stream.c:1371:7: note: 's_rt' is non-null if (!s_rt) { ^~~~ drivers/soundwire/stream.c:1371:2: note: Taking false branch if (!s_rt) { ^ drivers/soundwire/stream.c:1380:6: note: 'ret' is 0 if (ret) { ^~~ drivers/soundwire/stream.c:1380:2: note: Taking false branch if (ret) { ^ drivers/soundwire/stream.c:1394:6: note: 'ret' is -22 if (ret) ^~~ drivers/soundwire/stream.c:1394:2: note: Taking true branch if (ret) ^ drivers/soundwire/stream.c:1395:3: note: Control jumps to line 1411 goto stream_error; ^ drivers/soundwire/stream.c:1411:2: note: Calling 'sdw_release_master_str= eam' sdw_release_master_stream(m_rt, stream); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/soundwire/stream.c:1070:2: note: Loop condition is true. Enteri= ng loop body list_for_each_entry_safe(s_rt, _s_rt, &m_rt->slave_rt_list, m_rt= _node) { ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ drivers/soundwire/stream.c:1072:3: note: Calling 'sdw_release_slave_stre= am' sdw_release_slave_stream(s_rt->slave, stream); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/soundwire/stream.c:1041:2: note: Loop condition is true. Enteri= ng loop body list_for_each_entry(m_rt, &stream->master_list, stream_node) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/soundwire/stream.c:1043:3: note: Loop condition is true. Enteri= ng loop body list_for_each_entry_safe(s_rt, _s_rt, ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ drivers/soundwire/stream.c:1045:8: note: Assuming 'slave' is equal to fi= eld 'slave' if (s_rt->slave =3D=3D slave) { ^~~~~~~~~~~~~~~~~~~~ drivers/soundwire/stream.c:1045:4: note: Taking true branch if (s_rt->slave =3D=3D slave) { ^ drivers/soundwire/stream.c:1047:5: note: Memory is released kfree(s_rt); ^~~~~~~~~~~ drivers/soundwire/stream.c:1072:3: note: Returning; memory was released sdw_release_slave_stream(s_rt->slave, stream); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/soundwire/stream.c:1070:2: note: Loop condition is true. Enteri= ng loop body list_for_each_entry_safe(s_rt, _s_rt, &m_rt->slave_rt_list, m_rt= _node) { ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ drivers/soundwire/stream.c:1071:3: note: Calling 'sdw_slave_port_release' sdw_slave_port_release(s_rt->slave->bus, s_rt->slave, st= ream); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~ drivers/soundwire/stream.c:1013:2: note: Loop condition is true. Enteri= ng loop body list_for_each_entry(m_rt, &stream->master_list, stream_node) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/soundwire/stream.c:1014:3: note: Loop condition is true. Enteri= ng loop body list_for_each_entry(s_rt, &m_rt->slave_rt_list, m_rt_nod= e) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/soundwire/stream.c:1015:8: note: Use of memory after it is freed if (s_rt->slave !=3D slave) ^~~~~~~~~~~ drivers/soundwire/stream.c:1506:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(¶ms, &bus->params, sizeof(params)); ^~~~~~ drivers/soundwire/stream.c:1506:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(¶ms, &bus->params, sizeof(params)); ^~~~~~ drivers/soundwire/stream.c:1569:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&bus->params, ¶ms, sizeof(params)); ^~~~~~ drivers/soundwire/stream.c:1569:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(&bus->params, ¶ms, sizeof(params)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. >> fs/hfs/inode.c:231:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(HFS_I(inode)->first_extents, 0, sizeof(hfs_extent= _rec)); ^~~~~~ fs/hfs/inode.c:231:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(HFS_I(inode)->first_extents, 0, sizeof(hfs_extent= _rec)); ^~~~~~ fs/hfs/inode.c:232:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_exten= t_rec)); ^~~~~~ fs/hfs/inode.c:232:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_exten= t_rec)); ^~~~~~ >> fs/hfs/inode.c:276:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(HFS_I(inode)->first_extents, ext, sizeof(hfs_extent_rec)); ^~~~~~ fs/hfs/inode.c:276:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(HFS_I(inode)->first_extents, ext, sizeof(hfs_extent_rec)); ^~~~~~ fs/hfs/inode.c:412:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ext, HFS_I(inode)->first_extents, sizeof(hfs_extent_rec)); ^~~~~~ fs/hfs/inode.c:412:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(ext, HFS_I(inode)->first_extents, sizeof(hfs_extent_rec)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 41 warnings generated. drivers/soundwire/sysfs_slave.c:79:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(mipi_revision, "0x%x\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:79:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(mipi_revision, "0x%x\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:80:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(wake_capable, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:80:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(wake_capable, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:81:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(test_mode_capable, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:81:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(test_mode_capable, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:82:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(clk_stop_mode1, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:82:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(clk_stop_mode1, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:83:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(simple_clk_stop_capable, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:83:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(simple_clk_stop_capable, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:84:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(clk_stop_timeout, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:84:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(clk_stop_timeout, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:85:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(ch_prep_timeout, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:85:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(ch_prep_timeout, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:86:1: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_slave_attr(reset_behave, "%d\n"); -- ^~~~~~~ drivers/soundwire/sysfs_slave.c:93:1: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 sdw_slave_attr(sink_ports, "0x%x\n"); ^ drivers/soundwire/sysfs_slave.c:75:9: note: expanded from macro 'sdw_sla= ve_attr' return sprintf(buf, format_string, slave->prop.field); \ ^~~~~~~ drivers/soundwire/sysfs_slave.c:152:1: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_dp0_attr(max_word, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:152:1: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 sdw_dp0_attr(max_word, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:153:1: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_dp0_attr(min_word, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:153:1: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 sdw_dp0_attr(min_word, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:154:1: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_dp0_attr(BRA_flow_controlled, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:154:1: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 sdw_dp0_attr(BRA_flow_controlled, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:155:1: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_dp0_attr(simple_ch_prep_sm, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:155:1: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 sdw_dp0_attr(simple_ch_prep_sm, "%d\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:156:1: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sdw_dp0_attr(imp_def_interrupts, "0x%x\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:156:1: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 sdw_dp0_attr(imp_def_interrupts, "0x%x\n"); ^ drivers/soundwire/sysfs_slave.c:148:9: note: expanded from macro 'sdw_dp= 0_attr' return sprintf(buf, format_string, slave->prop.dp0_prop->field);\ ^~~~~~~ drivers/soundwire/sysfs_slave.c:166:11: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] size +=3D sprintf(buf + size, "%d ", ^~~~~~~ drivers/soundwire/sysfs_slave.c:166:11: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 size +=3D sprintf(buf + size, "%d ", ^~~~~~~ drivers/soundwire/sysfs_slave.c:168:10: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] size +=3D sprintf(buf + size, "\n"); ^~~~~~~ drivers/soundwire/sysfs_slave.c:168:10: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 size +=3D sprintf(buf + size, "\n"); ^~~~~~~ drivers/soundwire/sysfs_slave.c:237:9: warning: Call to function 'sprint= f' is insecure as it does not provide bounding of the memory buffer or secu= rity checks introduced in the C11 standard. Replace with analogous function= s that support length arguments or provides boundary checks such as 'sprint= f_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafe= BufferHandling] return sprintf(buf, "%s\n", slave_status[slave->status]); ^~~~~~~ drivers/soundwire/sysfs_slave.c:237:9: note: Call to function 'sprintf' = is insecure as it does not provide bounding of the memory buffer or securit= y checks introduced in the C11 standard. Replace with analogous functions t= hat support length arguments or provides boundary checks such as 'sprintf_s= ' in case of C11 return sprintf(buf, "%s\n", slave_status[slave->status]); ^~~~~~~ drivers/soundwire/sysfs_slave.c:247:10: warning: Call to function 'sprin= tf' is insecure as it does not provide bounding of the memory buffer or sec= urity checks introduced in the C11 standard. Replace with analogous functio= ns that support length arguments or provides boundary checks such as 'sprin= tf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsaf= eBufferHandling] return sprintf(buf, "%s", "N/A"); ^~~~~~~ drivers/soundwire/sysfs_slave.c:247:10: note: Call to function 'sprintf'= is insecure as it does not provide bounding of the memory buffer or securi= ty checks introduced in the C11 standard. Replace with analogous functions = that support length arguments or provides boundary checks such as 'sprintf_= s' in case of C11 return sprintf(buf, "%s", "N/A"); ^~~~~~~ drivers/soundwire/sysfs_slave.c:249:10: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d", slave->dev_num); ^~~~~~~ drivers/soundwire/sysfs_slave.c:249:10: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d", slave->dev_num); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. >> drivers/mfd/asic3.c:555:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(alt_reg, 0, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); ^~~~~~ drivers/mfd/asic3.c:555:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(alt_reg, 0, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); ^~~~~~ drivers/mfd/asic3.c:556:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(out_reg, 0, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); ^~~~~~ drivers/mfd/asic3.c:556:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(out_reg, 0, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); ^~~~~~ drivers/mfd/asic3.c:557:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(dir_reg, 0, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); ^~~~~~ drivers/mfd/asic3.c:557:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(dir_reg, 0, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); ^~~~~~ >> drivers/mfd/asic3.c:1007:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(asic->clocks, asic3_clk_init, sizeof(asic3_clk_init)); ^~~~~~ drivers/mfd/asic3.c:1007:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(asic->clocks, asic3_clk_init, sizeof(asic3_clk_init)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 8 warnings generated. Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. block/blk-timeout.c:45:9: warning: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", set !=3D 0); ^~~~~~~ block/blk-timeout.c:45:9: note: Call to function 'sprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", set !=3D 0); ^~~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 56 warnings generated. block/blk-mq.c:324:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(rq, 0, sizeof(*rq)); ^~~~~~ block/blk-mq.c:324:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(rq, 0, sizeof(*rq)); ^~~~~~ block/blk-mq.c:1286:2: warning: Assigned value is garbage or undefined [= clang-analyzer-core.uninitialized.Assign] list_for_each_entry_safe(rq, next, &rq_list, queuelist) { ^ include/linux/list.h:726:7: note: expanded from macro 'list_for_each_ent= ry_safe' n =3D list_next_entry(pos, member); = \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:564:2: note: expanded from macro 'list_next_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:520:2: note: expanded from macro 'list_entry' container_of(ptr, type, member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:18:2: note: expanded from macro 'container_= of' void *__mptr =3D (void *)(ptr); = \ ^ ~~~~~~~~~~~~~ block/blk-mq.c:1283:2: note: Calling 'list_splice_init' list_splice_init(&q->requeue_list, &rq_list); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:490:6: note: Assuming the condition is false if (!list_empty(list)) { ^~~~~~~~~~~~~~~~~ include/linux/list.h:490:2: note: Taking false branch if (!list_empty(list)) { ^ block/blk-mq.c:1283:2: note: Returning from 'list_splice_init' list_splice_init(&q->requeue_list, &rq_list); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block/blk-mq.c:1286:2: note: Assigned value is garbage or undefined list_for_each_entry_safe(rq, next, &rq_list, queuelist) { ^ include/linux/list.h:726:7: note: expanded from macro 'list_for_each_ent= ry_safe' n =3D list_next_entry(pos, member); = \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:564:2: note: expanded from macro 'list_next_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:520:2: note: expanded from macro 'list_entry' container_of(ptr, type, member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:18:2: note: expanded from macro 'container_= of' void *__mptr =3D (void *)(ptr); = \ ^ ~~~~~~~~~~~~~ block/blk-mq.c:2379:6: warning: Access to field 'queue' results in a der= eference of a null pointer (loaded from variable 'hctx') [clang-analyzer-co= re.NullDereference] if (hctx->queue->mq_ops->commit_rqs) { ^ block/blk-mq.c:2789:2: note: Taking false branch if (unlikely(!blk_crypto_bio_prep(&bio))) ^ block/blk-mq.c:2793:2: note: Taking false branch if (blk_may_split(q, bio)) ^ block/blk-mq.c:2796:6: note: Assuming the condition is false if (!bio_integrity_prep(bio)) ^~~~~~~~~~~~~~~~~~~~~~~~ block/blk-mq.c:2796:2: note: Taking false branch if (!bio_integrity_prep(bio)) ^ block/blk-mq.c:2799:2: note: Taking false branch if (blk_mq_attempt_bio_merge(q, bio, nr_segs)) ^ block/blk-mq.c:2805:7: note: 'rq' is null if (!rq) { ^~ block/blk-mq.c:2805:2: note: Taking true branch if (!rq) { ^ block/blk-mq.c:2807:17: note: 'rq' is non-null if (unlikely(!rq)) ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) -- ^~~~~~ drivers/hid/hid-core.c:1906:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(buf, hdev->rdesc + off, count); ^~~~~~ drivers/hid/hid-core.c:1917:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%02x\n", hdev->country & 0xff); ^~~~~~~ drivers/hid/hid-core.c:1917:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%02x\n", hdev->country & 0xff); ^~~~~~~ drivers/hid/hid-core.c:1979:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] len +=3D sprintf(buf + len, "input"); ^~~~~~~ drivers/hid/hid-core.c:1979:10: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 len +=3D sprintf(buf + len, "input"); ^~~~~~~ drivers/hid/hid-core.c:1981:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide bounding of the memory buffer or security ch= ecks introduced in the C11 standard. Replace with analogous functions that = support length arguments or provides boundary checks such as 'sprintf_s' in= case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferH= andling] len +=3D sprintf(buf + len, "%shiddev%d", len ? "," : "", ^~~~~~~ drivers/hid/hid-core.c:1981:10: note: Call to function 'sprintf' is inse= cure as it does not provide bounding of the memory buffer or security check= s introduced in the C11 standard. Replace with analogous functions that sup= port length arguments or provides boundary checks such as 'sprintf_s' in ca= se of C11 len +=3D sprintf(buf + len, "%shiddev%d", len ? "," : "", ^~~~~~~ drivers/hid/hid-core.c:1984:3: warning: Value stored to 'len' is never r= ead [clang-analyzer-deadcode.DeadStores] len +=3D sprintf(buf + len, "%shidraw%d", len ? "," : "", ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-core.c:1984:3: note: Value stored to 'len' is never read len +=3D sprintf(buf + len, "%shidraw%d", len ? "," : "", ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-core.c:1984:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide bounding of the memory buffer or security ch= ecks introduced in the C11 standard. Replace with analogous functions that = support length arguments or provides boundary checks such as 'sprintf_s' in= case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferH= andling] len +=3D sprintf(buf + len, "%shidraw%d", len ? "," : "", ^~~~~~~ drivers/hid/hid-core.c:1984:10: note: Call to function 'sprintf' is inse= cure as it does not provide bounding of the memory buffer or security check= s introduced in the C11 standard. Replace with analogous functions that sup= port length arguments or provides boundary checks such as 'sprintf_s' in ca= se of C11 len +=3D sprintf(buf + len, "%shidraw%d", len ? "," : "", ^~~~~~~ drivers/hid/hid-core.c:2245:8: warning: Call to function 'sscanf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sscanf(buf, "%x %x %x %lx", ^~~~~~ drivers/hid/hid-core.c:2245:8: note: Call to function 'sscanf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sscanf_s' in case of C11 ret =3D sscanf(buf, "%x %x %x %lx", ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/tty/tty_port.c:73:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(port, 0, sizeof(*port)); ^~~~~~ drivers/tty/tty_port.c:73:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(port, 0, sizeof(*port)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. drivers/tty/pty.c:405:3: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&tty->termios_locked, 0, sizeof(tty->termios_lock= ed)); ^~~~~~ drivers/tty/pty.c:405:3: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&tty->termios_locked, 0, sizeof(tty->termios_lock= ed)); ^~~~~~ drivers/tty/pty.c:407:3: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&o_tty->termios_locked, 0, sizeof(tty->termios_lo= cked)); ^~~~~~ drivers/tty/pty.c:407:3: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_lo= cked)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/cpufreq/cpufreq_governor.c:52:8: warning: Call to function 'ssca= nf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sscanf(buf, "%u", &sampling_interval); ^~~~~~ drivers/cpufreq/cpufreq_governor.c:52:8: note: Call to function 'sscanf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sscanf_s' in case of C11 ret =3D sscanf(buf, "%u", &sampling_interval); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 24 warnings generated. >> drivers/cpufreq/brcmstb-avs-cpufreq.c:658:10: warning: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "\n"); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:658:10: note: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "\n"); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:660:9: warning: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", pstate); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:660:9: note: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", pstate); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:669:10: warning: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "\n"); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:669:10: note: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "\n"); ^~~~~~~ >> drivers/cpufreq/brcmstb-avs-cpufreq.c:671:9: warning: Call to function '= sprintf' is insecure as it does not provide bounding of the memory buffer o= r security checks introduced in the C11 standard. Replace with analogous fu= nctions that support length arguments or provides boundary checks such as '= sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOr= UnsafeBufferHandling] return sprintf(buf, "%s %u\n", brcm_avs_mode_to_string(pmap.mode= ), ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:671:9: note: Call to function 'spr= intf' is insecure as it does not provide bounding of the memory buffer or s= ecurity checks introduced in the C11 standard. Replace with analogous funct= ions that support length arguments or provides boundary checks such as 'spr= intf_s' in case of C11 return sprintf(buf, "%s %u\n", brcm_avs_mode_to_string(pmap.mode= ), ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:683:10: warning: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "\n"); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:683:10: note: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "\n"); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:688:9: warning: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%08x 0x%08x %u %u %u %u %u %u %u %u %u\n", ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:688:9: note: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%08x 0x%08x %u %u %u %u %u %u %u %u %u\n", ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:697:9: warning: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%08x\n", brcm_avs_get_voltage(priv->base)= ); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:697:9: note: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%08x\n", brcm_avs_get_voltage(priv->base)= ); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:704:9: warning: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%08x\n", brcm_avs_get_frequency(priv->bas= e)); ^~~~~~~ drivers/cpufreq/brcmstb-avs-cpufreq.c:704:9: note: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%08x\n", brcm_avs_get_frequency(priv->bas= e)); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. drivers/input/ff-memless.c:335:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(combo_effect, 0, sizeof(struct ff_effect)); ^~~~~~ drivers/input/ff-memless.c:335:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(combo_effect, 0, sizeof(struct ff_effect)); ^~~~~~ drivers/input/ff-memless.c:395:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(handled_bm, 0, sizeof(handled_bm)); ^~~~~~ drivers/input/ff-memless.c:395:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(handled_bm, 0, sizeof(handled_bm)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. drivers/input/mouse/elan_i2c_core.c:610:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%04x\n", data->fw_checksum); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:610:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%04x\n", data->fw_checksum); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:620:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, ETP_PRODUCT_ID_FORMAT_STRING "\n", ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:620:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, ETP_PRODUCT_ID_FORMAT_STRING "\n", ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:631:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d.0\n", data->fw_version); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:631:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d.0\n", data->fw_version); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:641:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d.0\n", data->sm_version); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:641:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d.0\n", data->sm_version); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:651:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d.0\n", data->iap_version); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:651:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d.0\n", data->iap_version); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:792:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", (int)mode); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:792:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", (int)mode); ^~~~~~~ drivers/input/mouse/elan_i2c_core.c:896:11: warning: Call to function 's= nprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'snprintf_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] retval =3D snprintf(buf, PAGE_SIZE, "%d", data->min_baseline); ^~~~~~~~ drivers/input/mouse/elan_i2c_core.c:896:11: note: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 retval =3D snprintf(buf, PAGE_SIZE, "%d", data->min_baseline); ^~~~~~~~ drivers/input/mouse/elan_i2c_core.c:919:11: warning: Call to function 's= nprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'snprintf_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] retval =3D snprintf(buf, PAGE_SIZE, "%d", data->max_baseline); ^~~~~~~~ drivers/input/mouse/elan_i2c_core.c:919:11: note: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 retval =3D snprintf(buf, PAGE_SIZE, "%d", data->max_baseline); ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. -- ^ drivers/counter/counter-chrdev.c:549:2: note: Loop condition is false. E= xecution continues on line 555 list_for_each_entry(event_node, &counter->events_list, l) ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/counter/counter-chrdev.c:555:6: note: Assuming the condition is = false if (&event_node->l =3D=3D &counter->events_list) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/counter/counter-chrdev.c:555:2: note: Taking false branch if (&event_node->l =3D=3D &counter->events_list) ^ drivers/counter/counter-chrdev.c:559:2: note: Loop condition is true. E= ntering loop body list_for_each_entry(comp_node, &event_node->comp_list, l) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/counter/counter-chrdev.c:561:16: note: Calling 'counter_get_data' ev.status =3D -counter_get_data(counter, comp_node, &ev.= value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ drivers/counter/counter-chrdev.c:462:2: note: 'ret' declared without an = initial value int ret; ^~~~~~~ drivers/counter/counter-chrdev.c:464:6: note: Assuming field 'type' is n= ot equal to COUNTER_COMPONENT_NONE if (comp_node->component.type =3D=3D COUNTER_COMPONENT_NONE) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/counter/counter-chrdev.c:464:2: note: Taking false branch if (comp_node->component.type =3D=3D COUNTER_COMPONENT_NONE) ^ drivers/counter/counter-chrdev.c:467:2: note: Control jumps to 'case COU= NTER_COMP_BOOL:' at line 469 switch (comp->type) { ^ drivers/counter/counter-chrdev.c:470:3: note: 'Default' branch taken. Ex= ecution continues on line 481 switch (comp_node->component.scope) { ^ drivers/counter/counter-chrdev.c:482:3: note: Undefined or garbage value= returned to caller return ret; ^ ~~~ drivers/counter/counter-chrdev.c:501:3: warning: Undefined or garbage va= lue returned to caller [clang-analyzer-core.uninitialized.UndefReturn] return ret; ^ drivers/counter/counter-chrdev.c:546:2: note: Loop condition is false. = Exiting loop spin_lock_irqsave(&counter->events_list_lock, flags); ^ include/linux/spinlock.h:379:2: note: expanded from macro 'spin_lock_irq= save' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^ include/linux/spinlock.h:240:2: note: expanded from macro 'raw_spin_lock= _irqsave' do { \ ^ drivers/counter/counter-chrdev.c:546:2: note: Loop condition is false. = Exiting loop spin_lock_irqsave(&counter->events_list_lock, flags); ^ include/linux/spinlock.h:377:43: note: expanded from macro 'spin_lock_ir= qsave' #define spin_lock_irqsave(lock, flags) \ ^ drivers/counter/counter-chrdev.c:549:2: note: Loop condition is false. E= xecution continues on line 555 list_for_each_entry(event_node, &counter->events_list, l) ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/counter/counter-chrdev.c:555:6: note: Assuming the condition is = false if (&event_node->l =3D=3D &counter->events_list) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/counter/counter-chrdev.c:555:2: note: Taking false branch if (&event_node->l =3D=3D &counter->events_list) ^ drivers/counter/counter-chrdev.c:559:2: note: Loop condition is true. E= ntering loop body list_for_each_entry(comp_node, &event_node->comp_list, l) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/counter/counter-chrdev.c:561:16: note: Calling 'counter_get_data' ev.status =3D -counter_get_data(counter, comp_node, &ev.= value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ drivers/counter/counter-chrdev.c:462:2: note: 'ret' declared without an = initial value int ret; ^~~~~~~ drivers/counter/counter-chrdev.c:464:6: note: Assuming field 'type' is n= ot equal to COUNTER_COMPONENT_NONE if (comp_node->component.type =3D=3D COUNTER_COMPONENT_NONE) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/counter/counter-chrdev.c:464:2: note: Taking false branch if (comp_node->component.type =3D=3D COUNTER_COMPONENT_NONE) ^ drivers/counter/counter-chrdev.c:467:2: note: Control jumps to 'case COU= NTER_COMP_COUNT_MODE:' at line 487 switch (comp->type) { ^ drivers/counter/counter-chrdev.c:488:3: note: 'Default' branch taken. Ex= ecution continues on line 500 switch (comp_node->component.scope) { ^ drivers/counter/counter-chrdev.c:501:3: note: Undefined or garbage value= returned to caller return ret; ^ ~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> fs/hfs/attr.c:47:4: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(&file->UsrWds.fdType, value, 4); ^~~~~~ fs/hfs/attr.c:47:4: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(&file->UsrWds.fdType, value, 4); ^~~~~~ fs/hfs/attr.c:54:4: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(&file->UsrWds.fdCreator, value, 4); ^~~~~~ fs/hfs/attr.c:54:4: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(&file->UsrWds.fdCreator, value, 4); ^~~~~~ fs/hfs/attr.c:95:4: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(value, &file->UsrWds.fdType, 4); ^~~~~~ fs/hfs/attr.c:95:4: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(value, &file->UsrWds.fdType, 4); ^~~~~~ fs/hfs/attr.c:103:4: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(value, &file->UsrWds.fdCreator, 4); ^~~~~~ fs/hfs/attr.c:103:4: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(value, &file->UsrWds.fdCreator, 4); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> drivers/input/mouse/elan_i2c_i2c.c:642:2: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&page_store[2], page, fw_page_size); ^~~~~~ drivers/input/mouse/elan_i2c_i2c.c:642:2: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&page_store[2], page, fw_page_size); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/input/mouse/elan_i2c_smbus.c:127:2: warning: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(val, buf, ETP_CALIBRATE_MAX_LEN); ^~~~~~ drivers/input/mouse/elan_i2c_smbus.c:127:2: note: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(val, buf, ETP_CALIBRATE_MAX_LEN); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. drivers/video/backlight/sky81452-backlight.c:128:5: warning: Call to fun= ction 'sprintf' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'sprintf_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(tmp, "%d ", i + 1); ^~~~~~~ drivers/video/backlight/sky81452-backlight.c:128:5: note: Call to functi= on 'sprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'sprintf_s' in case of C11 sprintf(tmp, "%d ", i + 1); ^~~~~~~ drivers/video/backlight/sky81452-backlight.c:129:5: warning: Call to fun= ction 'strcat' is insecure as it does not provide bounding of the memory bu= ffer. Replace unbounded copy functions with analogous functions that suppor= t length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.inse= cureAPI.strcpy] strcat(buf, tmp); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:129:5: note: Call to functi= on 'strcat' is insecure as it does not provide bounding of the memory buffe= r. Replace unbounded copy functions with analogous functions that support l= ength arguments such as 'strlcat'. CWE-119 strcat(buf, tmp); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:133:3: warning: Call to fun= ction 'strcat' is insecure as it does not provide bounding of the memory bu= ffer. Replace unbounded copy functions with analogous functions that suppor= t length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.inse= cureAPI.strcpy] strcat(buf, "\n"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:133:3: note: Call to functi= on 'strcat' is insecure as it does not provide bounding of the memory buffe= r. Replace unbounded copy functions with analogous functions that support l= ength arguments such as 'strlcat'. CWE-119 strcat(buf, "\n"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:135:3: warning: Call to fun= ction 'strcpy' is insecure as it does not provide bounding of the memory bu= ffer. Replace unbounded copy functions with analogous functions that suppor= t length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.inse= cureAPI.strcpy] strcpy(buf, "none\n"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:135:3: note: Call to functi= on 'strcpy' is insecure as it does not provide bounding of the memory buffe= r. Replace unbounded copy functions with analogous functions that support l= ength arguments such as 'strlcpy'. CWE-119 strcpy(buf, "none\n"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:155:3: warning: Call to fun= ction 'strcat' is insecure as it does not provide bounding of the memory bu= ffer. Replace unbounded copy functions with analogous functions that suppor= t length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.inse= cureAPI.strcpy] strcat(buf, "over-current "); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:155:3: note: Call to functi= on 'strcat' is insecure as it does not provide bounding of the memory buffe= r. Replace unbounded copy functions with analogous functions that support l= ength arguments such as 'strlcat'. CWE-119 strcat(buf, "over-current "); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:158:3: warning: Call to fun= ction 'strcat' is insecure as it does not provide bounding of the memory bu= ffer. Replace unbounded copy functions with analogous functions that suppor= t length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.inse= cureAPI.strcpy] strcat(buf, "over-temperature"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:158:3: note: Call to functi= on 'strcat' is insecure as it does not provide bounding of the memory buffe= r. Replace unbounded copy functions with analogous functions that support l= ength arguments such as 'strlcat'. CWE-119 strcat(buf, "over-temperature"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:160:2: warning: Call to fun= ction 'strcat' is insecure as it does not provide bounding of the memory bu= ffer. Replace unbounded copy functions with analogous functions that suppor= t length arguments such as 'strlcat'. CWE-119 [clang-analyzer-security.inse= cureAPI.strcpy] strcat(buf, "\n"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:160:2: note: Call to functi= on 'strcat' is insecure as it does not provide bounding of the memory buffe= r. Replace unbounded copy functions with analogous functions that support l= ength arguments such as 'strlcat'. CWE-119 strcat(buf, "\n"); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:293:2: warning: Call to fun= ction 'memset' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memset_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&props, 0, sizeof(props)); ^~~~~~ drivers/video/backlight/sky81452-backlight.c:293:2: note: Call to functi= on 'memset' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memset_s' in case of C11 memset(&props, 0, sizeof(props)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 74 warnings generated. net/phonet/socket.c:207:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&sa, 0, sizeof(sa)); ^~~~~~ net/phonet/socket.c:207:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&sa, 0, sizeof(sa)); ^~~~~~ net/phonet/socket.c:321:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(addr, 0, sizeof(struct sockaddr_pn)); ^~~~~~ net/phonet/socket.c:321:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(addr, 0, sizeof(struct sockaddr_pn)); ^~~~~~ net/phonet/socket.c:478:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&try_sa, 0, sizeof(struct sockaddr_pn)); ^~~~~~ net/phonet/socket.c:478:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&try_sa, 0, sizeof(struct sockaddr_pn)); ^~~~~~ Suppressed 71 warnings (71 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 72 warnings generated. net/phonet/datagram.c:148:3: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(msg->msg_name, &sa, sizeof(sa)); ^~~~~~ net/phonet/datagram.c:148:3: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(msg->msg_name, &sa, sizeof(sa)); -- ^ fs/netfs/read_helper.c:355:2: note: Calling 'netfs_rreq_do_write_to_cach= e' netfs_rreq_do_write_to_cache(rreq); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/netfs/read_helper.c:308:2: note: Loop condition is true. Entering lo= op body list_for_each_entry_safe(subreq, p, &rreq->subrequests, rreq_lin= k) { ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ fs/netfs/read_helper.c:309:7: note: Assuming the condition is true if (!test_bit(NETFS_SREQ_WRITE_TO_CACHE, &subreq->flags)= ) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/netfs/read_helper.c:309:3: note: Taking true branch if (!test_bit(NETFS_SREQ_WRITE_TO_CACHE, &subreq->flags)= ) { ^ fs/netfs/read_helper.c:311:4: note: Calling 'netfs_put_subrequest' netfs_put_subrequest(subreq, false); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/netfs/read_helper.c:36:2: note: Taking true branch if (refcount_dec_and_test(&subreq->usage)) ^ fs/netfs/read_helper.c:37:3: note: Calling '__netfs_put_subrequest' __netfs_put_subrequest(subreq, was_async); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/netfs/read_helper.c:142:2: note: Memory is released kfree(subreq); ^~~~~~~~~~~~~ fs/netfs/read_helper.c:143:2: note: Loop condition is false. Exiting lo= op netfs_stat_d(&netfs_n_rh_sreq); ^ fs/netfs/internal.h:55:25: note: expanded from macro 'netfs_stat_d' #define netfs_stat_d(x) do {} while(0) ^ fs/netfs/read_helper.c:37:3: note: Returning; memory was released __netfs_put_subrequest(subreq, was_async); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/netfs/read_helper.c:311:4: note: Returning; memory was released netfs_put_subrequest(subreq, false); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/netfs/read_helper.c:308:2: note: Loop condition is false. Execution c= ontinues on line 315 list_for_each_entry_safe(subreq, p, &rreq->subrequests, rreq_lin= k) { ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ fs/netfs/read_helper.c:315:2: note: Loop condition is true. Entering lo= op body list_for_each_entry(subreq, &rreq->subrequests, rreq_link) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ fs/netfs/read_helper.c:317:11: note: Calling 'list_is_last' while (!list_is_last(&subreq->rreq_link, &rreq->subreque= sts)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ include/linux/list.h:273:9: note: Use of memory after it is freed return list->next =3D=3D head; ^~~~~~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/tty/serial/8250/8250_core.c:801:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&uart, 0, sizeof(uart)); ^~~~~~ drivers/tty/serial/8250/8250_core.c:801:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(&uart, 0, sizeof(uart)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/tty/serial/8250/8250_port.c:687:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(rs485->padding, 0, sizeof(rs485->padding)); ^~~~~~ drivers/tty/serial/8250/8250_port.c:687:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(rs485->padding, 0, sizeof(rs485->padding)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 63 warnings generated. Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 170 warnings generated. Suppressed 170 warnings (167 in non-user code, 3 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 81 warnings generated. Suppressed 81 warnings (80 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 76 warnings generated. Suppressed 76 warnings (76 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 75 warnings generated. >> net/core/netprio_cgroup.c:74:3: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new->priomap, old->priomap, ^~~~~~ net/core/netprio_cgroup.c:74:3: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(new->priomap, old->priomap, ^~~~~~ >> net/core/netprio_cgroup.c:203:6: warning: Call to function 'sscanf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(buf, "%"__stringify(IFNAMSIZ)"s %u", devname, &prio) = !=3D 2) ^~~~~~ net/core/netprio_cgroup.c:203:6: note: Call to function 'sscanf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sscanf_s' in case of C11 if (sscanf(buf, "%"__stringify(IFNAMSIZ)"s %u", devname, &prio) = !=3D 2) ^~~~~~ Suppressed 73 warnings (73 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 81 warnings generated. Suppressed 81 warnings (80 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 67 warnings generated. net/core/failover.c:66:46: warning: Access to field 'slave_handle_frame'= results in a dereference of a null pointer (loaded from variable 'fops') [= clang-analyzer-core.NullDereference] err =3D netdev_rx_handler_register(slave_dev, fops->slave_handle= _frame, ^ net/core/failover.c:247:6: note: Assuming field 'type' is equal to ARPHR= D_ETHER if (dev->type !=3D ARPHRD_ETHER) ^~~~~~~~~~~~~~~~~~~~~~~~~ net/core/failover.c:247:2: note: Taking false branch if (dev->type !=3D ARPHRD_ETHER) ^ net/core/failover.c:251:6: note: Assuming 'failover' is non-null if (!failover) ^~~~~~~~~ net/core/failover.c:251:2: note: Taking false branch if (!failover) ^ net/core/failover.c:254:2: note: Left side of '&&' is false rcu_assign_pointer(failover->ops, ops); ^ include/linux/rcupdate.h:452:30: note: expanded from macro 'rcu_assign_p= ointer' if (__builtin_constant_p(v) && (_r_a_p__v) =3D=3D (uintptr_t)NUL= L) \ ^ net/core/failover.c:254:2: note: Left side of '||' is false rcu_assign_pointer(failover->ops, ops); ^ include/linux/rcupdate.h:455:3: note: expanded from macro 'rcu_assign_po= inter' smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p_= _v)); \ ^ include/asm-generic/barrier.h:188:2: note: expanded from macro 'smp_stor= e_release' compiletime_assert_atomic_type(*p); \ ^ include/linux/compiler_types.h:349:21: note: expanded from macro 'compil= etime_assert_atomic_type' compiletime_assert(__native_word(t), \ ^ include/linux/compiler_types.h:313:3: note: expanded from macro '__nativ= e_word' (sizeof(t) =3D=3D sizeof(char) || sizeof(t) =3D=3D sizeof(short)= || \ ^ net/core/failover.c:254:2: note: Left side of '||' is false rcu_assign_pointer(failover->ops, ops); ^ include/linux/rcupdate.h:455:3: note: expanded from macro 'rcu_assign_po= inter' smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p_= _v)); \ ^ include/asm-generic/barrier.h:188:2: note: expanded from macro 'smp_stor= e_release' compiletime_assert_atomic_type(*p); \ ^ include/linux/compiler_types.h:349:21: note: expanded from macro 'compil= etime_assert_atomic_type' compiletime_assert(__native_word(t), \ ^ include/linux/compiler_types.h:313:3: note: expanded from macro '__nativ= e_word' (sizeof(t) =3D=3D sizeof(char) || sizeof(t) =3D=3D sizeof(short)= || \ ^ net/core/failover.c:254:2: note: Left side of '||' is true rcu_assign_pointer(failover->ops, ops); ^ include/linux/rcupdate.h:455:3: note: expanded from macro 'rcu_assign_po= inter' smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p_= _v)); \ ^ include/asm-generic/barrier.h:188:2: note: expanded from macro 'smp_stor= e_release' compiletime_assert_atomic_type(*p); \ ^ include/linux/compiler_types.h:349:21: note: expanded from macro 'compil= etime_assert_atomic_type' compiletime_assert(__native_word(t), \ ^ include/linux/compiler_types.h:314:28: note: expanded from macro '__nati= ve_word' sizeof(t) =3D=3D sizeof(int) || sizeof(t) =3D=3D sizeof(long)) ^ net/core/failover.c:254:2: note: Taking false branch rcu_assign_pointer(failover->ops, ops); ^ include/linux/rcupdate.h:455:3: note: expanded from macro 'rcu_assign_po= inter' smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p_= _v)); \ ^ include/asm-generic/barrier.h:188:2: note: expanded from macro 'smp_stor= e_release' compiletime_assert_atomic_type(*p); \ ^ include/linux/compiler_types.h:349:2: note: expanded from macro 'compile= time_assert_atomic_type' compiletime_assert(__native_word(t), \ ^ include/linux/compiler_types.h:346:2: note: expanded from macro 'compile= time_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COU= NTER__) ^ include/linux/compiler_types.h:334:2: note: expanded from macro '_compil= etime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:326:3: note: expanded from macro '__compi= letime_assert' if (!(condition)) \ ^ net/core/failover.c:254:2: note: Loop condition is false. Exiting loop rcu_assign_pointer(failover->ops, ops); -- 90 warnings generated. net/bridge/br_device.c:41:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(skb->cb, 0, sizeof(struct br_input_skb_cb)); ^~~~~~ net/bridge/br_device.c:41:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(skb->cb, 0, sizeof(struct br_input_skb_cb)); ^~~~~~ Suppressed 89 warnings (83 in non-user code, 6 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 89 warnings generated. net/bridge/br_fdb.c:217:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(key.addr.addr, addr, sizeof(key.addr.addr)); ^~~~~~ net/bridge/br_fdb.c:217:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(key.addr.addr, addr, sizeof(key.addr.addr)); ^~~~~~ net/bridge/br_fdb.c:391:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(fdb->key.addr.addr, addr, ETH_ALEN); ^~~~~~ net/bridge/br_fdb.c:391:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(fdb->key.addr.addr, addr, ETH_ALEN); ^~~~~~ net/bridge/br_fdb.c:647:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, maxnum*sizeof(struct __fdb_entry)); ^~~~~~ net/bridge/br_fdb.c:647:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(buf, 0, maxnum*sizeof(struct __fdb_entry)); ^~~~~~ net/bridge/br_fdb.c:667:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(fe->mac_addr, f->key.addr.addr, ETH_ALEN); ^~~~~~ net/bridge/br_fdb.c:667:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(fe->mac_addr, f->key.addr.addr, ETH_ALEN); ^~~~~~ net/bridge/br_fdb.c:1045:3: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(nfea_tb, 0, sizeof(struct nlattr *) * (NFEA_MAX += 1)); ^~~~~~ net/bridge/br_fdb.c:1045:3: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(nfea_tb, 0, sizeof(struct nlattr *) * (NFEA_MAX += 1)); ^~~~~~ Suppressed 84 warnings (83 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 68 warnings generated. net/802/mrp.c:282:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(attr->value, value, len); ^~~~~~ net/802/mrp.c:282:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(attr->value, value, len); ^~~~~~ net/802/mrp.c:397:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(vah->firstattrvalue, firstattrvalue, attrlen); ^~~~~~ net/802/mrp.c:397:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(vah->firstattrvalue, firstattrvalue, attrlen); ^~~~~~ net/802/mrp.c:399:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(mrp_cb(app->pdu)->attrvalue, firstattrvalue, attrlen); ^~~~~~ net/802/mrp.c:399:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(mrp_cb(app->pdu)->attrvalue, firstattrvalue, attrlen); ^~~~~~ Suppressed 65 warnings (65 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 7 warnings generated. Suppressed 7 warnings (7 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. drivers/target/target_core_rd.c:163:4: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(p, init_payload, PAGE_SIZE); ^~~~~~ drivers/target/target_core_rd.c:163:4: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(p, init_payload, PAGE_SIZE); ^~~~~~ drivers/target/target_core_rd.c:487:4: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(m.addr, rd_addr, len); ^~~~~~ drivers/target/target_core_rd.c:487:4: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(m.addr, rd_addr, len); ^~~~~~ drivers/target/target_core_rd.c:489:4: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(rd_addr, m.addr, len); ^~~~~~ drivers/target/target_core_rd.c:489:4: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(rd_addr, m.addr, len); ^~~~~~ drivers/target/target_core_rd.c:599:15: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ssize_t bl =3D sprintf(b, "TCM RamDisk ID: %u RamDisk Makeup: r= d_mcp\n", ^~~~~~~ drivers/target/target_core_rd.c:599:15: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 ssize_t bl =3D sprintf(b, "TCM RamDisk ID: %u RamDisk Makeup: r= d_mcp\n", ^~~~~~~ drivers/target/target_core_rd.c:601:8: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] bl +=3D sprintf(b + bl, " PAGES/PAGE_SIZE: %u*%lu" ^~~~~~~ drivers/target/target_core_rd.c:601:8: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 bl +=3D sprintf(b + bl, " PAGES/PAGE_SIZE: %u*%lu" ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 90 warnings generated. >> net/bridge/br_vlan.c:1310:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(stats, 0, sizeof(*stats)); ^~~~~~ net/bridge/br_vlan.c:1310:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(stats, 0, sizeof(*stats)); ^~~~~~ net/bridge/br_vlan.c:1751:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&info, 0, sizeof(info)); ^~~~~~ net/bridge/br_vlan.c:1751:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&info, 0, sizeof(info)); ^~~~~~ net/bridge/br_vlan.c:1829:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(bvm, 0, sizeof(*bvm)); ^~~~~~ net/bridge/br_vlan.c:1829:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(bvm, 0, sizeof(*bvm)); ^~~~~~ net/bridge/br_vlan.c:1905:3: warning: Value stored to 'br' is never read= [clang-analyzer-deadcode.DeadStores] br =3D p->br; ^ ~~~~~ net/bridge/br_vlan.c:1905:3: note: Value stored to 'br' is never read br =3D p->br; ^ ~~~~~ net/bridge/br_vlan.c:1916:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(bvm, 0, sizeof(*bvm)); ^~~~~~ net/bridge/br_vlan.c:1916:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(bvm, 0, sizeof(*bvm)); ^~~~~~ net/bridge/br_vlan.c:2093:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&vrange_end, 0, sizeof(vrange_end)); ^~~~~~ net/bridge/br_vlan.c:2093:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&vrange_end, 0, sizeof(vrange_end)); ^~~~~~ Suppressed 84 warnings (83 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 64 warnings generated. net/caif/cfpkt_skbuff.c:112:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, skb->data, len); ^~~~~~ net/caif/cfpkt_skbuff.c:112:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(data, skb->data, len); ^~~~~~ net/caif/cfpkt_skbuff.c:140:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, from, len); ^~~~~~ net/caif/cfpkt_skbuff.c:140:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(data, from, len); ^~~~~~ net/caif/cfpkt_skbuff.c:163:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, from, len); ^~~~~~ net/caif/cfpkt_skbuff.c:163:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(data, from, len); ^~~~~~ net/caif/cfpkt_skbuff.c:206:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(to, data, len); ^~~~~~ net/caif/cfpkt_skbuff.c:206:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(to, data, len); ^~~~~~ net/caif/cfpkt_skbuff.c:237:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(to, data, len); ^~~~~~ net/caif/cfpkt_skbuff.c:237:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(to, data, len); ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. >> drivers/tty/serial/8250/8250_aspeed_vuart.c:85:9: warning: Call to funct= ion 'snprintf' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'snprintf_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE - 1, "0x%x\n", addr); ^~~~~~~~ drivers/tty/serial/8250/8250_aspeed_vuart.c:85:9: note: Call to function= 'snprintf' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE - 1, "0x%x\n", addr); ^~~~~~~~ drivers/tty/serial/8250/8250_aspeed_vuart.c:127:9: warning: Call to func= tion 'snprintf' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'snprintf_s' in case of C11= [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE - 1, "%u\n", reg); ^~~~~~~~ drivers/tty/serial/8250/8250_aspeed_vuart.c:127:9: note: Call to functio= n 'snprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE - 1, "%u\n", reg); ^~~~~~~~ drivers/tty/serial/8250/8250_aspeed_vuart.c:174:9: warning: Call to func= tion 'snprintf' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'snprintf_s' in case of C11= [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE - 1, "%u\n", reg ? 1 : 0); ^~~~~~~~ drivers/tty/serial/8250/8250_aspeed_vuart.c:174:9: note: Call to functio= n 'snprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE - 1, "%u\n", reg ? 1 : 0); ^~~~~~~~ >> drivers/tty/serial/8250/8250_aspeed_vuart.c:433:2: warning: Call to func= tion 'memset' is insecure as it does not provide security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'memset_s' in case of C11 [cl= ang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&port, 0, sizeof(port)); ^~~~~~ drivers/tty/serial/8250/8250_aspeed_vuart.c:433:2: note: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 memset(&port, 0, sizeof(port)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. crypto/essiv.c:213:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(iv, req->iv, ivsize); ^~~~~~ crypto/essiv.c:213:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(iv, req->iv, ivsize); ^~~~~~ crypto/essiv.c:403:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(essiv_cipher_name, p, len); ^~~~~~ crypto/essiv.c:403:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(essiv_cipher_name, p, len); ^~~~~~ crypto/essiv.c:552:6: warning: Call to function 'snprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ crypto/essiv.c:552:6: note: Call to function 'snprintf' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'snprintf_s' in case of C11 if (snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ crypto/essiv.c:556:6: warning: Call to function 'snprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ crypto/essiv.c:556:6: note: Call to function 'snprintf' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'snprintf_s' in case of C11 if (snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 99 warnings generated. drivers/target/target_core_stat.c:52:9: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); ^~~~~~~~ drivers/target/target_core_stat.c:52:9: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); ^~~~~~~~ drivers/target/target_core_stat.c:57:9: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_= index); ^~~~~~~~ drivers/target/target_core_stat.c:57:9: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_= index); ^~~~~~~~ drivers/target/target_core_stat.c:62:9: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "Target\n"); ^~~~~~~~ drivers/target/target_core_stat.c:62:9: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "Target\n"); ^~~~~~~~ drivers/target/target_core_stat.c:67:9: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->expo= rt_count); ^~~~~~~~ drivers/target/target_core_stat.c:67:9: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->expo= rt_count); ^~~~~~~~ drivers/target/target_core_stat.c:102:9: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); ^~~~~~~~ drivers/target/target_core_stat.c:102:9: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); ^~~~~~~~ drivers/target/target_core_stat.c:107:9: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->= dev_index); ^~~~~~~~ drivers/target/target_core_stat.c:107:9: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->= dev_index); ^~~~~~~~ drivers/target/target_core_stat.c:113:9: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); ^~~~~~~~ drivers/target/target_core_stat.c:113:9: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); ^~~~~~~~ drivers/target/target_core_stat.c:120:10: warning: Call to function 'snp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'snprintf_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "activated"); ^~~~~~~~ drivers/target/target_core_stat.c:120:10: note: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "activated"); ^~~~~~~~ drivers/target/target_core_stat.c:122:10: warning: Call to function 'snp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'snprintf_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "deactivated"); ^~~~~~~~ drivers/target/target_core_stat.c:122:10: note: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "deactivated"); ^~~~~~~~ drivers/target/target_core_stat.c:135:9: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); ^~~~~~~~ drivers/target/target_core_stat.c:135:9: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); ^~~~~~~~ drivers/target/target_core_stat.c:141:9: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(page, PAGE_SIZE, "%lu\n", ^~~~~~~~ drivers/target/target_core_stat.c:141:9: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(page, PAGE_SIZE, "%lu\n", -- ^~~~~ fs/jffs2/nodelist.c:665:2: note: Taking false branch if (!size) ^ fs/jffs2/nodelist.c:667:15: note: Assuming 'size' is <=3D field 'free_si= ze' if (unlikely(size > jeb->free_size)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ fs/jffs2/nodelist.c:667:2: note: Taking false branch if (unlikely(size > jeb->free_size)) { ^ fs/jffs2/nodelist.c:673:6: note: Assuming field 'last_node' is null if (jeb->last_node && ref_obsolete(jeb->last_node)) { ^~~~~~~~~~~~~~ fs/jffs2/nodelist.c:673:21: note: Left side of '&&' is false if (jeb->last_node && ref_obsolete(jeb->last_node)) { ^ fs/jffs2/nodelist.c:685:3: note: Calling 'jffs2_link_node_ref' jffs2_link_node_ref(c, jeb, ofs, size, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/jffs2/nodelist.c:592:9: note: Assuming field 'allocated_refs' is not = equal to 0 BUG_ON(!jeb->allocated_refs); ^ include/asm-generic/bug.h:65:45: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ fs/jffs2/nodelist.c:592:2: note: Taking false branch BUG_ON(!jeb->allocated_refs); ^ include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ fs/jffs2/nodelist.c:592:2: note: Loop condition is false. Exiting loop BUG_ON(!jeb->allocated_refs); ^ include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ fs/jffs2/nodelist.c:595:2: note: Null pointer value stored to 'ref' ref =3D jeb->last_node; ^~~~~~~~~~~~~~~~~~~~ fs/jffs2/nodelist.c:597:2: note: Taking false branch dbg_noderef("Last node at %p is (%08x,%p)\n", ref, ref->flash_of= fset, ^ fs/jffs2/debug.h:134:31: note: expanded from macro 'dbg_noderef' #define dbg_noderef(fmt, ...) no_printk(fmt, ##__VA_ARGS__) ^ include/linux/printk.h:131:2: note: expanded from macro 'no_printk' if (0) \ ^ fs/jffs2/nodelist.c:600:9: note: Access to field 'flash_offset' results = in a dereference of a null pointer (loaded from variable 'ref') while (ref->flash_offset !=3D REF_EMPTY_NODE) { ^~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. fs/jffs2/read.c:80:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, len); ^~~~~~ fs/jffs2/read.c:80:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(buf, 0, len); ^~~~~~ fs/jffs2/read.c:143:3: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, decomprbuf+ofs, len); ^~~~~~ fs/jffs2/read.c:143:3: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(buf, decomprbuf+ofs, len); ^~~~~~ fs/jffs2/read.c:187:4: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, holesize); ^~~~~~ fs/jffs2/read.c:187:4: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(buf, 0, holesize); ^~~~~~ fs/jffs2/read.c:196:4: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, holeend - offset); ^~~~~~ fs/jffs2/read.c:196:4: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(buf, 0, holeend - offset); ^~~~~~ fs/jffs2/read.c:217:5: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0, readlen); ^~~~~~ fs/jffs2/read.c:217:5: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(buf, 0, readlen); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. >> kernel/trace/preemptirq_delay_test.c:154:2: warning: Call to function 's= nprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'snprintf_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(task_name, sizeof(task_name), "%s_test", test_mode); ^~~~~~~~ kernel/trace/preemptirq_delay_test.c:154:2: note: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(task_name, sizeof(task_name), "%s_test", test_mode); ^~~~~~~~ Suppressed 9 warnings (9 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. kernel/trace/synth_event_gen_test.c:362:2: warning: Value stored to 'ret= ' is never read [clang-analyzer-deadcode.DeadStores] ret =3D synth_event_add_next_val(395, &trace_state); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/trace/synth_event_gen_test.c:362:2: note: Value stored to 'ret' i= s never read ret =3D synth_event_add_next_val(395, &trace_state); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/trace/synth_event_gen_test.c:413:2: warning: Value stored to 'ret= ' is never read [clang-analyzer-deadcode.DeadStores] ret =3D synth_event_add_val("my_int_field", 3999, &trace_state); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/trace/synth_event_gen_test.c:413:2: note: Value stored to 'ret' i= s never read ret =3D synth_event_add_val("my_int_field", 3999, &trace_state); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. include/linux/list.h:72:13: warning: Access to field 'prev' results in a= dereference of a null pointer (loaded from variable 'next') [clang-analyze= r-core.NullDereference] next->prev =3D new; ^ mm/zsmalloc.c:2152:16: note: Calling 'zs_compact' pages_freed =3D zs_compact(pool); ^~~~~~~~~~~~~~~~ mm/zsmalloc.c:2120:11: note: '?' condition is true for (i =3D ZS_SIZE_CLASSES - 1; i >=3D 0; i--) { ^ mm/zsmalloc.c:151:59: note: expanded from macro 'ZS_SIZE_CLASSES' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_S= IZE, \ ^ mm/zsmalloc.c:133:2: note: expanded from macro 'ZS_MIN_ALLOC_SIZE' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS= )) ^ mm/zsmalloc.c:130:20: note: expanded from macro 'MAX' #define MAX(a, b) ((a) >=3D (b) ? (a) : (b)) ^ mm/zsmalloc.c:2120:2: note: Loop condition is true. Entering loop body for (i =3D ZS_SIZE_CLASSES - 1; i >=3D 0; i--) { ^ mm/zsmalloc.c:2122:7: note: Assuming 'class' is non-null if (!class) ^~~~~~ mm/zsmalloc.c:2122:3: note: Taking false branch if (!class) ^ mm/zsmalloc.c:2124:7: note: Assuming 'i' is equal to field 'index' if (class->index !=3D i) ^~~~~~~~~~~~~~~~~ mm/zsmalloc.c:2124:3: note: Taking false branch if (class->index !=3D i) ^ mm/zsmalloc.c:2126:18: note: Calling '__zs_compact' pages_freed +=3D __zs_compact(pool, class); ^~~~~~~~~~~~~~~~~~~~~~~~~ mm/zsmalloc.c:2054:2: note: Calling 'spin_lock' spin_lock(&class->lock); ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/spinlock.h:349:2: note: Value assigned to field 'next' raw_spin_lock(&lock->rlock); ^ include/linux/spinlock.h:215:29: note: expanded from macro 'raw_spin_loc= k' #define raw_spin_lock(lock) _raw_spin_lock(lock) ^~~~~~~~~~~~~~~~~~~~ mm/zsmalloc.c:2054:2: note: Returning from 'spin_lock' spin_lock(&class->lock); ^~~~~~~~~~~~~~~~~~~~~~~ mm/zsmalloc.c:2055:2: note: Loop condition is true. Entering loop body while ((src_zspage =3D isolate_zspage(class, true))) { ^ mm/zsmalloc.c:2059:7: note: Assuming the condition is true if (!zs_can_compact(class)) ^~~~~~~~~~~~~~~~~~~~~~ mm/zsmalloc.c:2059:3: note: Taking true branch if (!zs_can_compact(class)) ^ mm/zsmalloc.c:2060:4: note: Execution continues on line 2103 break; ^ mm/zsmalloc.c:2103:6: note: 'src_zspage' is non-null if (src_zspage) { ^~~~~~~~~~ mm/zsmalloc.c:2103:2: note: Taking true branch if (src_zspage) { ^ mm/zsmalloc.c:2104:3: note: Calling 'putback_zspage' putback_zspage(class, src_zspage); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mm/zsmalloc.c:1708:2: note: Calling 'insert_zspage' insert_zspage(class, zspage, fullness); -- ^ drivers/gpio/gpiolib-cdev.c:202:13: note: Left side of '&&' is true if (cmd =3D=3D GPIOHANDLE_GET_LINE_VALUES_IOCTL) { ^ include/uapi/linux/gpio.h:523:42: note: expanded from macro 'GPIOHANDLE_= GET_LINE_VALUES_IOCTL' #define GPIOHANDLE_GET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x08, struct gpioha= ndle_data) ^ include/uapi/asm-generic/ioctl.h:88:68: note: expanded from macro '_IOWR' #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_= IOC_TYPECHECK(size))) ^ include/asm-generic/ioctl.h:13:4: note: expanded from macro '_IOC_TYPECH= ECK' ((sizeof(t) =3D=3D sizeof(t[1]) && \ ^ drivers/gpio/gpiolib-cdev.c:202:13: note: '?' condition is true if (cmd =3D=3D GPIOHANDLE_GET_LINE_VALUES_IOCTL) { ^ include/uapi/linux/gpio.h:523:42: note: expanded from macro 'GPIOHANDLE_= GET_LINE_VALUES_IOCTL' #define GPIOHANDLE_GET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x08, struct gpioha= ndle_data) ^ include/uapi/asm-generic/ioctl.h:88:68: note: expanded from macro '_IOWR' #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_= IOC_TYPECHECK(size))) ^ include/asm-generic/ioctl.h:13:3: note: expanded from macro '_IOC_TYPECH= ECK' ((sizeof(t) =3D=3D sizeof(t[1]) && \ ^ drivers/gpio/gpiolib-cdev.c:202:6: note: Assuming the condition is false if (cmd =3D=3D GPIOHANDLE_GET_LINE_VALUES_IOCTL) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-cdev.c:202:2: note: Taking false branch if (cmd =3D=3D GPIOHANDLE_GET_LINE_VALUES_IOCTL) { ^ drivers/gpio/gpiolib-cdev.c:221:20: note: Left side of '&&' is true } else if (cmd =3D=3D GPIOHANDLE_SET_LINE_VALUES_IOCTL) { ^ include/uapi/linux/gpio.h:524:42: note: expanded from macro 'GPIOHANDLE_= SET_LINE_VALUES_IOCTL' #define GPIOHANDLE_SET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x09, struct gpioha= ndle_data) ^ include/uapi/asm-generic/ioctl.h:88:68: note: expanded from macro '_IOWR' #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_= IOC_TYPECHECK(size))) ^ include/asm-generic/ioctl.h:13:4: note: expanded from macro '_IOC_TYPECH= ECK' ((sizeof(t) =3D=3D sizeof(t[1]) && \ ^ drivers/gpio/gpiolib-cdev.c:221:20: note: '?' condition is true } else if (cmd =3D=3D GPIOHANDLE_SET_LINE_VALUES_IOCTL) { ^ include/uapi/linux/gpio.h:524:42: note: expanded from macro 'GPIOHANDLE_= SET_LINE_VALUES_IOCTL' #define GPIOHANDLE_SET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x09, struct gpioha= ndle_data) ^ include/uapi/asm-generic/ioctl.h:88:68: note: expanded from macro '_IOWR' #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_= IOC_TYPECHECK(size))) ^ include/asm-generic/ioctl.h:13:3: note: expanded from macro '_IOC_TYPECH= ECK' ((sizeof(t) =3D=3D sizeof(t[1]) && \ ^ drivers/gpio/gpiolib-cdev.c:221:13: note: Assuming the condition is true } else if (cmd =3D=3D GPIOHANDLE_SET_LINE_VALUES_IOCTL) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-cdev.c:221:9: note: Taking true branch } else if (cmd =3D=3D GPIOHANDLE_SET_LINE_VALUES_IOCTL) { ^ drivers/gpio/gpiolib-cdev.c:226:7: note: Assuming the condition is false if (!test_bit(FLAG_IS_OUT, &lh->descs[0]->flags)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-cdev.c:226:3: note: Taking false branch if (!test_bit(FLAG_IS_OUT, &lh->descs[0]->flags)) ^ drivers/gpio/gpiolib-cdev.c:229:3: note: Taking false branch if (copy_from_user(&ghd, ip, sizeof(ghd))) ^ drivers/gpio/gpiolib-cdev.c:233:15: note: Assuming 'i' is < field 'num_d= escs' for (i =3D 0; i < lh->num_descs; i++) ^~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-cdev.c:233:3: note: Loop condition is true. Enteri= ng loop body for (i =3D 0; i < lh->num_descs; i++) ^ drivers/gpio/gpiolib-cdev.c:234:4: note: Calling '__assign_bit' __assign_bit(i, vals, ghd.values[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitops.h:217:6: note: Assuming 'value' is false if (value) ^~~~~ include/linux/bitops.h:217:2: note: Taking false branch if (value) ^ include/linux/bitops.h:220:3: note: Calling 'arch___clear_bit' __clear_bit(nr, addr); ^ include/asm-generic/bitops/non-atomic.h:34:21: note: expanded from macro= '__clear_bit' #define __clear_bit arch___clear_bit ^ include/asm-generic/bitops/non-atomic.h:32:5: note: The left expression = of the compound assignment is an uninitialized value. The computed value wi= ll also be garbage *p &=3D ~mask; ~~ ^ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. >> fs/affs/amigaffs.c:185:3: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(AFFS_TAIL(sb, bh)->name, AFFS_TAIL(sb, link_bh)->= name, 32); ^~~~~~ fs/affs/amigaffs.c:185:3: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(AFFS_TAIL(sb, bh)->name, AFFS_TAIL(sb, link_bh)->= name, 32); ^~~~~~ fs/affs/amigaffs.c:541:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(bstr, dentry->d_name.name, len); ^~~~~~ fs/affs/amigaffs.c:541:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(bstr, dentry->d_name.name, len); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. fs/fuse/dev.c:667:2: warning: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memset(cs, 0, sizeof(*cs)); ^~~~~~ fs/fuse/dev.c:667:2: note: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 memset(cs, 0, sizeof(*cs)); ^~~~~~ fs/fuse/dev.c:763:4: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(buf, *val, ncpy); ^~~~~~ fs/fuse/dev.c:763:4: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(buf, *val, ncpy); ^~~~~~ fs/fuse/dev.c:765:4: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(*val, buf, ncpy); ^~~~~~ fs/fuse/dev.c:765:4: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(*val, buf, ncpy); ^~~~~~ fs/fuse/dev.c:1055:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&ih, 0, sizeof(ih)); ^~~~~~ fs/fuse/dev.c:1055:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&ih, 0, sizeof(ih)); ^~~~~~ fs/fuse/dev.c:1056:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&arg, 0, sizeof(arg)); ^~~~~~ fs/fuse/dev.c:1056:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&arg, 0, sizeof(arg)); ^~~~~~ fs/fuse/dev.c:1704:30: warning: The left operand of '<' is a garbage val= ue [clang-analyzer-core.UndefinedBinaryOperatorResult] while (num && ap->num_pages < num_pages) { ^ fs/fuse/dev.c:1972:6: note: Assuming 'fud' is non-null if (!fud) ^~~~ fs/fuse/dev.c:1972:2: note: Taking false branch if (!fud) ^ fs/fuse/dev.c:1983:6: note: Assuming 'bufs' is non-null if (!bufs) { ^~~~~ fs/fuse/dev.c:1983:2: note: Taking false branch if (!bufs) { ^ fs/fuse/dev.c:1990:19: note: Assuming 'idx' is not equal to 'head' for (idx =3D tail; idx !=3D head && rem < len; idx++) ^~~~~~~~~~~ fs/fuse/dev.c:1990:19: note: Left side of '&&' is true fs/fuse/dev.c:1990:34: note: Assuming 'rem' is < 'len' for (idx =3D tail; idx !=3D head && rem < len; idx++) ^~~~~~~~~ fs/fuse/dev.c:1990:2: note: Loop condition is true. Entering loop body for (idx =3D tail; idx !=3D head && rem < len; idx++) ^ fs/fuse/dev.c:1990:19: note: Assuming 'idx' is equal to 'head' for (idx =3D tail; idx !=3D head && rem < len; idx++) ^~~~~~~~~~~ fs/fuse/dev.c:1990:31: note: Left side of '&&' is false for (idx =3D tail; idx !=3D head && rem < len; idx++) ^ fs/fuse/dev.c:1994:6: note: Assuming 'rem' is >=3D 'len' if (rem < len) ^~~~~~~~~ fs/fuse/dev.c:1994:2: note: Taking false branch if (rem < len) ^ fs/fuse/dev.c:1998:2: note: Loop condition is true. Entering loop body while (rem) { ^ fs/fuse/dev.c:2002:15: note: 'nbuf' is < 'count' if (WARN_ON(nbuf >=3D count || tail =3D=3D head)) ^ include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON' int __ret_warn_on =3D !!(condition); = \ ^~~~~~~~~ fs/fuse/dev.c:2002:15: note: Left side of '||' is false if (WARN_ON(nbuf >=3D count || tail =3D=3D head)) ^ fs/fuse/dev.c:2002:32: note: 'tail' is not equal to 'head' -- ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ drivers/hid/hid-input.c:2016:12: note: Field 'input_configured' is null if (drv->input_configured && ^ drivers/hid/hid-input.c:2016:29: note: Left side of '&&' is false if (drv->input_configured && ^ drivers/hid/hid-input.c:2020:7: note: Assuming the condition is false if (!hidinput_has_been_populated(hidinput)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-input.c:2020:3: note: Taking false branch if (!hidinput_has_been_populated(hidinput)) { ^ drivers/hid/hid-input.c:2026:7: note: Assuming the condition is true if (input_register_device(hidinput->input)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-input.c:2026:3: note: Taking true branch if (input_register_device(hidinput->input)) ^ drivers/hid/hid-input.c:2027:4: note: Control jumps to line 2044 goto out_unwind; ^ drivers/hid/hid-input.c:2044:2: note: Calling 'hidinput_disconnect' hidinput_disconnect(hid); ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-input.c:2056:2: note: Use of memory after it is freed list_for_each_entry_safe(hidinput, next, &hid->inputs, list) { ^ include/linux/list.h:726:7: note: expanded from macro 'list_for_each_ent= ry_safe' n =3D list_next_entry(pos, member); = \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:564:2: note: expanded from macro 'list_next_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:520:2: note: expanded from macro 'list_entry' container_of(ptr, type, member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:18:25: note: expanded from macro 'container= _of' void *__mptr =3D (void *)(ptr); = \ ^~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. drivers/nvme/host/zns.c:202:3: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(report, 0, buflen); ^~~~~~ drivers/nvme/host/zns.c:202:3: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(report, 0, buflen); ^~~~~~ drivers/nvme/host/zns.c:239:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(c, 0, sizeof(*c)); ^~~~~~ drivers/nvme/host/zns.c:239:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(c, 0, sizeof(*c)); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 67 warnings generated. drivers/nvme/host/fabrics.c:70:2: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(host->nqn, NVMF_NQN_SIZE, ^~~~~~~~ drivers/nvme/host/fabrics.c:70:2: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(host->nqn, NVMF_NQN_SIZE, ^~~~~~~~ drivers/nvme/host/fabrics.c:151:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&cmd, 0, sizeof(cmd)); ^~~~~~ drivers/nvme/host/fabrics.c:151:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&cmd, 0, sizeof(cmd)); ^~~~~~ drivers/nvme/host/fabrics.c:389:2: warning: Call to function 'strncpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); ^~~~~~~ drivers/nvme/host/fabrics.c:389:2: note: Call to function 'strncpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'strncpy_s' in case of C11 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); ^~~~~~~ drivers/nvme/host/fabrics.c:390:2: warning: Call to function 'strncpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); ^~~~~~~ drivers/nvme/host/fabrics.c:390:2: note: Call to function 'strncpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'strncpy_s' in case of C11 strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); ^~~~~~~ drivers/nvme/host/fabrics.c:450:2: warning: Call to function 'strncpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); ^~~~~~~ drivers/nvme/host/fabrics.c:450:2: note: Call to function 'strncpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'strncpy_s' in case of C11 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); ^~~~~~~ drivers/nvme/host/fabrics.c:451:2: warning: Call to function 'strncpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); ^~~~~~~ drivers/nvme/host/fabrics.c:451:2: note: Call to function 'strncpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'strncpy_s' in case of C11 strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); ^~~~~~~ Suppressed 61 warnings (61 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> fs/hfs/mdb.c:192:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, bh->b_data + off2, len); ^~~~~~ fs/hfs/mdb.c:192:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(ptr, bh->b_data + off2, len); ^~~~~~ fs/hfs/mdb.c:297:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(HFS_SB(sb)->alt_mdb, HFS_SB(sb)->mdb, HFS_SECTOR_= SIZE); ^~~~~~ fs/hfs/mdb.c:297:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(HFS_SB(sb)->alt_mdb, HFS_SB(sb)->mdb, HFS_SECTOR_= SIZE); ^~~~~~ fs/hfs/mdb.c:326:4: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(bh->b_data + off, ptr, len); ^~~~~~ fs/hfs/mdb.c:326:4: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(bh->b_data + off, ptr, len); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. >> drivers/perf/arm_pmu.c:396:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&fake_pmu.used_mask, 0, sizeof(fake_pmu.used_mask)); ^~~~~~ drivers/perf/arm_pmu.c:396:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(&fake_pmu.used_mask, 0, sizeof(fake_pmu.used_mask)); ^~~~~~ include/asm-generic/bitops/non-atomic.h:118:16: warning: Array access (f= rom variable 'addr') results in a null pointer dereference [clang-analyzer-= core.NullDereference] return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); ^ drivers/perf/arm_pmu.c:727:24: note: Assuming '____ptr' is null struct arm_pmu *pmu =3D hlist_entry_safe(node, struct arm_pmu, n= ode); ^ include/linux/list.h:993:5: note: expanded from macro 'hlist_entry_safe' ____ptr ? hlist_entry(____ptr, type, member) : NULL; \ ^~~~~~~ drivers/perf/arm_pmu.c:727:24: note: '?' condition is false struct arm_pmu *pmu =3D hlist_entry_safe(node, struct arm_pmu, n= ode); ^ include/linux/list.h:993:5: note: expanded from macro 'hlist_entry_safe' ____ptr ? hlist_entry(____ptr, type, member) : NULL; \ ^ drivers/perf/arm_pmu.c:730:7: note: Calling 'cpumask_test_cpu' if (!cpumask_test_cpu(cpu, &pmu->supported_cpus)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/cpumask.h:379:38: note: Passing null pointer value via 2nd= parameter 'addr' return test_bit(cpumask_check(cpu), cpumask_bits((cpumask))); ^ include/linux/cpumask.h:26:29: note: expanded from macro 'cpumask_bits' #define cpumask_bits(maskp) ((maskp)->bits) ^~~~~~~~~~~~~~~ include/linux/cpumask.h:379:9: note: Calling 'arch_test_bit' return test_bit(cpumask_check(cpu), cpumask_bits((cpumask))); ^ include/asm-generic/bitops/non-atomic.h:120:18: note: expanded from macr= o 'test_bit' #define test_bit arch_test_bit ^ include/asm-generic/bitops/non-atomic.h:118:16: note: Array access (from= variable 'addr') results in a null pointer dereference return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); ^~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. Suppressed 50 warnings (50 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/of/irq.c:404:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(r, 0, sizeof(*r)); ^~~~~~ drivers/of/irq.c:404:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(r, 0, sizeof(*r)); ^~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 61 warnings generated. drivers/of/unittest.c:283:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0xff, buf_size); ^~~~~~ drivers/of/unittest.c:283:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(buf, 0xff, buf_size); ^~~~~~ drivers/of/unittest.c:284:9: warning: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] size =3D snprintf(buf, buf_size - 2, fmt, np); ^~~~~~~~ drivers/of/unittest.c:284:9: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 size =3D snprintf(buf, buf_size - 2, fmt, np); ^~~~~~~~ drivers/of/unittest.c:295:3: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0xff, buf_size); ^~~~~~ drivers/of/unittest.c:295:3: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(buf, 0xff, buf_size); ^~~~~~ drivers/of/unittest.c:296:3: warning: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf, size+1, fmt, np); ^~~~~~~~ drivers/of/unittest.c:296:3: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 snprintf(buf, size+1, fmt, np); ^~~~~~~~ drivers/of/unittest.c:400:3: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:400:3: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:454:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:454:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:463:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:463:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:488:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:488:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:513:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:513:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:580:3: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:580:3: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:638:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:638:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:644:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:644:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:657:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:657:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:670:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:670:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:1022:3: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:1022:3: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:1043:3: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:1043:3: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:1099:3: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:1099:3: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ drivers/of/unittest.c:1446:2: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(unittest_data_align, __dtb_testcases_begin, size); ^~~~~~ drivers/of/unittest.c:1446:2: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(unittest_data_align, __dtb_testcases_begin, size); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 25 warnings generated. >> drivers/pwm/pwm-cros-ec.c:70:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&buf, 0, sizeof(buf)); ^~~~~~ drivers/pwm/pwm-cros-ec.c:70:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(&buf, 0, sizeof(buf)); ^~~~~~ drivers/pwm/pwm-cros-ec.c:98:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&buf, 0, sizeof(buf)); ^~~~~~ drivers/pwm/pwm-cros-ec.c:98:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(&buf, 0, sizeof(buf)); ^~~~~~ Suppressed 23 warnings (16 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/video/backlight/bd6107.c:157:2: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&props, 0, sizeof(props)); ^~~~~~ drivers/video/backlight/bd6107.c:157:2: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(&props, 0, sizeof(props)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. drivers/video/backlight/backlight.c:139:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&bd->fb_notif, 0, sizeof(bd->fb_notif)); ^~~~~~ drivers/video/backlight/backlight.c:139:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(&bd->fb_notif, 0, sizeof(bd->fb_notif)); ^~~~~~ drivers/video/backlight/backlight.c:186:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", bd->props.power); ^~~~~~~ drivers/video/backlight/backlight.c:186:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", bd->props.power); ^~~~~~~ drivers/video/backlight/backlight.c:227:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", bd->props.brightness); ^~~~~~~ drivers/video/backlight/backlight.c:227:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", bd->props.brightness); ^~~~~~~ drivers/video/backlight/backlight.c:275:9: warning: Call to function 'sp= rintf' is insecure as it does not provide bounding of the memory buffer or = security checks introduced in the C11 standard. Replace with analogous func= tions that support length arguments or provides boundary checks such as 'sp= rintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUn= safeBufferHandling] return sprintf(buf, "%s\n", backlight_types[bd->props.type]); ^~~~~~~ drivers/video/backlight/backlight.c:275:9: note: Call to function 'sprin= tf' is insecure as it does not provide bounding of the memory buffer or sec= urity checks introduced in the C11 standard. Replace with analogous functio= ns that support length arguments or provides boundary checks such as 'sprin= tf_s' in case of C11 return sprintf(buf, "%s\n", backlight_types[bd->props.type]); ^~~~~~~ drivers/video/backlight/backlight.c:284:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", bd->props.max_brightness); ^~~~~~~ drivers/video/backlight/backlight.c:284:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", bd->props.max_brightness); ^~~~~~~ drivers/video/backlight/backlight.c:298:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] rc =3D sprintf(buf, "%d\n", rc); ^~~~~~~ drivers/video/backlight/backlight.c:298:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 rc =3D sprintf(buf, "%d\n", rc); ^~~~~~~ drivers/video/backlight/backlight.c:300:8: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] rc =3D sprintf(buf, "%d\n", bd->props.brightness); ^~~~~~~ drivers/video/backlight/backlight.c:300:8: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 rc =3D sprintf(buf, "%d\n", bd->props.brightness); ^~~~~~~ drivers/video/backlight/backlight.c:314:10: warning: Call to function 's= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "unknown\n"); ^~~~~~~ drivers/video/backlight/backlight.c:314:10: note: Call to function 'spri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "unknown\n"); ^~~~~~~ drivers/video/backlight/backlight.c:316:9: warning: Call to function 'sp= rintf' is insecure as it does not provide bounding of the memory buffer or = security checks introduced in the C11 standard. Replace with analogous func= tions that support length arguments or provides boundary checks such as 'sp= rintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUn= safeBufferHandling] return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scal= e]); ^~~~~~~ drivers/video/backlight/backlight.c:316:9: note: Call to function 'sprin= tf' is insecure as it does not provide bounding of the memory buffer or sec= urity checks introduced in the C11 standard. Replace with analogous functio= ns that support length arguments or provides boundary checks such as 'sprin= tf_s' in case of C11 return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scal= e]); ^~~~~~~ drivers/video/backlight/backlight.c:429:3: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&new_bd->props, props, ^~~~~~ drivers/video/backlight/backlight.c:429:3: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&new_bd->props, props, ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. crypto/curve25519-generic.c:18:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(secret, buf, CURVE25519_KEY_SIZE); ^~~~~~ crypto/curve25519-generic.c:18:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(secret, buf, CURVE25519_KEY_SIZE); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. crypto/ecdh.c:40:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(ctx->private_key, params.key, params.key_size); ^~~~~~ crypto/ecdh.c:40:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(ctx->private_key, params.key, params.key_size); -- ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/scsi/scsi_devinfo.c:295:2: warning: Call to function 'strncpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(to, from, to_length); ^~~~~~~ drivers/scsi/scsi_devinfo.c:295:2: note: Call to function 'strncpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'strncpy_s' in case of C11 strncpy(to, from, to_length); ^~~~~~~ drivers/scsi/scsi_devinfo.c:300:3: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&to[from_length], ' ', to_length - from_length); ^~~~~~ drivers/scsi/scsi_devinfo.c:300:3: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&to[from_length], ' ', to_length - from_length); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. crypto/xts.c:366:7: warning: Call to function 'snprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(ctx->name, CRYPTO_MAX_ALG_NAME, "ecb(%s)", ^~~~~~~~ crypto/xts.c:366:7: note: Call to function 'snprintf' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'snprintf_s' in case of C11 if (snprintf(ctx->name, CRYPTO_MAX_ALG_NAME, "ecb(%s)", ^~~~~~~~ crypto/xts.c:410:7: warning: Call to function 'snprintf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAM= E, ^~~~~~~~ crypto/xts.c:410:7: note: Call to function 'snprintf' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'snprintf_s' in case of C11 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAM= E, ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. crypto/adiantum.c:552:6: warning: Call to function 'snprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ crypto/adiantum.c:552:6: note: Call to function 'snprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'snprintf_s' in case of C11 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ crypto/adiantum.c:556:6: warning: Call to function 'snprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ crypto/adiantum.c:556:6: note: Call to function 'snprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'snprintf_s' in case of C11 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, ^~~~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. fs/jffs2/fs.c:445:2: warning: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memset(ri, 0, sizeof(*ri)); ^~~~~~ fs/jffs2/fs.c:445:2: note: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 memset(ri, 0, sizeof(*ri)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. >> fs/jffs2/xattr.c:303:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&rx, 0, sizeof(rx)); ^~~~~~ fs/jffs2/xattr.c:303:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&rx, 0, sizeof(rx)); ^~~~~~ fs/jffs2/xattr.c:372:2: warning: Call to function 'strcpy' is insecure a= s 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(data, xname); ^~~~~~ fs/jffs2/xattr.c:372:2: note: Call to function 'strcpy' is insecure as i= t does not provide bounding of the memory buffer. Replace unbounded copy fu= nctions with analogous functions that support length arguments such as 'str= lcpy'. CWE-119 strcpy(data, xname); ^~~~~~ >> fs/jffs2/xattr.c:373:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data + name_len + 1, xvalue, xsize); ^~~~~~ fs/jffs2/xattr.c:373:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(data + name_len + 1, xvalue, xsize); ^~~~~~ fs/jffs2/xattr.c:1013:4: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, prefix, prefix_len); ^~~~~~ fs/jffs2/xattr.c:1013:4: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(buffer, prefix, prefix_len); ^~~~~~ fs/jffs2/xattr.c:1015:4: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, xd->xname, xd->name_len); ^~~~~~ fs/jffs2/xattr.c:1015:4: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(buffer, xd->xname, xd->name_len); ^~~~~~ fs/jffs2/xattr.c:1077:6: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, xd->xvalue, rc); ^~~~~~ fs/jffs2/xattr.c:1077:6: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(buffer, xd->xvalue, rc); ^~~~~~ fs/jffs2/xattr.c:1236:2: warning: Value stored to 'old_ofs' is never rea= d [clang-analyzer-deadcode.DeadStores] old_ofs =3D ref_offset(xd->node); ^ fs/jffs2/xattr.c:1236:2: note: Value stored to 'old_ofs' is never read fs/jffs2/xattr.c:1269:2: warning: Value stored to 'old_ofs' is never rea= d [clang-analyzer-deadcode.DeadStores] old_ofs =3D ref_offset(ref->node); ^ fs/jffs2/xattr.c:1269:2: note: Value stored to 'old_ofs' is never read Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. mm/z3fold.c:404:2: warning: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memset(zhdr, 0, sizeof(*zhdr)); ^~~~~~ mm/z3fold.c:404:2: note: Call to function 'memset' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memset_s' in case of C11 memset(zhdr, 0, sizeof(*zhdr)); ^~~~~~ mm/z3fold.c:646:9: warning: Call to function 'memmove' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] return memmove(beg + (dst_chunk << CHUNK_SHIFT), ^~~~~~~ mm/z3fold.c:646:9: note: Call to function 'memmove' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memmove_s' in case of C11 return memmove(beg + (dst_chunk << CHUNK_SHIFT), ^~~~~~~ mm/z3fold.c:724:3: warning: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memcpy(q, p, sz); ^~~~~~ mm/z3fold.c:724:3: note: Call to function 'memcpy' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memcpy_s' in case of C11 memcpy(q, p, sz); ^~~~~~ mm/z3fold.c:1403:4: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(slots.slot, 0, sizeof(slots.slot)); ^~~~~~ mm/z3fold.c:1403:4: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(slots.slot, 0, sizeof(slots.slot)); ^~~~~~ mm/z3fold.c:1628:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(new_zhdr, zhdr, PAGE_SIZE); ^~~~~~ mm/z3fold.c:1628:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(new_zhdr, zhdr, PAGE_SIZE); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. >> drivers/dma/qcom/hidma_mgmt.c:375:3: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&pdevinfo, 0, sizeof(pdevinfo)); ^~~~~~ drivers/dma/qcom/hidma_mgmt.c:375:3: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(&pdevinfo, 0, sizeof(pdevinfo)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. >> drivers/tty/serial/8250/8250_tegra.c:54:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&port8250, 0, sizeof(port8250)); ^~~~~~ drivers/tty/serial/8250/8250_tegra.c:54:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(&port8250, 0, sizeof(port8250)); ^~~~~~ Suppressed 35 warnings (34 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. >> drivers/tty/serial/8250/8250_of.c:41:2: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(port, 0, sizeof *port); ^~~~~~ drivers/tty/serial/8250/8250_of.c:41:2: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(port, 0, sizeof *port); ^~~~~~ drivers/tty/serial/8250/8250_of.c:219:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&port8250, 0, sizeof(port8250)); ^~~~~~ drivers/tty/serial/8250/8250_of.c:219:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(&port8250, 0, sizeof(port8250)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. drivers/mfd/qcom-pm8xxx.c:549:2: warning: Value stored to 'rev' is never= read [clang-analyzer-deadcode.DeadStores] rev |=3D val << BITS_PER_BYTE; ^ ~~~~~~~~~~~~~~~~~~~~ drivers/mfd/qcom-pm8xxx.c:549:2: note: Value stored to 'rev' is never re= ad rev |=3D val << BITS_PER_BYTE; ^ ~~~~~~~~~~~~~~~~~~~~ Suppressed 17 warnings (16 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 2 warnings generated. 4 warnings generated. lib/zstd/common/fse_decompress.c:101:9: warning: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memcpy(dt, &DTableH, sizeof(DTableH)); ^ lib/zstd/common/zstd_deps.h:32:28: note: expanded from macro 'ZSTD_memcp= y' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/common/fse_decompress.c:101:9: note: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 ZSTD_memcpy(dt, &DTableH, sizeof(DTableH)); ^ lib/zstd/common/zstd_deps.h:32:28: note: expanded from macro 'ZSTD_memcp= y' #define ZSTD_memcpy(d,s,n) __builtin_memcpy((d),(s),(n)) ^~~~~~~~~~~~~~~~ Suppressed 2 warnings (2 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 5 warnings generated. 10 warnings generated. lib/zstd/common/zstd_common.c:69:9: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memset(ptr, 0, size); ^ lib/zstd/common/zstd_deps.h:34:28: note: expanded from macro 'ZSTD_memse= t' #define ZSTD_memset(d,s,n) __builtin_memset((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/common/zstd_common.c:69:9: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 ZSTD_memset(ptr, 0, size); ^ lib/zstd/common/zstd_deps.h:34:28: note: expanded from macro 'ZSTD_memse= t' #define ZSTD_memset(d,s,n) __builtin_memset((d),(s),(n)) ^~~~~~~~~~~~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 4 warnings generated. lib/zstd/compress/fse_compress.c:85:9: warning: The result of the left s= hift is undefined due to shifting by '4294967294', which is greater or equa= l to the width of type 'unsigned long long' [clang-analyzer-core.UndefinedB= inaryOperatorResult] if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wksp= Size) return ERROR(tableLog_tooLarge); ^ lib/zstd/compress/../common/fse.h:338:87: note: expanded from macro 'FSE= _BUILD_CTABLE_WORKSPACE_SIZE' #define FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) (sizeo= f(unsigned) * FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog)) = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/zstd/compress/../common/fse.h:337:99: note: expanded from macro 'FSE= _BUILD_CTABLE_WORKSPACE_SIZE_U32' #define FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog) (m= axSymbolValue + 2 + (1ull << (tableLog - 2))) = ^ ~~~~~~~~~~~~~~ lib/zstd/compress/fse_compress.c:75:56: note: Assuming 'tableLog' is 0 void* const FSCT =3D ((U32*)ptr) + 1 /* header */ + (tableLog ? tabl= eSize>>1 : 1) ; ^~~~~~~~ lib/zstd/compress/fse_compress.c:75:56: note: '?' condition is false lib/zstd/compress/fse_compress.c:84:9: note: Assuming the condition is f= alse if ((size_t)workSpace & 3) return ERROR(GENERIC); /* Must be 4 byte = aligned */ ^~~~~~~~~~~~~~~~~~~~~ lib/zstd/compress/fse_compress.c:84:5: note: Taking false branch if ((size_t)workSpace & 3) return ERROR(GENERIC); /* Must be 4 byte = aligned */ ^ lib/zstd/compress/fse_compress.c:85:9: note: The result of the left shif= t is undefined due to shifting by '4294967294', which is greater or equal t= o the width of type 'unsigned long long' if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wksp= Size) return ERROR(tableLog_tooLarge); ^ lib/zstd/compress/../common/fse.h:338:87: note: expanded from macro 'FSE= _BUILD_CTABLE_WORKSPACE_SIZE' #define FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) (sizeo= f(unsigned) * FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog)) = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/zstd/compress/../common/fse.h:337:99: note: expanded from macro 'FSE= _BUILD_CTABLE_WORKSPACE_SIZE_U32' #define FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog) (m= axSymbolValue + 2 + (1ull << (tableLog - 2))) = ^ ~~~~~~~~~~~~~~ lib/zstd/compress/fse_compress.c:95:6: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ZSTD_memset(tableSymbol, 0, sizeof(*tableSymbol) * tableSize); /*= useless initialization, just to keep scan-build happy */ ^ lib/zstd/compress/../common/zstd_deps.h:34:28: note: expanded from macro= 'ZSTD_memset' #define ZSTD_memset(d,s,n) __builtin_memset((d),(s),(n)) ^~~~~~~~~~~~~~~~ lib/zstd/compress/fse_compress.c:95:6: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 ZSTD_memset(tableSymbol, 0, sizeof(*tableSymbol) * tableSize); /*= useless initialization, just to keep scan-build happy */ -- ^ fs/namei.c:3687:10: note: Returning from 'filename_parentat' error =3D filename_parentat(dfd, name, lookup_flags, path, &last= , &type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~ fs/namei.c:3688:6: note: 'error' is not equal to 0 if (error) ^~~~~ fs/namei.c:3688:2: note: Taking true branch if (error) ^ fs/namei.c:3689:3: note: Returning without writing to 'path->mnt' return ERR_PTR(error); ^ fs/namei.c:4482:15: note: Returning from 'filename_create' new_dentry =3D filename_create(newdfd, new, &new_path, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/namei.c:4485:6: note: Calling 'IS_ERR' if (IS_ERR(new_dentry)) ^~~~~~~~~~~~~~~~~~ include/linux/err.h:36:9: note: Assuming the condition is false return IS_ERR_VALUE((unsigned long)ptr); ^ include/linux/err.h:22:34: note: expanded from macro 'IS_ERR_VALUE' #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >=3D (unsign= ed long)-MAX_ERRNO) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/err.h:36:2: note: Returning zero, which participates in a = condition later return IS_ERR_VALUE((unsigned long)ptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/namei.c:4485:6: note: Returning from 'IS_ERR' if (IS_ERR(new_dentry)) ^~~~~~~~~~~~~~~~~~ fs/namei.c:4485:2: note: Taking false branch if (IS_ERR(new_dentry)) ^ fs/namei.c:4489:19: note: The right operand of '!=3D' is a garbage value if (old_path.mnt !=3D new_path.mnt) ^ ~~~~~~~~~~~~ fs/namei.c:5025:2: warning: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memcpy(page_address(page), symname, len-1); ^~~~~~ fs/namei.c:5025:2: note: Call to function 'memcpy' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memcpy_s' in case of C11 memcpy(page_address(page), symname, len-1); ^~~~~~ Suppressed 62 warnings (62 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/phy/cadence/cdns-dphy.c:103:2: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cfg, 0, sizeof(*cfg)); ^~~~~~ drivers/phy/cadence/cdns-dphy.c:103:2: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(cfg, 0, sizeof(*cfg)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c:331:2: warning: Call to f= unction 'memcpy' is insecure as it does not provide security checks introdu= ced in the C11 standard. Replace with analogous functions that support leng= th arguments or provides boundary checks such as 'memcpy_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&priv->cfg, &cfg, sizeof(struct mixel_dphy_cfg)); ^~~~~~ drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c:331:2: note: Call to func= tion 'memcpy' is insecure as it does not provide security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&priv->cfg, &cfg, sizeof(struct mixel_dphy_cfg)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 64 warnings generated. drivers/nfc/st-nci/se.c:144:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(info->se_info.atr, skb->data, skb->len); ^~~~~~ drivers/nfc/st-nci/se.c:144:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(info->se_info.atr, skb->data, skb->len); ^~~~~~ drivers/nfc/st-nci/se.c:338:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(transaction->aid, &skb->data[2], transaction->aid= _len); ^~~~~~ drivers/nfc/st-nci/se.c:338:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(transaction->aid, &skb->data[2], transaction->aid= _len); ^~~~~~ drivers/nfc/st-nci/se.c:346:3: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(transaction->params, skb->data + ^~~~~~ drivers/nfc/st-nci/se.c:346:3: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(transaction->params, skb->data + ^~~~~~ drivers/nfc/st-nci/se.c:540:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dest_params->value, &spec_params, ^~~~~~ drivers/nfc/st-nci/se.c:540:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(dest_params->value, &spec_params, ^~~~~~ drivers/nfc/st-nci/se.c:554:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ndev->hci_dev->init_data.gates, st_nci_gates, ^~~~~~ drivers/nfc/st-nci/se.c:554:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(ndev->hci_dev->init_data.gates, st_nci_gates, ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 58 warnings generated. >> fs/binfmt_elf_fdpic.c:202:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&exec_params, 0, sizeof(exec_params)); ^~~~~~ fs/binfmt_elf_fdpic.c:202:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&exec_params, 0, sizeof(exec_params)); ^~~~~~ fs/binfmt_elf_fdpic.c:203:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&interp_params, 0, sizeof(interp_params)); ^~~~~~ fs/binfmt_elf_fdpic.c:203:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(&interp_params, 0, sizeof(interp_params)); ^~~~~~ fs/binfmt_elf_fdpic.c:333:2: warning: Value stored to 'retval' is never = read [clang-analyzer-deadcode.DeadStores] retval =3D -ENOEXEC; ^ ~~~~~~~~ fs/binfmt_elf_fdpic.c:333:2: note: Value stored to 'retval' is never read retval =3D -ENOEXEC; ^ ~~~~~~~~ fs/binfmt_elf_fdpic.c:335:3: warning: Value stored to 'stack_size' is ne= ver read [clang-analyzer-deadcode.DeadStores] stack_size =3D 131072UL; /* same as exec.c's default com= mit */ ^ ~~~~~~~~ fs/binfmt_elf_fdpic.c:335:3: note: Value stored to 'stack_size' is never= read stack_size =3D 131072UL; /* same as exec.c's default com= mit */ ^ ~~~~~~~~ fs/binfmt_elf_fdpic.c:464:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] start_thread(regs, entryaddr, current->mm->start_stack); ^ arch/arm/include/asm/processor.h:61:2: note: expanded from macro 'start_= thread' memset(regs->uregs, 0, sizeof(regs->uregs)); \ ^~~~~~ fs/binfmt_elf_fdpic.c:464:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 start_thread(regs, entryaddr, current->mm->start_stack); ^ arch/arm/include/asm/processor.h:61:2: note: expanded from macro 'start_= thread' memset(regs->uregs, 0, sizeof(regs->uregs)); \ ^~~~~~ fs/binfmt_elf_fdpic.c:772:2: warning: Value stored to 'load_addr' is nev= er read [clang-analyzer-deadcode.DeadStores] load_addr =3D params->load_addr; ^ ~~~~~~~~~~~~~~~~~ fs/binfmt_elf_fdpic.c:772:2: note: Value stored to 'load_addr' is never = read load_addr =3D params->load_addr; ^ ~~~~~~~~~~~~~~~~~ fs/binfmt_elf_fdpic.c:773:2: warning: Value stored to 'seg' is never rea= d [clang-analyzer-deadcode.DeadStores] seg =3D loadmap->segs; ^ ~~~~~~~~~~~~~ fs/binfmt_elf_fdpic.c:773:2: note: Value stored to 'seg' is never read seg =3D loadmap->segs; ^ ~~~~~~~~~~~~~ >> fs/binfmt_elf_fdpic.c:1239:2: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(elf->e_ident, ELFMAG, SELFMAG); ^~~~~~ fs/binfmt_elf_fdpic.c:1239:2: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(elf->e_ident, ELFMAG, SELFMAG); ^~~~~~ fs/binfmt_elf_fdpic.c:1244:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); ^~~~~~ fs/binfmt_elf_fdpic.c:1244:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); ^~~~~~ fs/binfmt_elf_fdpic.c:1330:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(psinfo, 0, sizeof(struct elf_prpsinfo)); ^~~~~~ fs/binfmt_elf_fdpic.c:1330:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(psinfo, 0, sizeof(struct elf_prpsinfo)); ^~~~~~ >> fs/binfmt_elf_fdpic.c:1362:2: warning: Call to function 'strncpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); ^~~~~~~ fs/binfmt_elf_fdpic.c:1362:2: note: Call to function 'strncpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'strncpy_s' in case of C11 strncpy(psinfo->pr_fname, p->comm, sizeof(psinfo->pr_fname)); ^~~~~~~ fs/binfmt_elf_fdpic.c:1432:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(shdr4extnum, 0, sizeof(*shdr4extnum)); ^~~~~~ fs/binfmt_elf_fdpic.c:1432:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(shdr4extnum, 0, sizeof(*shdr4extnum)); ^~~~~~ Suppressed 46 warnings (46 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 61 warnings generated. drivers/misc/apds990x.c:588:3: warning: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(chip->chipname, sizeof(chip->chipname), "APDS-9= 90x"); ^~~~~~~~ drivers/misc/apds990x.c:588:3: note: Call to function 'snprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'snprintf_s' in case of C11 snprintf(chip->chipname, sizeof(chip->chipname), "APDS-9= 90x"); ^~~~~~~~ drivers/misc/apds990x.c:644:8: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%d.%d\n", ^~~~~~~ drivers/misc/apds990x.c:644:8: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%d.%d\n", ^~~~~~~ drivers/misc/apds990x.c:656:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", APDS_RANGE); ^~~~~~~ drivers/misc/apds990x.c:656:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", APDS_RANGE); ^~~~~~~ drivers/misc/apds990x.c:664:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", APDS_CALIB_SCALER); ^~~~~~~ drivers/misc/apds990x.c:664:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", APDS_CALIB_SCALER); ^~~~~~~ drivers/misc/apds990x.c:675:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", chip->lux_calib); ^~~~~~~ drivers/misc/apds990x.c:675:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", chip->lux_calib); ^~~~~~~ drivers/misc/apds990x.c:705:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] pos +=3D sprintf(buf + pos, "%d ", arates_hz[i]); ^~~~~~~ drivers/misc/apds990x.c:705:10: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 pos +=3D sprintf(buf + pos, "%d ", arates_hz[i]); ^~~~~~~ drivers/misc/apds990x.c:706:2: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf + pos - 1, "\n"); ^~~~~~~ drivers/misc/apds990x.c:706:2: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 sprintf(buf + pos - 1, "\n"); ^~~~~~~ drivers/misc/apds990x.c:715:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", chip->arate); ^~~~~~~ drivers/misc/apds990x.c:715:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", chip->arate); ^~~~~~~ drivers/misc/apds990x.c:779:8: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%d\n", chip->prox_data); ^~~~~~~ drivers/misc/apds990x.c:779:8: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%d\n", chip->prox_data); ^~~~~~~ drivers/misc/apds990x.c:789:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", APDS_PROX_RANGE); ^~~~~~~ drivers/misc/apds990x.c:789:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", APDS_PROX_RANGE); ^~~~~~~ drivers/misc/apds990x.c:799:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", chip->prox_en); ^~~~~~~ drivers/misc/apds990x.c:799:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", chip->prox_en); ^~~~~~~ drivers/misc/apds990x.c:840:9: warning: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHa= ndling] return sprintf(buf, "%s\n", ^~~~~~~ drivers/misc/apds990x.c:840:9: note: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 return sprintf(buf, "%s\n", ^~~~~~~ drivers/misc/apds990x.c:866:9: warning: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHa= ndling] return sprintf(buf, "%s %s\n", reporting_modes[0], reporting_mod= es[1]); ^~~~~~~ drivers/misc/apds990x.c:866:9: note: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 return sprintf(buf, "%s %s\n", reporting_modes[0], reporting_mod= es[1]); ^~~~~~~ drivers/misc/apds990x.c:878:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", chip->lux_thres_hi); ^~~~~~~ drivers/misc/apds990x.c:878:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", chip->lux_thres_hi); ^~~~~~~ drivers/misc/apds990x.c:886:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", chip->lux_thres_lo); -- ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:318:4: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep->name, dep->name, dep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:485:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfep->name, args->name, sfep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:485:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep->name, args->name, sfep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:535:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(oldsfp, sfp, old_isize); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:535:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(oldsfp, sfp, old_isize); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:568:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfp, oldsfp, nbytes); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:568:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(sfp, oldsfp, nbytes); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:575:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfep->name, args->name, sfep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:575:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep->name, args->name, sfep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:586:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfep, oldsfep, old_isize - nbytes); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:586:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep, oldsfep, old_isize - nbytes); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:990:3: warning: Call to function 'memmove' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove((char *)sfp + byteoff, (char *)sfp + byteoff + e= ntsize, ^~~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:990:3: note: Call to function 'memmove' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memmove_s' in case of C11 memmove((char *)sfp + byteoff, (char *)sfp + byteoff + e= ntsize, ^~~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1182:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, oldsfp, oldsize); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1182:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, oldsfp, oldsize); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1209:3: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offse= t)); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1209:3: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offse= t)); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1210:3: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfep->name, oldsfep->name, sfep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1210:3: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep->name, oldsfep->name, sfep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1255:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, oldsfp, oldsize); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1255:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, oldsfp, oldsize); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1282:3: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offse= t)); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1282:3: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep->offset, oldsfep->offset, sizeof(sfep->offse= t)); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1283:3: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sfep->name, oldsfep->name, sfep->namelen); ^~~~~~ fs/xfs/libxfs/xfs_dir2_sf.c:1283:3: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(sfep->name, oldsfep->name, sfep->namelen); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. fs/exfat/fatent.c:26:3: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(c_bh->b_data, bh->b_data, sb->s_blocksize); ^~~~~~ fs/exfat/fatent.c:26:3: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(c_bh->b_data, bh->b_data, sb->s_blocksize); ^~~~~~ fs/exfat/fatent.c:301:4: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(bhs[n]->b_data, 0, sb->s_blocksize); ^~~~~~ fs/exfat/fatent.c:301:4: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(bhs[n]->b_data, 0, sb->s_blocksize); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> fs/hfs/super.c:138:3: warning: Call to function 'strncpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] seq_show_option_n(seq, "creator", (char *)&sbi->s_creato= r, 4); ^ include/linux/seq_file.h:262:2: note: expanded from macro 'seq_show_opti= on_n' strncpy(val_buf, value, length); \ ^~~~~~~ fs/hfs/super.c:138:3: note: Call to function 'strncpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'strncpy_s' in case of C11 seq_show_option_n(seq, "creator", (char *)&sbi->s_creato= r, 4); ^ include/linux/seq_file.h:262:2: note: expanded from macro 'seq_show_opti= on_n' strncpy(val_buf, value, length); \ ^~~~~~~ fs/hfs/super.c:140:3: warning: Call to function 'strncpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] seq_show_option_n(seq, "type", (char *)&sbi->s_type, 4); ^ include/linux/seq_file.h:262:2: note: expanded from macro 'seq_show_opti= on_n' strncpy(val_buf, value, length); \ ^~~~~~~ fs/hfs/super.c:140:3: note: Call to function 'strncpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'strncpy_s' in case of C11 seq_show_option_n(seq, "type", (char *)&sbi->s_type, 4); ^ include/linux/seq_file.h:262:2: note: expanded from macro 'seq_show_opti= on_n' strncpy(val_buf, value, length); \ ^~~~~~~ >> fs/hfs/super.c:213:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(result, arg->from, 4); ^~~~~~ fs/hfs/super.c:213:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(result, arg->from, 4); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 76 warnings generated. >> net/ieee802154/nl802154.c:1468:3: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(commands, 0, sizeof(commands)); ^~~~~~ net/ieee802154/nl802154.c:1468:3: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(commands, 0, sizeof(commands)); ^~~~~~ net/ieee802154/nl802154.c:1739:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(dev, 0, sizeof(*dev)); ^~~~~~ net/ieee802154/nl802154.c:1739:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(dev, 0, sizeof(*dev)); ^~~~~~ net/ieee802154/nl802154.c:2090:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(sl, 0, sizeof(*sl)); ^~~~~~ net/ieee802154/nl802154.c:2090:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(sl, 0, sizeof(*sl)); ^~~~~~ Suppressed 73 warnings (73 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 65 warnings generated. Suppressed 65 warnings (65 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 85 warnings generated. net/ieee802154/socket.c:728:3: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(saddr, 0, sizeof(*saddr)); ^~~~~~ net/ieee802154/socket.c:728:3: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(saddr, 0, sizeof(*saddr)); ^~~~~~ Suppressed 84 warnings (83 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 71 warnings generated. net/caif/caif_usb.c:69:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(zeros, 0, hpad); ^~~~~~ net/caif/caif_usb.c:69:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(zeros, 0, hpad); ^~~~~~ net/caif/caif_usb.c:94:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&this->layer, 0, sizeof(this->layer)); ^~~~~~ net/caif/caif_usb.c:94:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(&this->layer, 0, sizeof(this->layer)); ^~~~~~ net/caif/caif_usb.c:98:2: warning: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "usb%d", phyid); ^~~~~~~~ net/caif/caif_usb.c:98:2: note: Call to function 'snprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'snprintf_s' in case of C11 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "usb%d", phyid); ^~~~~~~~ net/caif/caif_usb.c:162:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&common, 0, sizeof(common)); ^~~~~~ net/caif/caif_usb.c:162:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&common, 0, sizeof(common)); ^~~~~~ Suppressed 67 warnings (67 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 86 warnings generated. net/dcb/dcbnl.c:271:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(perm_addr, 0, sizeof(perm_addr)); ^~~~~~ net/dcb/dcbnl.c:271:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(perm_addr, 0, sizeof(perm_addr)); ^~~~~~ net/dcb/dcbnl.c:1048:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ets, 0, sizeof(ets)); ^~~~~~ net/dcb/dcbnl.c:1048:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&ets, 0, sizeof(ets)); ^~~~~~ net/dcb/dcbnl.c:1057:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&maxrate, 0, sizeof(maxrate)); ^~~~~~ net/dcb/dcbnl.c:1057:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&maxrate, 0, sizeof(maxrate)); ^~~~~~ net/dcb/dcbnl.c:1070:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&qcn, 0, sizeof(qcn)); ^~~~~~ net/dcb/dcbnl.c:1070:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&qcn, 0, sizeof(qcn)); ^~~~~~ net/dcb/dcbnl.c:1083:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&qcn_stats, 0, sizeof(qcn_stats)); ^~~~~~ net/dcb/dcbnl.c:1083:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&qcn_stats, 0, sizeof(qcn_stats)); ^~~~~~ net/dcb/dcbnl.c:1095:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&pfc, 0, sizeof(pfc)); ^~~~~~ net/dcb/dcbnl.c:1095:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&pfc, 0, sizeof(pfc)); ^~~~~~ net/dcb/dcbnl.c:1105:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&buffer, 0, sizeof(buffer)); -- ^ include/asm-generic/bug.h:122:2: note: expanded from macro 'WARN_ON' if (unlikely(__ret_warn_on)) \ ^ drivers/nvme/host/fc.c:530:2: note: Assuming '__ret_warn_on' is 0 WARN_ON(!list_empty(&rport->ctrl_list)); ^ include/asm-generic/bug.h:122:6: note: expanded from macro 'WARN_ON' if (unlikely(__ret_warn_on)) \ ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:40: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~ drivers/nvme/host/fc.c:530:2: note: Taking false branch WARN_ON(!list_empty(&rport->ctrl_list)); ^ include/asm-generic/bug.h:122:2: note: expanded from macro 'WARN_ON' if (unlikely(__ret_warn_on)) \ ^ drivers/nvme/host/fc.c:533:2: note: Loop condition is false. Exiting lo= op spin_lock_irqsave(&nvme_fc_lock, flags); ^ include/linux/spinlock.h:379:2: note: expanded from macro 'spin_lock_irq= save' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^ include/linux/spinlock.h:240:2: note: expanded from macro 'raw_spin_lock= _irqsave' do { \ ^ drivers/nvme/host/fc.c:533:2: note: Loop condition is false. Exiting lo= op spin_lock_irqsave(&nvme_fc_lock, flags); ^ include/linux/spinlock.h:377:43: note: expanded from macro 'spin_lock_ir= qsave' #define spin_lock_irqsave(lock, flags) \ ^ drivers/nvme/host/fc.c:537:2: note: Assuming '__ret_warn_on' is 0 WARN_ON(!list_empty(&rport->disc_list)); ^ include/asm-generic/bug.h:122:6: note: expanded from macro 'WARN_ON' if (unlikely(__ret_warn_on)) \ ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:40: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~ drivers/nvme/host/fc.c:537:2: note: Taking false branch WARN_ON(!list_empty(&rport->disc_list)); ^ include/asm-generic/bug.h:122:2: note: expanded from macro 'WARN_ON' if (unlikely(__ret_warn_on)) \ ^ drivers/nvme/host/fc.c:540:2: note: Memory is released kfree(rport); ^~~~~~~~~~~~ include/linux/kref.h:65:3: note: Returning; memory was released release(kref); ^~~~~~~~~~~~~ drivers/nvme/host/fc.c:548:2: note: Returning; memory was released kref_put(&rport->ref, nvme_fc_free_rport); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/fc.c:3826:3: note: Returning; memory was released nvme_fc_rport_put(rport); ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/fc.c:3829:3: note: Loop condition is false. Exiting l= oop spin_lock_irqsave(&nvme_fc_lock, flags); ^ include/linux/spinlock.h:379:2: note: expanded from macro 'spin_lock_irq= save' raw_spin_lock_irqsave(spinlock_check(lock), flags); \ ^ include/linux/spinlock.h:240:2: note: expanded from macro 'raw_spin_lock= _irqsave' do { \ ^ drivers/nvme/host/fc.c:3829:3: note: Loop condition is false. Exiting l= oop spin_lock_irqsave(&nvme_fc_lock, flags); ^ include/linux/spinlock.h:377:43: note: expanded from macro 'spin_lock_ir= qsave' #define spin_lock_irqsave(lock, flags) \ ^ drivers/nvme/host/fc.c:3817:2: note: Loop condition is true. Entering l= oop body while (!list_empty(&local_disc_list)) { ^ drivers/nvme/host/fc.c:3820:3: note: Calling 'list_del_init' list_del_init(&rport->disc_list); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:206:2: note: Calling '__list_del_entry' __list_del_entry(entry); ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:134:6: note: Assuming the condition is false if (!__list_del_entry_valid(entry)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:134:2: note: Taking false branch if (!__list_del_entry_valid(entry)) ^ include/linux/list.h:137:13: note: Use of memory after it is freed __list_del(entry->prev, entry->next); ^~~~~~~~~~~ Suppressed 64 warnings (64 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 87 warnings generated. Suppressed 87 warnings (86 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 87 warnings generated. >> net/bridge/br_vlan_options.c:442:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(bvm, 0, sizeof(*bvm)); ^~~~~~ net/bridge/br_vlan_options.c:442:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(bvm, 0, sizeof(*bvm)); ^~~~~~ Suppressed 86 warnings (85 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 70 warnings generated. net/atm/addr.c:155:6: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tmp_bufp++, &this->addr, sizeof(struct sockaddr_atmsv= c)); ^~~~~~ net/atm/addr.c:155:6: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(tmp_bufp++, &this->addr, sizeof(struct sockaddr_atmsv= c)); ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 70 warnings generated. net/atm/pvc.c:98:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(addr, 0, sizeof(*addr)); ^~~~~~ net/atm/pvc.c:98:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(addr, 0, sizeof(*addr)); ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. fs/nilfs2/btnode.c:44:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, i_blocksize(inode)); ^~~~~~ fs/nilfs2/btnode.c:44:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, i_blocksize(inode)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. fs/nilfs2/bmap.c:499:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(bmap->b_u.u_data, 0, NILFS_BMAP_SIZE); ^~~~~~ fs/nilfs2/bmap.c:499:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(bmap->b_u.u_data, 0, NILFS_BMAP_SIZE); ^~~~~~ fs/nilfs2/bmap.c:501:3: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(bmap->b_u.u_data, raw_inode->i_bmap, NILFS_BMAP_S= IZE); ^~~~~~ fs/nilfs2/bmap.c:501:3: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(bmap->b_u.u_data, raw_inode->i_bmap, NILFS_BMAP_S= IZE); ^~~~~~ fs/nilfs2/bmap.c:544:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(raw_inode->i_bmap, bmap->b_u.u_data, ^~~~~~ fs/nilfs2/bmap.c:544:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(raw_inode->i_bmap, bmap->b_u.u_data, ^~~~~~ fs/nilfs2/bmap.c:554:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(&bmap->b_u, 0, NILFS_BMAP_SIZE); ^~~~~~ fs/nilfs2/bmap.c:554:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(&bmap->b_u, 0, NILFS_BMAP_SIZE); ^~~~~~ fs/nilfs2/bmap.c:567:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(store->data, bmap->b_u.u_data, sizeof(store->data)); ^~~~~~ fs/nilfs2/bmap.c:567:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(store->data, bmap->b_u.u_data, sizeof(store->data)); ^~~~~~ fs/nilfs2/bmap.c:576:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(bmap->b_u.u_data, store->data, sizeof(store->data)); ^~~~~~ fs/nilfs2/bmap.c:576:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(bmap->b_u.u_data, store->data, sizeof(store->data)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/input/joystick/fsia6b.c:152:2: warning: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(fsia6b->phys, sizeof(fsia6b->phys), "%s/input0", serio-= >phys); ^~~~~~~~ drivers/input/joystick/fsia6b.c:152:2: note: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 snprintf(fsia6b->phys, sizeof(fsia6b->phys), "%s/input0", serio-= >phys); ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/input/joystick/grip.c:338:3: warning: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(grip->phys[i], sizeof(grip->phys[i]), ^~~~~~~~ drivers/input/joystick/grip.c:338:3: note: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 snprintf(grip->phys[i], sizeof(grip->phys[i]), ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. >> drivers/input/joystick/interact.c:235:2: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(interact->phys, sizeof(interact->phys), "%s/input0", ga= meport->phys); ^~~~~~~~ drivers/input/joystick/interact.c:235:2: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 snprintf(interact->phys, sizeof(interact->phys), "%s/input0", ga= meport->phys); ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. fs/ufs/dir.c:102:2: warning: Value stored to 'err' is never read [clang-= analyzer-deadcode.DeadStores] err =3D ufs_commit_chunk(page, pos, len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ufs/dir.c:102:2: note: Value stored to 'err' is never read err =3D ufs_commit_chunk(page, pos, len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ufs/dir.c:179:2: warning: Value stored to 'p' is never read [clang-an= alyzer-deadcode.DeadStores] p =3D (struct ufs_dir_entry *)(kaddr + offs); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ufs/dir.c:179:2: note: Value stored to 'p' is never read p =3D (struct ufs_dir_entry *)(kaddr + offs); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ufs/dir.c:389:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(de->d_name, name, namelen + 1); ^~~~~~ fs/ufs/dir.c:389:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(de->d_name, name, namelen + 1); ^~~~~~ fs/ufs/dir.c:564:2: warning: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memset(base, 0, PAGE_SIZE); ^~~~~~ fs/ufs/dir.c:564:2: note: Call to function 'memset' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memset_s' in case of C11 memset(base, 0, PAGE_SIZE); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/mfd/tps6507x.c:77:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&msg[1], src, bytes); ^~~~~~ drivers/mfd/tps6507x.c:77:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(&msg[1], src, bytes); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/mfd/mc13xxx-core.c:375:6: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (snprintf(buf, sizeof(buf), format, name) > sizeof(buf)) ^~~~~~~~ drivers/mfd/mc13xxx-core.c:375:6: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 if (snprintf(buf, sizeof(buf), format, name) > sizeof(buf)) ^~~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/mfd/ti-lmu.c:159:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(®map_cfg, 0, sizeof(struct regmap_config)); ^~~~~~ drivers/mfd/ti-lmu.c:159:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(®map_cfg, 0, sizeof(struct regmap_config)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/regulator/qcom-labibb-regulator.c:864:3: warning: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&vreg->desc, reg_data->desc, sizeof(vreg->desc)); ^~~~~~ drivers/regulator/qcom-labibb-regulator.c:864:3: note: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&vreg->desc, reg_data->desc, sizeof(vreg->desc)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/regulator/pfuze100-regulator.c:763:2: warning: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(pfuze_chip->regulator_descs, pfuze_chip->pfuze_regulators, ^~~~~~ drivers/regulator/pfuze100-regulator.c:763:2: note: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(pfuze_chip->regulator_descs, pfuze_chip->pfuze_regulators, -- ^~~~~~~~~~~~~ drivers/input/mouse/cyapa_gen5.c:1897:11: note: Calling 'twos_complement= _to_s32' value =3D twos_complement_to_s32(value, data_size * 8); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/mouse/cyapa_gen5.c:1855:6: note: Assuming the condition is= true if (value >> (num_bits - 1)) ^~~~~~~~~~~~~~~~~~~~~~~ drivers/input/mouse/cyapa_gen5.c:1855:2: note: Taking true branch if (value >> (num_bits - 1)) ^ drivers/input/mouse/cyapa_gen5.c:1856:16: note: The result of the left s= hift is undefined due to shifting by '32', which is greater or equal to the= width of type 'int' value |=3D -1 << num_bits; ^ ~~~~~~~~ drivers/input/mouse/cyapa_gen5.c:2007:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cmd, 0, sizeof(cmd)); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2007:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(cmd, 0, sizeof(cmd)); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2186:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cmd, 0, sizeof(cmd)); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2186:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(cmd, 0, sizeof(cmd)); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2462:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cyapa->product_id[0], &resp_data[8], 5); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2462:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&cyapa->product_id[0], &resp_data[8], 5); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2464:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cyapa->product_id[6], &resp_data[13], 6); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2464:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&cyapa->product_id[6], &resp_data[13], 6); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2466:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cyapa->product_id[13], &resp_data[19], 2); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2466:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&cyapa->product_id[13], &resp_data[19], 2); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2525:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cyapa->product_id[0], &resp_data[33], 5); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2525:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&cyapa->product_id[0], &resp_data[33], 5); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2527:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cyapa->product_id[6], &resp_data[38], 6); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2527:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&cyapa->product_id[6], &resp_data[38], 6); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2529:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cyapa->product_id[13], &resp_data[44], 2); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2529:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&cyapa->product_id[13], &resp_data[44], 2); ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2663:4: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(pip->resp_data, pip->irq_cmd_buf, ^~~~~~ drivers/input/mouse/cyapa_gen5.c:2663:4: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(pip->resp_data, pip->irq_cmd_buf, ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 63 warnings generated. drivers/nfc/pn544/pn544.c:625:5: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(uid, data + MIFARE_KEY_LEN, ^~~~~~ drivers/nfc/pn544/pn544.c:625:5: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(uid, data + MIFARE_KEY_LEN, ^~~~~~ drivers/nfc/pn544/pn544.c:627:5: warning: Call to function 'memmove' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(data + MIFARE_UID_LEN, data, ^~~~~~~ drivers/nfc/pn544/pn544.c:627:5: note: Call to function 'memmove' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memmove_s' in case of C11 memmove(data + MIFARE_UID_LEN, data, ^~~~~~~ drivers/nfc/pn544/pn544.c:629:5: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, uid, MIFARE_UID_LEN); ^~~~~~ drivers/nfc/pn544/pn544.c:629:5: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(data, uid, MIFARE_UID_LEN); ^~~~~~ drivers/nfc/pn544/pn544.c:927:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(init_data.gates, pn544_gates, sizeof(pn544_gates)); ^~~~~~ drivers/nfc/pn544/pn544.c:927:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(init_data.gates, pn544_gates, sizeof(pn544_gates)); ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. >> drivers/tty/serial/8250/8250_em.c:106:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&up, 0, sizeof(up)); ^~~~~~ drivers/tty/serial/8250/8250_em.c:106:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(&up, 0, sizeof(up)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/tty/serial/sccnxp.c:949:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&s->pdata, pdata, sizeof(struct sccnxp_pdata)); ^~~~~~ drivers/tty/serial/sccnxp.c:949:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(&s->pdata, pdata, sizeof(struct sccnxp_pdata)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/misc/hmc6352.c:84:9: warning: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d.%d\n", ret/10, ret%10); ^~~~~~~ drivers/misc/hmc6352.c:84:9: note: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d.%d\n", ret/10, ret%10); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 24 warnings generated. Suppressed 24 warnings (17 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/mfd/gateworks-gsc.c:113:8: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] rz =3D sprintf(buf, "%d\n", gsc->fwver); ^~~~~~~ drivers/mfd/gateworks-gsc.c:113:8: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 rz =3D sprintf(buf, "%d\n", gsc->fwver); ^~~~~~~ drivers/mfd/gateworks-gsc.c:115:8: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] rz =3D sprintf(buf, "0x%04x\n", gsc->fwcrc); ^~~~~~~ drivers/mfd/gateworks-gsc.c:115:8: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 rz =3D sprintf(buf, "0x%04x\n", gsc->fwcrc); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/rtc/rtc-rs5c372.c:743:2: warning: Value stored to 'addr' is neve= r read [clang-analyzer-deadcode.DeadStores] addr =3D RS5C_ADDR(RS5C_REG_CTRL1); ^ drivers/rtc/rtc-rs5c372.c:743:2: note: Value stored to 'addr' is never r= ead Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. drivers/input/rmi4/rmi_f11.c:1129:2: warning: Value stored to 'query_off= set' is never read [clang-analyzer-deadcode.DeadStores] query_offset +=3D rc; ^ ~~ drivers/input/rmi4/rmi_f11.c:1129:2: note: Value stored to 'query_offset= ' is never read query_offset +=3D rc; ^ ~~ drivers/input/rmi4/rmi_f11.c:1318:3: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(f11->sensor.data_pkt, drvdata->attn_data.data, ^~~~~~ drivers/input/rmi4/rmi_f11.c:1318:3: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(f11->sensor.data_pkt, drvdata->attn_data.data, ^~~~~~ Suppressed 34 warnings (34 in non-user code). -- for_each_net_rcu(net) { ^ include/net/net_namespace.h:373:2: note: expanded from macro 'for_each_n= et_rcu' list_for_each_entry_rcu(VAR, &net_namespace_list, list) ^ include/linux/rculist.h:391:13: note: expanded from macro 'list_for_each= _entry_rcu' pos =3D list_entry_rcu((head)->next, typeof(*pos), member);= \ ^ include/linux/rculist.h:307:15: note: expanded from macro 'list_entry_rc= u' container_of(READ_ONCE(ptr), type, member) ^ include/asm-generic/rwonce.h:49:2: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ include/asm-generic/rwonce.h:36:21: note: expanded from macro 'compileti= me_assert_rwonce_type' compiletime_assert(__native_word(t) || sizeof(t) =3D=3D sizeof(l= ong long), \ ^ include/linux/compiler_types.h:313:3: note: expanded from macro '__nativ= e_word' (sizeof(t) =3D=3D sizeof(char) || sizeof(t) =3D=3D sizeof(short)= || \ ^ net/netlink/genetlink.c:1445:2: note: Left side of '||' is true for_each_net_rcu(net) { ^ include/net/net_namespace.h:373:2: note: expanded from macro 'for_each_n= et_rcu' list_for_each_entry_rcu(VAR, &net_namespace_list, list) ^ include/linux/rculist.h:391:13: note: expanded from macro 'list_for_each= _entry_rcu' pos =3D list_entry_rcu((head)->next, typeof(*pos), member);= \ ^ include/linux/rculist.h:307:15: note: expanded from macro 'list_entry_rc= u' container_of(READ_ONCE(ptr), type, member) ^ include/asm-generic/rwonce.h:49:2: note: expanded from macro 'READ_ONCE' compiletime_assert_rwonce_type(x); \ ^ include/asm-generic/rwonce.h:36:21: note: expanded from macro 'compileti= me_assert_rwonce_type' compiletime_assert(__native_word(t) || sizeof(t) =3D=3D sizeof(l= ong long), \ ^ include/linux/compiler_types.h:314:28: note: expanded from macro '__nati= ve_word' sizeof(t) =3D=3D sizeof(int) || sizeof(t) =3D=3D sizeof(long)) ^ net/netlink/genetlink.c:1445:2: note: Taking false branch for_each_net_rcu(net) { ^ include/net/net_namespace.h:373:2: note: expanded from macro 'for_each_n= et_rcu' list_for_each_entry_rcu(VAR, &net_namespace_list, list) ^ include/linux/rculist.h:391:13: note: expanded from macro 'list_for_each= _entry_rcu' pos =3D list_entry_rcu((head)->next, typeof(*pos), member);= \ ^ include/linux/rculist.h:307:15: note: expanded from macro 'list_entry_rc= u' container_of(READ_ONCE(ptr), type, member) ^ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit= =3D0 to see all) include/linux/compiler_types.h:346:2: note: expanded from macro 'compile= time_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COU= NTER__) ^ include/linux/compiler_types.h:334:2: note: expanded from macro '_compil= etime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:326:3: note: expanded from macro '__compi= letime_assert' if (!(condition)) \ ^ net/netlink/genetlink.c:1445:2: note: Loop condition is false. Exiting = loop for_each_net_rcu(net) { ^ include/net/net_namespace.h:373:2: note: expanded from macro 'for_each_n= et_rcu' list_for_each_entry_rcu(VAR, &net_namespace_list, list) ^ include/linux/rculist.h:391:13: note: expanded from macro 'list_for_each= _entry_rcu' pos =3D list_entry_rcu((head)->next, typeof(*pos), member);= \ ^ include/linux/rculist.h:307:15: note: expanded from macro 'list_entry_rc= u' container_of(READ_ONCE(ptr), type, member) ^ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit= =3D0 to see all) include/linux/compiler_types.h:346:2: note: expanded from macro 'compile= time_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COU= NTER__) ^ include/linux/compiler_types.h:334:2: note: expanded from macro '_compil= etime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:318:2: note: expanded from macro '__compi= letime_assert' do { \ ^ net/netlink/genetlink.c:1445:2: note: Loop condition is false. Execution= continues on line 1463 for_each_net_rcu(net) { ^ include/net/net_namespace.h:373:2: note: expanded from macro 'for_each_n= et_rcu' list_for_each_entry_rcu(VAR, &net_namespace_list, list) ^ include/linux/rculist.h:390:2: note: expanded from macro 'list_for_each_= entry_rcu' for (__list_check_rcu(dummy, ## cond, 0), \ ^ net/netlink/genetlink.c:1463:24: note: Access to field 'genl_sock' resul= ts in a dereference of a null pointer (loaded from variable 'prev') err =3D nlmsg_multicast(prev->genl_sock, skb, portid, group, fla= gs); ^~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> drivers/video/fbdev/s3c2410fb.c:589:9: warning: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%s\n", debug ? "on" : "off"); ^~~~~~~~ drivers/video/fbdev/s3c2410fb.c:589:9: note: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%s\n", debug ? "on" : "off"); ^~~~~~~~ >> drivers/video/fbdev/s3c2410fb.c:650:3: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(info->screen_base, 0x00, map_size); ^~~~~~ drivers/video/fbdev/s3c2410fb.c:650:3: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(info->screen_base, 0x00, map_size); ^~~~~~ drivers/video/fbdev/s3c2410fb.c:894: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 argu= ments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcp= y] strcpy(fbinfo->fix.id, driver_name); ^~~~~~ drivers/video/fbdev/s3c2410fb.c:894:2: note: Call to function 'strcpy' i= s insecure as it does not provide bounding of the memory buffer. Replace un= bounded copy functions with analogous functions that support length argumen= ts such as 'strlcpy'. CWE-119 strcpy(fbinfo->fix.id, driver_name); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. fs/ext4/extents_status.c:1075:6: warning: Branch condition evaluates to = a garbage value [clang-analyzer-core.uninitialized.Branch] if (!rc->first_do_lblk_found) { ^ fs/ext4/extents_status.c:1316:6: note: Assuming 'reserved' is not equal = to NULL if (reserved =3D=3D NULL || !test_opt(inode->i_sb, DELALLOC)) ^~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1316:6: note: Left side of '||' is false fs/ext4/extents_status.c:1316:26: note: Assuming the condition is false if (reserved =3D=3D NULL || !test_opt(inode->i_sb, DELALLOC)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1316:2: note: Taking false branch if (reserved =3D=3D NULL || !test_opt(inode->i_sb, DELALLOC)) ^ fs/ext4/extents_status.c:1322:6: note: Assuming 'es' is non-null if (!es) ^~~ fs/ext4/extents_status.c:1322:2: note: Taking false branch if (!es) ^ fs/ext4/extents_status.c:1324:6: note: Assuming 'end' is >=3D field 'es_= lblk' if (es->es_lblk > end) ^~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1324:2: note: Taking false branch if (es->es_lblk > end) ^ fs/ext4/extents_status.c:1329:6: note: 'count_reserved' is true if (count_reserved) ^~~~~~~~~~~~~~ fs/ext4/extents_status.c:1329:2: note: Taking true branch if (count_reserved) ^ fs/ext4/extents_status.c:1330:3: note: Calling 'init_rsvd' init_rsvd(inode, lblk, es, &rc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1024:6: note: Assuming field 's_cluster_ratio' = is <=3D 1 if (sbi->s_cluster_ratio > 1) { ^~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1024:2: note: Taking false branch if (sbi->s_cluster_ratio > 1) { ^ fs/ext4/extents_status.c:1036:1: note: Returning without writing to 'rc-= >first_do_lblk_found' } ^ fs/ext4/extents_status.c:1330:3: note: Returning from 'init_rsvd' init_rsvd(inode, lblk, es, &rc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1336:9: note: Assuming 'lblk' is > field 'es_lb= lk' len1 =3D lblk > es->es_lblk ? lblk - es->es_lblk : 0; ^~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1336:9: note: '?' condition is true fs/ext4/extents_status.c:1337:9: note: Assuming the condition is false len2 =3D ext4_es_end(es) > end ? ext4_es_end(es) - end : 0; ^~~~~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1337:9: note: '?' condition is false fs/ext4/extents_status.c:1338:6: note: Assuming 'len1' is > 0 if (len1 > 0) ^~~~~~~~ fs/ext4/extents_status.c:1338:2: note: Taking true branch if (len1 > 0) ^ fs/ext4/extents_status.c:1340:6: note: 'len2' is <=3D 0 if (len2 > 0) { ^~~~ fs/ext4/extents_status.c:1340:2: note: Taking false branch if (len2 > 0) { ^ fs/ext4/extents_status.c:1378:6: note: 'len1' is > 0 if (len1 > 0) { ^~~~ fs/ext4/extents_status.c:1378:2: note: Taking true branch if (len1 > 0) { ^ fs/ext4/extents_status.c:1379:7: note: 'count_reserved' is true if (count_reserved) ^~~~~~~~~~~~~~ fs/ext4/extents_status.c:1379:3: note: Taking true branch if (count_reserved) ^ fs/ext4/extents_status.c:1380:4: note: Calling 'count_rsvd' count_rsvd(inode, lblk, orig_es.es_len - len1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.c:1058:7: note: Calling 'ext4_es_is_delonly' if (!ext4_es_is_delonly(es)) ^~~~~~~~~~~~~~~~~~~~~~ fs/ext4/extents_status.h:189:10: note: Left side of '&&' is true return (ext4_es_is_delayed(es) && !ext4_es_is_unwritten(es)); -- ^~~~~~ drivers/scsi/scsi_transport_fc.c:3075:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&rport->node_name, &ids->node_name, sizeof(rport->node_na= me)); ^~~~~~ drivers/scsi/scsi_transport_fc.c:3076:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&rport->port_name, &ids->port_name, sizeof(rport->port_na= me)); ^~~~~~ drivers/scsi/scsi_transport_fc.c:3076:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&rport->port_name, &ids->port_name, sizeof(rport->port_na= me)); ^~~~~~ drivers/scsi/scsi_transport_fc.c:3224:5: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&rport->node_name, &ids->node_nam= e, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3224:5: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&rport->node_name, &ids->node_nam= e, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3226:5: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&rport->port_name, &ids->port_nam= e, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3226:5: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&rport->port_name, &ids->port_nam= e, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3236:6: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(rport->dd_data, 0, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3236:6: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(rport->dd_data, 0, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3335:4: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&rport->node_name, &ids->node_name, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3335:4: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&rport->node_name, &ids->node_name, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3337:4: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&rport->port_name, &ids->port_name, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3337:4: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&rport->port_name, &ids->port_name, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3344:5: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(rport->dd_data, 0, ^~~~~~ drivers/scsi/scsi_transport_fc.c:3344:5: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(rport->dd_data, 0, ^~~~~~ drivers/scsi/scsi_transport_fc.c:4104:3: warning: Value stored to 'cmdle= n' is never read [clang-analyzer-deadcode.DeadStores] cmdlen +=3D sizeof(struct fc_bsg_host_add_rport); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4104:3: note: Value stored to 'cmdlen' = is never read cmdlen +=3D sizeof(struct fc_bsg_host_add_rport); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4108:3: warning: Value stored to 'cmdle= n' is never read [clang-analyzer-deadcode.DeadStores] cmdlen +=3D sizeof(struct fc_bsg_host_del_rport); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4108:3: note: Value stored to 'cmdlen' = is never read cmdlen +=3D sizeof(struct fc_bsg_host_del_rport); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4112:3: warning: Value stored to 'cmdle= n' is never read [clang-analyzer-deadcode.DeadStores] cmdlen +=3D sizeof(struct fc_bsg_host_els); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4112:3: note: Value stored to 'cmdlen' = is never read cmdlen +=3D sizeof(struct fc_bsg_host_els); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4122:3: warning: Value stored to 'cmdle= n' is never read [clang-analyzer-deadcode.DeadStores] cmdlen +=3D sizeof(struct fc_bsg_host_ct); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4122:3: note: Value stored to 'cmdlen' = is never read cmdlen +=3D sizeof(struct fc_bsg_host_ct); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4132:3: warning: Value stored to 'cmdle= n' is never read [clang-analyzer-deadcode.DeadStores] cmdlen +=3D sizeof(struct fc_bsg_host_vendor); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4132:3: note: Value stored to 'cmdlen' = is never read cmdlen +=3D sizeof(struct fc_bsg_host_vendor); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4197:3: warning: Value stored to 'cmdle= n' is never read [clang-analyzer-deadcode.DeadStores] cmdlen +=3D sizeof(struct fc_bsg_rport_els); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4197:3: note: Value stored to 'cmdlen' = is never read cmdlen +=3D sizeof(struct fc_bsg_rport_els); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4201:3: warning: Value stored to 'cmdle= n' is never read [clang-analyzer-deadcode.DeadStores] cmdlen +=3D sizeof(struct fc_bsg_rport_ct); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4201:3: note: Value stored to 'cmdlen' = is never read cmdlen +=3D sizeof(struct fc_bsg_rport_ct); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/scsi_transport_fc.c:4290:2: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(bsg_name, sizeof(bsg_name), ^~~~~~~~ drivers/scsi/scsi_transport_fc.c:4290:2: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 snprintf(bsg_name, sizeof(bsg_name), ^~~~~~~~ Suppressed 63 warnings (62 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 32 warnings generated. >> drivers/input/mouse/psmouse-base.c:1565:2: warning: Call to function 'sn= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'snprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(psmouse->devname, sizeof(psmouse->devname), "%s %s %s", ^~~~~~~~ drivers/input/mouse/psmouse-base.c:1565:2: note: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(psmouse->devname, sizeof(psmouse->devname), "%s %s %s", ^~~~~~~~ drivers/input/mouse/psmouse-base.c:1607:2: warning: Call to function 'sn= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'snprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(psmouse->phys, sizeof(psmouse->phys), "%s/input0", seri= o->phys); ^~~~~~~~ drivers/input/mouse/psmouse-base.c:1607:2: note: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(psmouse->phys, sizeof(psmouse->phys), "%s/input0", seri= o->phys); ^~~~~~~~ >> drivers/input/mouse/psmouse-base.c:1875:9: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", *field); ^~~~~~~ drivers/input/mouse/psmouse-base.c:1875:9: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", *field); ^~~~~~~ >> drivers/input/mouse/psmouse-base.c:1895:9: warning: Call to function 'sp= rintf' is insecure as it does not provide bounding of the memory buffer or = security checks introduced in the C11 standard. Replace with analogous func= tions that support length arguments or provides boundary checks such as 'sp= rintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUn= safeBufferHandling] return sprintf(buf, "%s\n", psmouse->protocol->name); ^~~~~~~ drivers/input/mouse/psmouse-base.c:1895:9: note: Call to function 'sprin= tf' is insecure as it does not provide bounding of the memory buffer or sec= urity checks introduced in the C11 standard. Replace with analogous functio= ns that support length arguments or provides boundary checks such as 'sprin= tf_s' in case of C11 return sprintf(buf, "%s\n", psmouse->protocol->name); ^~~~~~~ drivers/input/mouse/psmouse-base.c:2045:9: warning: Call to function 'sp= rintf' is insecure as it does not provide bounding of the memory buffer or = security checks introduced in the C11 standard. Replace with analogous func= tions that support length arguments or provides boundary checks such as 'sp= rintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUn= safeBufferHandling] return sprintf(buffer, "%s\n", psmouse_protocol_by_type(type)->n= ame); ^~~~~~~ drivers/input/mouse/psmouse-base.c:2045:9: note: Call to function 'sprin= tf' is insecure as it does not provide bounding of the memory buffer or sec= urity checks introduced in the C11 standard. Replace with analogous functio= ns that support length arguments or provides boundary checks such as 'sprin= tf_s' in case of C11 return sprintf(buffer, "%s\n", psmouse_protocol_by_type(type)->n= ame); ^~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 14 warnings generated. drivers/dma/qcom/hidma_mgmt_sys.c:109:4: warning: Call to function 'spri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf, "%d\n", hidma_mgmt_files[i].get(mde= v)); ^~~~~~~ drivers/dma/qcom/hidma_mgmt_sys.c:109:4: note: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 sprintf(buf, "%d\n", hidma_mgmt_files[i].get(mde= v)); ^~~~~~~ drivers/dma/qcom/hidma_mgmt_sys.c:150:3: warning: Call to function 'spri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf, "%d\n", mdev->priority[chattr->index]); ^~~~~~~ drivers/dma/qcom/hidma_mgmt_sys.c:150:3: note: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 sprintf(buf, "%d\n", mdev->priority[chattr->index]); ^~~~~~~ drivers/dma/qcom/hidma_mgmt_sys.c:152:3: warning: Call to function 'spri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf, "%d\n", mdev->weight[chattr->index]); ^~~~~~~ drivers/dma/qcom/hidma_mgmt_sys.c:152:3: note: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 sprintf(buf, "%d\n", mdev->weight[chattr->index]); ^~~~~~~ drivers/dma/qcom/hidma_mgmt_sys.c:254:3: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, sizeof(name), "chan%d", i); ^~~~~~~~ drivers/dma/qcom/hidma_mgmt_sys.c:254:3: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 snprintf(name, sizeof(name), "chan%d", i); ^~~~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. drivers/dma/fsl-qdma.c:368:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(fsl_comp->virt_addr, 0, FSL_QDMA_COMMAND_BUFFER_SIZE); ^~~~~~ drivers/dma/fsl-qdma.c:368:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(fsl_comp->virt_addr, 0, FSL_QDMA_COMMAND_BUFFER_SIZE); ^~~~~~ drivers/dma/fsl-qdma.c:369:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(fsl_comp->desc_virt_addr, 0, FSL_QDMA_DESCRIPTOR_BUFFER_S= IZE); ^~~~~~ drivers/dma/fsl-qdma.c:369:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(fsl_comp->desc_virt_addr, 0, FSL_QDMA_DESCRIPTOR_BUFFER_S= IZE); ^~~~~~ drivers/dma/fsl-qdma.c:824:3: warning: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(irq_name, "qdma-queue%d", i); ^~~~~~~ drivers/dma/fsl-qdma.c:824:3: note: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 sprintf(irq_name, "qdma-queue%d", i); ^~~~~~~ drivers/dma/fsl-qdma.c:916:11: warning: The result of the left shift is = undefined because the left operand is negative [clang-analyzer-core.Undefin= edBinaryOperatorResult] reg |=3D FSL_QDMA_BCQMR_CD_THLD(ilog2(temp->n_cq= ) - 4); ^ drivers/dma/fsl-qdma.c:80:40: note: expanded from macro 'FSL_QDMA_BCQMR_= CD_THLD' #define FSL_QDMA_BCQMR_CD_THLD(x) ((x) << 20) ^ drivers/dma/fsl-qdma.c:1128:6: note: 'ret' is 0 if (ret) { ^~~ drivers/dma/fsl-qdma.c:1128:2: note: Taking false branch if (ret) { ^ drivers/dma/fsl-qdma.c:1134:6: note: 'ret' is 0 if (ret) { ^~~ drivers/dma/fsl-qdma.c:1134:2: note: Taking false branch if (ret) { ^ drivers/dma/fsl-qdma.c:1140:6: note: 'ret' is 0 if (ret) { ^~~ drivers/dma/fsl-qdma.c:1140:2: note: Taking false branch if (ret) { ^ drivers/dma/fsl-qdma.c:1145:12: note: Assuming '__UNIQUE_ID___x230' is >= =3D '__UNIQUE_ID___y231' blk_num =3D min_t(int, blk_num, num_online_cpus()); ^ include/linux/minmax.h:104:27: note: expanded from macro 'min_t' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:38:3: note: expanded from macro '__careful_cmp' __cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:33:3: note: expanded from macro '__cmp_once' __cmp(unique_x, unique_y, op); }) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:28:26: note: expanded from macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) -- ^ drivers/dma/fsl-qdma.c:1209:6: note: Assuming field 'irq_base' is >=3D 0 if (fsl_qdma->irq_base < 0) ^~~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:1209:2: note: Taking false branch if (fsl_qdma->irq_base < 0) ^ drivers/dma/fsl-qdma.c:1215:14: note: Assuming 'i' is >=3D field 'n_chan= s' for (i =3D 0; i < fsl_qdma->n_chans; i++) { ^~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:1215:2: note: Loop condition is false. Execution = continues on line 1225 for (i =3D 0; i < fsl_qdma->n_chans; i++) { ^ drivers/dma/fsl-qdma.c:1238:33: note: 40 is not equal to 64 ret =3D dma_set_mask(&pdev->dev, DMA_BIT_MASK(40)); ^ include/linux/dma-mapping.h:76:27: note: expanded from macro 'DMA_BIT_MA= SK' #define DMA_BIT_MASK(n) (((n) =3D=3D 64) ? ~0ULL : ((1ULL<<(n))-1)) ^~~ drivers/dma/fsl-qdma.c:1238:33: note: '?' condition is false ret =3D dma_set_mask(&pdev->dev, DMA_BIT_MASK(40)); ^ include/linux/dma-mapping.h:76:26: note: expanded from macro 'DMA_BIT_MA= SK' #define DMA_BIT_MASK(n) (((n) =3D=3D 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ drivers/dma/fsl-qdma.c:1239:6: note: Assuming 'ret' is 0 if (ret) { ^~~ drivers/dma/fsl-qdma.c:1239:2: note: Taking false branch if (ret) { ^ drivers/dma/fsl-qdma.c:1247:6: note: Assuming 'ret' is 0 if (ret) { ^~~ drivers/dma/fsl-qdma.c:1247:2: note: Taking false branch if (ret) { ^ drivers/dma/fsl-qdma.c:1253:8: note: Calling 'fsl_qdma_reg_init' ret =3D fsl_qdma_reg_init(fsl_qdma); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:879:6: note: Assuming 'ret' is 0 if (ret) { ^~~ drivers/dma/fsl-qdma.c:879:2: note: Taking false branch if (ret) { ^ drivers/dma/fsl-qdma.c:884:14: note: Assuming 'i' is < field 'block_numb= er' for (i =3D 0; i < fsl_qdma->block_number; i++) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:884:2: note: Loop condition is true. Entering lo= op body for (i =3D 0; i < fsl_qdma->block_number; i++) { ^ drivers/dma/fsl-qdma.c:884:14: note: Assuming 'i' is >=3D field 'block_n= umber' for (i =3D 0; i < fsl_qdma->block_number; i++) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:884:2: note: Loop condition is false. Execution c= ontinues on line 896 for (i =3D 0; i < fsl_qdma->block_number; i++) { ^ drivers/dma/fsl-qdma.c:896:2: note: Loop condition is true. Entering lo= op body for (j =3D 0; j < fsl_qdma->block_number; j++) { ^ drivers/dma/fsl-qdma.c:899:15: note: Assuming 'i' is >=3D field 'n_queue= s' for (i =3D 0; i < fsl_qdma->n_queues; i++) { ^~~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:899:3: note: Loop condition is false. Execution c= ontinues on line 927 for (i =3D 0; i < fsl_qdma->n_queues; i++) { ^ drivers/dma/fsl-qdma.c:953:33: note: '?' condition is false reg |=3D FSL_QDMA_BSQMR_CQ_SIZE(ilog2 ^ include/linux/log2.h:158:2: note: expanded from macro 'ilog2' __builtin_constant_p(n) ? \ ^ drivers/dma/fsl-qdma.c:953:33: note: '?' condition is true reg |=3D FSL_QDMA_BSQMR_CQ_SIZE(ilog2 ^ include/linux/log2.h:161:2: note: expanded from macro 'ilog2' (sizeof(n) <=3D 4) ? \ ^ drivers/dma/fsl-qdma.c:953:10: note: The result of the left shift is und= efined because the left operand is negative reg |=3D FSL_QDMA_BSQMR_CQ_SIZE(ilog2 ^ drivers/dma/fsl-qdma.c:88:40: note: expanded from macro 'FSL_QDMA_BSQMR_= CQ_SIZE' #define FSL_QDMA_BSQMR_CQ_SIZE(x) ((x) << 16) ~~~ ^ drivers/dma/fsl-qdma.c:957:3: warning: Value stored to 'reg' is never re= ad [clang-analyzer-deadcode.DeadStores] reg =3D qdma_readl(fsl_qdma, block + FSL_QDMA_BSQMR); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:957:3: note: Value stored to 'reg' is never read reg =3D qdma_readl(fsl_qdma, block + FSL_QDMA_BSQMR); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/dma/fsl-qdma.c:1005:2: warning: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(fsl_queue->virt_head++, ^~~~~~ drivers/dma/fsl-qdma.c:1005:2: note: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 memcpy(fsl_queue->virt_head++, ^~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. >> drivers/tty/n_hdlc.c:418:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf->buf, data, count); ^~~~~~ drivers/tty/n_hdlc.c:418:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(buf->buf, data, count); ^~~~~~ drivers/tty/n_hdlc.c:507:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(kbuf, rbuf->buf+offset, ret); ^~~~~~ drivers/tty/n_hdlc.c:507:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(kbuf, rbuf->buf+offset, ret); ^~~~~~ drivers/tty/n_hdlc.c:581:3: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tbuf->buf, data, count); ^~~~~~ drivers/tty/n_hdlc.c:581:3: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(tbuf->buf, data, count); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/char/hw_random/core.c:368:8: warning: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(buf, PAGE_SIZE, "%s\n", rng ? rng->name : "none= "); ^~~~~~~~ drivers/char/hw_random/core.c:368:8: note: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 ret =3D snprintf(buf, PAGE_SIZE, "%s\n", rng ? rng->name : "none= "); ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. fs/ufs/ialloc.c:145:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/ufs/ialloc.c:145:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/ufs/ialloc.c:302:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&ufsi->i_u1, 0, sizeof(ufsi->i_u1)); ^~~~~~ fs/ufs/ialloc.c:302:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&ufsi->i_u1, 0, sizeof(ufsi->i_u1)); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 55 warnings generated. fs/ufs/inode.c:78:9: warning: Excessive padding in 'Indirect' (8 padding= bytes, where 0 is optimal). = Optimal fields order: = , = p, = bh, = consider reordering the fields or adding explicit padding members [clang= -analyzer-optin.performance.Padding] typedef struct { ^~~~~~~~ fs/ufs/inode.c:78:9: note: Excessive padding in 'Indirect' (8 padding by= tes, where 0 is optimal). Optimal fields order: , p, bh, consider reorderin= g the fields or adding explicit padding members typedef struct { ^~~~~~~~ fs/ufs/inode.c:596:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ufsi->i_u1.i_data, &ufs_inode->ui_u2.ui_addr, ^~~~~~ fs/ufs/inode.c:596:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(ufsi->i_u1.i_data, &ufs_inode->ui_u2.ui_addr, ^~~~~~ fs/ufs/inode.c:599:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ufsi->i_u1.i_symlink, ufs_inode->ui_u2.ui_symlink, ^~~~~~ fs/ufs/inode.c:599:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(ufsi->i_u1.i_symlink, ufs_inode->ui_u2.ui_symlink, ^~~~~~ fs/ufs/inode.c:643:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ufsi->i_u1.u2_i_data, &ufs2_inode->ui_u2.ui_addr, ^~~~~~ fs/ufs/inode.c:643:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(ufsi->i_u1.u2_i_data, &ufs2_inode->ui_u2.ui_addr, ^~~~~~ fs/ufs/inode.c:646:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ufsi->i_u1.i_symlink, ufs2_inode->ui_u2.ui_symlin= k, ^~~~~~ fs/ufs/inode.c:646:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(ufsi->i_u1.i_symlink, ufs2_inode->ui_u2.ui_symlin= k, ^~~~~~ fs/ufs/inode.c:746:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ufs_inode->ui_u2.ui_addr, ufsi->i_u1.i_data, ^~~~~~ fs/ufs/inode.c:746:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(&ufs_inode->ui_u2.ui_addr, ufsi->i_u1.i_data, ^~~~~~ fs/ufs/inode.c:750:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ufs_inode->ui_u2.ui_symlink, ufsi->i_u1.i_symlin= k, ^~~~~~ fs/ufs/inode.c:750:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(&ufs_inode->ui_u2.ui_symlink, ufsi->i_u1.i_symlin= k, ^~~~~~ fs/ufs/inode.c:755:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset (ufs_inode, 0, sizeof(struct ufs_inode)); ^~~~~~ fs/ufs/inode.c:755:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset (ufs_inode, 0, sizeof(struct ufs_inode)); ^~~~~~ fs/ufs/inode.c:786:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ufs_inode->ui_u2.ui_addr, ufsi->i_u1.u2_i_data, ^~~~~~ fs/ufs/inode.c:786:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(&ufs_inode->ui_u2.ui_addr, ufsi->i_u1.u2_i_data, ^~~~~~ fs/ufs/inode.c:789:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ufs_inode->ui_u2.ui_symlink, ufsi->i_u1.i_symlin= k, ^~~~~~ fs/ufs/inode.c:789:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(&ufs_inode->ui_u2.ui_symlink, ufsi->i_u1.i_symlin= k, ^~~~~~ fs/ufs/inode.c:794:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset (ufs_inode, 0, sizeof(struct ufs2_inode)); ^~~~~~ fs/ufs/inode.c:794:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset (ufs_inode, 0, sizeof(struct ufs2_inode)); ^~~~~~ fs/ufs/inode.c:1104:10: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/ufs/inode.c:1104:10: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. >> drivers/media/tuners/tuner-xc2028.c:287:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&priv->cur_fw, 0, sizeof(priv->cur_fw)); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:287:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(&priv->cur_fw, 0, sizeof(priv->cur_fw)); ^~~~~~ >> drivers/media/tuners/tuner-xc2028.c:321:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(name, p, sizeof(name) - 1); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:321:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(name, p, sizeof(name) - 1); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:631:4: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + 1, p, len); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:631:4: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + 1, p, len); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:769:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&priv->cur_fw, 0, sizeof(priv->cur_fw)); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:769:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(&priv->cur_fw, 0, sizeof(priv->cur_fw)); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:1037:3: warning: Value stored to 'rc= ' is never read [clang-analyzer-deadcode.DeadStores] rc =3D send_seq(priv, {0x00, 0x00}); ^ drivers/media/tuners/tuner-xc2028.c:1037:3: note: Value stored to 'rc' i= s never read drivers/media/tuners/tuner-xc2028.c:1396:2: warning: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&priv->ctrl, p, sizeof(priv->ctrl)); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:1396:2: note: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&priv->ctrl, p, sizeof(priv->ctrl)); ^~~~~~ drivers/media/tuners/tuner-xc2028.c:1497:2: warning: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&fe->ops.tuner_ops, &xc2028_dvb_tuner_ops, ^~~~~~ drivers/media/tuners/tuner-xc2028.c:1497:2: note: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&fe->ops.tuner_ops, &xc2028_dvb_tuner_ops, ^~~~~~ Suppressed 46 warnings (44 in non-user code, 2 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/video/fbdev/core/fbsysfs.c:121:9: warning: Call to function 'snp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'snprintf_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d%c-%d= \n", ^~~~~~~~ drivers/video/fbdev/core/fbsysfs.c:121:9: note: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d%c-%d= \n", ^~~~~~~~ drivers/video/fbdev/core/fbsysfs.c:137:2: warning: Call to function 'mem= set' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memset_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&var, 0, sizeof(var)); ^~~~~~ drivers/video/fbdev/core/fbsysfs.c:137:2: note: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 memset(&var, 0, sizeof(var)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/video/fbdev/core/modedb.c:728:4: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&cvt_mode, 0, sizeof(cvt_mode)); ^~~~~~ drivers/video/fbdev/core/modedb.c:728:4: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(&cvt_mode, 0, sizeof(cvt_mode)); ^~~~~~ drivers/video/fbdev/core/modedb.c:1180:3: warning: Call to function 'mem= set' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memset_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&var, 0, sizeof(struct fb_var_screeninfo)); ^~~~~~ drivers/video/fbdev/core/modedb.c:1180:3: note: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 memset(&var, 0, sizeof(struct fb_var_screeninfo)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 55 warnings generated. drivers/video/fbdev/core/fbcvt.c:227:9: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, "fbcvt: %dx%d@%d: CVT Name - = ", ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:227:9: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, "fbcvt: %dx%d@%d: CVT Name - = ", ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:233:3: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(buf+offset, cnt, "Not a CVT standard - %d.%03d = Mega " ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:233:3: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 snprintf(buf+offset, cnt, "Not a CVT standard - %d.%03d = Mega " ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:237:11: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, "%d", pixcoun= t); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:237:11: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, "%d", pixcoun= t); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:242:10: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, ".%03dM", pixcount_mo= d); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:242:10: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, ".%03dM", pixcount_mo= d); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:247:11: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, "3"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:247:11: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, "3"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:249:11: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, "4"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:249:11: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, "4"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:251:11: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, "9"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:251:11: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, "9"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:253:11: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, "A"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:253:11: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, "A"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:260:11: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] read =3D snprintf(buf+offset, cnt, "-R"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:260:11: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 read =3D snprintf(buf+offset, cnt, "-R"); ^~~~~~~~ drivers/video/fbdev/core/fbcvt.c:261:4: warning: Value stored to 'cnt' i= s never read [clang-analyzer-deadcode.DeadStores] cnt -=3D read; ^ ~~~~ drivers/video/fbdev/core/fbcvt.c:261:4: note: Value stored to 'cnt' is n= ever read cnt -=3D read; ^ ~~~~ drivers/video/fbdev/core/fbcvt.c:262:4: warning: Value stored to 'offset= ' is never read [clang-analyzer-deadcode.DeadStores] offset +=3D read; ^ ~~~~ drivers/video/fbdev/core/fbcvt.c:262:4: note: Value stored to 'offset' i= s never read offset +=3D read; ^ ~~~~ drivers/video/fbdev/core/fbcvt.c:309:2: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&cvt, 0, sizeof(cvt)); ^~~~~~ drivers/video/fbdev/core/fbcvt.c:309:2: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(&cvt, 0, sizeof(cvt)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. fs/xfs/libxfs/xfs_ialloc_btree.c:103:2: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&args, 0, sizeof(args)); ^~~~~~ fs/xfs/libxfs/xfs_ialloc_btree.c:103:2: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(&args, 0, sizeof(args)); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. >> drivers/media/dvb-frontends/dvb_dummy_fe.c:122:2: warning: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&state->frontend.ops, ^~~~~~ drivers/media/dvb-frontends/dvb_dummy_fe.c:122:2: note: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&state->frontend.ops, ^~~~~~ drivers/media/dvb-frontends/dvb_dummy_fe.c:143:2: warning: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&state->frontend.ops, ^~~~~~ drivers/media/dvb-frontends/dvb_dummy_fe.c:143:2: note: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&state->frontend.ops, ^~~~~~ drivers/media/dvb-frontends/dvb_dummy_fe.c:164:2: warning: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&state->frontend.ops, ^~~~~~ drivers/media/dvb-frontends/dvb_dummy_fe.c:164:2: note: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&state->frontend.ops, ^~~~~~ Suppressed 44 warnings (43 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 71 warnings generated. net/atm/signaling.c:82:4: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vcc->local.sas_addr.prv, ^~~~~~ net/atm/signaling.c:82:4: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(vcc->local.sas_addr.prv, ^~~~~~ net/atm/signaling.c:84:4: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vcc->local.sas_addr.pub, ^~~~~~ net/atm/signaling.c:84:4: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(vcc->local.sas_addr.pub, ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 70 warnings generated. net/atm/svc.c:427:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(addr, peer ? &ATM_SD(sock)->remote : &ATM_SD(sock)->local, ^~~~~~ net/atm/svc.c:427:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(addr, peer ? &ATM_SD(sock)->remote : &ATM_SD(sock)->local, ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. fs/nilfs2/sufile.c:839:4: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(si, 0, sisz * n); ^~~~~~ fs/nilfs2/sufile.c:839:4: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(si, 0, sisz * n); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. >> fs/befs/datastream.c:150:3: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buff + bytes_read, bh->b_data, plen); ^~~~~~ fs/befs/datastream.c:150:3: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(buff + bytes_read, bh->b_data, plen); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 26 warnings generated. Suppressed 26 warnings (26 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 81 warnings generated. drivers/scsi/scsi_transport_sas.c:131:1: warning: Call to function 'spri= ntf' is insecure as it does not provide bounding of the memory buffer or se= curity checks introduced in the C11 standard. Replace with analogous functi= ons that support length arguments or provides boundary checks such as 'spri= ntf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsa= feBufferHandling] sas_bitfield_name_search(device_type, sas_device_type_names) ^ drivers/scsi/scsi_transport_sas.c:113:11: note: expanded from macro 'sas= _bitfield_name_search' len +=3D sprintf(buf + len, "%s", \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:131:1: note: Call to function 'sprintf= ' is insecure as it does not provide bounding of the memory buffer or secur= ity checks introduced in the C11 standard. Replace with analogous functions= that support length arguments or provides boundary checks such as 'sprintf= _s' in case of C11 sas_bitfield_name_search(device_type, sas_device_type_names) ^ drivers/scsi/scsi_transport_sas.c:113:11: note: expanded from macro 'sas= _bitfield_name_search' len +=3D sprintf(buf + len, "%s", \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:131:1: warning: Call to function 'spri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sas_bitfield_name_search(device_type, sas_device_type_names) ^ drivers/scsi/scsi_transport_sas.c:118:9: note: expanded from macro 'sas_= bitfield_name_search' len +=3D sprintf(buf + len, "\n"); \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:131:1: note: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 sas_bitfield_name_search(device_type, sas_device_type_names) ^ drivers/scsi/scsi_transport_sas.c:118:9: note: expanded from macro 'sas_= bitfield_name_search' len +=3D sprintf(buf + len, "\n"); \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:143:1: warning: Call to function 'spri= ntf' is insecure as it does not provide bounding of the memory buffer or se= curity checks introduced in the C11 standard. Replace with analogous functi= ons that support length arguments or provides boundary checks such as 'spri= ntf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsa= feBufferHandling] sas_bitfield_name_match(protocol, sas_protocol_names) ^ drivers/scsi/scsi_transport_sas.c:77:11: note: expanded from macro 'sas_= bitfield_name_match' len +=3D sprintf(buf + len, "%s%s", \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:143:1: note: Call to function 'sprintf= ' is insecure as it does not provide bounding of the memory buffer or secur= ity checks introduced in the C11 standard. Replace with analogous functions= that support length arguments or provides boundary checks such as 'sprintf= _s' in case of C11 sas_bitfield_name_match(protocol, sas_protocol_names) ^ drivers/scsi/scsi_transport_sas.c:77:11: note: expanded from macro 'sas_= bitfield_name_match' len +=3D sprintf(buf + len, "%s%s", \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:143:1: warning: Call to function 'spri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sas_bitfield_name_match(protocol, sas_protocol_names) ^ drivers/scsi/scsi_transport_sas.c:82:9: note: expanded from macro 'sas_b= itfield_name_match' len +=3D sprintf(buf + len, "\n"); \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:143:1: note: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 sas_bitfield_name_match(protocol, sas_protocol_names) ^ drivers/scsi/scsi_transport_sas.c:82:9: note: expanded from macro 'sas_b= itfield_name_match' len +=3D sprintf(buf + len, "\n"); \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:159:1: warning: Call to function 'spri= ntf' is insecure as it does not provide bounding of the memory buffer or se= curity checks introduced in the C11 standard. Replace with analogous functi= ons that support length arguments or provides boundary checks such as 'spri= ntf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsa= feBufferHandling] sas_bitfield_name_search(linkspeed, sas_linkspeed_names) ^ drivers/scsi/scsi_transport_sas.c:113:11: note: expanded from macro 'sas= _bitfield_name_search' len +=3D sprintf(buf + len, "%s", \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:159:1: note: Call to function 'sprintf= ' is insecure as it does not provide bounding of the memory buffer or secur= ity checks introduced in the C11 standard. Replace with analogous functions= that support length arguments or provides boundary checks such as 'sprintf= _s' in case of C11 sas_bitfield_name_search(linkspeed, sas_linkspeed_names) ^ drivers/scsi/scsi_transport_sas.c:113:11: note: expanded from macro 'sas= _bitfield_name_search' len +=3D sprintf(buf + len, "%s", \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:159:1: warning: Call to function 'spri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sas_bitfield_name_search(linkspeed, sas_linkspeed_names) ^ drivers/scsi/scsi_transport_sas.c:118:9: note: expanded from macro 'sas_= bitfield_name_search' len +=3D sprintf(buf + len, "\n"); \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:159:1: note: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 sas_bitfield_name_search(linkspeed, sas_linkspeed_names) ^ drivers/scsi/scsi_transport_sas.c:118:9: note: expanded from macro 'sas_= bitfield_name_search' len +=3D sprintf(buf + len, "\n"); \ ^~~~~~~ drivers/scsi/scsi_transport_sas.c:209:3: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, sizeof(name), "sas_host%d", shost->host_n= o); ^~~~~~~~ drivers/scsi/scsi_transport_sas.c:209:3: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 snprintf(name, sizeof(name), "sas_host%d", shost->host_n= o); -- fs/fuse/file.c:2887:2: note: Taking true branch if (io->async) { ^ fs/fuse/file.c:2890:25: note: 'ret' is < 0 fuse_aio_complete(io, ret < 0 ? ret : 0, -1); ^~~ fs/fuse/file.c:2890:25: note: '?' condition is true fs/fuse/file.c:2890:3: note: Calling 'fuse_aio_complete' fuse_aio_complete(io, ret < 0 ? ret : 0, -1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/fuse/file.c:663:6: note: 'err' is -12 if (err) ^~~ fs/fuse/file.c:663:2: note: Taking true branch if (err) ^ fs/fuse/file.c:664:13: note: '?' condition is true io->err =3D io->err ? : err; ^ fs/fuse/file.c:669:6: note: Assuming 'left' is not equal to 0 if (!left && io->blocking) ^~~~~ fs/fuse/file.c:669:12: note: Left side of '&&' is false if (!left && io->blocking) ^ fs/fuse/file.c:673:7: note: 'left' is not equal to 0 if (!left && !io->blocking) { ^~~~ fs/fuse/file.c:673:12: note: Left side of '&&' is false if (!left && !io->blocking) { ^ fs/fuse/file.c:689:2: note: Calling 'kref_put' kref_put(&io->refcnt, fuse_io_release); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kref.h:64:6: note: Assuming the condition is true if (refcount_dec_and_test(&kref->refcount)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kref.h:64:2: note: Taking true branch if (refcount_dec_and_test(&kref->refcount)) { ^ include/linux/kref.h:65:3: note: Calling 'fuse_io_release' release(kref); ^~~~~~~~~~~~~ fs/fuse/file.c:628:2: note: Memory is released kfree(container_of(kref, struct fuse_io_priv, refcnt)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kref.h:65:3: note: Returning; memory was released release(kref); ^~~~~~~~~~~~~ fs/fuse/file.c:689:2: note: Returning; memory was released kref_put(&io->refcnt, fuse_io_release); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/fuse/file.c:2890:3: note: Returning; memory was released via 1st para= meter fuse_aio_complete(io, ret < 0 ? ret : 0, -1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/fuse/file.c:2893:7: note: Assuming 'blocking' is true if (!blocking) ^~~~~~~~~ fs/fuse/file.c:2893:3: note: Taking false branch if (!blocking) ^ fs/fuse/file.c:2897:9: note: Use of memory after it is freed ret =3D fuse_get_res_by_io(io); ^ ~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/mfd/pcf50633-core.c:104:11: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] buf1 +=3D sprintf(buf1, "%*ph\n", (int)sizeof(dump), dum= p); ^~~~~~~ drivers/mfd/pcf50633-core.c:104:11: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 buf1 +=3D sprintf(buf1, "%*ph\n", (int)sizeof(dump), dum= p); ^~~~~~~ drivers/mfd/pcf50633-core.c:117:6: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] n =3D sprintf(buf, "%02x%02x%02x%02x%02x\n", ^~~~~~~ drivers/mfd/pcf50633-core.c:117:6: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 n =3D sprintf(buf, "%02x%02x%02x%02x%02x\n", ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. Suppressed 17 warnings (17 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. >> drivers/video/fbdev/sm501fb.c:1169:9: warning: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%s\n", ctrl ? "crt" : "panel"); ^~~~~~~~ drivers/video/fbdev/sm501fb.c:1169:9: note: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%s\n", ctrl ? "crt" : "panel"); ^~~~~~~~ >> drivers/video/fbdev/sm501fb.c:1230:10: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ptr +=3D sprintf(ptr, "%08x =3D %08x\n", reg, ^~~~~~~ drivers/video/fbdev/sm501fb.c:1230:10: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 ptr +=3D sprintf(ptr, "%08x =3D %08x\n", reg, ^~~~~~~ >> drivers/video/fbdev/sm501fb.c:1724:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&par->ops, ^~~~~~ drivers/video/fbdev/sm501fb.c:1724:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&par->ops, ^~~~~~ drivers/video/fbdev/sm501fb.c:1965:5: 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 argum= ents such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(fb_mode, cp); ^~~~~~ drivers/video/fbdev/sm501fb.c:1965:5: note: Call to function 'strcpy' is= insecure as it does not provide bounding of the memory buffer. Replace unb= ounded copy functions with analogous functions that support length argument= s such as 'strlcpy'. CWE-119 strcpy(fb_mode, cp); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 88 warnings generated. >> drivers/video/fbdev/uvesafb.c:103:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&task->t, utask, sizeof(*utask)); ^~~~~~ drivers/video/fbdev/uvesafb.c:103:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(&task->t, utask, sizeof(*utask)); ^~~~~~ drivers/video/fbdev/uvesafb.c:106:3: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(task->buf, utask + 1, task->t.buf_len); ^~~~~~ drivers/video/fbdev/uvesafb.c:106:3: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(task->buf, utask + 1, task->t.buf_len); ^~~~~~ drivers/video/fbdev/uvesafb.c:167:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&m->id, &uvesafb_cn_id, sizeof(m->id)); ^~~~~~ drivers/video/fbdev/uvesafb.c:167:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(&m->id, &uvesafb_cn_id, sizeof(m->id)); ^~~~~~ drivers/video/fbdev/uvesafb.c:173:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(m + 1, &task->t, sizeof(task->t)); ^~~~~~ drivers/video/fbdev/uvesafb.c:173:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(m + 1, &task->t, sizeof(task->t)); ^~~~~~ drivers/video/fbdev/uvesafb.c:176:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy((u8 *)(m + 1) + sizeof(task->t), task->buf, task->t.buf_l= en); ^~~~~~ drivers/video/fbdev/uvesafb.c:176:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy((u8 *)(m + 1) + sizeof(task->t), task->buf, task->t.buf_l= en); ^~~~~~ >> drivers/video/fbdev/uvesafb.c:250:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(task, 0, sizeof(*task)); ^~~~~~ drivers/video/fbdev/uvesafb.c:250:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(task, 0, sizeof(*task)); ^~~~~~ drivers/video/fbdev/uvesafb.c:426:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(par->vbe_ib.vbe_signature, "VBE2", 4); ^~~~~~ drivers/video/fbdev/uvesafb.c:426:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(par->vbe_ib.vbe_signature, "VBE2", 4); ^~~~~~ drivers/video/fbdev/uvesafb.c:682:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&info->monspecs, 0, sizeof(info->monspecs)); ^~~~~~ drivers/video/fbdev/uvesafb.c:682:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(&info->monspecs, 0, sizeof(info->monspecs)); ^~~~~~ drivers/video/fbdev/uvesafb.c:729:3: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&var, 0, sizeof(var)); ^~~~~~ drivers/video/fbdev/uvesafb.c:729:3: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(&var, 0, sizeof(var)); ^~~~~~ drivers/video/fbdev/uvesafb.c:1271:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&par->crtc, crtc, sizeof(*crtc)); ^~~~~~ drivers/video/fbdev/uvesafb.c:1271:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&par->crtc, crtc, sizeof(*crtc)); ^~~~~~ drivers/video/fbdev/uvesafb.c:1273:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&par->crtc, 0, sizeof(*crtc)); ^~~~~~ drivers/video/fbdev/uvesafb.c:1273:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(&par->crtc, 0, sizeof(*crtc)); ^~~~~~ >> drivers/video/fbdev/uvesafb.c:1552:9: warning: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%.4x\n", par->vbe_ib.vbe_versio= n); ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1552:9: note: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%.4x\n", par->vbe_ib.vbe_versio= n); ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1583:10: warning: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%s\n", (char *) ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1583:10: note: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%s\n", (char *) ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1598:10: warning: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%s\n", (char *) ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1598:10: note: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%s\n", (char *) ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1613:10: warning: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%s\n", (char *) ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1613:10: note: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%s\n", (char *) ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1628:10: warning: Call to function 'snprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'snprintf_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%s\n", ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1628:10: note: Call to function 'snprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%s\n", ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1642:9: warning: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%d\n", par->nocrtc); ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1642:9: note: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%d\n", par->nocrtc); ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1870:9: warning: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%s\n", v86d_path); ^~~~~~~~ drivers/video/fbdev/uvesafb.c:1870:9: note: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%s\n", v86d_path); ^~~~~~~~ >> drivers/video/fbdev/uvesafb.c:1876:2: warning: Call to function 'strncpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'strncpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(v86d_path, buf, PATH_MAX - 1); ^~~~~~~ drivers/video/fbdev/uvesafb.c:1876:2: note: Call to function 'strncpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'strncpy_s' in case of C11 strncpy(v86d_path, buf, PATH_MAX - 1); ^~~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/power/supply/bq2515x_charger.c:1095:2: warning: Call to function= 'strncpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'strncpy_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(bq2515x->model_name, id->name, I2C_NAME_SIZE); ^~~~~~~ drivers/power/supply/bq2515x_charger.c:1095:2: note: Call to function 's= trncpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'strncpy_s' in case of C11 strncpy(bq2515x->model_name, id->name, I2C_NAME_SIZE); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/input/joystick/spaceorb.c:159:2: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(spaceorb->phys, sizeof(spaceorb->phys), "%s/input0", se= rio->phys); ^~~~~~~~ drivers/input/joystick/spaceorb.c:159:2: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 snprintf(spaceorb->phys, sizeof(spaceorb->phys), "%s/input0", se= rio->phys); ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/input/joystick/warrior.c:136:2: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(warrior->phys, sizeof(warrior->phys), "%s/input0", seri= o->phys); ^~~~~~~~ drivers/input/joystick/warrior.c:136:2: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 snprintf(warrior->phys, sizeof(warrior->phys), "%s/input0", seri= o->phys); ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. kernel/watch_queue.c:105:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(p + offset, n, len); ^~~~~~ kernel/watch_queue.c:105:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(p + offset, n, len); ^~~~~~ kernel/watch_queue.c:267:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(bitmap, 0xff, bmsize); ^~~~~~ kernel/watch_queue.c:267:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(bitmap, 0xff, bmsize); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. -- fs/cachefiles/io.c:105:7: note: 'off2' is equal to 0 if (off2 =3D=3D 0) ^~~~ fs/cachefiles/io.c:105:3: note: Taking true branch if (off2 =3D=3D 0) ^ fs/cachefiles/io.c:107:7: note: Assuming 'off2' is < 0 if (off2 < 0 && off2 >=3D (loff_t)-MAX_ERRNO && off2 != =3D -ENXIO) { ^~~~~~~~ fs/cachefiles/io.c:107:7: note: Left side of '&&' is true fs/cachefiles/io.c:107:19: note: Assuming the condition is false if (off2 < 0 && off2 >=3D (loff_t)-MAX_ERRNO && off2 != =3D -ENXIO) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ fs/cachefiles/io.c:107:46: note: Left side of '&&' is false if (off2 < 0 && off2 >=3D (loff_t)-MAX_ERRNO && off2 != =3D -ENXIO) { ^ fs/cachefiles/io.c:113:7: note: Left side of '||' is false if (off2 =3D=3D -ENXIO || off2 >=3D start_pos + len) { ^ fs/cachefiles/io.c:113:25: note: Assuming the condition is false if (off2 =3D=3D -ENXIO || off2 >=3D start_pos + len) { ^~~~~~~~~~~~~~~~~~~~~~~ fs/cachefiles/io.c:113:3: note: Taking false branch if (off2 =3D=3D -ENXIO || off2 >=3D start_pos + len) { ^ fs/cachefiles/io.c:134:6: note: Assuming 'ki' is non-null if (!ki) ^~~ fs/cachefiles/io.c:134:2: note: Taking false branch if (!ki) ^ fs/cachefiles/io.c:150:6: note: Assuming field 'term_func' is non-null if (ki->term_func) ^~~~~~~~~~~~~ fs/cachefiles/io.c:150:2: note: Taking true branch if (ki->term_func) ^ fs/cachefiles/io.c:159:6: note: 'ret' is equal to 0 if (ret =3D=3D 0) ^~~ fs/cachefiles/io.c:159:2: note: Taking true branch if (ret =3D=3D 0) ^ fs/cachefiles/io.c:162:2: note: Control jumps to the 'default' case at l= ine 175 switch (ret) { ^ fs/cachefiles/io.c:177:3: note: Calling 'cachefiles_read_complete' cachefiles_read_complete(&ki->iocb, ret); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/cachefiles/io.c:50:2: note: Taking false branch _enter("%ld", ret); ^ fs/cachefiles/internal.h:344:26: note: expanded from macro '_enter' #define _enter(FMT, ...) no_printk("=3D=3D> %s("FMT")", __func__, ##__VA= _ARGS__) ^ include/linux/printk.h:131:2: note: expanded from macro 'no_printk' if (0) \ ^ fs/cachefiles/io.c:52:6: note: Assuming 'ret' is >=3D 0 if (ret < 0) ^~~~~~~ fs/cachefiles/io.c:52:2: note: Taking false branch if (ret < 0) ^ fs/cachefiles/io.c:56:6: note: Assuming field 'term_func' is null if (ki->term_func) { ^~~~~~~~~~~~~ fs/cachefiles/io.c:56:2: note: Taking false branch if (ki->term_func) { ^ fs/cachefiles/io.c:67:2: note: Calling 'cachefiles_put_kiocb' cachefiles_put_kiocb(ki); ^~~~~~~~~~~~~~~~~~~~~~~~ fs/cachefiles/io.c:35:2: note: Taking true branch if (refcount_dec_and_test(&ki->ki_refcnt)) { ^ fs/cachefiles/io.c:38:3: note: Memory is released kfree(ki); ^~~~~~~~~ fs/cachefiles/io.c:67:2: note: Returning; memory was released cachefiles_put_kiocb(ki); ^~~~~~~~~~~~~~~~~~~~~~~~ fs/cachefiles/io.c:177:3: note: Returning; memory was released cachefiles_read_complete(&ki->iocb, ret); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/cachefiles/io.c:178:7: note: Assuming 'ret' is <=3D 0 if (ret > 0) ^~~~~~~ fs/cachefiles/io.c:178:3: note: Taking false branch if (ret > 0) ^ fs/cachefiles/io.c:180:3: note: Execution continues on line 184 break; ^ fs/cachefiles/io.c:184:2: note: Use of memory after it is freed cachefiles_put_kiocb(ki); ^ ~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. >> drivers/dma/idma64.c:406:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&idma64c->config, config, sizeof(idma64c->config)); ^~~~~~ drivers/dma/idma64.c:406:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(&idma64c->config, config, sizeof(idma64c->config)); ^~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 41 warnings generated. drivers/virtio/virtio.c:17:9: warning: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%04x\n", dev->id.device); ^~~~~~~ drivers/virtio/virtio.c:17:9: note: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%04x\n", dev->id.device); ^~~~~~~ drivers/virtio/virtio.c:25:9: warning: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%04x\n", dev->id.vendor); ^~~~~~~ drivers/virtio/virtio.c:25:9: note: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%04x\n", dev->id.vendor); ^~~~~~~ drivers/virtio/virtio.c:33:9: warning: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%08x\n", dev->config->get_status(dev)); ^~~~~~~ drivers/virtio/virtio.c:33:9: note: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%08x\n", dev->config->get_status(dev)); ^~~~~~~ drivers/virtio/virtio.c:41:9: warning: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "virtio:d%08Xv%08X\n", ^~~~~~~ drivers/virtio/virtio.c:41:9: note: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "virtio:d%08Xv%08X\n", ^~~~~~~ drivers/virtio/virtio.c:56:10: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] len +=3D sprintf(buf+len, "%c", ^~~~~~~ drivers/virtio/virtio.c:56:10: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 len +=3D sprintf(buf+len, "%c", ^~~~~~~ drivers/virtio/virtio.c:58:9: warning: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] len +=3D sprintf(buf+len, "\n"); ^~~~~~~ drivers/virtio/virtio.c:58:9: note: Call to function 'sprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sprintf_s' in case of C11 len +=3D sprintf(buf+len, "\n"); ^~~~~~~ drivers/virtio/virtio.c:362:8: warning: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(compat, sizeof(compat), "virtio,device%x", dev-= >id.device); ^~~~~~~~ drivers/virtio/virtio.c:362:8: note: Call to function 'snprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'snprintf_s' in case of C11 ret =3D snprintf(compat, sizeof(compat), "virtio,device%x", dev-= >id.device); ^~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/char/hw_random/ixp4xx-rng.c:44:17: warning: Value stored to 'dev= ' during its initialization is never read [clang-analyzer-deadcode.DeadStor= es] struct device *dev =3D &pdev->dev; ^~~ ~~~~~~~~~~ drivers/char/hw_random/ixp4xx-rng.c:44:17: note: Value stored to 'dev' d= uring its initialization is never read struct device *dev =3D &pdev->dev; ^~~ ~~~~~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. fs/jffs2/gc.c:812:2: warning: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memset(&ri, 0, sizeof(ri)); ^~~~~~ fs/jffs2/gc.c:812:2: note: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 memset(&ri, 0, sizeof(ri)); ^~~~~~ fs/jffs2/gc.c:1026:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&ri, 0, sizeof(ri)); ^~~~~~ fs/jffs2/gc.c:1026:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&ri, 0, sizeof(ri)); ^~~~~~ fs/jffs2/gc.c:1177:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&ri, 0, sizeof(ri)); ^~~~~~ fs/jffs2/gc.c:1177:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&ri, 0, sizeof(ri)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. Suppressed 33 warnings (33 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. -- ^~~~~~~~~~~~ fs/fuse/control.c:170:8: note: Calling 'fuse_conn_limit_write' ret =3D fuse_conn_limit_write(file, buf, count, ppos, &val, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/fuse/control.c:84:6: note: Assuming the condition is false if (*ppos) ^~~~~ fs/fuse/control.c:84:2: note: Taking false branch if (*ppos) ^ fs/fuse/control.c:88:6: note: Assuming 'err' is not equal to 0 if (err) ^~~ fs/fuse/control.c:88:2: note: Taking true branch if (err) ^ fs/fuse/control.c:89:3: note: Returning without writing to '*val' return err; ^ fs/fuse/control.c:170:8: note: Returning from 'fuse_conn_limit_write' ret =3D fuse_conn_limit_write(file, buf, count, ppos, &val, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/fuse/control.c:172:6: note: Assuming 'ret' is > 0 if (ret <=3D 0) ^~~~~~~~ fs/fuse/control.c:172:2: note: Taking false branch if (ret <=3D 0) ^ fs/fuse/control.c:174:7: note: Calling 'fuse_ctl_file_conn_get' fc =3D fuse_ctl_file_conn_get(file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/fuse/control.c:28:6: note: Assuming 'fc' is non-null if (fc) ^~ fs/fuse/control.c:28:2: note: Taking true branch if (fc) ^ fs/fuse/control.c:31:2: note: Returning pointer (loaded from 'fc'), whic= h participates in a condition later return fc; ^~~~~~~~~ fs/fuse/control.c:174:7: note: Returning from 'fuse_ctl_file_conn_get' fc =3D fuse_ctl_file_conn_get(file); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/fuse/control.c:175:6: note: Assuming 'fc' is non-null if (!fc) ^~~ fs/fuse/control.c:175:2: note: Taking false branch if (!fc) ^ fs/fuse/control.c:180:27: note: Assigned value is garbage or undefined fc->congestion_threshold =3D val; ^ ~~~ fs/fuse/control.c:283:2: warning: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(name, "%u", fc->dev); ^~~~~~~ fs/fuse/control.c:283:2: note: Call to function 'sprintf' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'sprintf_s' in case of C11 sprintf(name, "%u", fc->dev); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 13 warnings generated. lib/zlib_deflate/deflate.c:441:21: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] CLEAR_HASH(s); /* forget history */ ^ lib/zlib_deflate/deflate.c:185:5: note: expanded from macro 'CLEAR_HASH' memset((char *)s->head, 0, (unsigned)(s->hash_size-1)*sizeof(*s->hea= d)); ^~~~~~ lib/zlib_deflate/deflate.c:441:21: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 CLEAR_HASH(s); /* forget history */ ^ lib/zlib_deflate/deflate.c:185:5: note: expanded from macro 'CLEAR_HASH' memset((char *)s->head, 0, (unsigned)(s->hash_size-1)*sizeof(*s->hea= d)); ^~~~~~ lib/zlib_deflate/deflate.c:513:5: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, strm->next_in, len); ^~~~~~ lib/zlib_deflate/deflate.c:513:5: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, strm->next_in, len); ^~~~~~ lib/zlib_deflate/deflate.c:529:5: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] CLEAR_HASH(s); ^ lib/zlib_deflate/deflate.c:185:5: note: expanded from macro 'CLEAR_HASH' memset((char *)s->head, 0, (unsigned)(s->hash_size-1)*sizeof(*s->hea= d)); ^~~~~~ lib/zlib_deflate/deflate.c:529:5: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 CLEAR_HASH(s); ^ lib/zlib_deflate/deflate.c:185:5: note: expanded from macro 'CLEAR_HASH' memset((char *)s->head, 0, (unsigned)(s->hash_size-1)*sizeof(*s->hea= d)); ^~~~~~ lib/zlib_deflate/deflate.c:764:13: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy((char *)s->window, (char *)s->window+wsize, ^~~~~~ lib/zlib_deflate/deflate.c:764:13: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy((char *)s->window, (char *)s->window+wsize, ^~~~~~ Suppressed 9 warnings (9 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. >> fs/affs/super.c:459:2: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sig, boot_bh->b_data, 4); ^~~~~~ fs/affs/super.c:459:2: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(sig, boot_bh->b_data, 4); ^~~~~~ fs/affs/super.c:572:2: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(volume, sbi->s_volume, 32); ^~~~~~ fs/affs/super.c:572:2: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(volume, sbi->s_volume, 32); ^~~~~~ fs/affs/super.c:592:2: warning: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sbi->s_volume, volume, 32); ^~~~~~ fs/affs/super.c:592:2: note: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 memcpy(sbi->s_volume, volume, 32); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. fs/affs/namei.c:22:34: warning: Although the value stored to 'ch' is use= d in the enclosing expression, the value is never actually read from 'ch' [= clang-analyzer-deadcode.DeadStores] return ch >=3D 'a' && ch <=3D 'z' ? ch -=3D ('a' - 'A') : ch; ^ ~~~~~~~~~~~ fs/affs/namei.c:22:34: note: Although the value stored to 'ch' is used i= n the enclosing expression, the value is never actually read from 'ch' return ch >=3D 'a' && ch <=3D 'z' ? ch -=3D ('a' - 'A') : ch; ^ ~~~~~~~~~~~ fs/affs/namei.c:489:2: warning: Value stored to 'retval' is never read [= clang-analyzer-deadcode.DeadStores] retval =3D affs_insert_hash(new_dir, bh_old); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/affs/namei.c:489:2: note: Value stored to 'retval' is never read retval =3D affs_insert_hash(new_dir, bh_old); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 52 warnings generated. >> drivers/i2c/busses/i2c-cros-ec-tunnel.c:99:4: warning: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(out_data, i2c_msg->buf, msg->len); ^~~~~~ drivers/i2c/busses/i2c-cros-ec-tunnel.c:99:4: note: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(out_data, i2c_msg->buf, msg->len); ^~~~~~ drivers/i2c/busses/i2c-cros-ec-tunnel.c:166:4: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(i2c_msg->buf, in_data, i2c_msg->len); ^~~~~~ drivers/i2c/busses/i2c-cros-ec-tunnel.c:166:4: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(i2c_msg->buf, in_data, i2c_msg->len); ^~~~~~ Suppressed 50 warnings (43 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/i2c/muxes/i2c-mux-gpio.c:140:3: warning: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&mux->data, dev_get_platdata(&pdev->dev), ^~~~~~ drivers/i2c/muxes/i2c-mux-gpio.c:140:3: note: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 memcpy(&mux->data, dev_get_platdata(&pdev->dev), ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 52 warnings generated. drivers/md/dm-verity-fec.c:350:3: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(fio->bufs[n], 0, v->fec->rsn << DM_VERITY_FEC_BUF= _RS_BITS); ^~~~~~ drivers/md/dm-verity-fec.c:350:3: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(fio->bufs[n], 0, v->fec->rsn << DM_VERITY_FEC_BUF= _RS_BITS); ^~~~~~ drivers/md/dm-verity-fec.c:352:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(fio->erasures, 0, sizeof(fio->erasures)); ^~~~~~ drivers/md/dm-verity-fec.c:352:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(fio->erasures, 0, sizeof(fio->erasures)); ^~~~~~ drivers/md/dm-verity-fec.c:408:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, &fio->output[fio->output_pos], len); ^~~~~~ drivers/md/dm-verity-fec.c:408:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(data, &fio->output[fio->output_pos], len); ^~~~~~ drivers/md/dm-verity-fec.c:471:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dest, fio->output, 1 << v->data_dev_block_bits); ^~~~~~ drivers/md/dm-verity-fec.c:471:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(dest, fio->output, 1 << v->data_dev_block_bits); ^~~~~~ drivers/md/dm-verity-fec.c:516:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(fio->bufs, 0, sizeof(fio->bufs)); ^~~~~~ drivers/md/dm-verity-fec.c:516:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(fio->bufs, 0, sizeof(fio->bufs)); ^~~~~~ drivers/md/dm-verity-fec.c:617:7: warning: Call to function 'sscanf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(arg_value, "%llu%c", &num_ll, &dummy) !=3D 1 = || ^~~~~~ drivers/md/dm-verity-fec.c:617:7: note: Call to function 'sscanf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sscanf_s' in case of C11 if (sscanf(arg_value, "%llu%c", &num_ll, &dummy) !=3D 1 = || ^~~~~~ drivers/md/dm-verity-fec.c:626:7: warning: Call to function 'sscanf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(arg_value, "%llu%c", &num_ll, &dummy) !=3D 1 = || ^~~~~~ drivers/md/dm-verity-fec.c:626:7: note: Call to function 'sscanf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sscanf_s' in case of C11 if (sscanf(arg_value, "%llu%c", &num_ll, &dummy) !=3D 1 = || ^~~~~~ drivers/md/dm-verity-fec.c:635:7: warning: Call to function 'sscanf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(arg_value, "%hhu%c", &num_c, &dummy) !=3D 1 |= | !num_c || ^~~~~~ drivers/md/dm-verity-fec.c:635:7: note: Call to function 'sscanf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sscanf_s' in case of C11 if (sscanf(arg_value, "%hhu%c", &num_c, &dummy) !=3D 1 |= | !num_c || ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 13 warnings generated. drivers/leds/trigger/ledtrig-oneshot.c:43:9: warning: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", oneshot_data->invert); ^~~~~~~ drivers/leds/trigger/ledtrig-oneshot.c:43:9: note: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", oneshot_data->invert); ^~~~~~~ drivers/leds/trigger/ledtrig-oneshot.c:73:9: warning: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); ^~~~~~~ drivers/leds/trigger/ledtrig-oneshot.c:73:9: note: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); ^~~~~~~ drivers/leds/trigger/ledtrig-oneshot.c:97:9: warning: Call to function '= sprintf' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'sprintf_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); ^~~~~~~ drivers/leds/trigger/ledtrig-oneshot.c:97:9: note: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); ^~~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. -- ^ fs/ext4/fsmap.c:441:7: note: 'error' is 0 if (error) ^~~~~ fs/ext4/fsmap.c:441:3: note: Taking false branch if (error) ^ fs/ext4/fsmap.c:449:7: note: 'error' is -12 if (error) ^~~~~ fs/ext4/fsmap.c:449:3: note: Taking true branch if (error) ^ fs/ext4/fsmap.c:450:4: note: Control jumps to line 461 goto err; ^ fs/ext4/fsmap.c:461:2: note: Calling 'ext4_getfsmap_free_fixed_metadata' ext4_getfsmap_free_fixed_metadata(meta_list); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/fsmap.c:401:2: note: Loop condition is true. Entering loop body list_for_each_entry_safe(p, tmp, meta_list, fmr_list) { ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ fs/ext4/fsmap.c:403:3: note: Memory is released kfree(p); ^~~~~~~~ fs/ext4/fsmap.c:401:2: note: Loop condition is false. Execution continue= s on line 401 list_for_each_entry_safe(p, tmp, meta_list, fmr_list) { ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ fs/ext4/fsmap.c:461:2: note: Returning; memory was released ext4_getfsmap_free_fixed_metadata(meta_list); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/fsmap.c:508:10: note: Returning; memory was released error =3D ext4_getfsmap_find_fixed_metadata(sb, &info->gfi_meta_= list); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ fs/ext4/fsmap.c:509:6: note: 'error' is -12 if (error) ^~~~~ fs/ext4/fsmap.c:509:2: note: Taking true branch if (error) ^ fs/ext4/fsmap.c:510:3: note: Control jumps to line 566 goto err; ^ fs/ext4/fsmap.c:566:2: note: Calling 'ext4_getfsmap_free_fixed_metadata' ext4_getfsmap_free_fixed_metadata(&info->gfi_meta_list); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/fsmap.c:401:2: note: Use of memory after it is freed list_for_each_entry_safe(p, tmp, meta_list, fmr_list) { ^ include/linux/list.h:726:7: note: expanded from macro 'list_for_each_ent= ry_safe' n =3D list_next_entry(pos, member); = \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:564:2: note: expanded from macro 'list_next_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:520:2: note: expanded from macro 'list_entry' container_of(ptr, type, member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:18:25: note: expanded from macro 'container= _of' void *__mptr =3D (void *)(ptr); = \ ^~~~~ fs/ext4/fsmap.c:505:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&info->gfi_high, 0xFF, sizeof(info->gfi_high)); ^~~~~~ fs/ext4/fsmap.c:505:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&info->gfi_high, 0xFF, sizeof(info->gfi_high)); ^~~~~~ fs/ext4/fsmap.c:549:4: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&info->gfi_low, 0, sizeof(info->gfi_low)); ^~~~~~ fs/ext4/fsmap.c:549:4: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&info->gfi_low, 0, sizeof(info->gfi_low)); ^~~~~~ fs/ext4/fsmap.c:645:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(handlers, 0, sizeof(handlers)); ^~~~~~ fs/ext4/fsmap.c:645:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(handlers, 0, sizeof(handlers)); ^~~~~~ fs/ext4/fsmap.c:672:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&dkeys[1], 0xFF, sizeof(struct ext4_fsmap)); ^~~~~~ fs/ext4/fsmap.c:672:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&dkeys[1], 0xFF, sizeof(struct ext4_fsmap)); ^~~~~~ fs/ext4/fsmap.c:703:4: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&dkeys[0], 0, sizeof(struct ext4_fsmap)); ^~~~~~ fs/ext4/fsmap.c:703:4: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&dkeys[0], 0, sizeof(struct ext4_fsmap)); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. >> drivers/platform/chrome/cros_ec.c:116:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&buf, 0, sizeof(buf)); ^~~~~~ drivers/platform/chrome/cros_ec.c:116:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(&buf, 0, sizeof(buf)); ^~~~~~ Suppressed 50 warnings (43 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. drivers/platform/chrome/cros_ec_i2c.c:91:2: warning: Value stored to 're= t' is never read [clang-analyzer-deadcode.DeadStores] ret =3D cros_ec_prepare_tx(ec_dev, msg); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/chrome/cros_ec_i2c.c:91:2: note: Value stored to 'ret' = is never read ret =3D cros_ec_prepare_tx(ec_dev, msg); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/platform/chrome/cros_ec_i2c.c:158:2: warning: Call to function '= memcpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(msg->data, ^~~~~~ drivers/platform/chrome/cros_ec_i2c.c:158:2: note: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(msg->data, ^~~~~~ Suppressed 51 warnings (43 in non-user code, 8 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. drivers/media/dvb-core/dvb_demux.c:96:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(d, s, len); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:96:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(d, s, len); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:550:4: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&demux->tsbuf[i], buf, count); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:550:4: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&demux->tsbuf[i], buf, count); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:554:3: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&demux->tsbuf[i], buf, j); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:554:3: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&demux->tsbuf[i], buf, j); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:571:4: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(demux->tsbuf, q, 188); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:571:4: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(demux->tsbuf, q, 188); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:581:3: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(demux->tsbuf, &buf[p], i); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:581:3: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(demux->tsbuf, &buf[p], i); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:1230:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(pids, dvbdemux->pids, 5 * sizeof(u16)); ^~~~~~ drivers/media/dvb-core/dvb_demux.c:1230:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(pids, dvbdemux->pids, 5 * sizeof(u16)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. drivers/android/binder_alloc.c:52:2: warning: Use of memory after it is = freed [clang-analyzer-unix.Malloc] return list_entry(buffer->entry.next, struct binder_buffer, entr= y); ^ drivers/android/binder_alloc.c:820:2: note: Assuming field 'vma' is null BUG_ON(alloc->vma); ^ include/asm-generic/bug.h:65:36: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:40: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~ drivers/android/binder_alloc.c:820:2: note: Taking false branch BUG_ON(alloc->vma); ^ include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/android/binder_alloc.c:820:2: note: Loop condition is false. Ex= iting loop BUG_ON(alloc->vma); ^ include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/android/binder_alloc.c:822:2: note: Loop condition is true. Ent= ering loop body while ((n =3D rb_first(&alloc->allocated_buffers))) { ^ drivers/android/binder_alloc.c:826:3: note: Assuming field 'transaction'= is null BUG_ON(buffer->transaction); ^ include/asm-generic/bug.h:65:36: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:40: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~ drivers/android/binder_alloc.c:826:3: note: Taking false branch BUG_ON(buffer->transaction); ^ include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/android/binder_alloc.c:826:3: note: Loop condition is false. Ex= iting loop BUG_ON(buffer->transaction); ^ include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/android/binder_alloc.c:828:7: note: Assuming field 'clear_on_fre= e' is 0 if (buffer->clear_on_free) { ^~~~~~~~~~~~~~~~~~~~~ drivers/android/binder_alloc.c:828:3: note: Taking false branch if (buffer->clear_on_free) { -- ^~~~~~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ drivers/android/binder_alloc.c:842:3: note: Left side of '&&' is false WARN_ON_ONCE(!list_empty(&alloc->buffers)); ^ include/asm-generic/bug.h:146:2: note: expanded from macro 'WARN_ON_ONCE' DO_ONCE_LITE_IF(condition, WARN_ON, 1) ^ include/linux/once_lite.h:17:30: note: expanded from macro 'DO_ONCE_LITE= _IF' if (unlikely(__ret_do_once && !__already_done)) { \ ^ drivers/android/binder_alloc.c:842:3: note: Taking false branch WARN_ON_ONCE(!list_empty(&alloc->buffers)); ^ include/asm-generic/bug.h:146:2: note: expanded from macro 'WARN_ON_ONCE' DO_ONCE_LITE_IF(condition, WARN_ON, 1) ^ include/linux/once_lite.h:17:3: note: expanded from macro 'DO_ONCE_LITE_= IF' if (unlikely(__ret_do_once && !__already_done)) { \ ^ drivers/android/binder_alloc.c:843:3: note: Memory is released kfree(buffer); ^~~~~~~~~~~~~ drivers/android/binder_alloc.c:836:2: note: Loop condition is true. Ent= ering loop body while (!list_empty(&alloc->buffers)) { ^ drivers/android/binder_alloc.c:839:12: note: Use of memory after it is f= reed WARN_ON(!buffer->free); ^ include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON' int __ret_warn_on =3D !!(condition); = \ ^~~~~~~~~ drivers/android/binder_alloc.c:1188:3: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(kptr, 0, size); ^~~~~~ drivers/android/binder_alloc.c:1188:3: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(kptr, 0, size); ^~~~~~ drivers/android/binder_alloc.c:1263:4: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tmpptr, ptr, size); ^~~~~~ drivers/android/binder_alloc.c:1263:4: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(tmpptr, ptr, size); ^~~~~~ drivers/android/binder_alloc.c:1265:4: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, tmpptr, size); ^~~~~~ drivers/android/binder_alloc.c:1265:4: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(ptr, tmpptr, size); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/leds/leds-netxbig.c:265:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", led_dat->sata); ^~~~~~~ drivers/leds/leds-netxbig.c:265:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", led_dat->sata); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/leds/leds-ns2.c:164:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", led->sata); ^~~~~~~ drivers/leds/leds-ns2.c:164:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", led->sata); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. >> drivers/platform/chrome/cros_ec_chardev.c:72:3: warning: Call to functio= n 'snprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'snprintf_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(str, maxlen, ^~~~~~~~ drivers/platform/chrome/cros_ec_chardev.c:72:3: note: Call to function '= snprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(str, maxlen, ^~~~~~~~ drivers/platform/chrome/cros_ec_chardev.c:82:2: warning: Call to functio= n 'snprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'snprintf_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(str, maxlen, "%s\n%s\n%s\n%s\n", CROS_EC_DEV_VERSION, ^~~~~~~~ drivers/platform/chrome/cros_ec_chardev.c:82:2: note: Call to function '= snprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(str, maxlen, "%s\n%s\n%s\n%s\n", CROS_EC_DEV_VERSION, ^~~~~~~~ >> drivers/platform/chrome/cros_ec_chardev.c:113:2: warning: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(event->data, &ec_dev->event_data.data, ec_dev->event_size= ); ^~~~~~ drivers/platform/chrome/cros_ec_chardev.c:113:2: note: Call to function = 'memcpy' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(event->data, &ec_dev->event_data.data, ec_dev->event_size= ); ^~~~~~ Suppressed 34 warnings (27 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. drivers/mtd/inftlcore.c:250:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(BlockMap, 0xff, sizeof(BlockMap)); ^~~~~~ drivers/mtd/inftlcore.c:250:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(BlockMap, 0xff, sizeof(BlockMap)); ^~~~~~ drivers/mtd/inftlcore.c:251:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(BlockDeleted, 0, sizeof(BlockDeleted)); ^~~~~~ drivers/mtd/inftlcore.c:251:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(BlockDeleted, 0, sizeof(BlockDeleted)); ^~~~~~ drivers/mtd/inftlcore.c:347:3: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&oob, 0xff, sizeof(struct inftl_oob)); ^~~~~~ drivers/mtd/inftlcore.c:347:3: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(&oob, 0xff, sizeof(struct inftl_oob)); ^~~~~~ drivers/mtd/inftlcore.c:537:4: warning: Value stored to 'thisEUN' is nev= er read [clang-analyzer-deadcode.DeadStores] thisEUN =3D INFTL_makefreeblock(inftl, block); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mtd/inftlcore.c:537:4: note: Value stored to 'thisEUN' is never = read thisEUN =3D INFTL_makefreeblock(inftl, block); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mtd/inftlcore.c:638:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(BlockUsed, 0, sizeof(BlockUsed)); ^~~~~~ drivers/mtd/inftlcore.c:638:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(BlockUsed, 0, sizeof(BlockUsed)); ^~~~~~ drivers/mtd/inftlcore.c:639:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(BlockDeleted, 0, sizeof(BlockDeleted)); ^~~~~~ drivers/mtd/inftlcore.c:639:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(BlockDeleted, 0, sizeof(BlockDeleted)); ^~~~~~ drivers/mtd/inftlcore.c:835:3: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&oob, 0xff, sizeof(struct inftl_oob)); ^~~~~~ drivers/mtd/inftlcore.c:835:3: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(&oob, 0xff, sizeof(struct inftl_oob)); ^~~~~~ drivers/mtd/inftlcore.c:903:3: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buffer, 0, SECTORSIZE); ^~~~~~ drivers/mtd/inftlcore.c:903:3: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(buffer, 0, SECTORSIZE); ^~~~~~ Suppressed 19 warnings (19 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. drivers/leds/trigger/ledtrig-activity.c:159:9: warning: Call to function= 'sprintf' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'sprintf_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", activity_data->invert); ^~~~~~~ drivers/leds/trigger/ledtrig-activity.c:159:9: note: Call to function 's= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", activity_data->invert); ^~~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 30 warnings generated. drivers/hid/hid-gembird.c:80:3: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_rdesc + delta_size, rdesc, *rsize); ^~~~~~ drivers/hid/hid-gembird.c:80:3: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(new_rdesc + delta_size, rdesc, *rsize); ^~~~~~ drivers/hid/hid-gembird.c:83:3: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_rdesc, rdesc, GEMBIRD_START_FAULTY_RDESC); ^~~~~~ drivers/hid/hid-gembird.c:83:3: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(new_rdesc, rdesc, GEMBIRD_START_FAULTY_RDESC); ^~~~~~ drivers/hid/hid-gembird.c:86:3: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_rdesc + GEMBIRD_START_FAULTY_RDESC, -- 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. fs/bfs/inode.c:187:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(di, 0, sizeof(struct bfs_inode)); ^~~~~~ fs/bfs/inode.c:187:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(di, 0, sizeof(struct bfs_inode)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. fs/bfs/file.c:42:2: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(new->b_data, bh->b_data, bh->b_size); ^~~~~~ fs/bfs/file.c:42:2: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(new->b_data, bh->b_data, bh->b_size); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. fs/bfs/dir.c:228:2: warning: Value stored to 'error' is never read [clan= g-analyzer-deadcode.DeadStores] error =3D -EPERM; ^ ~~~~~~ fs/bfs/dir.c:228:2: note: Value stored to 'error' is never read error =3D -EPERM; ^ ~~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. fs/hfs/bfind.c:123:2: warning: Value stored to 'res' is never read [clan= g-analyzer-deadcode.DeadStores] res =3D 0; ^ ~ fs/hfs/bfind.c:123:2: note: Value stored to 'res' is never read res =3D 0; ^ ~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. >> fs/hfs/bnode.c:37:3: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(buf + bytes_read, vaddr + off, bytes_to_read); ^~~~~~ fs/hfs/bnode.c:37:3: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(buf + bytes_read, vaddr + off, bytes_to_read); ^~~~~~ fs/hfs/bnode.c:50:9: warning: 1st function call argument is an uninitial= ized value [clang-analyzer-core.CallAndMessage] return be16_to_cpu(data); ^ include/linux/byteorder/generic.h:97:21: note: expanded from macro 'be16= _to_cpu' #define be16_to_cpu __be16_to_cpu ^ include/uapi/linux/byteorder/little_endian.h:43:26: note: expanded from = macro '__be16_to_cpu' #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x)) ^ include/uapi/linux/swab.h:102:28: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ fs/hfs/bnode.c:193:6: note: Assuming field 'prev' is not equal to 0 if (node->prev) { ^~~~~~~~~~ fs/hfs/bnode.c:193:2: note: Taking true branch if (node->prev) { ^ fs/hfs/bnode.c:194:9: note: Calling 'hfs_bnode_find' tmp =3D hfs_bnode_find(tree, node->prev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:336:6: note: Assuming 'node' is null if (node) { ^~~~ fs/hfs/bnode.c:336:2: note: Taking false branch if (node) { ^ fs/hfs/bnode.c:346:6: note: Assuming 'node' is non-null if (!node) ^~~~~ fs/hfs/bnode.c:346:2: note: Taking false branch if (!node) ^ fs/hfs/bnode.c:348:6: note: Assuming the condition is false if (test_bit(HFS_BNODE_ERROR, &node->flags)) ^ include/asm-generic/bitops/non-atomic.h:120:18: note: expanded from macr= o 'test_bit' #define test_bit arch_test_bit ^ fs/hfs/bnode.c:348:2: note: Taking false branch if (test_bit(HFS_BNODE_ERROR, &node->flags)) ^ fs/hfs/bnode.c:350:6: note: Assuming the condition is false if (!test_bit(HFS_BNODE_NEW, &node->flags)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:350:2: note: Taking false branch if (!test_bit(HFS_BNODE_NEW, &node->flags)) ^ fs/hfs/bnode.c:361:2: note: Control jumps to 'case 255:' at line 367 switch (node->type) { ^ fs/hfs/bnode.c:368:7: note: Assuming field 'height' is equal to 1 if (node->height !=3D 1) ^~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:368:3: note: Taking false branch if (node->height !=3D 1) ^ fs/hfs/bnode.c:370:3: note: Execution continues on line 379 break; ^ fs/hfs/bnode.c:380:8: note: Calling 'hfs_bnode_read_u16' off =3D hfs_bnode_read_u16(node, rec_off); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:47:2: note: 'data' declared without an initial value __be16 data; ^~~~~~~~~~~ fs/hfs/bnode.c:49:2: note: Calling 'hfs_bnode_read' hfs_bnode_read(node, &data, off, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:30:2: note: Loop condition is true. Entering loop body for (bytes_read =3D 0; bytes_read < len; bytes_read +=3D bytes_t= o_read) { ^ fs/hfs/bnode.c:31:7: note: Assuming 'pagenum' is >=3D field 'pages_per_b= node' if (pagenum >=3D node->tree->pages_per_bnode) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:31:3: note: Taking true branch if (pagenum >=3D node->tree->pages_per_bnode) ^ fs/hfs/bnode.c:32:4: note: Execution continues on line 31 break; ^ fs/hfs/bnode.c:43:1: note: Returning without writing to '*buf' } ^ fs/hfs/bnode.c:49:2: note: Returning from 'hfs_bnode_read' hfs_bnode_read(node, &data, off, 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:50:9: note: 1st function call argument is an uninitialize= d value return be16_to_cpu(data); ^ include/linux/byteorder/generic.h:97:21: note: expanded from macro 'be16= _to_cpu' #define be16_to_cpu __be16_to_cpu ^ include/uapi/linux/byteorder/little_endian.h:43:26: note: expanded from = macro '__be16_to_cpu' #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x)) -- if (test_bit(HFS_BNODE_ERROR, &node->flags)) ^ include/asm-generic/bitops/non-atomic.h:120:18: note: expanded from macr= o 'test_bit' #define test_bit arch_test_bit ^ fs/hfs/bnode.c:348:2: note: Taking false branch if (test_bit(HFS_BNODE_ERROR, &node->flags)) ^ fs/hfs/bnode.c:350:6: note: Assuming the condition is false if (!test_bit(HFS_BNODE_NEW, &node->flags)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:350:2: note: Taking false branch if (!test_bit(HFS_BNODE_NEW, &node->flags)) ^ fs/hfs/bnode.c:361:2: note: Control jumps to 'case 0:' at line 371 switch (node->type) { ^ fs/hfs/bnode.c:372:7: note: Assuming field 'height' is > 1 if (node->height <=3D 1 || node->height > tree->depth) ^~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:372:7: note: Left side of '||' is false fs/hfs/bnode.c:372:28: note: Assuming field 'height' is <=3D field 'dept= h' if (node->height <=3D 1 || node->height > tree->depth) ^~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:372:3: note: Taking false branch if (node->height <=3D 1 || node->height > tree->depth) ^ fs/hfs/bnode.c:374:3: note: Execution continues on line 379 break; ^ fs/hfs/bnode.c:381:6: note: Assuming the condition is false if (off !=3D sizeof(struct hfs_bnode_desc)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:381:2: note: Taking false branch if (off !=3D sizeof(struct hfs_bnode_desc)) ^ fs/hfs/bnode.c:383:14: note: Assuming 'i' is <=3D field 'num_recs' for (i =3D 1; i <=3D node->num_recs; off =3D next_off, i++) { ^~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:383:2: note: Loop condition is true. Entering loop body for (i =3D 1; i <=3D node->num_recs; off =3D next_off, i++) { ^ fs/hfs/bnode.c:386:7: note: Assuming 'next_off' is > 'off' if (next_off <=3D off || ^~~~~~~~~~~~~~~ fs/hfs/bnode.c:386:7: note: Left side of '||' is false fs/hfs/bnode.c:387:7: note: Assuming 'next_off' is <=3D field 'node_size' next_off > tree->node_size || ^~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:386:7: note: Left side of '||' is false if (next_off <=3D off || ^ fs/hfs/bnode.c:388:7: note: Assuming the condition is false next_off & 1) ^~~~~~~~~~~~ fs/hfs/bnode.c:386:3: note: Taking false branch if (next_off <=3D off || ^ fs/hfs/bnode.c:391:13: note: Field 'type' is equal to HFS_NODE_INDEX if (node->type !=3D HFS_NODE_INDEX && ^ fs/hfs/bnode.c:391:36: note: Left side of '&&' is false if (node->type !=3D HFS_NODE_INDEX && ^ fs/hfs/bnode.c:394:14: note: Calling 'hfs_bnode_read_u8' key_size =3D hfs_bnode_read_u8(node, off) + 1; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:55:2: note: 'data' declared without an initial value u8 data; ^~~~~~~ fs/hfs/bnode.c:57:2: note: Calling 'hfs_bnode_read' hfs_bnode_read(node, &data, off, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:30:2: note: Loop condition is true. Entering loop body for (bytes_read =3D 0; bytes_read < len; bytes_read +=3D bytes_t= o_read) { ^ fs/hfs/bnode.c:31:7: note: Assuming 'pagenum' is >=3D field 'pages_per_b= node' if (pagenum >=3D node->tree->pages_per_bnode) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:31:3: note: Taking true branch if (pagenum >=3D node->tree->pages_per_bnode) ^ fs/hfs/bnode.c:32:4: note: Execution continues on line 31 break; ^ fs/hfs/bnode.c:43:1: note: Returning without writing to '*buf' } ^ fs/hfs/bnode.c:57:2: note: Returning from 'hfs_bnode_read' hfs_bnode_read(node, &data, off, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:58:2: note: Undefined or garbage value returned to caller return data; ^ ~~~~ fs/hfs/bnode.c:83:2: warning: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecure= API.DeprecatedOrUnsafeBufferHandling] memcpy(kmap(page) + off, buf, len); ^~~~~~ fs/hfs/bnode.c:83:2: note: Call to function 'memcpy' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memcpy_s' in case of C11 memcpy(kmap(page) + off, buf, len); ^~~~~~ >> fs/hfs/bnode.c:108:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(kmap(page) + off, 0, len); ^~~~~~ fs/hfs/bnode.c:108:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(kmap(page) + off, 0, len); ^~~~~~ fs/hfs/bnode.c:126:2: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(kmap(dst_page) + dst, kmap(src_page) + src, len); ^~~~~~ fs/hfs/bnode.c:126:2: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(kmap(dst_page) + dst, kmap(src_page) + src, len); ^~~~~~ >> fs/hfs/bnode.c:144:2: warning: Call to function 'memmove' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memmove_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memmove(ptr + dst, ptr + src, len); ^~~~~~~ fs/hfs/bnode.c:144:2: note: Call to function 'memmove' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memmove_s' in case of C11 memmove(ptr + dst, ptr + src, len); ^~~~~~~ fs/hfs/bnode.c:179:4: warning: Value stored to 'tmp' is never read [clan= g-analyzer-deadcode.DeadStores] tmp =3D hfs_bnode_read_u8(node, key_off); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:179:4: note: Value stored to 'tmp' is never read tmp =3D hfs_bnode_read_u8(node, key_off); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/hfs/bnode.c:443:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(kmap(*pagep) + node->page_offset, 0, ^~~~~~ fs/hfs/bnode.c:443:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(kmap(*pagep) + node->page_offset, 0, ^~~~~~ fs/hfs/bnode.c:448:3: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(kmap(*++pagep), 0, PAGE_SIZE); ^~~~~~ fs/hfs/bnode.c:448:3: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(kmap(*++pagep), 0, PAGE_SIZE); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 19 warnings generated. drivers/leds/led-class.c:35:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", led_cdev->brightness); ^~~~~~~ drivers/leds/led-class.c:35:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", led_cdev->brightness); ^~~~~~~ drivers/leds/led-class.c:73:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", led_cdev->max_brightness); ^~~~~~~ drivers/leds/led-class.c:73:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", led_cdev->max_brightness); ^~~~~~~ drivers/leds/led-class.c:318:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(name, len, "%s_%u", init_name, ++i); ^~~~~~~~ drivers/leds/led-class.c:318:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 ret =3D snprintf(name, len, "%s_%u", init_name, ++i); ^~~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/leds/led-class-flash.c:75:9: warning: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", fled_cdev->brightness.val); ^~~~~~~ drivers/leds/led-class-flash.c:75:9: note: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", fled_cdev->brightness.val); ^~~~~~~ drivers/leds/led-class-flash.c:85:9: warning: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", fled_cdev->brightness.max); ^~~~~~~ drivers/leds/led-class-flash.c:85:9: note: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", fled_cdev->brightness.max); ^~~~~~~ drivers/leds/led-class-flash.c:133:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", state); ^~~~~~~ drivers/leds/led-class-flash.c:133:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", state); ^~~~~~~ drivers/leds/led-class-flash.c:172:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", fled_cdev->timeout.val); ^~~~~~~ drivers/leds/led-class-flash.c:172:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", fled_cdev->timeout.val); ^~~~~~~ drivers/leds/led-class-flash.c:182:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", fled_cdev->timeout.max); ^~~~~~~ drivers/leds/led-class-flash.c:182:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", fled_cdev->timeout.max); ^~~~~~~ drivers/leds/led-class-flash.c:203:14: warning: Call to function 'sprint= f' is insecure as it does not provide bounding of the memory buffer or secu= rity checks introduced in the C11 standard. Replace with analogous function= s that support length arguments or provides boundary checks such as 'sprint= f_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafe= BufferHandling] buf_len =3D sprintf(pbuf, "%s ", ^~~~~~~ drivers/leds/led-class-flash.c:203:14: note: Call to function 'sprintf' = is insecure as it does not provide bounding of the memory buffer or securit= y checks introduced in the C11 standard. Replace with analogous functions t= hat support length arguments or provides boundary checks such as 'sprintf_s= ' in case of C11 buf_len =3D sprintf(pbuf, "%s ", ^~~~~~~ drivers/leds/led-class-flash.c:210:16: warning: Call to function 'strcat= ' is insecure as it does not provide bounding of the memory buffer. Replace= unbounded copy functions with analogous functions that support length argu= ments such as 'strlcat'. CWE-119 [clang-analyzer-security.insecureAPI.strcp= y] return strlen(strcat(buf, "\n")); ^~~~~~ drivers/leds/led-class-flash.c:210:16: note: Call to function 'strcat' i= s insecure as it does not provide bounding of the memory buffer. Replace un= bounded copy functions with analogous functions that support length argumen= ts such as 'strlcat'. CWE-119 return strlen(strcat(buf, "\n")); ^~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. fs/fuse/xattr.c:25:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&inarg, 0, sizeof(inarg)); ^~~~~~ fs/fuse/xattr.c:25:2: note: Call to function 'memset' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memset_s' in case of C11 memset(&inarg, 0, sizeof(inarg)); ^~~~~~ fs/fuse/xattr.c:63:2: warning: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memset(&inarg, 0, sizeof(inarg)); -- ^~~~~~~~ drivers/scsi/libsas/sas_init.c:132:2: warning: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, sizeof(name), "%s_disco_q", dev_name(sas_ha->dev)= ); ^~~~~~~~ drivers/scsi/libsas/sas_init.c:132:2: note: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 snprintf(name, sizeof(name), "%s_disco_q", dev_name(sas_ha->dev)= ); ^~~~~~~~ drivers/scsi/libsas/sas_init.c:371:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_init.c:371:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 52 warnings generated. drivers/scsi/libsas/sas_port.c:126:5: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(port->sas_addr, phy->sas_addr, ^~~~~~ drivers/scsi/libsas/sas_port.c:126:5: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(port->sas_addr, phy->sas_addr, ^~~~~~ drivers/scsi/libsas/sas_port.c:150:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(port->attached_sas_addr, phy->attached_sas_addr, ^~~~~~ drivers/scsi/libsas/sas_port.c:150:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(port->attached_sas_addr, phy->attached_sas_addr, ^~~~~~ drivers/scsi/libsas/sas_port.c:239:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(port->sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_port.c:239:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(port->sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_port.c:240:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(port->attached_sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_port.c:240:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(port->attached_sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_port.c:319:2: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(port, 0, sizeof(*port)); ^~~~~~ drivers/scsi/libsas/sas_port.c:319:2: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(port, 0, sizeof(*port)); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. drivers/clk/clk-cdce925.c:118:3: warning: Value stored to 'rate' is neve= r read [clang-analyzer-deadcode.DeadStores] rate =3D parent_rate; ^ ~~~~~~~~~~~ drivers/clk/clk-cdce925.c:118:3: note: Value stored to 'rate' is never r= ead rate =3D parent_rate; ^ ~~~~~~~~~~~ drivers/clk/clk-cdce925.c:444:20: warning: Division by zero [clang-analy= zer-core.DivideZero] if (l_parent_rate / divider !=3D rate) { ~~~~~~~~~~~~~~^~~~~~~~~ drivers/clk/clk-cdce925.c:442:16: note: Calling 'cdce925_calc_divider' u16 divider =3D cdce925_calc_divider(rate, l_parent_rate); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-cdce925.c:383:6: note: Assuming 'rate' is 0, which parti= cipates in a condition later if (!rate) ^~~~~ drivers/clk/clk-cdce925.c:383:2: note: Taking true branch if (!rate) ^ drivers/clk/clk-cdce925.c:384:3: note: Returning zero return 0; ^~~~~~~~ drivers/clk/clk-cdce925.c:442:16: note: Returning from 'cdce925_calc_div= ider' u16 divider =3D cdce925_calc_divider(rate, l_parent_rate); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-cdce925.c:442:2: note: 'divider' initialized to 0 u16 divider =3D cdce925_calc_divider(rate, l_parent_rate); ^~~~~~~~~~~ drivers/clk/clk-cdce925.c:444:20: note: Division by zero if (l_parent_rate / divider !=3D rate) { ~~~~~~~~~~~~~~^~~~~~~~~ drivers/clk/clk-cdce925.c:717:3: warning: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(child_name, "PLL%d", i+1); ^~~~~~~ drivers/clk/clk-cdce925.c:717:3: note: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 sprintf(child_name, "PLL%d", i+1); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 20 warnings generated. >> drivers/power/supply/cros_peripheral_charger.c:75:3: warning: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(msg->data, outdata, outsize); ^~~~~~ drivers/power/supply/cros_peripheral_charger.c:75:3: note: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(msg->data, outdata, outsize); ^~~~~~ drivers/power/supply/cros_peripheral_charger.c:79:3: warning: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(indata, msg->data, insize); ^~~~~~ drivers/power/supply/cros_peripheral_charger.c:79:3: note: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(indata, msg->data, insize); ^~~~~~ >> drivers/power/supply/cros_peripheral_charger.c:342:3: warning: Call to f= unction 'snprintf' is insecure as it does not provide security checks intro= duced in the C11 standard. Replace with analogous functions that support le= ngth arguments or provides boundary checks such as 'snprintf_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(port->name, sizeof(port->name), PCHG_DIR_NAME, = i); ^~~~~~~~ drivers/power/supply/cros_peripheral_charger.c:342:3: note: Call to func= tion 'snprintf' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(port->name, sizeof(port->name), PCHG_DIR_NAME, = i); ^~~~~~~~ Suppressed 17 warnings (10 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 13 warnings generated. Suppressed 13 warnings (13 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 13 warnings generated. Suppressed 13 warnings (13 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 63 warnings generated. net/netlink/policy.c:55:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&state->policies[state->n_alloc], 0, ^~~~~~ net/netlink/policy.c:55:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&state->policies[state->n_alloc], 0, ^~~~~~ Suppressed 62 warnings (62 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 102 warnings generated. net/ethtool/ioctl.c:201:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, netdev_features_strings, ^~~~~~ net/ethtool/ioctl.c:201:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(data, netdev_features_strings, ^~~~~~ net/ethtool/ioctl.c:204:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, rss_hash_func_strings, ^~~~~~ net/ethtool/ioctl.c:204:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(data, rss_hash_func_strings, ^~~~~~ net/ethtool/ioctl.c:207:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, tunable_strings, sizeof(tunable_strings)); ^~~~~~ net/ethtool/ioctl.c:207:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(data, tunable_strings, sizeof(tunable_strings)); ^~~~~~ net/ethtool/ioctl.c:209:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, phy_tunable_strings, sizeof(phy_tunable_str= ings)); ^~~~~~ net/ethtool/ioctl.c:209:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(data, phy_tunable_strings, sizeof(phy_tunable_str= ings)); ^~~~~~ net/ethtool/ioctl.c:215:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, link_mode_names, ^~~~~~ net/ethtool/ioctl.c:215:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(data, link_mode_names, ^~~~~~ net/ethtool/ioctl.c:401:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(legacy_settings, 0, sizeof(*legacy_settings)); ^~~~~~ net/ethtool/ioctl.c:401:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(legacy_settings, 0, sizeof(*legacy_settings)); ^~~~~~ net/ethtool/ioctl.c:460:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(link_ksettings, 0, sizeof(*link_ksettings)); ^~~~~~ net/ethtool/ioctl.c:460:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(link_ksettings, 0, sizeof(*link_ksettings)); ^~~~~~ net/ethtool/ioctl.c:476:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&to->base, &link_usettings.base, sizeof(to->base)); ^~~~~~ net/ethtool/ioctl.c:476:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(&to->base, &link_usettings.base, sizeof(to->base)); ^~~~~~ net/ethtool/ioctl.c:518:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&link_usettings, from, sizeof(link_usettings)); ^~~~~~ net/ethtool/ioctl.c:518:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(&link_usettings, from, sizeof(link_usettings)); ^~~~~~ net/ethtool/ioctl.c:554:3: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&link_ksettings, 0, sizeof(link_ksettings)); ^~~~~~ net/ethtool/ioctl.c:554:3: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&link_ksettings, 0, sizeof(link_ksettings)); ^~~~~~ net/ethtool/ioctl.c:576:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&link_ksettings, 0, sizeof(link_ksettings)); ^~~~~~ net/ethtool/ioctl.c:576:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&link_ksettings, 0, sizeof(link_ksettings)); ^~~~~~ net/ethtool/ioctl.c:676:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&link_ksettings, 0, sizeof(link_ksettings)); -- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:265:2: warning: Value stored to 'ret' is n= ever read [clang-analyzer-deadcode.DeadStores] ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+5,4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:265:2: note: Value stored to 'ret' is neve= r read ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+5,4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:383:2: warning: Value stored to 'ret' is n= ever read [clang-analyzer-deadcode.DeadStores] ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+1,4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:383:2: note: Value stored to 'ret' is neve= r read ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+1,4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:391:2: warning: Value stored to 'ret' is n= ever read [clang-analyzer-deadcode.DeadStores] ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+5,6); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:391:2: note: Value stored to 'ret' is neve= r read ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+5,6); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:395:2: warning: Value stored to 'ret' is n= ever read [clang-analyzer-deadcode.DeadStores] ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+12,2); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:395:2: note: Value stored to 'ret' is neve= r read ret=3Dtuner_i2c_xfer_send(&priv->i2c_props,buf+12,2); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/mt20xx.c:423:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&fe->ops.tuner_ops, &mt2032_tuner_ops, sizeof(struct dvb_= tuner_ops)); ^~~~~~ drivers/media/tuners/mt20xx.c:423:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(&fe->ops.tuner_ops, &mt2032_tuner_ops, sizeof(struct dvb_= tuner_ops)); ^~~~~~ drivers/media/tuners/mt20xx.c:585:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&fe->ops.tuner_ops, &mt2050_tuner_ops, sizeof(struct dvb_= tuner_ops)); ^~~~~~ drivers/media/tuners/mt20xx.c:585:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(&fe->ops.tuner_ops, &mt2050_tuner_ops, sizeof(struct dvb_= tuner_ops)); ^~~~~~ drivers/media/tuners/mt20xx.c:610:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf,0,sizeof(buf)); ^~~~~~ drivers/media/tuners/mt20xx.c:610:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(buf,0,sizeof(buf)); ^~~~~~ Suppressed 45 warnings (43 in non-user code, 2 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. drivers/leds/leds-88pm860x.c:167:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(data->name, 0, MFD_NAME_SIZE); ^~~~~~ drivers/leds/leds-88pm860x.c:167:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(data->name, 0, MFD_NAME_SIZE); ^~~~~~ drivers/leds/leds-88pm860x.c:171:3: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(data->name, "led0-red"); ^~~~~~~ drivers/leds/leds-88pm860x.c:171:3: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 sprintf(data->name, "led0-red"); ^~~~~~~ drivers/leds/leds-88pm860x.c:175:3: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(data->name, "led0-green"); ^~~~~~~ drivers/leds/leds-88pm860x.c:175:3: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 sprintf(data->name, "led0-green"); ^~~~~~~ drivers/leds/leds-88pm860x.c:179:3: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(data->name, "led0-blue"); ^~~~~~~ drivers/leds/leds-88pm860x.c:179:3: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 sprintf(data->name, "led0-blue"); ^~~~~~~ drivers/leds/leds-88pm860x.c:183:3: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(data->name, "led1-red"); ^~~~~~~ drivers/leds/leds-88pm860x.c:183:3: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 sprintf(data->name, "led1-red"); ^~~~~~~ drivers/leds/leds-88pm860x.c:187:3: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(data->name, "led1-green"); ^~~~~~~ drivers/leds/leds-88pm860x.c:187:3: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 sprintf(data->name, "led1-green"); ^~~~~~~ drivers/leds/leds-88pm860x.c:191:3: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(data->name, "led1-blue"); ^~~~~~~ drivers/leds/leds-88pm860x.c:191:3: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 sprintf(data->name, "led1-blue"); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> drivers/input/mouse/synaptics.c:424:2: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(info, 0, sizeof(*info)); ^~~~~~ drivers/input/mouse/synaptics.c:424:2: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(info, 0, sizeof(*info)); ^~~~~~ drivers/input/mouse/synaptics.c:778:2: warning: Call to function 'memset= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(hw, 0, sizeof(struct synaptics_hw_state)); ^~~~~~ drivers/input/mouse/synaptics.c:778:2: note: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 memset(hw, 0, sizeof(struct synaptics_hw_state)); ^~~~~~ >> drivers/input/mouse/synaptics.c:1366:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%c\n", priv->disable_gesture ? '1' : '0'); ^~~~~~~ drivers/input/mouse/synaptics.c:1366:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%c\n", priv->disable_gesture ? '1' : '0'); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 41 warnings generated. >> drivers/input/mouse/alps.c:733:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(f, 0, sizeof(*f)); ^~~~~~ drivers/input/mouse/alps.c:733:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(f, 0, sizeof(*f)); ^~~~~~ >> drivers/input/mouse/alps.c:777:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(priv->multi_data, packet, sizeof(priv->multi_data= )); ^~~~~~ drivers/input/mouse/alps.c:777:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(priv->multi_data, packet, sizeof(priv->multi_data= )); ^~~~~~ drivers/input/mouse/alps.c:852:12: warning: Although the value stored to= 'z' is used in the enclosing expression, the value is never actually read = from 'z' [clang-analyzer-deadcode.DeadStores] x =3D y =3D z =3D 0; ^ ~ drivers/input/mouse/alps.c:852:12: note: Although the value stored to 'z= ' is used in the enclosing expression, the value is never actually read fro= m 'z' x =3D y =3D z =3D 0; ^ ~ drivers/input/mouse/alps.c:1122:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(f, 0, sizeof(*f)); ^~~~~~ drivers/input/mouse/alps.c:1122:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(f, 0, sizeof(*f)); ^~~~~~ drivers/input/mouse/alps.c:1294:3: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(f, 0, sizeof(struct alps_fields)); ^~~~~~ drivers/input/mouse/alps.c:1294:3: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(f, 0, sizeof(struct alps_fields)); ^~~~~~ drivers/input/mouse/alps.c:1322:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(f, 0, sizeof(struct alps_fields)); ^~~~~~ drivers/input/mouse/alps.c:1322:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(f, 0, sizeof(struct alps_fields)); ^~~~~~ drivers/input/mouse/alps.c:1349:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(priv->multi_data, packet, sizeof(priv->multi_data= )); ^~~~~~ drivers/input/mouse/alps.c:1349:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(priv->multi_data, packet, sizeof(priv->multi_data= )); ^~~~~~ >> drivers/input/mouse/alps.c:1419:2: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(priv->phys3, sizeof(priv->phys3), "%s/%s", ^~~~~~~~ drivers/input/mouse/alps.c:1419:2: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(priv->phys3, sizeof(priv->phys3), "%s/%s", ^~~~~~~~ drivers/input/mouse/alps.c:2013:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(psmouse->packet, buf, sizeof(buf)); ^~~~~~ drivers/input/mouse/alps.c:2013:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(psmouse->packet, buf, sizeof(buf)); ^~~~~~ drivers/input/mouse/alps.c:2586:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(otp, 0, sizeof(otp)); ^~~~~~ drivers/input/mouse/alps.c:2586:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(otp, 0, sizeof(otp)); ^~~~~~ drivers/input/mouse/alps.c:2932:4: warning: Value stored to 'protocol' i= s never read [clang-analyzer-deadcode.DeadStores] protocol =3D &alps_v9_protocol_data; ^ ~~~~~~~~~~~~~~~~~~~~~~ drivers/input/mouse/alps.c:2932:4: note: Value stored to 'protocol' is n= ever read protocol =3D &alps_v9_protocol_data; ^ ~~~~~~~~~~~~~~~~~~~~~~ drivers/input/mouse/alps.c:2946:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(priv->dev_id, e7, 3); ^~~~~~ drivers/input/mouse/alps.c:2946:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(priv->dev_id, e7, 3); ^~~~~~ drivers/input/mouse/alps.c:2947:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(priv->fw_ver, ec, 3); ^~~~~~ drivers/input/mouse/alps.c:2947:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(priv->fw_ver, ec, 3); ^~~~~~ drivers/input/mouse/alps.c:3102:3: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(priv->phys2, sizeof(priv->phys2), "%s/input1", ^~~~~~~~ drivers/input/mouse/alps.c:3102:3: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(priv->phys2, sizeof(priv->phys2), "%s/input1", ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. drivers/hid/hid-lenovo.c:403:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", data->fn_lock); ^~~~~~~~ drivers/hid/hid-lenovo.c:403:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", data->fn_lock); ^~~~~~~~ drivers/hid/hid-lenovo.c:445:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", ^~~~~~~~ drivers/hid/hid-lenovo.c:445:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", ^~~~~~~~ drivers/hid/hid-lenovo.c:606:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->press_to_s= elect); ^~~~~~~~ drivers/hid/hid-lenovo.c:606:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->press_to_s= elect); ^~~~~~~~ drivers/hid/hid-lenovo.c:636:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->dragging); ^~~~~~~~ drivers/hid/hid-lenovo.c:636:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->dragging); ^~~~~~~~ drivers/hid/hid-lenovo.c:666:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->release_to= _select); ^~~~~~~~ drivers/hid/hid-lenovo.c:666:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->release_to= _select); ^~~~~~~~ drivers/hid/hid-lenovo.c:696:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->select_rig= ht); ^~~~~~~~ drivers/hid/hid-lenovo.c:696:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->select_rig= ht); ^~~~~~~~ drivers/hid/hid-lenovo.c:726:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", ^~~~~~~~ drivers/hid/hid-lenovo.c:726:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", ^~~~~~~~ drivers/hid/hid-lenovo.c:755:9: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%u\n", ^~~~~~~~ drivers/hid/hid-lenovo.c:755:9: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%u\n", ^~~~~~~~ drivers/hid/hid-lenovo.c:876:2: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name_mute, name_sz, "%s:amber:mute", dev_name(&hdev->de= v)); ^~~~~~~~ drivers/hid/hid-lenovo.c:876:2: note: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 snprintf(name_mute, name_sz, "%s:amber:mute", dev_name(&hdev->de= v)); ^~~~~~~~ drivers/hid/hid-lenovo.c:877:2: warning: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name_micm, name_sz, "%s:amber:micmute", dev_name(&hdev-= >dev)); -- ^~~~~~~ drivers/hwmon/w83792d.c:841:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%ld\n", (long)data->sf2_points[index-1][nr-= 1]); ^~~~~~~ drivers/hwmon/w83792d.c:841:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%ld\n", (long)data->sf2_points[index-1][nr-= 1]); ^~~~~~~ drivers/hwmon/w83792d.c:882:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", ^~~~~~~ drivers/hwmon/w83792d.c:882:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. drivers/md/persistent-data/dm-space-map-disk.c:166:2: warning: Call to f= unction 'memcpy' is insecure as it does not provide security checks introdu= ced in the C11 standard. Replace with analogous functions that support leng= th arguments or provides boundary checks such as 'memcpy_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smd->old_ll, &smd->ll, sizeof(smd->old_ll)); ^~~~~~ drivers/md/persistent-data/dm-space-map-disk.c:166:2: note: Call to func= tion 'memcpy' is insecure as it does not provide security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smd->old_ll, &smd->ll, sizeof(smd->old_ll)); ^~~~~~ drivers/md/persistent-data/dm-space-map-disk.c:192:2: warning: Call to f= unction 'memcpy' is insecure as it does not provide security checks introdu= ced in the C11 standard. Replace with analogous functions that support leng= th arguments or provides boundary checks such as 'memcpy_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(where_le, &root_le, sizeof(root_le)); ^~~~~~ drivers/md/persistent-data/dm-space-map-disk.c:192:2: note: Call to func= tion 'memcpy' is insecure as it does not provide security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(where_le, &root_le, sizeof(root_le)); ^~~~~~ drivers/md/persistent-data/dm-space-map-disk.c:228:2: warning: Call to f= unction 'memcpy' is insecure as it does not provide security checks introdu= ced in the C11 standard. Replace with analogous functions that support leng= th arguments or provides boundary checks such as 'memcpy_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smd->sm, &ops, sizeof(smd->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-disk.c:228:2: note: Call to func= tion 'memcpy' is insecure as it does not provide security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smd->sm, &ops, sizeof(smd->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-disk.c:262:2: warning: Call to f= unction 'memcpy' is insecure as it does not provide security checks introdu= ced in the C11 standard. Replace with analogous functions that support leng= th arguments or provides boundary checks such as 'memcpy_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smd->sm, &ops, sizeof(smd->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-disk.c:262:2: note: Call to func= tion 'memcpy' is insecure as it does not provide security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smd->sm, &ops, sizeof(smd->sm)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 52 warnings generated. drivers/md/persistent-data/dm-space-map-metadata.c:150:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(result, bop, sizeof(*result)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:150:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(result, bop, sizeof(*result)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:514:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smm->old_ll, &smm->ll, sizeof(smm->old_ll)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:514:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smm->old_ll, &smm->ll, sizeof(smm->old_ll)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:552:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(where_le, &root_le, sizeof(root_le)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:552:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(where_le, &root_le, sizeof(root_le)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:725:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sm, &bootstrap_ops, sizeof(*sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:725:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(sm, &bootstrap_ops, sizeof(*sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:761:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sm, &ops, sizeof(*sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:761:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(sm, &ops, sizeof(*sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:775:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smm->sm, &ops, sizeof(smm->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:775:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smm->sm, &ops, sizeof(smm->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:794:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smm->sm, &bootstrap_ops, sizeof(smm->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:794:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smm->sm, &bootstrap_ops, sizeof(smm->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:802:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smm->sm, &ops, sizeof(smm->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:802:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smm->sm, &ops, sizeof(smm->sm)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:840:2: warning: Call = to function 'memcpy' is insecure as it does not provide security checks int= roduced in the C11 standard. Replace with analogous functions that support = length arguments or provides boundary checks such as 'memcpy_s' in case of = C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&smm->old_ll, &smm->ll, sizeof(smm->old_ll)); ^~~~~~ drivers/md/persistent-data/dm-space-map-metadata.c:840:2: note: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&smm->old_ll, &smm->ll, sizeof(smm->old_ll)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 25 warnings generated. >> drivers/platform/chrome/cros_ec_vbc.c:50:2: warning: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, msg->data, resp_sz); ^~~~~~ drivers/platform/chrome/cros_ec_vbc.c:50:2: note: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, msg->data, resp_sz); ^~~~~~ drivers/platform/chrome/cros_ec_vbc.c:79:2: warning: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(params->block, buf, data_sz); ^~~~~~ drivers/platform/chrome/cros_ec_vbc.c:79:2: note: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(params->block, buf, data_sz); ^~~~~~ Suppressed 23 warnings (16 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. >> drivers/platform/chrome/cros_ec_debugfs.c:91:3: warning: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(read_params, '\0', sizeof(*read_params)); ^~~~~~ drivers/platform/chrome/cros_ec_debugfs.c:91:3: note: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 memset(read_params, '\0', sizeof(*read_params)); ^~~~~~ Suppressed 34 warnings (27 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. drivers/hwtracing/intel_th/core.c:390:2: warning: Call to function 'strc= py' is insecure as it does not provide bounding of the memory buffer. Repla= ce unbounded copy functions with analogous functions that support length ar= guments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.str= cpy] strcpy(thdev->name, name); ^~~~~~ drivers/hwtracing/intel_th/core.c:390:2: note: 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 argum= ents such as 'strlcpy'. CWE-119 strcpy(thdev->name, name); ^~~~~~ drivers/hwtracing/intel_th/core.c:631:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(res, subdev->res, ^~~~~~ drivers/hwtracing/intel_th/core.c:631:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(res, subdev->res, ^~~~~~ drivers/hwtracing/intel_th/core.c:1023:35: warning: Dereference of null = pointer [clang-analyzer-core.NullDereference] struct intel_th_driver *hubdrv =3D to_intel_th_driver(hub->dev.d= river); ^ drivers/hwtracing/intel_th/intel_th.h:192:2: note: expanded from macro '= to_intel_th_driver' container_of((_d), struct intel_th_driver, driver) ^ include/linux/container_of.h:18:25: note: expanded from macro 'container= _of' void *__mptr =3D (void *)(ptr); = \ ^ drivers/hwtracing/intel_th/core.c:313:6: note: Assuming 'ret' is 0 if (ret) ^~~ drivers/hwtracing/intel_th/core.c:313:2: note: Taking false branch if (ret) ^ drivers/hwtracing/intel_th/core.c:316:7: note: Assuming 'val' is 0 if (!!val !=3D thdev->output.active) { ^~~~ drivers/hwtracing/intel_th/core.c:316:6: note: Assuming the condition is= true if (!!val !=3D thdev->output.active) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hwtracing/intel_th/core.c:316:2: note: Taking true branch if (!!val !=3D thdev->output.active) { ^ drivers/hwtracing/intel_th/core.c:317:7: note: 'val' is 0 if (val) ^~~ drivers/hwtracing/intel_th/core.c:317:3: note: Taking false branch if (val) ^ drivers/hwtracing/intel_th/core.c:320:4: note: Calling 'intel_th_output_= deactivate' intel_th_output_deactivate(thdev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hwtracing/intel_th/core.c:279:3: note: Assuming field 'driver' i= s non-null to_intel_th_driver_or_null(thdev->dev.driver); ^ drivers/hwtracing/intel_th/intel_th.h:195:3: note: expanded from macro '= to_intel_th_driver_or_null' ((_d) ? to_intel_th_driver(_d) : NULL) ^~~~ drivers/hwtracing/intel_th/core.c:279:3: note: '?' condition is true to_intel_th_driver_or_null(thdev->dev.driver); ^ drivers/hwtracing/intel_th/intel_th.h:195:3: note: expanded from macro '= to_intel_th_driver_or_null' ((_d) ? to_intel_th_driver(_d) : NULL) ^ drivers/hwtracing/intel_th/core.c:282:7: note: 'thdrv' is non-null if (!thdrv) ^~~~~ drivers/hwtracing/intel_th/core.c:282:2: note: Taking false branch if (!thdrv) ^ drivers/hwtracing/intel_th/core.c:285:6: note: Assuming field 'deactivat= e' is null if (thdrv->deactivate) ^~~~~~~~~~~~~~~~~ drivers/hwtracing/intel_th/core.c:285:2: note: Taking false branch if (thdrv->deactivate) ^ drivers/hwtracing/intel_th/core.c:288:3: note: Calling 'intel_th_trace_d= isable' intel_th_trace_disable(thdev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hwtracing/intel_th/core.c:1022:2: note: 'hub' initialized to a n= ull pointer value struct intel_th_device *hub =3D to_intel_th_device(thdev->dev.pa= rent); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hwtracing/intel_th/core.c:1023:35: note: Dereference of null poi= nter struct intel_th_driver *hubdrv =3D to_intel_th_driver(hub->dev.d= river); ^ drivers/hwtracing/intel_th/intel_th.h:192:2: note: expanded from macro '= to_intel_th_driver' container_of((_d), struct intel_th_driver, driver) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:18:25: note: expanded from macro 'container= _of' void *__mptr =3D (void *)(ptr); = \ ^~~~~ drivers/hwtracing/intel_th/core.c:1040:26: warning: Value stored to 'hub= drv' during its initialization is never read [clang-analyzer-deadcode.DeadS= tores] struct intel_th_driver *hubdrv =3D to_intel_th_driver(hub->dev.d= river); ^~~~~~ drivers/hwtracing/intel_th/core.c:1040:26: note: Value stored to 'hubdrv= ' during its initialization is never read struct intel_th_driver *hubdrv =3D to_intel_th_driver(hub->dev.d= river); -- ^ include/linux/hid.h:1024:3: note: Execution continues on line 1035 break; ^ include/linux/hid.h:1035:15: note: 'c' is <=3D 'limit' if (unlikely(c > limit || !bmap)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/hid.h:1035:15: note: Left side of '||' is false if (unlikely(c > limit || !bmap)) { ^ include/linux/hid.h:1035:28: note: Assuming 'bmap' is null if (unlikely(c > limit || !bmap)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/hid.h:1035:28: note: Assuming pointer value is null if (unlikely(c > limit || !bmap)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ include/linux/hid.h:1035:2: note: Taking true branch if (unlikely(c > limit || !bmap)) { ^ include/linux/hid.h:1036:3: note: Assuming the condition is true pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:639:6: note: expanded from macro 'printk_ratelimi= ted' if (__ratelimit(&_rs)) \ ^~~~~~~~~~~~~~~~~ include/linux/ratelimit_types.h:41:28: note: expanded from macro '__rate= limit' #define __ratelimit(state) ___ratelimit(state, __func__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/hid.h:1036:3: note: Taking true branch pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^ include/linux/printk.h:639:2: note: expanded from macro 'printk_ratelimi= ted' if (__ratelimit(&_rs)) \ ^ include/linux/hid.h:1036:3: note: Loop condition is false. Exiting loop pr_warn_ratelimited("%s: Invalid code %d type %d\n", ^ include/linux/printk.h:656:2: note: expanded from macro 'pr_warn_ratelim= ited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^ include/linux/printk.h:640:3: note: expanded from macro 'printk_ratelimi= ted' printk(fmt, ##__VA_ARGS__); \ ^ include/linux/printk.h:446:26: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^ include/linux/printk.h:417:3: note: expanded from macro 'printk_index_wr= ap' __printk_index_emit(_fmt, NULL, NULL); \ ^ include/linux/printk.h:392:34: note: expanded from macro '__printk_index= _emit' #define __printk_index_emit(...) do {} while (0) ^ include/linux/hid.h:1037:9: note: Access to field 'name' results in a de= reference of a null pointer (loaded from variable 'input') input->name, c, type); ^ include/linux/printk.h:656:49: note: expanded from macro 'pr_warn_rateli= mited' printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:640:17: note: expanded from macro 'printk_ratelim= ited' printk(fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ include/linux/printk.h:446:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:418:19: note: expanded from macro 'printk_index_w= rap' _p_func(_fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. drivers/fpga/dfl.c:309:9: warning: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%x\n", ddev->type); ^~~~~~~ drivers/fpga/dfl.c:309:9: note: Call to function 'sprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%x\n", ddev->type); ^~~~~~~ drivers/fpga/dfl.c:318:9: warning: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%x\n", ddev->feature_id); ^~~~~~~ drivers/fpga/dfl.c:318:9: note: Call to function 'sprintf' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%x\n", ddev->feature_id); ^~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 40 warnings generated. >> drivers/fpga/dfl-afu-main.c:175:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%x\n", (u8)FIELD_GET(PORT_CTRL_LATENCY, v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:175:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%x\n", (u8)FIELD_GET(PORT_CTRL_LATENCY, v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:216:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%x\n", (u8)FIELD_GET(PORT_STS_AP1_EVT, v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:216:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%x\n", (u8)FIELD_GET(PORT_STS_AP1_EVT, v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:254:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%x\n", (u8)FIELD_GET(PORT_STS_AP2_EVT, v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:254:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%x\n", (u8)FIELD_GET(PORT_STS_AP2_EVT, v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:291:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%x\n", (u8)FIELD_GET(PORT_STS_PWR_STATE, = v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:291:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%x\n", (u8)FIELD_GET(PORT_STS_PWR_STATE, = v)); ^~~~~~~ drivers/fpga/dfl-afu-main.c:351:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%llx\n", (unsigned long long)userclk_freq= sts); ^~~~~~~ drivers/fpga/dfl-afu-main.c:351:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%llx\n", (unsigned long long)userclk_freq= sts); ^~~~~~~ drivers/fpga/dfl-afu-main.c:369:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%llx\n", ^~~~~~~ drivers/fpga/dfl-afu-main.c:369:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%llx\n", ^~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 19 warnings generated. Suppressed 19 warnings (19 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 30 warnings generated. Suppressed 30 warnings (30 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. drivers/mtd/devices/slram.c:87:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(priv->start + instr->addr, 0xff, instr->len); ^~~~~~ drivers/mtd/devices/slram.c:87:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(priv->start + instr->addr, 0xff, instr->len); ^~~~~~ drivers/mtd/devices/slram.c:112:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, priv->start + from, len); ^~~~~~ drivers/mtd/devices/slram.c:112:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, priv->start + from, len); ^~~~~~ drivers/mtd/devices/slram.c:122:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(priv->start + to, buf, len); ^~~~~~ drivers/mtd/devices/slram.c:122:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(priv->start + to, buf, len); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 39 warnings generated. drivers/mtd/devices/mtdram.c:60:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset((char *)mtd->priv + instr->addr, 0xff, instr->len); ^~~~~~ drivers/mtd/devices/mtdram.c:60:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset((char *)mtd->priv + instr->addr, 0xff, instr->len); ^~~~~~ drivers/mtd/devices/mtdram.c:102:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, mtd->priv + from, len); ^~~~~~ drivers/mtd/devices/mtdram.c:102:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, mtd->priv + from, len); ^~~~~~ drivers/mtd/devices/mtdram.c:110:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy((char *)mtd->priv + to, buf, len); ^~~~~~ drivers/mtd/devices/mtdram.c:110:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy((char *)mtd->priv + to, buf, len); ^~~~~~ drivers/mtd/devices/mtdram.c:127:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(mtd, 0, sizeof(*mtd)); ^~~~~~ drivers/mtd/devices/mtdram.c:127:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(mtd, 0, sizeof(*mtd)); ^~~~~~ drivers/mtd/devices/mtdram.c:178:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(mtd_info->priv, 0xff, MTDRAM_TOTAL_SIZE); ^~~~~~ drivers/mtd/devices/mtdram.c:178:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(mtd_info->priv, 0xff, MTDRAM_TOTAL_SIZE); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 63 warnings generated. Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 60 warnings generated. >> drivers/nfc/nfcsim.c:363:6: warning: Call to function 'snprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] n =3D snprintf(devname, sizeof(devname), "nfc%d", idx); ^~~~~~~~ drivers/nfc/nfcsim.c:363:6: note: Call to function 'snprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'snprintf_s' in case of C11 n =3D snprintf(devname, sizeof(devname), "nfc%d", idx); ^~~~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/power/supply/ds2760_battery.c:692:2: warning: Call to function '= snprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'snprintf_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, sizeof(name), "ds2760-battery.%d", dev->id); ^~~~~~~~ drivers/power/supply/ds2760_battery.c:692:2: note: Call to function 'snp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'snprintf_s' in case of C11 snprintf(name, sizeof(name), "ds2760-battery.%d", dev->id); ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. fs/nilfs2/recovery.c:485:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(kaddr + bh_offset(bh_org), bh_org->b_data, bh_org->b_size= ); ^~~~~~ fs/nilfs2/recovery.c:485:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(kaddr + bh_offset(bh_org), bh_org->b_data, bh_org->b_size= ); ^~~~~~ fs/nilfs2/recovery.c:701:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, bh->b_size); ^~~~~~ fs/nilfs2/recovery.c:701:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, bh->b_size); ^~~~~~ include/linux/list.h:137:13: warning: Use of memory after it is freed [c= lang-analyzer-unix.Malloc] __list_del(entry->prev, entry->next); ^ fs/nilfs2/recovery.c:824:9: note: Assuming 'b' is > 'seg_end' while (b <=3D seg_end) ^~~~~~~~~~~~ fs/nilfs2/recovery.c:824:2: note: Loop condition is false. Execution con= tinues on line 827 while (b <=3D seg_end) ^ fs/nilfs2/recovery.c:827:2: note: Loop condition is true. Entering loop= body for (;;) { ^ fs/nilfs2/recovery.c:831:8: note: 'bh_sum' is non-null if (!bh_sum) ^~~~~~ fs/nilfs2/recovery.c:831:3: note: Taking false branch if (!bh_sum) ^ fs/nilfs2/recovery.c:835:7: note: 'ret' is 0 if (ret) { ^~~ fs/nilfs2/recovery.c:835:3: note: Taking false branch if (ret) { ^ fs/nilfs2/recovery.c:843:16: note: Assuming 'pseg_end' is <=3D 'seg_end' if (unlikely(pseg_end > seg_end)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ fs/nilfs2/recovery.c:843:3: note: Taking false branch if (unlikely(pseg_end > seg_end)) { ^ fs/nilfs2/recovery.c:858:7: note: Assuming the condition is false if (!(flags & NILFS_SS_SR) && !scan_newer) { ^~~~~~~~~~~~~~~~~~~~~~ fs/nilfs2/recovery.c:858:30: note: Left side of '&&' is false if (!(flags & NILFS_SS_SR) && !scan_newer) { ^ fs/nilfs2/recovery.c:868:7: note: Assuming 'pseg_start' is not equal to = 'seg_start' if (pseg_start =3D=3D seg_start) { ^~~~~~~~~~~~~~~~~~~~~~~ fs/nilfs2/recovery.c:868:3: note: Taking false branch if (pseg_start =3D=3D seg_start) { ^ fs/nilfs2/recovery.c:874:3: note: Taking false branch if (!(flags & NILFS_SS_SR)) { -- ^ fs/nilfs2/recovery.c:827:2: note: Loop condition is true. Entering loop= body for (;;) { ^ fs/nilfs2/recovery.c:831:8: note: 'bh_sum' is non-null if (!bh_sum) ^~~~~~ fs/nilfs2/recovery.c:831:3: note: Taking false branch if (!bh_sum) ^ fs/nilfs2/recovery.c:835:7: note: 'ret' is 0 if (ret) { ^~~ fs/nilfs2/recovery.c:835:3: note: Taking false branch if (ret) { ^ fs/nilfs2/recovery.c:843:16: note: Assuming 'pseg_end' is <=3D 'seg_end' if (unlikely(pseg_end > seg_end)) { ^ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ fs/nilfs2/recovery.c:843:3: note: Taking false branch if (unlikely(pseg_end > seg_end)) { ^ fs/nilfs2/recovery.c:858:7: note: Assuming the condition is false if (!(flags & NILFS_SS_SR) && !scan_newer) { ^~~~~~~~~~~~~~~~~~~~~~ fs/nilfs2/recovery.c:858:30: note: Left side of '&&' is false if (!(flags & NILFS_SS_SR) && !scan_newer) { ^ fs/nilfs2/recovery.c:868:7: note: Assuming 'pseg_start' is not equal to = 'seg_start' if (pseg_start =3D=3D seg_start) { ^~~~~~~~~~~~~~~~~~~~~~~ fs/nilfs2/recovery.c:868:3: note: Taking false branch if (pseg_start =3D=3D seg_start) { ^ fs/nilfs2/recovery.c:874:3: note: Taking false branch if (!(flags & NILFS_SS_SR)) { ^ fs/nilfs2/recovery.c:898:7: note: 'scan_newer' is 0 if (scan_newer) ^~~~~~~~~~ fs/nilfs2/recovery.c:898:3: note: Taking false branch if (scan_newer) ^ fs/nilfs2/recovery.c:901:8: note: Assuming the condition is false if (nilfs->ns_mount_state & NILFS_VALID_FS) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/nilfs2/recovery.c:901:4: note: Taking false branch if (nilfs->ns_mount_state & NILFS_VALID_FS) ^ fs/nilfs2/recovery.c:909:7: note: Assuming 'pseg_start' is >=3D 'seg_end' if (pseg_start < seg_end) ^~~~~~~~~~~~~~~~~~~~ fs/nilfs2/recovery.c:909:3: note: Taking false branch if (pseg_start < seg_end) ^ fs/nilfs2/recovery.c:911:3: note: Control jumps to line 924 goto feed_segment; ^ fs/nilfs2/recovery.c:924:3: note: Taking false branch if (empty_seg++) ^ fs/nilfs2/recovery.c:928:3: note: Taking false branch if (unlikely(ret)) ^ fs/nilfs2/recovery.c:827:2: note: Loop condition is true. Entering loop= body for (;;) { ^ fs/nilfs2/recovery.c:831:8: note: 'bh_sum' is null if (!bh_sum) ^~~~~~ fs/nilfs2/recovery.c:831:3: note: Taking true branch if (!bh_sum) ^ fs/nilfs2/recovery.c:832:4: note: Control jumps to line 947 goto failed; ^ fs/nilfs2/recovery.c:948:2: note: Calling 'nilfs_dispose_segment_list' nilfs_dispose_segment_list(&segments); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/nilfs2/recovery.c:406:2: note: Loop condition is true. Entering loop= body while (!list_empty(head)) { ^ fs/nilfs2/recovery.c:411:3: note: Memory is released kfree(ent); ^~~~~~~~~~ fs/nilfs2/recovery.c:406:2: note: Loop condition is true. Entering loop= body while (!list_empty(head)) { ^ fs/nilfs2/recovery.c:410:3: note: Calling 'list_del' list_del(&ent->list); ^~~~~~~~~~~~~~~~~~~~ include/linux/list.h:149:14: note: Use of memory after it is freed entry->next =3D LIST_POISON1; ~~~~~~~~~~~ ^ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. >> drivers/clk/clk-lochnagar.c:261:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(priv->lclks, conf->clks, sizeof(priv->lclks)); ^~~~~~ drivers/clk/clk-lochnagar.c:261:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(priv->lclks, conf->clks, sizeof(priv->lclks)); ^~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/hwmon/adt7411.c:172:25: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return ret < 0 ? ret : sprintf(buf, "%u\n", !!(ret & attr2->nr)); ^~~~~~~ drivers/hwmon/adt7411.c:172:25: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return ret < 0 ? ret : sprintf(buf, "%u\n", !!(ret & attr2->nr)); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. drivers/hwmon/adt7470.c:481:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->auto_update_interval); ^~~~~~~ drivers/hwmon/adt7470.c:481:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->auto_update_interval); ^~~~~~~ drivers/hwmon/adt7470.c:512:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->num_temp_sensors); ^~~~~~~ drivers/hwmon/adt7470.c:512:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->num_temp_sensors); ^~~~~~~ drivers/hwmon/adt7470.c:599:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%x\n", data->alarms_mask); ^~~~~~~ drivers/hwmon/adt7470.c:599:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%x\n", data->alarms_mask); ^~~~~~~ drivers/hwmon/adt7470.c:699:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->force_pwm_max); ^~~~~~~ drivers/hwmon/adt7470.c:699:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->force_pwm_max); ^~~~~~~ drivers/hwmon/adt7470.c:865:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->pwm_max[attr->index]); ^~~~~~~ drivers/hwmon/adt7470.c:865:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->pwm_max[attr->index]); ^~~~~~~ drivers/hwmon/adt7470.c:900:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->pwm_min[attr->index]); ^~~~~~~ drivers/hwmon/adt7470.c:900:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->pwm_min[attr->index]); ^~~~~~~ drivers/hwmon/adt7470.c:936:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", 1000 * (20 + data->pwm_tmin[attr->in= dex])); ^~~~~~~ drivers/hwmon/adt7470.c:936:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", 1000 * (20 + data->pwm_tmin[attr->in= dex])); ^~~~~~~ drivers/hwmon/adt7470.c:948:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", 1000 * data->pwm_tmin[attr->index]); ^~~~~~~ drivers/hwmon/adt7470.c:948:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", 1000 * data->pwm_tmin[attr->index]); ^~~~~~~ drivers/hwmon/adt7470.c:987:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", 1 << (ctrl - 1)); ^~~~~~~ drivers/hwmon/adt7470.c:987:10: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", 1 << (ctrl - 1)); ^~~~~~~ drivers/hwmon/adt7470.c:989:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", ADT7470_PWM_ALL_TEMPS); ^~~~~~~ drivers/hwmon/adt7470.c:989:10: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", ADT7470_PWM_ALL_TEMPS); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 72 warnings generated. net/atm/resources.c:109:3: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&dev->flags, 0, sizeof(dev->flags)); ^~~~~~ net/atm/resources.c:109:3: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&dev->flags, 0, sizeof(dev->flags)); ^~~~~~ net/atm/resources.c:110:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(&dev->stats, 0, sizeof(dev->stats)); ^~~~~~ net/atm/resources.c:110:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(&dev->stats, 0, sizeof(dev->stats)); ^~~~~~ net/atm/resources.c:279:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dev->esi, esi, ESI_LEN); ^~~~~~ net/atm/resources.c:279:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(dev->esi, esi, ESI_LEN); ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. >> drivers/input/mouse/byd.c:388:3: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(param, 0, sizeof(param)); ^~~~~~ drivers/input/mouse/byd.c:388:3: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(param, 0, sizeof(param)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. >> drivers/input/mouse/logips2pp.c:155:9: warning: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", psmouse->smartscroll); ^~~~~~~ drivers/input/mouse/logips2pp.c:155:9: note: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", psmouse->smartscroll); ^~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 33 warnings generated. >> drivers/input/mouse/sentelic.c:454:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%02x%02x\n", pad->last_reg, pad->last_val); ^~~~~~~ drivers/input/mouse/sentelic.c:454:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%02x%02x\n", pad->last_reg, pad->last_val); ^~~~~~~ drivers/input/mouse/sentelic.c:496:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%02x\n", val); ^~~~~~~ drivers/input/mouse/sentelic.c:496:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%02x\n", val); ^~~~~~~ drivers/input/mouse/sentelic.c:526:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", pad->vscroll); ^~~~~~~ drivers/input/mouse/sentelic.c:526:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", pad->vscroll); ^~~~~~~ drivers/input/mouse/sentelic.c:555:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", pad->hscroll); ^~~~~~~ drivers/input/mouse/sentelic.c:555:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", pad->hscroll); ^~~~~~~ drivers/input/mouse/sentelic.c:584:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%c\n", ^~~~~~~ drivers/input/mouse/sentelic.c:584:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%c\n", ^~~~~~~ >> drivers/input/mouse/sentelic.c:615:9: warning: Call to function 'sprintf= ' is insecure as it does not provide bounding of the memory buffer or secur= ity checks introduced in the C11 standard. Replace with analogous functions= that support length arguments or provides boundary checks such as 'sprintf= _s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeB= ufferHandling] return sprintf(buf, "Sentelic FSP kernel module %s\n", fsp_drv_v= er); ^~~~~~~ drivers/input/mouse/sentelic.c:615:9: note: Call to function 'sprintf' i= s insecure as it does not provide bounding of the memory buffer or security= checks introduced in the C11 standard. Replace with analogous functions th= at support length arguments or provides boundary checks such as 'sprintf_s'= in case of C11 return sprintf(buf, "Sentelic FSP kernel module %s\n", fsp_drv_v= er); ^~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 40 warnings generated. drivers/virtio/virtio_ring.c:577:2: warning: Array subscript is undefine= d [clang-analyzer-core.uninitialized.ArraySubscript] desc[prev].flags &=3D cpu_to_virtio16(_vq->vdev, ~VRING_DESC_F_N= EXT); ^ ~~~~ drivers/virtio/virtio_ring.c:490:40: note: 'prev' declared without an in= itial value unsigned int i, n, avail, descs_used, prev, err_idx; ^~~~ drivers/virtio/virtio_ring.c:496:9: note: Assuming 'data' is not equal t= o null BUG_ON(data =3D=3D NULL); ^ include/asm-generic/bug.h:65:45: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ~~~~~~~~~^~~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ drivers/virtio/virtio_ring.c:496:2: note: Taking false branch BUG_ON(data =3D=3D NULL); ^ include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/virtio/virtio_ring.c:496:2: note: Loop condition is false. Exit= ing loop BUG_ON(data =3D=3D NULL); ^ include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/virtio/virtio_ring.c:497:9: note: Assuming 'ctx' is null BUG_ON(ctx && vq->indirect); ^ include/asm-generic/bug.h:65:45: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ drivers/virtio/virtio_ring.c:497:13: note: Left side of '&&' is false BUG_ON(ctx && vq->indirect); ^ drivers/virtio/virtio_ring.c:497:2: note: Taking false branch BUG_ON(ctx && vq->indirect); ^ include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/virtio/virtio_ring.c:497:2: note: Loop condition is false. Exit= ing loop BUG_ON(ctx && vq->indirect); ^ include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/virtio/virtio_ring.c:499:6: note: Assuming field 'broken' is fal= se if (unlikely(vq->broken)) { ^ include/linux/compiler.h:78:40: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~ drivers/virtio/virtio_ring.c:499:2: note: Taking false branch if (unlikely(vq->broken)) { ^ drivers/virtio/virtio_ring.c:506:9: note: Assuming 'total_sg' is not equ= al to 0 BUG_ON(total_sg =3D=3D 0); ^ include/asm-generic/bug.h:65:45: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ drivers/virtio/virtio_ring.c:506:2: note: Taking false branch BUG_ON(total_sg =3D=3D 0); ^ include/asm-generic/bug.h:65:32: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/virtio/virtio_ring.c:506:2: note: Loop condition is false. Exit= ing loop BUG_ON(total_sg =3D=3D 0); ^ include/asm-generic/bug.h:65:27: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (= 0) ^ drivers/virtio/virtio_ring.c:510:6: note: Assuming the condition is true if (virtqueue_use_indirect(_vq, total_sg)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/virtio/virtio_ring.c:510:2: note: Taking true branch if (virtqueue_use_indirect(_vq, total_sg)) ^ drivers/virtio/virtio_ring.c:517:6: note: Assuming 'desc' is non-null if (desc) { ^~~~ drivers/virtio/virtio_ring.c:517:2: note: Taking true branch if (desc) { -- ^~~~~~ lib/bch.c:1123:27: warning: The result of the left shift is undefined be= cause the right operand is negative [clang-analyzer-core.UndefinedBinaryOpe= ratorResult] const unsigned int k =3D 1 << deg(poly); ^ ~~~~~~~~~ lib/bch.c:1123:30: note: Calling 'deg' const unsigned int k =3D 1 << deg(poly); ^~~~~~~~~ lib/bch.c:345:2: note: Returning the value -1 return fls(poly)-1; ^~~~~~~~~~~~~~~~~~ lib/bch.c:1123:30: note: Returning from 'deg' const unsigned int k =3D 1 << deg(poly); ^~~~~~~~~ lib/bch.c:1123:27: note: The result of the left shift is undefined becau= se the right operand is negative const unsigned int k =3D 1 << deg(poly); ^ ~~~~~~~~~ lib/bch.c:1156:2: warning: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI= .DeprecatedOrUnsafeBufferHandling] memset(bch->mod8_tab, 0, 4*256*l*sizeof(*bch->mod8_tab)); ^~~~~~ lib/bch.c:1156:2: note: Call to function 'memset' is insecure as it does= not provide security checks introduced in the C11 standard. Replace with a= nalogous functions that support length arguments or provides boundary check= s such as 'memset_s' in case of C11 memset(bch->mod8_tab, 0, 4*256*l*sizeof(*bch->mod8_tab)); ^~~~~~ lib/bch.c:1200:2: warning: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI= .DeprecatedOrUnsafeBufferHandling] memset(xi, 0, sizeof(xi)); ^~~~~~ lib/bch.c:1200:2: note: Call to function 'memset' is insecure as it does= not provide security checks introduced in the C11 standard. Replace with a= nalogous functions that support length arguments or provides boundary check= s such as 'memset_s' in case of C11 memset(xi, 0, sizeof(xi)); ^~~~~~ lib/bch.c:1253:2: warning: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI= .DeprecatedOrUnsafeBufferHandling] memset(roots , 0, (bch->n+1)*sizeof(*roots)); ^~~~~~ lib/bch.c:1253:2: note: Call to function 'memset' is insecure as it does= not provide security checks introduced in the C11 standard. Replace with a= nalogous functions that support length arguments or provides boundary check= s such as 'memset_s' in case of C11 memset(roots , 0, (bch->n+1)*sizeof(*roots)); ^~~~~~ Suppressed 8 warnings (8 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. drivers/md/dm-verity-target.c:247:2: warning: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(verity_env, DM_VERITY_ENV_LENGTH, "%s=3D%d,%llu", ^~~~~~~~ drivers/md/dm-verity-target.c:247:2: note: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 snprintf(verity_env, DM_VERITY_ENV_LENGTH, "%s=3D%d,%llu", ^~~~~~~~ drivers/md/dm-verity-target.c:323:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(want_digest, data, v->digest_size); ^~~~~~ drivers/md/dm-verity-target.c:323:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(want_digest, data, v->digest_size); ^~~~~~ drivers/md/dm-verity-target.c:353:2: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(digest, v->root_digest, v->digest_size); ^~~~~~ drivers/md/dm-verity-target.c:353:2: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(digest, v->root_digest, v->digest_size); ^~~~~~ drivers/md/dm-verity-target.c:453:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(data, 0, len); ^~~~~~ drivers/md/dm-verity-target.c:453:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(data, 0, len); ^~~~~~ drivers/md/dm-verity-target.c:1088:6: warning: Call to function 'sscanf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(argv[0], "%u%c", &num, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1088:6: note: Call to function 'sscanf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sscanf_s' in case of C11 if (sscanf(argv[0], "%u%c", &num, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1108:6: warning: Call to function 'sscanf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(argv[3], "%u%c", &num, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1108:6: note: Call to function 'sscanf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sscanf_s' in case of C11 if (sscanf(argv[3], "%u%c", &num, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1118:6: warning: Call to function 'sscanf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(argv[4], "%u%c", &num, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1118:6: note: Call to function 'sscanf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sscanf_s' in case of C11 if (sscanf(argv[4], "%u%c", &num, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1128:6: warning: Call to function 'sscanf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(argv[5], "%llu%c", &num_ll, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1128:6: note: Call to function 'sscanf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sscanf_s' in case of C11 if (sscanf(argv[5], "%llu%c", &num_ll, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1143:6: warning: Call to function 'sscanf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(argv[6], "%llu%c", &num_ll, &dummy) !=3D 1 || ^~~~~~ drivers/md/dm-verity-target.c:1143:6: note: Call to function 'sscanf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sscanf_s' in case of C11 if (sscanf(argv[6], "%llu%c", &num_ll, &dummy) !=3D 1 || ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> fs/hfs/catalog.c:31:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&key->cat.CName, 0, sizeof(struct hfs_name)); ^~~~~~ fs/hfs/catalog.c:31:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&key->cat.CName, 0, sizeof(struct hfs_name)); ^~~~~~ fs/hfs/catalog.c:40:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(rec, 0, sizeof(*rec)); ^~~~~~ fs/hfs/catalog.c:40:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(rec, 0, sizeof(*rec)); ^~~~~~ fs/hfs/catalog.c:70:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(rec->thread.reserved, 0, sizeof(rec->thread.reserved)); ^~~~~~ fs/hfs/catalog.c:70:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(rec->thread.reserved, 0, sizeof(rec->thread.reserved)); ^~~~~~ >> fs/hfs/catalog.c:210:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, le= n); ^~~~~~ fs/hfs/catalog.c:210:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, le= n); ^~~~~~ Suppressed 42 warnings (42 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. drivers/leds/leds-pwm.c:141:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&led, 0, sizeof(led)); ^~~~~~ drivers/leds/leds-pwm.c:141:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(&led, 0, sizeof(led)); ^~~~~~ drivers/leds/leds-pwm.c:146:15: warning: Access to field 'name' results = in a dereference of a null pointer [clang-analyzer-core.NullDereference] led.name =3D to_of_node(fwnode)->name; ^ include/linux/of.h:161:2: note: expanded from macro 'to_of_node' ({ \ ^ drivers/leds/leds-pwm.c:180:6: note: Assuming 'count' is not equal to 0 if (!count) ^~~~~~ drivers/leds/leds-pwm.c:180:2: note: Taking false branch if (!count) ^ drivers/leds/leds-pwm.c:185:6: note: Assuming 'priv' is non-null if (!priv) ^~~~~ drivers/leds/leds-pwm.c:185:2: note: Taking false branch if (!priv) ^ drivers/leds/leds-pwm.c:188:8: note: Calling 'led_pwm_create_fwnode' ret =3D led_pwm_create_fwnode(&pdev->dev, priv); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/leds-pwm.c:143:2: note: Loop condition is true. Entering l= oop body device_for_each_child_node(dev, fwnode) { ^ include/linux/property.h:112:2: note: expanded from macro 'device_for_ea= ch_child_node' for (child =3D device_get_next_child_node(dev, NULL); child; = \ ^ drivers/leds/leds-pwm.c:145:7: note: Assuming 'ret' is not equal to 0 if (ret && is_of_node(fwnode)) ^~~ drivers/leds/leds-pwm.c:145:7: note: Left side of '&&' is true drivers/leds/leds-pwm.c:145:14: note: Assuming the condition is true if (ret && is_of_node(fwnode)) ^~~~~~~~~~~~~~~~~~ drivers/leds/leds-pwm.c:145:3: note: Taking true branch if (ret && is_of_node(fwnode)) ^ drivers/leds/leds-pwm.c:146:15: note: Assuming the condition is false led.name =3D to_of_node(fwnode)->name; ^ include/linux/of.h:164:3: note: expanded from macro 'to_of_node' is_of_node(__to_of_node_fwnode) ? \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/leds-pwm.c:146:15: note: '?' condition is false led.name =3D to_of_node(fwnode)->name; ^ include/linux/of.h:164:3: note: expanded from macro 'to_of_node' is_of_node(__to_of_node_fwnode) ? \ ^ drivers/leds/leds-pwm.c:146:15: note: Access to field 'name' results in = a dereference of a null pointer led.name =3D to_of_node(fwnode)->name; ^ include/linux/of.h:161:2: note: expanded from macro 'to_of_node' ({ \ ^ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. fs/ext4/hash.c:221:5: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, hinfo->seed, sizeof(buf)); ^~~~~~ fs/ext4/hash.c:221:5: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(buf, hinfo->seed, sizeof(buf)); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. fs/ext4/ialloc.c:66:3: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(bitmap + (i >> 3), 0xff, (end_bit - i) >> 3); ^~~~~~ fs/ext4/ialloc.c:66:3: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(bitmap + (i >> 3), 0xff, (end_bit - i) >> 3); ^~~~~~ fs/ext4/ialloc.c:172:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, (EXT4_INODES_PER_GROUP(sb) + 7) / = 8); ^~~~~~ fs/ext4/ialloc.c:172:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, (EXT4_INODES_PER_GROUP(sb) + 7) / = 8); ^~~~~~ fs/ext4/ialloc.c:543:19: warning: Division by zero [clang-analyzer-core.= DivideZero] -- ^ fs/ext4/ialloc.c:457:8: note: Assuming the condition is true ((parent =3D=3D d_inode(sb->s_root)) || ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/ialloc.c:457:39: note: Left side of '||' is true ((parent =3D=3D d_inode(sb->s_root)) || ^ fs/ext4/ialloc.c:462:7: note: Assuming 'qstr' is null if (qstr) { ^~~~ fs/ext4/ialloc.c:462:3: note: Taking false branch if (qstr) { ^ fs/ext4/ialloc.c:470:15: note: 'i' is < 'ngroups' for (i =3D 0; i < ngroups; i++) { ^ fs/ext4/ialloc.c:470:3: note: Loop condition is true. Entering loop body for (i =3D 0; i < ngroups; i++) { ^ fs/ext4/ialloc.c:473:8: note: Assuming field 'free_inodes' is not equal = to 0 if (!stats.free_inodes) ^~~~~~~~~~~~~~~~~~ fs/ext4/ialloc.c:473:4: note: Taking false branch if (!stats.free_inodes) ^ fs/ext4/ialloc.c:475:8: note: Assuming 'best_ndir' is > field 'used_dirs' if (stats.used_dirs >=3D best_ndir) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/ialloc.c:475:4: note: Taking false branch if (stats.used_dirs >=3D best_ndir) ^ fs/ext4/ialloc.c:477:8: note: Assuming 'avefreei' is <=3D field 'free_in= odes' if (stats.free_inodes < avefreei) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/ialloc.c:477:4: note: Taking false branch if (stats.free_inodes < avefreei) ^ fs/ext4/ialloc.c:479:8: note: Assuming 'avefreec' is <=3D field 'free_cl= usters' if (stats.free_clusters < avefreec) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/ialloc.c:479:4: note: Taking false branch if (stats.free_clusters < avefreec) ^ fs/ext4/ialloc.c:470:15: note: Assuming 'i' is >=3D 'ngroups' for (i =3D 0; i < ngroups; i++) { ^~~~~~~~~~~ fs/ext4/ialloc.c:470:3: note: Loop condition is false. Execution continu= es on line 485 for (i =3D 0; i < ngroups; i++) { ^ fs/ext4/ialloc.c:485:7: note: 'ret' is 0 if (ret) ^~~ fs/ext4/ialloc.c:485:3: note: Taking false branch if (ret) ^ fs/ext4/ialloc.c:488:7: note: 'flex_size' is not equal to 1 if (flex_size =3D=3D 1) { ^~~~~~~~~ fs/ext4/ialloc.c:488:3: note: Taking false branch if (flex_size =3D=3D 1) { ^ fs/ext4/ialloc.c:501:15: note: 'i' is < 'flex_size' for (i =3D 0; i < flex_size; i++) { ^ fs/ext4/ialloc.c:501:3: note: Loop condition is true. Entering loop body for (i =3D 0; i < flex_size; i++) { ^ fs/ext4/ialloc.c:502:8: note: Assuming the condition is true if (grp+i >=3D real_ngroups) ^~~~~~~~~~~~~~~~~~~~~ fs/ext4/ialloc.c:502:4: note: Taking true branch if (grp+i >=3D real_ngroups) ^ fs/ext4/ialloc.c:503:5: note: Execution continues on line 510 break; ^ fs/ext4/ialloc.c:510:3: note: Control jumps to line 542 goto fallback; ^ fs/ext4/ialloc.c:542:2: note: The value 0 is assigned to 'ngroups' ngroups =3D real_ngroups; ^~~~~~~~~~~~~~~~~~~~~~ fs/ext4/ialloc.c:543:19: note: Division by zero avefreei =3D freei / ngroups; ~~~~~~^~~~~~~~~ fs/ext4/ialloc.c:1255:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(ei->i_data, 0, sizeof(ei->i_data)); ^~~~~~ fs/ext4/ialloc.c:1255:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(ei->i_data, 0, sizeof(ei->i_data)); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. drivers/video/fbdev/core/fbcon.c:1037:2: warning: Value stored to 'cap' = is never read [clang-analyzer-deadcode.DeadStores] cap =3D info->flags; ^ ~~~~~~~~~~~ drivers/video/fbdev/core/fbcon.c:1037:2: note: Value stored to 'cap' is = never read cap =3D info->flags; ^ ~~~~~~~~~~~ >> drivers/video/fbdev/core/fbcon.c:2118:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&var, 0, sizeof(struct fb_var_screeninfo)); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2118:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(&var, 0, sizeof(struct fb_var_screeninfo)); ^~~~~~ >> drivers/video/fbdev/core/fbcon.c:2307:4: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, fontdata, j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2307:4: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(data, fontdata, j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2308:4: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(data + j, 0, 32 - j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2308:4: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(data + j, 0, 32 - j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2318:4: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, fontdata, j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2318:4: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(data, fontdata, j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2319:4: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(data + j, 0, 64 - j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2319:4: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(data + j, 0, 64 - j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2334:4: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(data, 0, 3 * (32 - j)); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2334:4: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(data, 0, 3 * (32 - j)); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2343:4: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(data, fontdata, j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2343:4: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(data, fontdata, j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2344:4: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(data + j, 0, 128 - j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2344:4: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(data + j, 0, 128 - j); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2500:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(new_data, 0, FONT_EXTRA_WORDS * sizeof(int)); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2500:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(new_data, 0, FONT_EXTRA_WORDS * sizeof(int)); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2506:3: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_data + i*h*pitch, data + i*32*pitch, h*pitch= ); ^~~~~~ drivers/video/fbdev/core/fbcon.c:2506:3: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(new_data + i*h*pitch, data + i*32*pitch, h*pitch= ); ^~~~~~ >> drivers/video/fbdev/core/fbcon.c:3170:9: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%d\n", rotate); ^~~~~~~~ drivers/video/fbdev/core/fbcon.c:3170:9: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%d\n", rotate); ^~~~~~~~ drivers/video/fbdev/core/fbcon.c:3195:9: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return snprintf(buf, PAGE_SIZE, "%d\n", blink); ^~~~~~~~ drivers/video/fbdev/core/fbcon.c:3195:9: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 return snprintf(buf, PAGE_SIZE, "%d\n", blink); ^~~~~~~~ Suppressed 46 warnings (45 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. drivers/leds/leds-lm3530.c:236:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&als, 0, sizeof(struct lm3530_als_data)); ^~~~~~ drivers/leds/leds-lm3530.c:236:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(&als, 0, sizeof(struct lm3530_als_data)); ^~~~~~ drivers/leds/leds-lm3530.c:359:11: warning: Call to function 'sprintf' i= s insecure as it does not provide bounding of the memory buffer or security= checks introduced in the C11 standard. Replace with analogous functions th= at support length arguments or provides boundary checks such as 'sprintf_s'= in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBuff= erHandling] len +=3D sprintf(buf + len, "[%s] ", mode_map[i]= .mode); ^~~~~~~ drivers/leds/leds-lm3530.c:359:11: note: Call to function 'sprintf' is i= nsecure as it does not provide bounding of the memory buffer or security ch= ecks introduced in the C11 standard. Replace with analogous functions that = support length arguments or provides boundary checks such as 'sprintf_s' in= case of C11 len +=3D sprintf(buf + len, "[%s] ", mode_map[i]= .mode); ^~~~~~~ drivers/leds/leds-lm3530.c:361:11: warning: Call to function 'sprintf' i= s insecure as it does not provide bounding of the memory buffer or security= checks introduced in the C11 standard. Replace with analogous functions th= at support length arguments or provides boundary checks such as 'sprintf_s'= in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBuff= erHandling] len +=3D sprintf(buf + len, "%s ", mode_map[i].m= ode); ^~~~~~~ drivers/leds/leds-lm3530.c:361:11: note: Call to function 'sprintf' is i= nsecure as it does not provide bounding of the memory buffer or security ch= ecks introduced in the C11 standard. Replace with analogous functions that = support length arguments or provides boundary checks such as 'sprintf_s' in= case of C11 len +=3D sprintf(buf + len, "%s ", mode_map[i].m= ode); ^~~~~~~ drivers/leds/leds-lm3530.c:363:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] len +=3D sprintf(buf + len, "\n"); ^~~~~~~ drivers/leds/leds-lm3530.c:363:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 len +=3D sprintf(buf + len, "\n"); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/hid/hid-wiimote-modules.c:353:2: warning: Call to function 'snpr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'snprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, namesz, "%s:blue:p%lu", dev_name(dev), ops->arg); ^~~~~~~~ drivers/hid/hid-wiimote-modules.c:353:2: note: Call to function 'snprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'snprintf_s' in case of C11 snprintf(name, namesz, "%s:blue:p%lu", dev_name(dev), ops->arg); ^~~~~~~~ drivers/hid/hid-wiimote-modules.c:1456:12: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret +=3D sprintf(&out[ret], "%04x\n", va= l); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1456:12: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 ret +=3D sprintf(&out[ret], "%04x\n", va= l); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1458:12: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret +=3D sprintf(&out[ret], "%04x:", val= ); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1458:12: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 ret +=3D sprintf(&out[ret], "%04x:", val= ); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1821:7: warning: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] r +=3D sprintf(&out[r], "%+06hd:", wdata->state.calib_pro_sticks= [0]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1821:7: note: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 r +=3D sprintf(&out[r], "%+06hd:", wdata->state.calib_pro_sticks= [0]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1822:7: warning: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] r +=3D sprintf(&out[r], "%+06hd ", wdata->state.calib_pro_sticks= [1]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1822:7: note: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 r +=3D sprintf(&out[r], "%+06hd ", wdata->state.calib_pro_sticks= [1]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1823:7: warning: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] r +=3D sprintf(&out[r], "%+06hd:", wdata->state.calib_pro_sticks= [2]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1823:7: note: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 r +=3D sprintf(&out[r], "%+06hd:", wdata->state.calib_pro_sticks= [2]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1824:7: warning: Call to function 'spr= intf' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'sprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] r +=3D sprintf(&out[r], "%+06hd\n", wdata->state.calib_pro_stick= s[3]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1824:7: note: Call to function 'sprint= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sprintf_s' in case of C11 r +=3D sprintf(&out[r], "%+06hd\n", wdata->state.calib_pro_stick= s[3]); ^~~~~~~ drivers/hid/hid-wiimote-modules.c:1842:7: warning: Call to function 'ssc= anf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'sscanf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] r =3D sscanf(buf, "%hd:%hd %hd:%hd", &x1, &y1, &x2, &y2); ^~~~~~ drivers/hid/hid-wiimote-modules.c:1842:7: note: Call to function 'sscanf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sscanf_s' in case of C11 r =3D sscanf(buf, "%hd:%hd %hd:%hd", &x1, &y1, &x2, &y2); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. drivers/hwmon/gsc-hwmon.c:68:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", ret * 10); ^~~~~~~ drivers/hwmon/gsc-hwmon.c:68:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", ret * 10); -- ^~~~~~~ drivers/regulator/virtual.c:218:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "fast\n"); ^~~~~~~ drivers/regulator/virtual.c:218:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "fast\n"); ^~~~~~~ drivers/regulator/virtual.c:220:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "normal\n"); ^~~~~~~ drivers/regulator/virtual.c:220:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "normal\n"); ^~~~~~~ drivers/regulator/virtual.c:222:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "idle\n"); ^~~~~~~ drivers/regulator/virtual.c:222:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "idle\n"); ^~~~~~~ drivers/regulator/virtual.c:224:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "standby\n"); ^~~~~~~ drivers/regulator/virtual.c:224:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "standby\n"); ^~~~~~~ drivers/regulator/virtual.c:226:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "unknown\n"); ^~~~~~~ drivers/regulator/virtual.c:226:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "unknown\n"); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. drivers/mtd/ssfdc.c:337:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(ssfdc->logic_block_map, 0xff, sizeof(ssfdc->logic_block_m= ap[0]) * ^~~~~~ drivers/mtd/ssfdc.c:337:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(ssfdc->logic_block_map, 0xff, sizeof(ssfdc->logic_block_m= ap[0]) * ^~~~~~ drivers/mtd/ssfdc.c:400:3: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0xff, SECTOR_SIZE); ^~~~~~ drivers/mtd/ssfdc.c:400:3: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(buf, 0xff, SECTOR_SIZE); ^~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. drivers/mtd/sm_ftl.c:47:2: warning: Call to function 'strncpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(buf, sm_attr->data, sm_attr->len); ^~~~~~~ drivers/mtd/sm_ftl.c:47:2: note: Call to function 'strncpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'strncpy_s' in case of C11 strncpy(buf, sm_attr->data, sm_attr->len); ^~~~~~~ drivers/mtd/sm_ftl.c:250:4: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buffer, 0xFF, SM_SECTOR_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:250:4: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(buffer, 0xFF, SM_SECTOR_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:379:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&oob, 0xFF, SM_OOB_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:379:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(&oob, 0xFF, SM_OOB_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:441:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&oob, 0xFF, SM_OOB_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:441:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(&oob, 0xFF, SM_OOB_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:768:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(zone->lba_to_phys_table, -1, ftl->max_lba * 2); ^~~~~~ drivers/mtd/sm_ftl.c:768:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(zone->lba_to_phys_table, -1, ftl->max_lba * 2); ^~~~~~ drivers/mtd/sm_ftl.c:913:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ftl->cache_data + boffset, buffer, SM_SECTOR_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:913:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(ftl->cache_data + boffset, buffer, SM_SECTOR_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:925:2: warning: Call to function 'memcpy' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, ftl->cache_data + boffset, SM_SECTOR_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:925:2: note: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 memcpy(buffer, ftl->cache_data + boffset, SM_SECTOR_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:1042:3: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0xFF, SM_SECTOR_SIZE); ^~~~~~ drivers/mtd/sm_ftl.c:1042:3: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(buf, 0xFF, SM_SECTOR_SIZE); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 107 warnings generated. >> drivers/scsi/ufs/ufshcd.c:1166:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&new_pwr_info, &hba->clk_scaling.saved_pwr_info.i= nfo, ^~~~~~ drivers/scsi/ufs/ufshcd.c:1166:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&new_pwr_info, &hba->clk_scaling.saved_pwr_info.i= nfo, ^~~~~~ drivers/scsi/ufs/ufshcd.c:1169:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&new_pwr_info, &hba->pwr_info, ^~~~~~ drivers/scsi/ufs/ufshcd.c:1169:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&new_pwr_info, &hba->pwr_info, ^~~~~~ drivers/scsi/ufs/ufshcd.c:1175:4: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&hba->clk_scaling.saved_pwr_info.info, ^~~~~~ drivers/scsi/ufs/ufshcd.c:1175:4: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&hba->clk_scaling.saved_pwr_info.info, ^~~~~~ >> drivers/scsi/ufs/ufshcd.c:1388:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(stat, 0, sizeof(*stat)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:1388:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(stat, 0, sizeof(*stat)); ^~~~~~ >> drivers/scsi/ufs/ufshcd.c:1601:2: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(wq_name, sizeof(wq_name), "ufs_clkscaling_%d", ^~~~~~~~ drivers/scsi/ufs/ufshcd.c:1601:2: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(wq_name, sizeof(wq_name), "ufs_clkscaling_%d", ^~~~~~~~ drivers/scsi/ufs/ufshcd.c:1951:2: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(wq_name, ARRAY_SIZE(wq_name), "ufs_clk_gating_%d", ^~~~~~~~ drivers/scsi/ufs/ufshcd.c:1951:2: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(wq_name, ARRAY_SIZE(wq_name), "ufs_clk_gating_%d", ^~~~~~~~ drivers/scsi/ufs/ufshcd.c:2138:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(lrbp->sense_buffer, lrbp->ucd_rsp_ptr->sr.sense_d= ata, ^~~~~~ drivers/scsi/ufs/ufshcd.c:2138:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(lrbp->sense_buffer, lrbp->ucd_rsp_ptr->sr.sense_d= ata, ^~~~~~ drivers/scsi/ufs/ufshcd.c:2154:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&query_res->upiu_res, &lrbp->ucd_rsp_ptr->qr, QUERY_OSF_S= IZE); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2154:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&query_res->upiu_res, &lrbp->ucd_rsp_ptr->qr, QUERY_OSF_S= IZE); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2170:4: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(hba->dev_cmd.query.descriptor, descp, res= p_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2170:4: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(hba->dev_cmd.query.descriptor, descp, res= p_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2532:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(ucd_req_ptr->sc.cdb, 0, UFS_CDB_SIZE); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2532:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(ucd_req_ptr->sc.cdb, 0, UFS_CDB_SIZE); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2533:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ucd_req_ptr->sc.cdb, cmd->cmnd, cdb_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2533:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(ucd_req_ptr->sc.cdb, cmd->cmnd, cdb_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2535:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2535:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2567:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ucd_req_ptr->qr, &query->request.upiu_req, ^~~~~~ drivers/scsi/ufs/ufshcd.c:2567:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&ucd_req_ptr->qr, &query->request.upiu_req, ^~~~~~ drivers/scsi/ufs/ufshcd.c:2572:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ucd_req_ptr + 1, query->descriptor, len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2572:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(ucd_req_ptr + 1, query->descriptor, len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2574:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2574:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2581:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(ucd_req_ptr, 0, sizeof(struct utp_upiu_req)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2581:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(ucd_req_ptr, 0, sizeof(struct utp_upiu_req)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2591:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:2591:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:3021:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(*request, 0, sizeof(struct ufs_query_req)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:3021:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(*request, 0, sizeof(struct ufs_query_req)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:3022:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(*response, 0, sizeof(struct ufs_query_res)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:3022:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(*response, 0, sizeof(struct ufs_query_res)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:3424:4: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(param_read_buf, &desc_buf[param_offset], ^~~~~~ drivers/scsi/ufs/ufshcd.c:3424:4: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(param_read_buf, &desc_buf[param_offset], ^~~~~~ drivers/scsi/ufs/ufshcd.c:4379:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&hba->pwr_info, pwr_mode, ^~~~~~ drivers/scsi/ufs/ufshcd.c:4379:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&hba->pwr_info, pwr_mode, -- ^ drivers/scsi/ufs/ufshcd.c:5250:43: note: Assuming field 'active_uic_cmd'= is null if ((intr_status & UIC_COMMAND_COMPL) && hba->active_uic_cmd) { ^~~~~~~~~~~~~~~~~~~ drivers/scsi/ufs/ufshcd.c:5250:6: note: Assuming pointer value is null if ((intr_status & UIC_COMMAND_COMPL) && hba->active_uic_cmd) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/ufs/ufshcd.c:5250:2: note: Taking false branch if ((intr_status & UIC_COMMAND_COMPL) && hba->active_uic_cmd) { ^ drivers/scsi/ufs/ufshcd.c:5261:7: note: Assuming the condition is true if ((intr_status & UFSHCD_UIC_PWR_MASK) && hba->uic_async_done) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/ufs/ufshcd.c:5261:6: note: Left side of '&&' is true if ((intr_status & UFSHCD_UIC_PWR_MASK) && hba->uic_async_done) { ^ drivers/scsi/ufs/ufshcd.c:5261:45: note: Assuming field 'uic_async_done'= is non-null if ((intr_status & UFSHCD_UIC_PWR_MASK) && hba->uic_async_done) { ^~~~~~~~~~~~~~~~~~~ drivers/scsi/ufs/ufshcd.c:5261:2: note: Taking true branch if ((intr_status & UFSHCD_UIC_PWR_MASK) && hba->uic_async_done) { ^ drivers/scsi/ufs/ufshcd.c:5262:35: note: Access to field 'cmd_active' re= sults in a dereference of a null pointer (loaded from field 'active_uic_cmd= ') hba->active_uic_cmd->cmd_active =3D 0; ~~~~~~~~~~~~~~ ^ drivers/scsi/ufs/ufshcd.c:6633:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(hba->utmrdl_base_addr + task_tag, treq, sizeof(*treq)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6633:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(hba->utmrdl_base_addr + task_tag, treq, sizeof(*treq)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6660:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(treq, hba->utmrdl_base_addr + task_tag, sizeof(*t= req)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6660:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(treq, hba->utmrdl_base_addr + task_tag, sizeof(*t= req)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6780:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(lrbp->ucd_req_ptr, req_upiu, sizeof(*lrbp->ucd_req_ptr)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6780:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(lrbp->ucd_req_ptr, req_upiu, sizeof(*lrbp->ucd_req_ptr)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6786:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(lrbp->ucd_req_ptr + 1, desc_buff, *buff_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6786:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(lrbp->ucd_req_ptr + 1, desc_buff, *buff_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6790:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6790:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(lrbp->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6805:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(rsp_upiu, lrbp->ucd_rsp_ptr, sizeof(*rsp_upiu)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6805:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(rsp_upiu, lrbp->ucd_rsp_ptr, sizeof(*rsp_upiu)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6812:4: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(desc_buff, descp, resp_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6812:4: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(desc_buff, descp, resp_len); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6875:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&treq.upiu_req, req_upiu, sizeof(*req_upiu)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6875:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&treq.upiu_req, req_upiu, sizeof(*req_upiu)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6888:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(rsp_upiu, &treq.upiu_rsp, sizeof(*rsp_upiu)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:6888:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(rsp_upiu, &treq.upiu_rsp, sizeof(*rsp_upiu)); ^~~~~~ drivers/scsi/ufs/ufshcd.c:8011:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&hba->clk_scaling.saved_pwr_info.info, ^~~~~~ drivers/scsi/ufs/ufshcd.c:8011:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&hba->clk_scaling.saved_pwr_info.info, ^~~~~~ drivers/scsi/ufs/ufshcd.c:9583:2: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(eh_wq_name, sizeof(eh_wq_name), "ufs_eh_wq_%d", ^~~~~~~~ drivers/scsi/ufs/ufshcd.c:9583:2: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(eh_wq_name, sizeof(eh_wq_name), "ufs_eh_wq_%d", ^~~~~~~~ Suppressed 73 warnings (73 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. >> drivers/fpga/dfl-afu-error.c:128:9: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%llx\n", (unsigned long long)error); ^~~~~~~ drivers/fpga/dfl-afu-error.c:128:9: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%llx\n", (unsigned long long)error); ^~~~~~~ drivers/fpga/dfl-afu-error.c:159:9: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%llx\n", (unsigned long long)error); ^~~~~~~ drivers/fpga/dfl-afu-error.c:159:9: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%llx\n", (unsigned long long)error); ^~~~~~~ drivers/fpga/dfl-afu-error.c:178:9: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%016llx%016llx\n", ^~~~~~~ drivers/fpga/dfl-afu-error.c:178:9: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%016llx%016llx\n", ^~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. drivers/media/tuners/tda8290.c:752:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&fe->ops.analog_ops, &tda8290_ops, ^~~~~~ drivers/media/tuners/tda8290.c:752:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&fe->ops.analog_ops, &tda8290_ops, ^~~~~~ drivers/media/tuners/tda8290.c:758:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&fe->ops.analog_ops, &tda8295_ops, ^~~~~~ drivers/media/tuners/tda8290.c:758:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&fe->ops.analog_ops, &tda8295_ops, ^~~~~~ drivers/media/tuners/tda8290.c:813:2: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops)); ^~~~~~ drivers/media/tuners/tda8290.c:813:2: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(&fe->ops.analog_ops, 0, sizeof(struct analog_demod_ops)); ^~~~~~ Suppressed 45 warnings (43 in non-user code, 2 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> drivers/rtc/rtc-isl12026.c:355:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(payload + 2, v + num_written, chunk_size); ^~~~~~ drivers/rtc/rtc-isl12026.c:355:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(payload + 2, v + num_written, chunk_size); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 42 warnings generated. drivers/mtd/nand/raw/brcmnand/brcmnand.c:1996:2: warning: Call to functi= on 'memset' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memset_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(desc, 0, sizeof(*desc)); ^~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:1996:2: note: Call to function = 'memset' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memset_s' in case of C11 memset(desc, 0, sizeof(*desc)); ^~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2212:4: warning: Call to functi= on 'memset' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memset_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(oob, 0x99, mtd->oobsize); ^~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2212:4: note: Call to function = 'memset' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memset_s' in case of C11 memset(oob, 0x99, mtd->oobsize); ^~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2259:4: warning: Value stored t= o 'err' is never read [clang-analyzer-deadcode.DeadStores] err =3D brcmnand_read_by_pio(mtd, chip, addr, tr= ans, buf, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2259:4: note: Value stored to '= err' is never read err =3D brcmnand_read_by_pio(mtd, chip, addr, tr= ans, buf, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2551:9: warning: Call to functi= on 'sprintf' is insecure as it does not provide bounding of the memory buff= er or security checks introduced in the C11 standard. Replace with analogou= s functions that support length arguments or provides boundary checks such = as 'sprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.Deprecat= edOrUnsafeBufferHandling] buf +=3D sprintf(buf, ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2551:9: note: Call to function = 'sprintf' is insecure as it does not provide bounding of the memory buffer = or security checks introduced in the C11 standard. Replace with analogous f= unctions that support length arguments or provides boundary checks such as = 'sprintf_s' in case of C11 buf +=3D sprintf(buf, ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2561:3: warning: Call to functi= on 'sprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'sprintf_s' in case of C11 [cl= ang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf, ", Hamming ECC"); ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2561:3: note: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 sprintf(buf, ", Hamming ECC"); ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2563:3: warning: Call to functi= on 'sprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'sprintf_s' in case of C11 [cl= ang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf, ", BCH-%u (1KiB sector)", cfg->ecc_level <<= 1); ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2563:3: note: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 sprintf(buf, ", BCH-%u (1KiB sector)", cfg->ecc_level <<= 1); ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2565:3: warning: Call to functi= on 'sprintf' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'sprintf_s' in case of C11 [cl= ang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(buf, ", BCH-%u", cfg->ecc_level); ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2565:3: note: Call to function = 'sprintf' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'sprintf_s' in case of C11 sprintf(buf, ", BCH-%u", cfg->ecc_level); ^~~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2592:2: warning: Call to functi= on 'memset' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memset_s' in case of C11 [clan= g-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cfg, 0, sizeof(*cfg)); ^~~~~~ drivers/mtd/nand/raw/brcmnand/brcmnand.c:2592:2: note: Call to function = 'memset' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memset_s' in case of C11 memset(cfg, 0, sizeof(*cfg)); ^~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. lib/raid6/algos.c:149:6: warning: Value stored to 'start' during its ini= tialization is never read [clang-analyzer-deadcode.DeadStores] int start =3D (disks>>1)-1, stop =3D disks-3; /* work on t= he second half of the disks */ ^~~~~ ~~~~~~~~~~~~ lib/raid6/algos.c:149:6: note: Value stored to 'start' during its initia= lization is never read int start =3D (disks>>1)-1, stop =3D disks-3; /* work on t= he second half of the disks */ ^~~~~ ~~~~~~~~~~~~ lib/raid6/algos.c:149:28: warning: Value stored to 'stop' during its ini= tialization is never read [clang-analyzer-deadcode.DeadStores] int start =3D (disks>>1)-1, stop =3D disks-3; /* work on t= he second half of the disks */ ^~~~ ~~~~~~~ lib/raid6/algos.c:149:28: note: Value stored to 'stop' during its initia= lization is never read int start =3D (disks>>1)-1, stop =3D disks-3; /* work on t= he second half of the disks */ ^~~~ ~~~~~~~ lib/raid6/algos.c:153:7: warning: Value stored to 'bestgenperf' is never= read [clang-analyzer-deadcode.DeadStores] for (bestgenperf =3D 0, best =3D NULL, algo =3D raid6_algos; *al= go; algo++) { ^ ~ lib/raid6/algos.c:153:7: note: Value stored to 'bestgenperf' is never re= ad for (bestgenperf =3D 0, best =3D NULL, algo =3D raid6_algos; *al= go; algo++) { ^ ~ lib/raid6/algos.c:255:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(p, raid6_gfmul, 65536); ^~~~~~ lib/raid6/algos.c:255:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(p, raid6_gfmul, 65536); ^~~~~~ lib/raid6/algos.c:260:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(p, raid6_gfmul, (disks - 2) * PAGE_SIZE % 65536); ^~~~~~ lib/raid6/algos.c:260:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(p, raid6_gfmul, (disks - 2) * PAGE_SIZE % 65536); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. -- ^ drivers/media/dvb-core/dvb_ca_en50221.c:686:7: note: Assuming 'status' i= s >=3D 0 if (status < 0) ^~~~~~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:686:3: note: Taking false branch if (status < 0) ^ drivers/media/dvb-core/dvb_ca_en50221.c:691:7: note: Assuming 'status' i= s >=3D 0 if (status < 0) ^~~~~~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:691:3: note: Taking false branch if (status < 0) ^ drivers/media/dvb-core/dvb_ca_en50221.c:696:8: note: 'ebuf' is non-null if (!ebuf) { ^~~~ drivers/media/dvb-core/dvb_ca_en50221.c:696:3: note: Taking false branch if (!ebuf) { ^ drivers/media/dvb-core/dvb_ca_en50221.c:713:8: note: Assuming 'bytes_rea= d' is <=3D 'ecount' if (bytes_read > ecount) { ^~~~~~~~~~~~~~~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:713:4: note: Taking false branch if (bytes_read > ecount) { ^ drivers/media/dvb-core/dvb_ca_en50221.c:722:15: note: Assuming 'i' is >= =3D 'bytes_read' for (i =3D 0; i < bytes_read; i++) { ^~~~~~~~~~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:722:3: note: Loop condition is f= alse. Execution continues on line 734 for (i =3D 0; i < bytes_read; i++) { ^ drivers/media/dvb-core/dvb_ca_en50221.c:736:7: note: Assuming 'status' i= s >=3D 0 if (status < 0) ^~~~~~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:736:3: note: Taking false branch if (status < 0) ^ drivers/media/dvb-core/dvb_ca_en50221.c:738:7: note: Assuming the condit= ion is false if (status & STATUSREG_RE) { ^~~~~~~~~~~~~~~~~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:738:3: note: Taking false branch if (status & STATUSREG_RE) { ^ drivers/media/dvb-core/dvb_ca_en50221.c:749:7: note: 'ebuf' is non-null if (!ebuf) { ^~~~ drivers/media/dvb-core/dvb_ca_en50221.c:749:2: note: Taking false branch if (!ebuf) { ^ drivers/media/dvb-core/dvb_ca_en50221.c:759:2: note: Assuming 'dvb_ca_en= 50221_debug' is 0 dprintk("Received CA packet for slot %i connection id 0x%x last_= frag:%i size:0x%x\n", slot, ^ drivers/media/dvb-core/dvb_ca_en50221.c:39:6: note: expanded from macro = 'dprintk' if (dvb_ca_en50221_debug) \ ^~~~~~~~~~~~~~~~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:759:2: note: Taking false branch dprintk("Received CA packet for slot %i connection id 0x%x last_= frag:%i size:0x%x\n", slot, ^ drivers/media/dvb-core/dvb_ca_en50221.c:39:2: note: expanded from macro = 'dprintk' if (dvb_ca_en50221_debug) \ ^ drivers/media/dvb-core/dvb_ca_en50221.c:759:2: note: Loop condition is f= alse. Exiting loop dprintk("Received CA packet for slot %i connection id 0x%x last_= frag:%i size:0x%x\n", slot, ^ drivers/media/dvb-core/dvb_ca_en50221.c:38:30: note: expanded from macro= 'dprintk' #define dprintk(fmt, arg...) do { \ ^ drivers/media/dvb-core/dvb_ca_en50221.c:763:14: note: The left operand o= f '&' is a garbage value if ((buf[1] & 0x80) =3D=3D 0x00) ~~~~~~ ^ drivers/media/dvb-core/dvb_ca_en50221.c:1886:3: warning: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(sl, 0, sizeof(struct dvb_ca_slot)); ^~~~~~ drivers/media/dvb-core/dvb_ca_en50221.c:1886:3: note: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 memset(sl, 0, sizeof(struct dvb_ca_slot)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 19 warnings generated. drivers/hwmon/aspeed-pwm-tacho.c:602:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", priv->pwm_port_fan_ctrl[index]); ^~~~~~~ drivers/hwmon/aspeed-pwm-tacho.c:602:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", priv->pwm_port_fan_ctrl[index]); ^~~~~~~ drivers/hwmon/aspeed-pwm-tacho.c:617:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", rpm); ^~~~~~~ drivers/hwmon/aspeed-pwm-tacho.c:617:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", rpm); ^~~~~~~ drivers/hwmon/aspeed-pwm-tacho.c:828:2: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(cdev->name, MAX_CDEV_NAME_LEN, "%pOFn%d", child, pwm_po= rt); ^~~~~~~~ drivers/hwmon/aspeed-pwm-tacho.c:828:2: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 snprintf(cdev->name, MAX_CDEV_NAME_LEN, "%pOFn%d", child, pwm_po= rt); ^~~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. >> drivers/input/mouse/trackpoint.c:114:9: warning: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", value); ^~~~~~~ drivers/input/mouse/trackpoint.c:114:9: note: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", value); ^~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. fs/hpfs/ea.c:89:4: warning: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureAP= I.DeprecatedOrUnsafeBufferHandling] memcpy(buf, ea_data(ea), ea_valuelen(ea)); ^~~~~~ fs/hpfs/ea.c:89:4: note: Call to function 'memcpy' is insecure as it doe= s not provide security checks introduced in the C11 standard. Replace with = analogous functions that support length arguments or provides boundary chec= ks such as 'memcpy_s' in case of C11 memcpy(buf, ea_data(ea), ea_valuelen(ea)); ^~~~~~ fs/hpfs/ea.c:146:4: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(ret, ea_data(ea), ea_valuelen(ea)); ^~~~~~ fs/hpfs/ea.c:146:4: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(ret, ea_data(ea), ea_valuelen(ea)); ^~~~~~ fs/hpfs/ea.c:207:5: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(ea_data(ea), data, size); ^~~~~~ fs/hpfs/ea.c:207:5: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(ea_data(ea), data, size); ^~~~~~ fs/hpfs/ea.c:260:3: warning: Call to function 'strcpy' is insecure as it= does not provide bounding of the memory buffer. Replace unbounded copy fun= ctions with analogous functions that support length arguments such as 'strl= cpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(ea->name, key); ^~~~~~ fs/hpfs/ea.c:260:3: note: Call to function 'strcpy' is insecure as it do= es not provide bounding of the memory buffer. Replace unbounded copy functi= ons with analogous functions that support length arguments such as 'strlcpy= '. CWE-119 strcpy(ea->name, key); ^~~~~~ fs/hpfs/ea.c:261:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(ea_data(ea), data, size); ^~~~~~ fs/hpfs/ea.c:261:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(ea_data(ea), data, size); ^~~~~~ fs/hpfs/ea.c:276:3: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(data, fnode_ea(fnode), le16_to_cpu(fnode->ea_size= _s)); ^~~~~~ fs/hpfs/ea.c:276:3: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(data, fnode_ea(fnode), le16_to_cpu(fnode->ea_size= _s)); ^~~~~~ fs/hpfs/ea.c:332:6: warning: Call to function 'memcpy' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecureA= PI.DeprecatedOrUnsafeBufferHandling] memcpy(b2, b1, 512); ^~~~~~ fs/hpfs/ea.c:332:6: note: Call to function 'memcpy' is insecure as it do= es not provide security checks introduced in the C11 standard. Replace with= analogous functions that support length arguments or provides boundary che= cks such as 'memcpy_s' in case of C11 memcpy(b2, b1, 512); ^~~~~~ Suppressed 44 warnings (44 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 65 warnings generated. net/ethtool/common.c:452:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(link_ksettings, 0, sizeof(*link_ksettings)); ^~~~~~ net/ethtool/common.c:452:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(link_ksettings, 0, sizeof(*link_ksettings)); ^~~~~~ net/ethtool/common.c:545:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(info, 0, sizeof(*info)); ^~~~~~ net/ethtool/common.c:545:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(info, 0, sizeof(*info)); ^~~~~~ Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 98 warnings generated. Suppressed 98 warnings (97 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. net/netfilter/nf_log.c:226:3: warning: Call to function 'vsnprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] vsnprintf(prefix, sizeof(prefix), fmt, args); ^~~~~~~~~ net/netfilter/nf_log.c:226:3: note: Call to function 'vsnprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'vsnprintf_s' in case of C11 vsnprintf(prefix, sizeof(prefix), fmt, args); ^~~~~~~~~ net/netfilter/nf_log.c:250:3: warning: Call to function 'vsnprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] vsnprintf(prefix, sizeof(prefix), fmt, args); ^~~~~~~~~ net/netfilter/nf_log.c:250:3: note: Call to function 'vsnprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'vsnprintf_s' in case of C11 vsnprintf(prefix, sizeof(prefix), fmt, args); ^~~~~~~~~ net/netfilter/nf_log.c:273:9: warning: Call to function 'vsnprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'vsnprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] len =3D vsnprintf(m->buf + m->count, S_SIZE - m->count, = f, args); ^~~~~~~~~ net/netfilter/nf_log.c:273:9: note: Call to function 'vsnprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'vsnprintf_s' in case of C11 len =3D vsnprintf(m->buf + m->count, S_SIZE - m->count, = f, args); ^~~~~~~~~ net/netfilter/nf_log.c:318:14: warning: Value stored to 'net' during its= initialization is never read [clang-analyzer-deadcode.DeadStores] struct net *net =3D seq_file_net(seq); ^~~ ~~~~~~~~~~~~~~~~~ net/netfilter/nf_log.c:318:14: note: Value stored to 'net' during its in= itialization is never read struct net *net =3D seq_file_net(seq); ^~~ ~~~~~~~~~~~~~~~~~ net/netfilter/nf_log.c:330:14: warning: Value stored to 'net' during its= initialization is never read [clang-analyzer-deadcode.DeadStores] struct net *net =3D seq_file_net(s); ^~~ ~~~~~~~~~~~~~~~ net/netfilter/nf_log.c:330:14: note: Value stored to 'net' during its in= itialization is never read struct net *net =3D seq_file_net(s); ^~~ ~~~~~~~~~~~~~~~ net/netfilter/nf_log.c:470:4: warning: Call to function 'snprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(nf_log_sysctl_fnames[i], ^~~~~~~~ net/netfilter/nf_log.c:470:4: note: Call to function 'snprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'snprintf_s' in case of C11 snprintf(nf_log_sysctl_fnames[i], ^~~~~~~~ Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. >> drivers/media/tuners/tea5767.c:289:2: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buffer, 0, 5); ^~~~~~ drivers/media/tuners/tea5767.c:289:2: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(buffer, 0, 5); ^~~~~~ >> drivers/media/tuners/tea5767.c:419:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&priv->ctrl, priv_cfg, sizeof(priv->ctrl)); ^~~~~~ drivers/media/tuners/tea5767.c:419:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&priv->ctrl, priv_cfg, sizeof(priv->ctrl)); ^~~~~~ drivers/media/tuners/tea5767.c:460:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&fe->ops.tuner_ops, &tea5767_tuner_ops, ^~~~~~ drivers/media/tuners/tea5767.c:460:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&fe->ops.tuner_ops, &tea5767_tuner_ops, ^~~~~~ Suppressed 45 warnings (43 in non-user code, 2 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/watchdog/ziirave_wdt.c:244:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(packet + 3, data, len); ^~~~~~ drivers/watchdog/ziirave_wdt.c:244:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(packet + 3, data, len); ^~~~~~ drivers/watchdog/ziirave_wdt.c:245:2: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(packet + 3 + len, 0, ZIIRAVE_FIRM_PKT_DATA_SIZE - len); ^~~~~~ drivers/watchdog/ziirave_wdt.c:245:2: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(packet + 3 + len, 0, ZIIRAVE_FIRM_PKT_DATA_SIZE - len); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. drivers/md/raid0.c:51:11: warning: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] len +=3D snprintf(line+len, 200-len, "%s%s", k?"= /":"", ^~~~~~~~ drivers/md/raid0.c:51:11: note: Call to function 'snprintf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'snprintf_s' in case of C11 len +=3D snprintf(line+len, 200-len, "%s%s", k?"= /":"", ^~~~~~~~ drivers/md/raid0.c:332:3: warning: Division by zero [clang-analyzer-core= .DivideZero] sector_div(chunk, chunk_sects * zone->nb_dev); ^ include/linux/math.h:121:26: note: expanded from macro 'sector_div' #define sector_div(a, b) do_div(a, b) ^~~~~~~~~~~~ include/asm-generic/div64.h:235:25: note: expanded from macro 'do_div' __rem =3D (uint32_t)(n) % __base; \ ~~~~~~~~~~~~~~^~~~~~~~ drivers/md/raid0.c:320:6: note: Calling 'is_power_of_2' if (is_power_of_2(chunk_sects)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/log2.h:47:10: note: Assuming 'n' is equal to 0 return (n !=3D 0 && ((n & (n - 1)) =3D=3D 0)); ^~~~~~ include/linux/log2.h:47:17: note: Left side of '&&' is false return (n !=3D 0 && ((n & (n - 1)) =3D=3D 0)); ^ include/linux/log2.h:47:2: note: Returning zero, which participates in a= condition later return (n !=3D 0 && ((n & (n - 1)) =3D=3D 0)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/md/raid0.c:320:6: note: Returning from 'is_power_of_2' if (is_power_of_2(chunk_sects)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/md/raid0.c:320:2: note: Taking false branch if (is_power_of_2(chunk_sects)) { ^ drivers/md/raid0.c:330:19: note: Left side of '&&' is false sect_in_chunk =3D sector_div(sector, chunk_sects); ^ include/linux/math.h:121:26: note: expanded from macro 'sector_div' #define sector_div(a, b) do_div(a, b) ^ include/asm-generic/div64.h:223:35: note: expanded from macro 'do_div' if (__builtin_constant_p(__base) && \ ^ drivers/md/raid0.c:330:19: note: Left side of '&&' is false sect_in_chunk =3D sector_div(sector, chunk_sects); ^ include/linux/math.h:121:26: note: expanded from macro 'sector_div' #define sector_div(a, b) do_div(a, b) ^ include/asm-generic/div64.h:227:42: note: expanded from macro 'do_div' } else if (__builtin_constant_p(__base) && \ ^ drivers/md/raid0.c:330:19: note: Assuming the condition is false sect_in_chunk =3D sector_div(sector, chunk_sects); ^ include/linux/math.h:121:26: note: expanded from macro 'sector_div' #define sector_div(a, b) do_div(a, b) ^~~~~~~~~~~~ include/asm-generic/div64.h:234:20: note: expanded from macro 'do_div' } else if (likely(((n) >> 32) =3D=3D 0)) { \ ~~~~~~~^~~~~~~~~~~~~~~~~ include/linux/compiler.h:77:40: note: expanded from macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^ drivers/md/raid0.c:330:19: note: Taking false branch sect_in_chunk =3D sector_div(sector, chunk_sects); ^ include/linux/math.h:121:26: note: expanded from macro 'sector_div' #define sector_div(a, b) do_div(a, b) -- ^~~~~~~ drivers/hwmon/atxp1.c:83:9: note: Call to function 'sprintf' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'sprintf_s' in case of C11 size =3D sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1= _VIDMASK, ^~~~~~~ drivers/hwmon/atxp1.c:159:9: warning: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] size =3D sprintf(buf, "0x%02x\n", data->reg.gpio1 & ATXP1_GPIO1M= ASK); ^~~~~~~ drivers/hwmon/atxp1.c:159:9: note: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 size =3D sprintf(buf, "0x%02x\n", data->reg.gpio1 & ATXP1_GPIO1M= ASK); ^~~~~~~ drivers/hwmon/atxp1.c:204:9: warning: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] size =3D sprintf(buf, "0x%02x\n", data->reg.gpio2); ^~~~~~~ drivers/hwmon/atxp1.c:204:9: note: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 size =3D sprintf(buf, "0x%02x\n", data->reg.gpio2); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. drivers/hwmon/smsc47b397.c:164:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", temp_from_reg(data->temp[attr->index= ])); ^~~~~~~ drivers/hwmon/smsc47b397.c:164:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", temp_from_reg(data->temp[attr->index= ])); ^~~~~~~ drivers/hwmon/smsc47b397.c:188:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", fan_from_reg(data->fan[attr->index])= ); ^~~~~~~ drivers/hwmon/smsc47b397.c:188:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", fan_from_reg(data->fan[attr->index])= ); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 53 warnings generated. drivers/hwmon/smsc47m192.c:175:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr], nr)); ^~~~~~~ drivers/hwmon/smsc47m192.c:175:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr], nr)); ^~~~~~~ drivers/hwmon/smsc47m192.c:184:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); ^~~~~~~ drivers/hwmon/smsc47m192.c:184:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); ^~~~~~~ drivers/hwmon/smsc47m192.c:193:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr)); ^~~~~~~ drivers/hwmon/smsc47m192.c:193:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr)); ^~~~~~~ drivers/hwmon/smsc47m192.c:272:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); ^~~~~~~ drivers/hwmon/smsc47m192.c:272:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); ^~~~~~~ drivers/hwmon/smsc47m192.c:281:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); ^~~~~~~ drivers/hwmon/smsc47m192.c:281:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); ^~~~~~~ drivers/hwmon/smsc47m192.c:290:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); ^~~~~~~ drivers/hwmon/smsc47m192.c:290:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); ^~~~~~~ drivers/hwmon/smsc47m192.c:345:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])= ); ^~~~~~~ drivers/hwmon/smsc47m192.c:345:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])= ); ^~~~~~~ drivers/hwmon/smsc47m192.c:404:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); ^~~~~~~ drivers/hwmon/smsc47m192.c:404:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); ^~~~~~~ drivers/hwmon/smsc47m192.c:412:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->vrm); ^~~~~~~ drivers/hwmon/smsc47m192.c:412:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->vrm); ^~~~~~~ drivers/hwmon/smsc47m192.c:440:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", (data->alarms & nr) ? 1 : 0); ^~~~~~~ drivers/hwmon/smsc47m192.c:440:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", (data->alarms & nr) ? 1 : 0); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. >> drivers/hwmon/occ/p8_i2c.c:76:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&buf[1], &data[4], sizeof(u32)); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:76:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(&buf[1], &data[4], sizeof(u32)); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:77:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&buf[2], data, sizeof(u32)); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:77:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(&buf[2], data, sizeof(u32)); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:93:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, &data0, 4); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:93:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, &data0, 4); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:94:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf + 4, &data1, 4); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:94:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(buf + 4, &data1, 4); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:104:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&data0, data, min_t(size_t, len, 4)); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:104:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&data0, data, min_t(size_t, len, 4)); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:107:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&data1, data + 4, min_t(size_t, len, 4)); ^~~~~~ drivers/hwmon/occ/p8_i2c.c:107:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&data1, data + 4, min_t(size_t, len, 4)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/staging/gs_fpgaboot/gs_fpgaboot.c:37:2: warning: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, bitdata + *offset, rdsize); ^~~~~~ drivers/staging/gs_fpgaboot/gs_fpgaboot.c:37:2: note: Call to function '= memcpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, bitdata + *offset, rdsize); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 67 warnings generated. drivers/staging/most/net/net.c:126:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buff, skb->data + ETH_HLEN, payload_len); ^~~~~~ drivers/staging/most/net/net.c:126:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(buff, skb->data + ETH_HLEN, payload_len); ^~~~~~ drivers/staging/most/net/net.c:157:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buff, skb->data, skb->len); ^~~~~~ drivers/staging/most/net/net.c:157:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(buff, skb->data, skb->len); ^~~~~~ Suppressed 65 warnings (65 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. fs/ext4/indirect.c:155:47: warning: The right operand of '+' is a garbag= e value [clang-analyzer-core.UndefinedBinaryOperatorResult] add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); ^ fs/ext4/indirect.c:1236:6: note: Assuming 'end' is < 'max_block' if (end >=3D max_block) ^~~~~~~~~~~~~~~~ fs/ext4/indirect.c:1236:2: note: Taking false branch if (end >=3D max_block) ^ fs/ext4/indirect.c:1238:7: note: Assuming 'start' is < 'end' if ((start >=3D end) || (start > max_block)) ^~~~~~~~~~~~ fs/ext4/indirect.c:1238:6: note: Left side of '||' is false if ((start >=3D end) || (start > max_block)) ^ fs/ext4/indirect.c:1238:25: note: Assuming 'start' is <=3D 'max_block' if ((start >=3D end) || (start > max_block)) ^~~~~~~~~~~~~~~~~ fs/ext4/indirect.c:1238:2: note: Taking false branch if ((start >=3D end) || (start > max_block)) ^ fs/ext4/indirect.c:1241:6: note: Calling 'ext4_block_to_path' n =3D ext4_block_to_path(inode, start, offsets, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/indirect.c:86:6: note: Assuming 'i_block' is >=3D 'direct_blocks' if (i_block < direct_blocks) { ^~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/indirect.c:86:2: note: Taking false branch if (i_block < direct_blocks) { ^ fs/ext4/indirect.c:89:13: note: Assuming the condition is false } else if ((i_block -=3D direct_blocks) < indirect_blocks) { -- 70 warnings generated. net/batman-adv/network-coding.c:484:2: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(key->prev_hop, src, sizeof(key->prev_hop)); ^~~~~~ net/batman-adv/network-coding.c:484:2: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(key->prev_hop, src, sizeof(key->prev_hop)); ^~~~~~ net/batman-adv/network-coding.c:485:2: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(key->next_hop, dst, sizeof(key->next_hop)); ^~~~~~ net/batman-adv/network-coding.c:485:2: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(key->next_hop, dst, sizeof(key->next_hop)); ^~~~~~ net/batman-adv/network-coding.c:1649:2: warning: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&coded_packet_tmp, skb->data, sizeof(coded_packet_tmp)); ^~~~~~ net/batman-adv/network-coding.c:1649:2: note: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 memcpy(&coded_packet_tmp, skb->data, sizeof(coded_packet_tmp)); ^~~~~~ net/batman-adv/network-coding.c:1650:2: warning: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ðhdr_tmp, skb_mac_header(skb), sizeof(ethhdr_tmp)); ^~~~~~ net/batman-adv/network-coding.c:1650:2: note: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 memcpy(ðhdr_tmp, skb_mac_header(skb), sizeof(ethhdr_tmp)); ^~~~~~ Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 72 warnings generated. Suppressed 72 warnings (72 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/leds/leds-lp3952.c:104:2: warning: Call to function 'strncpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'strncpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] strncpy(dest, str, LP3952_LABEL_MAX_LEN); ^~~~~~~ drivers/leds/leds-lp3952.c:104:2: note: Call to function 'strncpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'strncpy_s' in case of C11 strncpy(dest, str, LP3952_LABEL_MAX_LEN); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. drivers/leds/leds-max8997.c:175:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret +=3D sprintf(buf, "FLASH\n"); ^~~~~~~ drivers/leds/leds-max8997.c:175:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 ret +=3D sprintf(buf, "FLASH\n"); ^~~~~~~ drivers/leds/leds-max8997.c:178:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret +=3D sprintf(buf, "MOVIE\n"); ^~~~~~~ drivers/leds/leds-max8997.c:178:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 ret +=3D sprintf(buf, "MOVIE\n"); ^~~~~~~ drivers/leds/leds-max8997.c:181:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret +=3D sprintf(buf, "FLASH_PIN_CONTROL\n"); ^~~~~~~ drivers/leds/leds-max8997.c:181:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 ret +=3D sprintf(buf, "FLASH_PIN_CONTROL\n"); ^~~~~~~ drivers/leds/leds-max8997.c:184:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret +=3D sprintf(buf, "MOVIE_PIN_CONTROL\n"); ^~~~~~~ drivers/leds/leds-max8997.c:184:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 ret +=3D sprintf(buf, "MOVIE_PIN_CONTROL\n"); ^~~~~~~ drivers/leds/leds-max8997.c:187:10: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret +=3D sprintf(buf, "NONE\n"); ^~~~~~~ drivers/leds/leds-max8997.c:187:10: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 ret +=3D sprintf(buf, "NONE\n"); ^~~~~~~ drivers/leds/leds-max8997.c:251:2: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(name, sizeof(name), "max8997-led%d", pdev->id); ^~~~~~~~ drivers/leds/leds-max8997.c:251:2: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(name, sizeof(name), "max8997-led%d", pdev->id); ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 31 warnings generated. >> drivers/input/mouse/cypress_ps2.c:114:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(param, 0, pktsize); ^~~~~~ drivers/input/mouse/cypress_ps2.c:114:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(param, 0, pktsize); ^~~~~~ >> drivers/input/mouse/cypress_ps2.c:124:2: warning: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(param, psmouse->packet, pktsize); ^~~~~~ drivers/input/mouse/cypress_ps2.c:124:2: note: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 memcpy(param, psmouse->packet, pktsize); ^~~~~~ drivers/input/mouse/cypress_ps2.c:267:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(param, 0, sizeof(param)); ^~~~~~ drivers/input/mouse/cypress_ps2.c:267:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(param, 0, sizeof(param)); ^~~~~~ drivers/input/mouse/cypress_ps2.c:449:2: warning: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(report_data, 0, sizeof(struct cytp_report_data)); ^~~~~~ drivers/input/mouse/cypress_ps2.c:449:2: note: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 memset(report_data, 0, sizeof(struct cytp_report_data)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. drivers/input/joystick/a3d.c:94:44: warning: The left operand of '<<' is= a garbage value due to array index out of bounds [clang-analyzer-core.Unde= finedBinaryOperatorResult] return (csum & 0x3f) !=3D ((data[count - 2] << 3) | data[count -= 1]); ^ drivers/input/joystick/a3d.c:257:6: note: Assuming 'a3d' is non-null if (!a3d || !input_dev) { ^~~~ drivers/input/joystick/a3d.c:257:6: note: Left side of '||' is false drivers/input/joystick/a3d.c:257:14: note: Assuming 'input_dev' is non-n= ull if (!a3d || !input_dev) { ^~~~~~~~~~ drivers/input/joystick/a3d.c:257:2: note: Taking false branch if (!a3d || !input_dev) { ^ drivers/input/joystick/a3d.c:268:6: note: Assuming 'err' is 0 if (err) ^~~ drivers/input/joystick/a3d.c:268:2: note: Taking false branch if (err) ^ drivers/input/joystick/a3d.c:271:6: note: Calling 'a3d_read_packet' i =3D a3d_read_packet(gameport, A3D_MAX_LENGTH, data); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/joystick/a3d.c:66:2: note: Loop condition is false. Exiti= ng loop local_irq_save(flags); ^ include/linux/irqflags.h:221:3: note: expanded from macro 'local_irq_sav= e' raw_local_irq_save(flags); \ ^ include/linux/irqflags.h:176:2: note: expanded from macro 'raw_local_irq= _save' do { \ ^ drivers/input/joystick/a3d.c:66:2: note: Assuming the condition is false local_irq_save(flags); ^ include/linux/irqflags.h:222:7: note: expanded from macro 'local_irq_sav= e' if (!raw_irqs_disabled_flags(flags)) \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/joystick/a3d.c:66:2: note: Taking false branch local_irq_save(flags); ^ include/linux/irqflags.h:222:3: note: expanded from macro 'local_irq_sav= e' if (!raw_irqs_disabled_flags(flags)) \ ^ drivers/input/joystick/a3d.c:66:2: note: Loop condition is false. Exiti= ng loop local_irq_save(flags); ^ include/linux/irqflags.h:220:2: note: expanded from macro 'local_irq_sav= e' do { \ ^ drivers/input/joystick/a3d.c:70:9: note: Assuming 't' is > 0 while (t > 0 && i < length) { ^~~~~ drivers/input/joystick/a3d.c:70:9: note: Left side of '&&' is true drivers/input/joystick/a3d.c:70:2: note: Loop condition is true. Enteri= ng loop body while (t > 0 && i < length) { ^ drivers/input/joystick/a3d.c:73:7: note: Assuming the condition is true if (~v & u & 0x10) { ^~~~~~~~~~~~~ drivers/input/joystick/a3d.c:73:3: note: Taking true branch if (~v & u & 0x10) { ^ drivers/input/joystick/a3d.c:70:9: note: Assuming 't' is <=3D 0 while (t > 0 && i < length) { ^~~~~ drivers/input/joystick/a3d.c:70:15: note: Left side of '&&' is false while (t > 0 && i < length) { ^ drivers/input/joystick/a3d.c:79:2: note: Taking false branch local_irq_restore(flags); ^ include/linux/irqflags.h:228:3: note: expanded from macro 'local_irq_res= tore' if (!raw_irqs_disabled_flags(flags)) \ ^ drivers/input/joystick/a3d.c:79:2: note: Assuming the condition is false local_irq_restore(flags); ^ -- ^~~~~~ drivers/mtd/ubi/vtbl.c:139:3: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(vtbl_rec->name + re->new_name_len, 0, ^~~~~~ drivers/mtd/ubi/vtbl.c:495:3: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&vtbl[i], &empty_vtbl_record, UBI_VTBL_RECORD_SIZ= E); ^~~~~~ drivers/mtd/ubi/vtbl.c:495:3: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(&vtbl[i], &empty_vtbl_record, UBI_VTBL_RECORD_SIZ= E); ^~~~~~ drivers/mtd/ubi/vtbl.c:546:3: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vol->name, vtbl[i].name, vol->name_len); ^~~~~~ drivers/mtd/ubi/vtbl.c:546:3: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(vol->name, vtbl[i].name, vol->name_len); ^~~~~~ drivers/mtd/ubi/vtbl.c:634:2: warning: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(vol->name, UBI_LAYOUT_VOLUME_NAME, vol->name_len + 1); ^~~~~~ drivers/mtd/ubi/vtbl.c:634:2: note: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 memcpy(vol->name, UBI_LAYOUT_VOLUME_NAME, vol->name_len + 1); ^~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/hwmon/ltc2945.c:286:2: warning: Value stored to 'ret' is never r= ead [clang-analyzer-deadcode.DeadStores] ret =3D regmap_update_bits(regmap, LTC2945_CONTROL, CONTROL_TEST= _MODE, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ drivers/hwmon/ltc2945.c:286:2: note: Value stored to 'ret' is never read ret =3D regmap_update_bits(regmap, LTC2945_CONTROL, CONTROL_TEST= _MODE, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. drivers/hwmon/ltc2947-core.c:295:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(alarms, 0, sizeof(alarms)); ^~~~~~ drivers/hwmon/ltc2947-core.c:295:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(alarms, 0, sizeof(alarms)); ^~~~~~ drivers/hwmon/ltc2947-core.c:336:9: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%lld\n", val); ^~~~~~~ drivers/hwmon/ltc2947-core.c:336:9: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%lld\n", val); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. drivers/hwmon/max1668.c:139:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->temp[index] * 1000); ^~~~~~~ drivers/hwmon/max1668.c:139:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->temp[index] * 1000); ^~~~~~~ drivers/hwmon/max1668.c:151:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->temp_max[index] * 1000); ^~~~~~~ drivers/hwmon/max1668.c:151:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->temp_max[index] * 1000); ^~~~~~~ drivers/hwmon/max1668.c:163:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->temp_min[index] * 1000); ^~~~~~~ drivers/hwmon/max1668.c:163:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->temp_min[index] * 1000); ^~~~~~~ drivers/hwmon/max1668.c:175:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", (data->alarms >> index) & 0x1); ^~~~~~~ drivers/hwmon/max1668.c:175:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", (data->alarms >> index) & 0x1); ^~~~~~~ drivers/hwmon/max1668.c:187:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", ^~~~~~~ drivers/hwmon/max1668.c:187:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> drivers/scsi/ufs/ufs-sysfs.c:305:3: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&hba->monitor, 0, sizeof(hba->monitor)); ^~~~~~ drivers/scsi/ufs/ufs-sysfs.c:305:3: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(&hba->monitor, 0, sizeof(hba->monitor)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. >> drivers/scsi/ufs/ufs_bsg.c:125:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&uc, &bsg_request->upiu_req.uc, UIC_CMD_SIZE); ^~~~~~ drivers/scsi/ufs/ufs_bsg.c:125:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&uc, &bsg_request->upiu_req.uc, UIC_CMD_SIZE); ^~~~~~ drivers/scsi/ufs/ufs_bsg.c:131:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&bsg_reply->upiu_rsp.uc, &uc, UIC_CMD_SIZE); ^~~~~~ drivers/scsi/ufs/ufs_bsg.c:131:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&bsg_reply->upiu_rsp.uc, &uc, UIC_CMD_SIZE); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 41 warnings generated. drivers/mtd/nand/raw/arasan-nand-controller.c:458:3: warning: Call to fu= nction 'memset' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memset_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(anand->hw_ecc, 0, chip->ecc.bytes); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:458:3: note: Call to funct= ion 'memset' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memset_s' in case of C11 memset(anand->hw_ecc, 0, chip->ecc.bytes); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:489:4: warning: Call to fu= nction 'memset' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memset_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(raw_buf, 0xFF, chip->ecc.size); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:489:4: note: Call to funct= ion 'memset' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memset_s' in case of C11 memset(raw_buf, 0xFF, chip->ecc.size); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:594:2: warning: Call to fu= nction 'memset' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memset_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(nfc_op, 0, sizeof(*nfc_op)); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:594:2: note: Call to funct= ion 'memset' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memset_s' in case of C11 memset(nfc_op, 0, sizeof(*nfc_op)); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:701:4: warning: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&buf[offset], &remainder, last_len); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:701:4: note: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&buf[offset], &remainder, last_len); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:703:4: warning: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&remainder, &buf[offset], last_len); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:703:4: note: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&remainder, &buf[offset], last_len); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:816:2: warning: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(subop->instrs[1].ctx.data.buf.in, &tmp, 1); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:816:2: note: Call to funct= ion 'memcpy' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(subop->instrs[1].ctx.data.buf.in, &tmp, 1); ^~~~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:1379:2: warning: Undefined= or garbage value returned to caller [clang-analyzer-core.uninitialized.Und= efReturn] return ret; ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1438:6: note: Assuming 'nf= c' is non-null if (!nfc) ^~~~ drivers/mtd/nand/raw/arasan-nand-controller.c:1438:2: note: Taking false= branch if (!nfc) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1447:2: note: Taking false= branch if (IS_ERR(nfc->base)) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1453:2: note: Taking false= branch if (IS_ERR(nfc->controller_clk)) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1457:2: note: Taking false= branch if (IS_ERR(nfc->bus_clk)) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1461:6: note: 'ret' is 0 if (ret) ^~~ drivers/mtd/nand/raw/arasan-nand-controller.c:1461:2: note: Taking false= branch if (ret) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1465:6: note: 'ret' is 0 if (ret) ^~~ drivers/mtd/nand/raw/arasan-nand-controller.c:1465:2: note: Taking false= branch if (ret) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1468:33: note: 64 is equal= to 64 ret =3D dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); ^ include/linux/dma-mapping.h:76:27: note: expanded from macro 'DMA_BIT_MA= SK' #define DMA_BIT_MASK(n) (((n) =3D=3D 64) ? ~0ULL : ((1ULL<<(n))-1)) ^~~ drivers/mtd/nand/raw/arasan-nand-controller.c:1468:33: note: '?' conditi= on is true ret =3D dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); ^ include/linux/dma-mapping.h:76:26: note: expanded from macro 'DMA_BIT_MA= SK' #define DMA_BIT_MASK(n) (((n) =3D=3D 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1469:6: note: Assuming 're= t' is 0 if (ret) ^~~ drivers/mtd/nand/raw/arasan-nand-controller.c:1469:2: note: Taking false= branch if (ret) ^ drivers/mtd/nand/raw/arasan-nand-controller.c:1473:6: note: 'ret' is 0 if (ret) -- ^ include/linux/minmax.h:28:26: note: expanded from macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ drivers/hwmon/max31730.c:219:2: note: The value -128000 is assigned to '= val' val =3D clamp_val(val, MAX31730_TEMP_MIN, MAX31730_TEMP_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hwmon/max31730.c:220:30: note: The result of the left shift is u= ndefined because the left operand is negative val =3D DIV_ROUND_CLOSEST(val << 4, 1000) << 4; ^ include/linux/math.h:87:18: note: expanded from macro 'DIV_ROUND_CLOSEST' typeof(x) __x =3D x; \ ^ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 94 warnings generated. net/bridge/br_netlink_tunnel.c:227:2: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(tinfo, 0, sizeof(*tinfo)); ^~~~~~ net/bridge/br_netlink_tunnel.c:227:2: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(tinfo, 0, sizeof(*tinfo)); ^~~~~~ net/bridge/br_netlink_tunnel.c:294:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tinfo_last, tinfo_curr, sizeof(struct vtunnel_inf= o)); ^~~~~~ net/bridge/br_netlink_tunnel.c:294:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(tinfo_last, tinfo_curr, sizeof(struct vtunnel_inf= o)); ^~~~~~ net/bridge/br_netlink_tunnel.c:321:7: warning: Branch condition evaluate= s to a garbage value [clang-analyzer-core.uninitialized.Branch] if (err) ^~~ net/bridge/br_netlink_tunnel.c:289:2: note: 'err' declared without an in= itial value int err; ^~~~~~~ net/bridge/br_netlink_tunnel.c:291:6: note: Assuming the condition is fa= lse if (tinfo_curr->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bridge/br_netlink_tunnel.c:291:2: note: Taking false branch if (tinfo_curr->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) { ^ net/bridge/br_netlink_tunnel.c:295:13: note: Assuming the condition is t= rue } else if (tinfo_curr->flags & BRIDGE_VLAN_INFO_RANGE_END) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bridge/br_netlink_tunnel.c:295:9: note: Taking true branch } else if (tinfo_curr->flags & BRIDGE_VLAN_INFO_RANGE_END) { ^ net/bridge/br_netlink_tunnel.c:299:7: note: Assuming the condition is fa= lse if (!(tinfo_last->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bridge/br_netlink_tunnel.c:299:3: note: Taking false branch if (!(tinfo_last->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN)) ^ net/bridge/br_netlink_tunnel.c:301:7: note: Assuming the condition is fa= lse if ((tinfo_curr->vid - tinfo_last->vid) !=3D ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bridge/br_netlink_tunnel.c:301:3: note: Taking false branch if ((tinfo_curr->vid - tinfo_last->vid) !=3D ^ net/bridge/br_netlink_tunnel.c:305:29: note: Assuming 'v' is > field 'vi= d' for (v =3D tinfo_last->vid; v <=3D tinfo_curr->vid; v++)= { ^~~~~~~~~~~~~~~~~~~~ net/bridge/br_netlink_tunnel.c:305:3: note: Loop condition is false. Exe= cution continues on line 318 for (v =3D tinfo_last->vid; v <=3D tinfo_curr->vid; v++)= { ^ net/bridge/br_netlink_tunnel.c:318:7: note: 'v_start' is null if (v_start && v_end) ^~~~~~~ net/bridge/br_netlink_tunnel.c:318:15: note: Left side of '&&' is false if (v_start && v_end) ^ net/bridge/br_netlink_tunnel.c:321:7: note: Branch condition evaluates t= o a garbage value if (err) ^~~ net/bridge/br_netlink_tunnel.c:324:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(tinfo_last, 0, sizeof(struct vtunnel_info)); ^~~~~~ net/bridge/br_netlink_tunnel.c:324:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(tinfo_last, 0, sizeof(struct vtunnel_info)); ^~~~~~ net/bridge/br_netlink_tunnel.c:325:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(tinfo_curr, 0, sizeof(struct vtunnel_info)); ^~~~~~ net/bridge/br_netlink_tunnel.c:325:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(tinfo_curr, 0, sizeof(struct vtunnel_info)); ^~~~~~ net/bridge/br_netlink_tunnel.c:334:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(tinfo_last, 0, sizeof(struct vtunnel_info)); ^~~~~~ net/bridge/br_netlink_tunnel.c:334:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(tinfo_last, 0, sizeof(struct vtunnel_info)); ^~~~~~ net/bridge/br_netlink_tunnel.c:335:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(tinfo_curr, 0, sizeof(struct vtunnel_info)); ^~~~~~ net/bridge/br_netlink_tunnel.c:335:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(tinfo_curr, 0, sizeof(struct vtunnel_info)); ^~~~~~ Suppressed 87 warnings (86 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> drivers/scsi/ufs/ufshcd-crypto.c:85:3: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cfg.crypto_key, key->raw, key->size/2); ^~~~~~ drivers/scsi/ufs/ufshcd-crypto.c:85:3: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(cfg.crypto_key, key->raw, key->size/2); ^~~~~~ drivers/scsi/ufs/ufshcd-crypto.c:86:3: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cfg.crypto_key + UFS_CRYPTO_KEY_MAX_SIZE/2, ^~~~~~ drivers/scsi/ufs/ufshcd-crypto.c:86:3: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(cfg.crypto_key + UFS_CRYPTO_KEY_MAX_SIZE/2, ^~~~~~ drivers/scsi/ufs/ufshcd-crypto.c:89:3: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cfg.crypto_key, key->raw, key->size); ^~~~~~ drivers/scsi/ufs/ufshcd-crypto.c:89:3: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(cfg.crypto_key, key->raw, key->size); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 56 warnings generated. drivers/md/persistent-data/dm-btree-remove.c:68:3: warning: Call to func= tion 'memmove' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memmove_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(key_ptr(n, 0), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:68:3: note: Call to functio= n 'memmove' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memmove_s' in case of C11 memmove(key_ptr(n, 0), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:71:3: warning: Call to func= tion 'memmove' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memmove_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(value_ptr(n, 0), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:71:3: note: Call to functio= n 'memmove' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memmove_s' in case of C11 memmove(value_ptr(n, 0), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:76:3: warning: Call to func= tion 'memmove' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memmove_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(key_ptr(n, shift), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:76:3: note: Call to functio= n 'memmove' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memmove_s' in case of C11 memmove(key_ptr(n, shift), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:79:3: warning: Call to func= tion 'memmove' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memmove_s' in case of C11 [= clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(value_ptr(n, shift), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:79:3: note: Call to functio= n 'memmove' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memmove_s' in case of C11 memmove(value_ptr(n, shift), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:102:3: warning: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(key_ptr(left, nr_left), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:102:3: note: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(key_ptr(left, nr_left), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:105:3: warning: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(value_ptr(left, nr_left), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:105:3: note: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(value_ptr(left, nr_left), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:114:3: warning: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(key_ptr(right, 0), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:114:3: note: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(key_ptr(right, 0), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:117:3: warning: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(value_ptr(right, 0), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:117:3: note: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(value_ptr(right, 0), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:135:3: warning: Call to fun= ction 'memmove' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memmove_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(key_ptr(n, index), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:135:3: note: Call to functi= on 'memmove' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memmove_s' in case of C11 memmove(key_ptr(n, index), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:139:3: warning: Call to fun= ction 'memmove' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memmove_s' in case of C11 = [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(value_ptr(n, index), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:139:3: note: Call to functi= on 'memmove' is insecure as it does not provide security checks introduced = in the C11 standard. Replace with analogous functions that support length a= rguments or provides boundary checks such as 'memmove_s' in case of C11 memmove(value_ptr(n, index), ^~~~~~~ drivers/md/persistent-data/dm-btree-remove.c:495:3: warning: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(n, dm_block_data(child), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:495:3: note: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(n, dm_block_data(child), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:559:4: warning: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(value_ptr(dm_block_data(shadow_parent(s))= , i), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:559:4: note: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(value_ptr(dm_block_data(shadow_parent(s))= , i), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:652:4: warning: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 [c= lang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(value_ptr(dm_block_data(shadow_parent(s))= , i), ^~~~~~ drivers/md/persistent-data/dm-btree-remove.c:652:4: note: Call to functi= on 'memcpy' is insecure as it does not provide security checks introduced i= n the C11 standard. Replace with analogous functions that support length ar= guments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(value_ptr(dm_block_data(shadow_parent(s))= , i), -- ^~~~~~~ drivers/hwmon/f71805f.c:955:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%lu\n", (data->alarms >> 16) & 0x07); ^~~~~~~ drivers/hwmon/f71805f.c:955:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%lu\n", (data->alarms >> 16) & 0x07); ^~~~~~~ drivers/hwmon/f71805f.c:963:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%lu\n", (data->alarms >> 11) & 0x07); ^~~~~~~ drivers/hwmon/f71805f.c:963:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%lu\n", (data->alarms >> 11) & 0x07); ^~~~~~~ drivers/hwmon/f71805f.c:973:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%lu\n", (data->alarms >> bitnr) & 1); ^~~~~~~ drivers/hwmon/f71805f.c:973:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%lu\n", (data->alarms >> bitnr) & 1); ^~~~~~~ drivers/hwmon/f71805f.c:981:9: warning: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHa= ndling] return sprintf(buf, "%s\n", data->name); ^~~~~~~ drivers/hwmon/f71805f.c:981:9: note: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 return sprintf(buf, "%s\n", data->name); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 60 warnings generated. net/nfc/hci/command.c:161:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tmp + 1, param, param_len); ^~~~~~ net/nfc/hci/command.c:161:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(tmp + 1, param, param_len); ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 67 warnings generated. net/nfc/digital_technology.c:366:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sel_req->nfcid1, sdd_res->nfcid1, 4); ^~~~~~ net/nfc/digital_technology.c:366:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(sel_req->nfcid1, sdd_res->nfcid1, 4); ^~~~~~ net/nfc/digital_technology.c:427:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(target->nfcid1 + target->nfcid1_len, sdd_res->nfcid1 + of= fset, ^~~~~~ net/nfc/digital_technology.c:427:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(target->nfcid1 + target->nfcid1_len, sdd_res->nfcid1 + of= fset, ^~~~~~ net/nfc/digital_technology.c:627:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(attrib_req->nfcid0, sensb_res->nfcid0, ^~~~~~ net/nfc/digital_technology.c:627:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(attrib_req->nfcid0, sensb_res->nfcid0, ^~~~~~ net/nfc/digital_technology.c:771:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&target, 0, sizeof(struct nfc_target)); ^~~~~~ net/nfc/digital_technology.c:771:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(&target, 0, sizeof(struct nfc_target)); ^~~~~~ net/nfc/digital_technology.c:775:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(target.sensf_res, sensf_res, resp->len); ^~~~~~ net/nfc/digital_technology.c:775:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(target.sensf_res, sensf_res, resp->len); ^~~~~~ net/nfc/digital_technology.c:778:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(target.nfcid2, sensf_res->nfcid2, NFC_NFCID2_MAXSIZE); ^~~~~~ net/nfc/digital_technology.c:778:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(target.nfcid2, sensf_res->nfcid2, NFC_NFCID2_MAXSIZE); ^~~~~~ net/nfc/digital_technology.c:874:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(target->iso15693_uid, &res->uid, sizeof(target->iso15693_= uid)); ^~~~~~ net/nfc/digital_technology.c:874:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(target->iso15693_uid, &res->uid, sizeof(target->iso15693_= uid)); ^~~~~~ net/nfc/digital_technology.c:1142:2: warning: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(sensf_res, 0, size); ^~~~~~ net/nfc/digital_technology.c:1142:2: note: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 memset(sensf_res, 0, size); ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 25 warnings generated. >> drivers/extcon/extcon-usbc-cros-ec.c:81:3: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(msg->data, outdata, outsize); ^~~~~~ drivers/extcon/extcon-usbc-cros-ec.c:81:3: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(msg->data, outdata, outsize); ^~~~~~ drivers/extcon/extcon-usbc-cros-ec.c:85:3: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(indata, msg->data, insize); ^~~~~~ drivers/extcon/extcon-usbc-cros-ec.c:85:3: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(indata, msg->data, insize); ^~~~~~ Suppressed 23 warnings (16 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. drivers/siox/siox-core.c:150:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(smaster->buf, 0, smaster->setbuf_len); ^~~~~~ drivers/siox/siox-core.c:150:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(smaster->buf, 0, smaster->setbuf_len); ^~~~~~ drivers/siox/siox-core.c:240:4: warning: Value stored to 'status' is nev= er read [clang-analyzer-deadcode.DeadStores] status &=3D ~SIOX_STATUS_WDG; ^ ~~~~~~~~~~~~~~~~ drivers/siox/siox-core.c:240:4: note: Value stored to 'status' is never = read status &=3D ~SIOX_STATUS_WDG; ^ ~~~~~~~~~~~~~~~~ drivers/siox/siox-core.c:389:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide bounding of the memory buffer or security ch= ecks introduced in the C11 standard. Replace with analogous functions that = support length arguments or provides boundary checks such as 'sprintf_s' in= case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferH= andling] return sprintf(buf, "%s\n", sdev->type); ^~~~~~~ drivers/siox/siox-core.c:389:9: note: Call to function 'sprintf' is inse= cure as it does not provide bounding of the memory buffer or security check= s introduced in the C11 standard. Replace with analogous functions that sup= port length arguments or provides boundary checks such as 'sprintf_s' in ca= se of C11 return sprintf(buf, "%s\n", sdev->type); ^~~~~~~ drivers/siox/siox-core.c:399:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%zu\n", sdev->inbytes); ^~~~~~~ drivers/siox/siox-core.c:399:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%zu\n", sdev->inbytes); ^~~~~~~ drivers/siox/siox-core.c:409:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%zu\n", sdev->outbytes); ^~~~~~~ drivers/siox/siox-core.c:409:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%zu\n", sdev->outbytes); ^~~~~~~ drivers/siox/siox-core.c:426:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", status_errors); ^~~~~~~ drivers/siox/siox-core.c:426:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", status_errors); ^~~~~~~ drivers/siox/siox-core.c:443:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", connected); ^~~~~~~ drivers/siox/siox-core.c:443:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", connected); ^~~~~~~ drivers/siox/siox-core.c:460:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", status & SIOX_STATUS_WDG); ^~~~~~~ drivers/siox/siox-core.c:460:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", status & SIOX_STATUS_WDG); ^~~~~~~ drivers/siox/siox-core.c:477:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%u\n", watchdog_errors); ^~~~~~~ drivers/siox/siox-core.c:477:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%u\n", watchdog_errors); ^~~~~~~ drivers/siox/siox-core.c:559:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", smaster->active); ^~~~~~~ drivers/siox/siox-core.c:559:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", smaster->active); ^~~~~~~ drivers/siox/siox-core.c:601:8: warning: Call to function 'sscanf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sscanf(buf, "%19s %zu %zu %hhu", type, &inbytes, ^~~~~~ drivers/siox/siox-core.c:601:8: note: Call to function 'sscanf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sscanf_s' in case of C11 ret =3D sscanf(buf, "%19s %zu %zu %hhu", type, &inbytes, ^~~~~~ drivers/siox/siox-core.c:637:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%lld\n", jiffies_to_nsecs(smaster->poll_int= erval)); ^~~~~~~ drivers/siox/siox-core.c:637:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%lld\n", jiffies_to_nsecs(smaster->poll_int= erval)); ^~~~~~~ Suppressed 38 warnings (38 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/md/persistent-data/dm-btree-spine.c:251:2: warning: Call to func= tion 'memcpy' is insecure as it does not provide security checks introduced= in the C11 standard. Replace with analogous functions that support length = arguments or provides boundary checks such as 'memcpy_s' in case of C11 [cl= ang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&v1_le, value1_le, sizeof(v1_le)); ^~~~~~ drivers/md/persistent-data/dm-btree-spine.c:251:2: note: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(&v1_le, value1_le, sizeof(v1_le)); -- drivers/staging/greybus/hid.c:414:2: warning: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(hid->name, sizeof(hid->name), "%s %04X:%04X", ^~~~~~~~ drivers/staging/greybus/hid.c:414:2: note: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 snprintf(hid->name, sizeof(hid->name), "%s %04X:%04X", ^~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/staging/greybus/power_supply.c:457:9: warning: Call to function = 'snprintf' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'snprintf_s' in case of C11 [cla= ng-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D snprintf(name, len, "%s_%u", init_name, ++i); ^~~~~~~~ drivers/staging/greybus/power_supply.c:457:9: note: Call to function 'sn= printf' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'snprintf_s' in case of C11 ret =3D snprintf(name, len, "%s_%u", init_name, ++i); ^~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. 56 warnings generated. 84 warnings generated. 112 warnings generated. 140 warnings generated. 168 warnings generated. 196 warnings generated. 224 warnings generated. drivers/mtd/tests/mtd_test.c:16:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ drivers/mtd/tests/mtd_test.c:16:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ Suppressed 216 warnings (216 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 37 warnings generated. drivers/mtd/tests/mtd_nandecctest.c:52:2: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:52:2: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:66:2: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:66:2: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:93:2: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:93:2: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:107:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:107:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:115:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:115:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:116:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:116:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:139:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:139:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:145:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:145:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:169:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:169:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_ecc, correct_ecc, 3); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:182:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(error_data, correct_data, size); ^~~~~~ drivers/mtd/tests/mtd_nandecctest.c:182:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(error_data, correct_data, size); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. >> drivers/scsi/ufs/ufshcd-pltfrm.c:123:2: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(prop_name, MAX_PROP_SIZE, "%s-supply", name); ^~~~~~~~ drivers/scsi/ufs/ufshcd-pltfrm.c:123:2: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 snprintf(prop_name, MAX_PROP_SIZE, "%s-supply", name); ^~~~~~~~ drivers/scsi/ufs/ufshcd-pltfrm.c:138:2: warning: Call to function 'snpri= ntf' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'snprintf_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(prop_name, MAX_PROP_SIZE, "%s-max-microamp", name); ^~~~~~~~ drivers/scsi/ufs/ufshcd-pltfrm.c:138:2: note: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 snprintf(prop_name, MAX_PROP_SIZE, "%s-max-microamp", name); ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 50 warnings generated. >> drivers/scsi/virtio_scsi.c:161:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sc->sense_buffer, resp->sense, ^~~~~~ drivers/scsi/virtio_scsi.c:161:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(sc->sense_buffer, resp->sense, ^~~~~~ >> drivers/scsi/virtio_scsi.c:344:3: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(scsi_cmd, 0, sizeof(scsi_cmd)); ^~~~~~ drivers/scsi/virtio_scsi.c:344:3: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(scsi_cmd, 0, sizeof(scsi_cmd)); ^~~~~~ drivers/scsi/virtio_scsi.c:348:3: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(inq_result, 0, inq_result_len); ^~~~~~ drivers/scsi/virtio_scsi.c:348:3: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(inq_result, 0, inq_result_len); ^~~~~~ drivers/scsi/virtio_scsi.c:579:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cmd->req.cmd_pi.cdb, sc->cmnd, sc->cmd_len); ^~~~~~ drivers/scsi/virtio_scsi.c:579:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(cmd->req.cmd_pi.cdb, sc->cmnd, sc->cmd_len); ^~~~~~ drivers/scsi/virtio_scsi.c:585:3: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cmd->req.cmd.cdb, sc->cmnd, sc->cmd_len); ^~~~~~ drivers/scsi/virtio_scsi.c:585:3: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(cmd->req.cmd.cdb, sc->cmnd, sc->cmd_len); ^~~~~~ drivers/scsi/virtio_scsi.c:643:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cmd, 0, sizeof(*cmd)); ^~~~~~ drivers/scsi/virtio_scsi.c:643:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(cmd, 0, sizeof(*cmd)); ^~~~~~ drivers/scsi/virtio_scsi.c:701:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(cmd, 0, sizeof(*cmd)); ^~~~~~ drivers/scsi/virtio_scsi.c:701:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(cmd, 0, sizeof(*cmd)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/hwmon/w83l785ts.c:117:9: warning: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index= ])); ^~~~~~~ drivers/hwmon/w83l785ts.c:117:9: note: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index= ])); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 54 warnings generated. drivers/hwmon/w83l786ng.c:232:1: warning: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] show_in_reg(in) ^ drivers/hwmon/w83l786ng.c:229:9: note: expanded from macro 'show_in_reg' return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \ ^~~~~~~ drivers/hwmon/w83l786ng.c:232:1: note: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 show_in_reg(in) ^ drivers/hwmon/w83l786ng.c:229:9: note: expanded from macro 'show_in_reg' return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \ ^~~~~~~ drivers/hwmon/w83l786ng.c:233:1: warning: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] show_in_reg(in_min) ^ drivers/hwmon/w83l786ng.c:229:9: note: expanded from macro 'show_in_reg' return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \ ^~~~~~~ drivers/hwmon/w83l786ng.c:233:1: note: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 show_in_reg(in_min) ^ drivers/hwmon/w83l786ng.c:229:9: note: expanded from macro 'show_in_reg' return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \ ^~~~~~~ drivers/hwmon/w83l786ng.c:234:1: warning: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] show_in_reg(in_max) ^ drivers/hwmon/w83l786ng.c:229:9: note: expanded from macro 'show_in_reg' return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \ ^~~~~~~ drivers/hwmon/w83l786ng.c:234:1: note: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 show_in_reg(in_max) ^ drivers/hwmon/w83l786ng.c:229:9: note: expanded from macro 'show_in_reg' return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \ ^~~~~~~ drivers/hwmon/w83l786ng.c:287:1: warning: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] show_fan_reg(fan); ^ drivers/hwmon/w83l786ng.c:283:9: note: expanded from macro 'show_fan_reg' return sprintf(buf, "%d\n", \ ^~~~~~~ drivers/hwmon/w83l786ng.c:287:1: note: Call to function 'sprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sprintf_s' in case of C11 show_fan_reg(fan); ^ drivers/hwmon/w83l786ng.c:283:9: note: expanded from macro 'show_fan_reg' return sprintf(buf, "%d\n", \ ^~~~~~~ drivers/hwmon/w83l786ng.c:288:1: warning: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] show_fan_reg(fan_min); ^ drivers/hwmon/w83l786ng.c:283:9: note: expanded from macro 'show_fan_reg' return sprintf(buf, "%d\n", \ -- ^ drivers/scsi/libsas/sas_expander.c:1839:6: note: Left side of '&&' is tr= ue if (ex_change_count !=3D -1 && ex_change_count !=3D ex->ex_chang= e_count) { ^ drivers/scsi/libsas/sas_expander.c:1839:31: note: Assuming 'ex_change_co= unt' is equal to field 'ex_change_count' if (ex_change_count !=3D -1 && ex_change_count !=3D ex->ex_chang= e_count) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ drivers/scsi/libsas/sas_expander.c:1839:2: note: Taking false branch if (ex_change_count !=3D -1 && ex_change_count !=3D ex->ex_chang= e_count) { ^ drivers/scsi/libsas/sas_expander.c:1855:2: note: Loop condition is true.= Entering loop body list_for_each_entry(ch, &ex->children, siblings) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/scsi/libsas/sas_expander.c:1856:3: note: Taking true branch if (dev_is_expander(ch->dev_type)) { ^ drivers/scsi/libsas/sas_expander.c:1857:10: note: Calling 'sas_find_bcas= t_dev' res =3D sas_find_bcast_dev(ch, src_dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:1836:8: note: Calling 'sas_get_ex_cha= nge_count' res =3D sas_get_ex_change_count(dev, &ex_change_count); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:1786:6: note: Assuming 'rg_req' is no= n-null if (!rg_req) ^~~~~~~ drivers/scsi/libsas/sas_expander.c:1786:2: note: Taking false branch if (!rg_req) ^ drivers/scsi/libsas/sas_expander.c:1789:12: note: Calling 'alloc_smp_res= p' rg_resp =3D alloc_smp_resp(RG_RESP_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:166:9: note: Calling 'kzalloc' return kzalloc(size, GFP_KERNEL); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/slab.h:715:9: note: Uninitialized value stored to field 'r= esult' return kmalloc(size, flags | __GFP_ZERO); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/slab.h:715:2: note: Returning pointer, which participates = in a condition later return kmalloc(size, flags | __GFP_ZERO); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:166:9: note: Returning from 'kzalloc' return kzalloc(size, GFP_KERNEL); ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:166:2: note: Returning pointer, which= participates in a condition later return kzalloc(size, GFP_KERNEL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:1789:12: note: Returning from 'alloc_= smp_resp' rg_resp =3D alloc_smp_resp(RG_RESP_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:1790:6: note: Assuming 'rg_resp' is n= on-null if (!rg_resp) { ^~~~~~~~ drivers/scsi/libsas/sas_expander.c:1790:2: note: Taking false branch if (!rg_resp) { ^ drivers/scsi/libsas/sas_expander.c:1797:8: note: Calling 'smp_execute_ta= sk' res =3D smp_execute_task(dev, rg_req, RG_REQ_SIZE, rg_resp, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:151:2: note: Returning without writin= g to 'resp->result' return smp_execute_task_sg(dev, &req_sg, &resp_sg); ^ drivers/scsi/libsas/sas_expander.c:151:2: note: Returning value, which p= articipates in a condition later return smp_execute_task_sg(dev, &req_sg, &resp_sg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:1797:8: note: Returning from 'smp_exe= cute_task' res =3D smp_execute_task(dev, rg_req, RG_REQ_SIZE, rg_resp, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/libsas/sas_expander.c:1799:6: note: Assuming 'res' is 0 if (res) ^~~ drivers/scsi/libsas/sas_expander.c:1799:2: note: Taking false branch if (res) ^ drivers/scsi/libsas/sas_expander.c:1801:22: note: The left operand of '!= =3D' is a garbage value if (rg_resp->result !=3D SMP_RESP_FUNC_ACC) { ~~~~~~~~~~~~~~~ ^ drivers/scsi/libsas/sas_expander.c:1903:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_expander.c:1903:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_expander.c:2009:3: warning: Call to function 'sp= rintf' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'sprintf_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] sprintf(msg, ", part of a wide port with phy%02d", sibli= ng); ^~~~~~~ drivers/scsi/libsas/sas_expander.c:2009:3: note: Call to function 'sprin= tf' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'sprintf_s' in case of C11 sprintf(msg, ", part of a wide port with phy%02d", sibli= ng); ^~~~~~~ drivers/scsi/libsas/sas_expander.c:2014:2: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ drivers/scsi/libsas/sas_expander.c:2014:2: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(sas_addr, 0, SAS_ADDR_SIZE); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. >> drivers/mtd/devices/block2mtd.c:74:5: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(page_address(page), 0xff, PAGE_SI= ZE); ^~~~~~ drivers/mtd/devices/block2mtd.c:74:5: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(page_address(page), 0xff, PAGE_SI= ZE); ^~~~~~ >> drivers/mtd/devices/block2mtd.c:124:3: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, page_address(page) + offset, cpylen); ^~~~~~ drivers/mtd/devices/block2mtd.c:124:3: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, page_address(page) + offset, cpylen); ^~~~~~ drivers/mtd/devices/block2mtd.c:160:4: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(page_address(page) + offset, buf, cpylen); ^~~~~~ drivers/mtd/devices/block2mtd.c:160:4: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(page_address(page) + offset, buf, cpylen); ^~~~~~ drivers/mtd/devices/block2mtd.c:402: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 argu= ments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcp= y] strcpy(str, val); ^~~~~~ drivers/mtd/devices/block2mtd.c:402:2: note: Call to function 'strcpy' i= s insecure as it does not provide bounding of the memory buffer. Replace un= bounded copy functions with analogous functions that support length argumen= ts such as 'strlcpy'. CWE-119 strcpy(str, val); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/mtd/nand/onenand/onenand_base.c:779:2: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, bufferram + offset, count); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:779:2: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buffer, bufferram + offset, count); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:817:2: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, bufferram + offset, count); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:817:2: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(buffer, bufferram + offset, count); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:860:2: warning: Call to function= 'memcpy' is insecure as it does not provide security checks introduced in = the C11 standard. Replace with analogous functions that support length argu= ments or provides boundary checks such as 'memcpy_s' in case of C11 [clang-= analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(bufferram + offset, buffer, count); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:860:2: note: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(bufferram + offset, buffer, count); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1730:4: warning: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(this->page_buf, 0xff, mtd->writesize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1730:4: note: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 memset(this->page_buf, 0xff, mtd->writesize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1731:4: warning: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(this->page_buf + column, buf, thislen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1731:4: note: Call to function '= memcpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(this->page_buf + column, buf, thislen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1836:5: warning: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(this->page_buf, 0xff, mtd->writes= ize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1836:5: note: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 memset(this->page_buf, 0xff, mtd->writes= ize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1837:5: warning: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(this->page_buf + column, buf, thi= slen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1837:5: note: Call to function '= memcpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(this->page_buf + column, buf, thi= slen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1848:5: warning: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(oobbuf, 0xff, mtd->oobsize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1848:5: note: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 memset(oobbuf, 0xff, mtd->oobsize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1852:6: warning: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(oobbuf + oobcolumn, oob, = thisooblen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:1852:6: note: Call to function '= memcpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(oobbuf + oobcolumn, oob, = thisooblen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:2019:3: warning: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(oobbuf, 0xff, mtd->oobsize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:2019:3: note: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 memset(oobbuf, 0xff, mtd->oobsize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:2023:4: warning: Call to functio= n 'memcpy' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memcpy_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(oobbuf + column, buf, thislen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:2023:4: note: Call to function '= memcpy' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(oobbuf + column, buf, thislen); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:2028:4: warning: Call to functio= n 'memset' is insecure as it does not provide security checks introduced in= the C11 standard. Replace with analogous functions that support length arg= uments or provides boundary checks such as 'memset_s' in case of C11 [clang= -analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(this->page_buf, 0xff, mtd->writesize); ^~~~~~ drivers/mtd/nand/onenand/onenand_base.c:2028:4: note: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 memset(this->page_buf, 0xff, mtd->writesize); ^~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/hwmon/max6650.c:315:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", alarm); -- ^~~~~~~~ drivers/vhost/scsi.c:2374:2: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 snprintf(&tport->tport_name[0], VHOST_SCSI_NAMELEN, "%s", &name[= off]); ^~~~~~~~ drivers/vhost/scsi.c:2397:9: warning: Call to function 'sprintf' is inse= cure as it does not provide bounding of the memory buffer or security check= s introduced in the C11 standard. Replace with analogous functions that sup= port length arguments or provides boundary checks such as 'sprintf_s' in ca= se of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHand= ling] return sprintf(page, "TCM_VHOST fabric module %s on %s/%s" ^~~~~~~ drivers/vhost/scsi.c:2397:9: note: Call to function 'sprintf' is insecur= e as it does not provide bounding of the memory buffer or security checks i= ntroduced in the C11 standard. Replace with analogous functions that suppor= t length arguments or provides boundary checks such as 'sprintf_s' in case = of C11 return sprintf(page, "TCM_VHOST fabric module %s on %s/%s" ^~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 72 warnings generated. net/bluetooth/mgmt_util.c:193:3: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ev->data, rp, rp_len); ^~~~~~ net/bluetooth/mgmt_util.c:193:3: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(ev->data, rp, rp_len); ^~~~~~ Suppressed 71 warnings (71 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 71 warnings generated. Suppressed 71 warnings (71 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 74 warnings generated. net/bluetooth/hci_codec.c:31:3: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(entry->caps, caps, len); ^~~~~~ net/bluetooth/hci_codec.c:31:3: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(entry->caps, caps, len); ^~~~~~ net/bluetooth/hci_codec.c:157:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&caps, 0, sizeof(caps)); ^~~~~~ net/bluetooth/hci_codec.c:157:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&caps, 0, sizeof(caps)); ^~~~~~ net/bluetooth/hci_codec.c:223:2: warning: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&caps, 0, sizeof(caps)); ^~~~~~ net/bluetooth/hci_codec.c:223:2: note: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 memset(&caps, 0, sizeof(caps)); ^~~~~~ Suppressed 71 warnings (71 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 80 warnings generated. net/bluetooth/eir.c:43:3: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(name, hdev->dev_name, HCI_MAX_SHORT_NAME_LENGTH); ^~~~~~ net/bluetooth/eir.c:43:3: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(name, hdev->dev_name, HCI_MAX_SHORT_NAME_LENGTH); ^~~~~~ net/bluetooth/eir.c:125:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, &uuid->uuid[12], sizeof(u32)); ^~~~~~ net/bluetooth/eir.c:125:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(ptr, &uuid->uuid[12], sizeof(u32)); ^~~~~~ net/bluetooth/eir.c:158:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, uuid->uuid, 16); ^~~~~~ net/bluetooth/eir.c:158:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(ptr, uuid->uuid, 16); ^~~~~~ net/bluetooth/eir.c:185:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr + 2, hdev->dev_name, name_len); ^~~~~~ net/bluetooth/eir.c:185:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(ptr + 2, hdev->dev_name, name_len); ^~~~~~ net/bluetooth/eir.c:212:2: warning: Value stored to 'ptr' is never read = [clang-analyzer-deadcode.DeadStores] ptr =3D create_uuid128_list(hdev, ptr, HCI_MAX_EIR_LENGTH - (ptr= - data)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~ net/bluetooth/eir.c:212:2: note: Value stored to 'ptr' is never read ptr =3D create_uuid128_list(hdev, ptr, HCI_MAX_EIR_LENGTH - (ptr= - data)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~ net/bluetooth/eir.c:271:3: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ptr, adv->adv_data, adv->adv_data_len); ^~~~~~ net/bluetooth/eir.c:271:3: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(ptr, adv->adv_data, adv->adv_data_len); ^~~~~~ net/bluetooth/eir.c:295:4: warning: Value stored to 'ptr' is never read = [clang-analyzer-deadcode.DeadStores] ptr +=3D 3; ^ ~ net/bluetooth/eir.c:295:4: note: Value stored to 'ptr' is never read ptr +=3D 3; ^ ~ net/bluetooth/eir.c:327:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ptr[scan_rsp_len], adv->scan_rsp_data, adv->scan_rsp_len= ); ^~~~~~ net/bluetooth/eir.c:327:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(&ptr[scan_rsp_len], adv->scan_rsp_data, adv->scan_rsp_len= ); ^~~~~~ Suppressed 72 warnings (72 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> drivers/video/fbdev/core/softcursor.c:70:3: warning: Call to function 'm= emcpy' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memcpy_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(src, image->data, dsize); ^~~~~~ drivers/video/fbdev/core/softcursor.c:70:3: note: Call to function 'memc= py' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(src, image->data, dsize); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> drivers/video/fbdev/core/fbcon_rotate.c:62:2: warning: Call to function = 'memset' is insecure as it does not provide security checks introduced in t= he C11 standard. Replace with analogous functions that support length argum= ents or provides boundary checks such as 'memset_s' in case of C11 [clang-a= nalyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(dst, 0, ops->fd_size); ^~~~~~ drivers/video/fbdev/core/fbcon_rotate.c:62:2: note: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 memset(dst, 0, ops->fd_size); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> drivers/video/fbdev/core/fbcon_cw.c:330:3: warning: Call to function 'me= mset' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memset_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(mask, 0, w * vc->vc_font.width); ^~~~~~ drivers/video/fbdev/core/fbcon_cw.c:330:3: note: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 memset(mask, 0, w * vc->vc_font.width); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. >> drivers/hwmon/occ/common.c:192:2: warning: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&cmd[4], &user_power_cap_be, 2); ^~~~~~ drivers/hwmon/occ/common.c:192:2: note: Call to function 'memcpy' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memcpy_s' in case of C11 memcpy(&cmd[4], &user_power_cap_be, 2); ^~~~~~ >> drivers/hwmon/occ/common.c:873:3: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), "temp%d_label",= s); ^~~~~~~~ drivers/hwmon/occ/common.c:873:3: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), "temp%d_label",= s); ^~~~~~~~ drivers/hwmon/occ/common.c:880:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:880:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:883:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:883:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:892:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:892:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:898:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:898:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:905:5: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:905:5: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:918:3: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), "freq%d_label",= s); ^~~~~~~~ drivers/hwmon/occ/common.c:918:3: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), "freq%d_label",= s); ^~~~~~~~ drivers/hwmon/occ/common.c:923:3: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), "freq%d_input",= s); ^~~~~~~~ drivers/hwmon/occ/common.c:923:3: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), "freq%d_input",= s); ^~~~~~~~ drivers/hwmon/occ/common.c:941:5: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:941:5: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:948:5: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:948:5: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:955:5: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:955:5: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:962:5: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:962:5: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:978:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:978:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:984:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:984:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:990:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:990:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:996:4: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:996:4: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), ^~~~~~~~ drivers/hwmon/occ/common.c:1007:3: warning: Call to function 'snprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attr->name, sizeof(attr->name), "power%d_label"= , s); ^~~~~~~~ drivers/hwmon/occ/common.c:1007:3: note: Call to function 'snprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'snprintf_s' in case of C11 snprintf(attr->name, sizeof(attr->name), "power%d_label"= , s); -- 70 warnings generated. net/nfc/core.c:850:3: warning: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insecur= eAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&dev->targets[i], &dev->targets[i + 1], ^~~~~~ net/nfc/core.c:850:3: note: Call to function 'memcpy' is insecure as it = does not provide security checks introduced in the C11 standard. Replace wi= th analogous functions that support length arguments or provides boundary c= hecks such as 'memcpy_s' in case of C11 memcpy(&dev->targets[i], &dev->targets[i + 1], ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 70 warnings generated. net/nfc/netlink.c:1647:2: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(skb->cb, 0, sizeof(skb->cb)); ^~~~~~ net/nfc/netlink.c:1647:2: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(skb->cb, 0, sizeof(skb->cb)); ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 77 warnings generated. net/nfc/llcp_core.c:570:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(gb_cur, llcp_magic, ARRAY_SIZE(llcp_magic)); ^~~~~~ net/nfc/llcp_core.c:570:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(gb_cur, llcp_magic, ARRAY_SIZE(llcp_magic)); ^~~~~~ net/nfc/llcp_core.c:573:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(gb_cur, version_tlv, version_length); ^~~~~~ net/nfc/llcp_core.c:573:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(gb_cur, version_tlv, version_length); ^~~~~~ net/nfc/llcp_core.c:576:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(gb_cur, lto_tlv, lto_length); ^~~~~~ net/nfc/llcp_core.c:576:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(gb_cur, lto_tlv, lto_length); ^~~~~~ net/nfc/llcp_core.c:579:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(gb_cur, wks_tlv, wks_length); ^~~~~~ net/nfc/llcp_core.c:579:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(gb_cur, wks_tlv, wks_length); ^~~~~~ net/nfc/llcp_core.c:582:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(gb_cur, miux_tlv, miux_length); ^~~~~~ net/nfc/llcp_core.c:582:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(gb_cur, miux_tlv, miux_length); ^~~~~~ net/nfc/llcp_core.c:583:2: warning: Value stored to 'gb_cur' is never re= ad [clang-analyzer-deadcode.DeadStores] gb_cur +=3D miux_length; ^ ~~~~~~~~~~~ net/nfc/llcp_core.c:583:2: note: Value stored to 'gb_cur' is never read gb_cur +=3D miux_length; ^ ~~~~~~~~~~~ net/nfc/llcp_core.c:626:2: warning: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memset(local->remote_gb, 0, NFC_MAX_GT_LEN); ^~~~~~ net/nfc/llcp_core.c:626:2: note: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 memset(local->remote_gb, 0, NFC_MAX_GT_LEN); ^~~~~~ net/nfc/llcp_core.c:627:2: warning: Call to function 'memcpy' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.in= secureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(local->remote_gb, gb, gb_len); ^~~~~~ net/nfc/llcp_core.c:627:2: note: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 memcpy(local->remote_gb, gb, gb_len); ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. drivers/hwmon/powr1220.c:181:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", adc_val); ^~~~~~~ drivers/hwmon/powr1220.c:181:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", adc_val); ^~~~~~~ drivers/hwmon/powr1220.c:191:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", data->adc_maxes[attr->index]); ^~~~~~~ drivers/hwmon/powr1220.c:191:9: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", data->adc_maxes[attr->index]); ^~~~~~~ drivers/hwmon/powr1220.c:201:9: warning: Call to function 'sprintf' is i= nsecure as it does not provide bounding of the memory buffer or security ch= ecks introduced in the C11 standard. Replace with analogous functions that = support length arguments or provides boundary checks such as 'sprintf_s' in= case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferH= andling] return sprintf(buf, "%s\n", input_names[attr->index]); ^~~~~~~ drivers/hwmon/powr1220.c:201:9: note: Call to function 'sprintf' is inse= cure as it does not provide bounding of the memory buffer or security check= s introduced in the C11 standard. Replace with analogous functions that sup= port length arguments or provides boundary checks such as 'sprintf_s' in ca= se of C11 return sprintf(buf, "%s\n", input_names[attr->index]); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. >> net/rfkill/input.c:104:4: warning: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memset(rfkill_sw_pending, 0, ^~~~~~ net/rfkill/input.c:104:4: note: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 memset(rfkill_sw_pending, 0, ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 60 warnings generated. net/9p/client.c:625:3: warning: Value stored to 'err' is never read [cla= ng-analyzer-deadcode.DeadStores] err =3D p9pdu_readf(&req->rc, c->proto_version, "d", &ec= ode); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ net/9p/client.c:625:3: note: Value stored to 'err' is never read err =3D p9pdu_readf(&req->rc, c->proto_version, "d", &ec= ode); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ net/9p/client.c:896:2: warning: Call to function 'memset' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memset_s' in case of C11 [clang-analyzer-security.insecu= reAPI.DeprecatedOrUnsafeBufferHandling] memset(&fid->qid, 0, sizeof(fid->qid)); ^~~~~~ net/9p/client.c:896:2: note: Call to function 'memset' is insecure as it= does not provide security checks introduced in the C11 standard. Replace w= ith analogous functions that support length arguments or provides boundary = checks such as 'memset_s' in case of C11 memset(&fid->qid, 0, sizeof(fid->qid)); ^~~~~~ net/9p/client.c:1004:2: warning: Value stored to 'err' is never read [cl= ang-analyzer-deadcode.DeadStores] err =3D 0; ^ ~ net/9p/client.c:1004:2: note: Value stored to 'err' is never read err =3D 0; ^ ~ net/9p/client.c:1014:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(clnt->name, client_id, strlen(client_id) + 1); ^~~~~~ net/9p/client.c:1014:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(clnt->name, client_id, strlen(client_id) + 1); ^~~~~~ net/9p/client.c:1154:2: warning: Call to function 'memmove' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(&fid->qid, &qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1154:2: note: Call to function 'memmove' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memmove_s' in case of C11 memmove(&fid->qid, &qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1176:2: warning: Value stored to 'err' is never read [cl= ang-analyzer-deadcode.DeadStores] err =3D 0; ^ ~ net/9p/client.c:1176:2: note: Value stored to 'err' is never read err =3D 0; ^ ~ net/9p/client.c:1222:3: warning: Call to function 'memmove' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(&fid->qid, &wqids[nwqids - 1], sizeof(struct p9_= qid)); ^~~~~~~ net/9p/client.c:1222:3: note: Call to function 'memmove' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memmove_s' in case of C11 memmove(&fid->qid, &wqids[nwqids - 1], sizeof(struct p9_= qid)); ^~~~~~~ net/9p/client.c:1224:3: warning: Call to function 'memmove' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(&fid->qid, &oldfid->qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1224:3: note: Call to function 'memmove' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memmove_s' in case of C11 memmove(&fid->qid, &oldfid->qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1253:2: warning: Value stored to 'err' is never read [cl= ang-analyzer-deadcode.DeadStores] err =3D 0; ^ ~ net/9p/client.c:1253:2: note: Value stored to 'err' is never read err =3D 0; ^ ~ net/9p/client.c:1277:2: warning: Call to function 'memmove' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(&fid->qid, &qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1277:2: note: Call to function 'memmove' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memmove_s' in case of C11 memmove(&fid->qid, &qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1321:2: warning: Call to function 'memmove' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(&ofid->qid, qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1321:2: note: Call to function 'memmove' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memmove_s' in case of C11 memmove(&ofid->qid, qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1343:2: warning: Value stored to 'err' is never read [cl= ang-analyzer-deadcode.DeadStores] err =3D 0; ^ ~ net/9p/client.c:1343:2: note: Value stored to 'err' is never read err =3D 0; ^ ~ net/9p/client.c:1365:2: warning: Call to function 'memmove' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memmove_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(&fid->qid, &qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1365:2: note: Call to function 'memmove' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memmove_s' in case of C11 memmove(&fid->qid, &qid, sizeof(struct p9_qid)); ^~~~~~~ net/9p/client.c:1711:2: warning: Value stored to 'err' is never read [cl= ang-analyzer-deadcode.DeadStores] err =3D 0; ^ ~ net/9p/client.c:1711:2: note: Value stored to 'err' is never read err =3D 0; ^ ~ net/9p/client.c:1764:2: warning: Value stored to 'err' is never read [cl= ang-analyzer-deadcode.DeadStores] err =3D 0; -- drivers/vfio/vfio_iommu_type1.c:2009:7: note: Left side of '&&' is true drivers/vfio/vfio_iommu_type1.c:2009:31: note: Assuming 'start' is >=3D = field 'end' if (start >=3D node->start && start < node->end) { ^~~~~~~~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2009:3: note: Taking false branch if (start >=3D node->start && start < node->end) { ^ drivers/vfio/vfio_iommu_type1.c:2015:3: note: Memory is released kfree(node); ^~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2006:2: note: Loop condition is true. E= ntering loop body list_for_each_entry_safe(node, next, iova, list) { ^ include/linux/list.h:725:2: note: expanded from macro 'list_for_each_ent= ry_safe' for (pos =3D list_first_entry(head, typeof(*pos), member), = \ ^ drivers/vfio/vfio_iommu_type1.c:2007:7: note: Assuming 'start' is < fiel= d 'start' if (start < node->start) ^~~~~~~~~~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2007:3: note: Taking true branch if (start < node->start) ^ drivers/vfio/vfio_iommu_type1.c:2008:4: note: Execution continues on li= ne 2019 break; ^ drivers/vfio/vfio_iommu_type1.c:2019:2: note: Use of memory after it is = freed list_for_each_entry_safe(node, next, iova, list) { ^ include/linux/list.h:726:7: note: expanded from macro 'list_for_each_ent= ry_safe' n =3D list_next_entry(pos, member); = \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:564:2: note: expanded from macro 'list_next_entry' list_entry((pos)->member.next, typeof(*(pos)), member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/list.h:520:2: note: expanded from macro 'list_entry' container_of(ptr, type, member) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/container_of.h:18:25: note: expanded from macro 'container= _of' void *__mptr =3D (void *)(ptr); = \ ^~~~~ drivers/vfio/vfio_iommu_type1.c:2392:40: warning: Use of memory after it= is freed [clang-analyzer-unix.Malloc] struct iommu_domain_geometry *geo =3D &domain->domain->g= eometry; ^ drivers/vfio/vfio_iommu_type1.c:2464:2: note: Loop condition is false. E= xecution continues on line 2484 list_for_each_entry(group, &iommu->emulated_iommu_groups, next) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/vfio/vfio_iommu_type1.c:2486:2: note: Loop condition is true. E= ntering loop body list_for_each_entry(domain, &iommu->domain_list, next) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/vfio/vfio_iommu_type1.c:2488:7: note: Assuming 'group' is non-nu= ll if (!group) ^~~~~~ drivers/vfio/vfio_iommu_type1.c:2488:3: note: Taking false branch if (!group) ^ drivers/vfio/vfio_iommu_type1.c:2492:24: note: Assuming field 'pinned_pa= ge_dirty_scope' is true update_dirty_scope =3D !group->pinned_page_dirty_scope; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2502:7: note: Assuming the condition is = true if (list_empty(&domain->group_list)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2502:3: note: Taking true branch if (list_empty(&domain->group_list)) { ^ drivers/vfio/vfio_iommu_type1.c:2503:4: note: Taking false branch if (list_is_singular(&iommu->domain_list)) { ^ drivers/vfio/vfio_iommu_type1.c:2513:4: note: Memory is released kfree(domain); ^~~~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2514:4: note: Calling 'vfio_iommu_aper_e= xpand' vfio_iommu_aper_expand(iommu, &iova_copy); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2388:2: note: Taking false branch if (list_empty(iova_copy)) ^ drivers/vfio/vfio_iommu_type1.c:2391:2: note: Loop condition is true. E= ntering loop body list_for_each_entry(domain, &iommu->domain_list, next) { ^ include/linux/list.h:638:2: note: expanded from macro 'list_for_each_ent= ry' for (pos =3D list_first_entry(head, typeof(*pos), member); = \ ^ drivers/vfio/vfio_iommu_type1.c:2392:40: note: Use of memory after it is= freed struct iommu_domain_geometry *geo =3D &domain->domain->g= eometry; ^~~~~~~~~~~~~~ drivers/vfio/vfio_iommu_type1.c:2666:2: warning: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(iova_cap->iova_ranges, cap_iovas->iova_ranges, ^~~~~~ drivers/vfio/vfio_iommu_type1.c:2666:2: note: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 memcpy(iova_cap->iova_ranges, cap_iovas->iova_ranges, ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 13 warnings generated. >> drivers/hwmon/s3c-hwmon.c:95:28: warning: Call to function 'snprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return (ret < 0) ? ret : snprintf(buf, PAGE_SIZE, "%d\n", ret); ^~~~~~~~ drivers/hwmon/s3c-hwmon.c:95:28: note: Call to function 'snprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'snprintf_s' in case of C11 return (ret < 0) ? ret : snprintf(buf, PAGE_SIZE, "%d\n", ret); ^~~~~~~~ drivers/hwmon/s3c-hwmon.c:215:2: warning: Call to function 'snprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attrs->in_name, sizeof(attrs->in_name), "in%d_input", c= hannel); ^~~~~~~~ drivers/hwmon/s3c-hwmon.c:215:2: note: Call to function 'snprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'snprintf_s' in case of C11 snprintf(attrs->in_name, sizeof(attrs->in_name), "in%d_input", c= hannel); ^~~~~~~~ drivers/hwmon/s3c-hwmon.c:232:3: warning: Call to function 'snprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(attrs->label_name, sizeof(attrs->label_name), ^~~~~~~~ drivers/hwmon/s3c-hwmon.c:232:3: note: Call to function 'snprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'snprintf_s' in case of C11 snprintf(attrs->label_name, sizeof(attrs->label_name), ^~~~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 59 warnings generated. fs/ext4/resize.c:383:3: warning: Value stored to 'group' is never read [= clang-analyzer-deadcode.DeadStores] group =3D group_data[0].group; ^ ~~~~~~~~~~~~~~~~~~~ fs/ext4/resize.c:383:3: note: Value stored to 'group' is never read group =3D group_data[0].group; ^ ~~~~~~~~~~~~~~~~~~~ fs/ext4/resize.c:417:3: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/ext4/resize.c:417:3: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/ext4/resize.c:449:7: warning: Value stored to 'count2' is never read = [clang-analyzer-deadcode.DeadStores] for (count2 =3D count; count > 0; ^ ~~~~~ fs/ext4/resize.c:449:7: note: Value stored to 'count2' is never read for (count2 =3D count; count > 0; ^ ~~~~~ fs/ext4/resize.c:580:4: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(gdb->b_data, sbi_array_rcu_deref(sbi, ^~~~~~ fs/ext4/resize.c:580:4: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(gdb->b_data, sbi_array_rcu_deref(sbi, ^~~~~~ fs/ext4/resize.c:903:2: warning: Call to function 'memset' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memset_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memset(gdb_bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/ext4/resize.c:903:2: note: Call to function 'memset' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memset_s' in case of C11 memset(gdb_bh->b_data, 0, sb->s_blocksize); ^~~~~~ fs/ext4/resize.c:914:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(n_group_desc, o_group_desc, ^~~~~~ fs/ext4/resize.c:914:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(n_group_desc, o_group_desc, ^~~~~~ fs/ext4/resize.c:968:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(n_group_desc, o_group_desc, ^~~~~~ fs/ext4/resize.c:968:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(n_group_desc, o_group_desc, ^~~~~~ fs/ext4/resize.c:1003:27: warning: Access to field 'i_sb' results in a d= ereference of a null pointer (loaded from variable 'inode') [clang-analyzer= -core.NullDereference] struct super_block *sb =3D inode->i_sb; ^ fs/ext4/resize.c:1659:21: note: Assuming the condition is false int reserved_gdb =3D ext4_bg_has_super(sb, input->group) ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/resize.c:1659:21: note: '?' condition is false fs/ext4/resize.c:1661:2: note: 'inode' initialized to a null pointer val= ue struct inode *inode =3D NULL; ^~~~~~~~~~~~~~~~~~~ fs/ext4/resize.c:1668:6: note: Assuming 'gdb_off' is not equal to 0 if (gdb_off =3D=3D 0 && !ext4_has_feature_sparse_super(sb)) { ^~~~~~~~~~~~ fs/ext4/resize.c:1668:19: note: Left side of '&&' is false if (gdb_off =3D=3D 0 && !ext4_has_feature_sparse_super(sb)) { ^ fs/ext4/resize.c:1673:6: note: Assuming the condition is false if (ext4_blocks_count(es) + input->blocks_count < ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ext4/resize.c:1673:2: note: Taking false branch if (ext4_blocks_count(es) + input->blocks_count < ^ fs/ext4/resize.c:1679:6: note: Assuming the condition is false if (le32_to_cpu(es->s_inodes_count) + EXT4_INODES_PER_GROUP(sb) < ^ include/linux/byteorder/generic.h:89:21: note: expanded from macro 'le32= _to_cpu' #define le32_to_cpu __le32_to_cpu ^ include/uapi/linux/byteorder/little_endian.h:35:26: note: expanded from = macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ fs/ext4/resize.c:1679:2: note: Taking false branch -- include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON= _MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ include/linux/compiler_types.h:346:2: note: expanded from macro 'compile= time_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COU= NTER__) ^ include/linux/compiler_types.h:334:2: note: expanded from macro '_compil= etime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:318:2: note: expanded from macro '__compi= letime_assert' do { \ ^ fs/nilfs2/cpfile.c:460:3: note: Loop condition is false. Exiting loop kunmap_atomic(kaddr); ^ include/linux/highmem-internal.h:243:35: note: expanded from macro 'kunm= ap_atomic' #define kunmap_atomic(__addr) \ ^ fs/nilfs2/cpfile.c:440:2: note: Loop condition is false. Execution conti= nues on line 464 for (n =3D 0; n < nci; cno +=3D ncps) { ^ fs/nilfs2/cpfile.c:465:6: note: 'n' is > 0 if (n > 0) { ^ fs/nilfs2/cpfile.c:465:2: note: Taking true branch if (n > 0) { ^ fs/nilfs2/cpfile.c:467:22: note: The left operand of '+' is a garbage va= lue *cnop =3D ci->ci_cno + 1; ~~~~~~~~~~ ^ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. 56 warnings generated. 84 warnings generated. 112 warnings generated. 140 warnings generated. 168 warnings generated. 196 warnings generated. 224 warnings generated. drivers/mtd/tests/mtd_test.c:16:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ drivers/mtd/tests/mtd_test.c:16:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ Suppressed 216 warnings (216 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 32 warnings generated. drivers/mtd/tests/readtest.c:43:3: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(buf, 0 , pgsize); ^~~~~~ drivers/mtd/tests/readtest.c:43:3: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(buf, 0 , pgsize); ^~~~~~ drivers/mtd/tests/readtest.c:90:8: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] p +=3D sprintf(p, "%05x: ", i); ^~~~~~~ drivers/mtd/tests/readtest.c:90:8: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 p +=3D sprintf(p, "%05x: ", i); ^~~~~~~ drivers/mtd/tests/readtest.c:92:9: warning: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] p +=3D sprintf(p, "%02x", (unsigned int)iobuf[i]= ); ^~~~~~~ drivers/mtd/tests/readtest.c:92:9: note: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 p +=3D sprintf(p, "%02x", (unsigned int)iobuf[i]= ); ^~~~~~~ drivers/mtd/tests/readtest.c:104:9: warning: Call to function 'sprintf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] p +=3D sprintf(p, "%05x: ", i); ^~~~~~~ drivers/mtd/tests/readtest.c:104:9: note: Call to function 'sprintf' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'sprintf_s' in case of C11 p +=3D sprintf(p, "%05x: ", i); ^~~~~~~ drivers/mtd/tests/readtest.c:106:10: warning: Call to function 'sprintf'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] p +=3D sprintf(p, "%02x", ^~~~~~~ drivers/mtd/tests/readtest.c:106:10: note: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 p +=3D sprintf(p, "%02x", ^~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 57 warnings generated. drivers/media/cec/core/cec-notifier.c:118:3: warning: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&n->conn_info, 0, sizeof(n->conn_info)); ^~~~~~ drivers/media/cec/core/cec-notifier.c:118:3: note: Call to function 'mem= set' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memset_s' in case of C11 memset(&n->conn_info, 0, sizeof(n->conn_info)); ^~~~~~ drivers/media/cec/core/cec-notifier.c:135:2: warning: Call to function '= memset' is insecure as it does not provide security checks introduced in th= e C11 standard. Replace with analogous functions that support length argume= nts or provides boundary checks such as 'memset_s' in case of C11 [clang-an= alyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&n->conn_info, 0, sizeof(n->conn_info)); ^~~~~~ drivers/media/cec/core/cec-notifier.c:135:2: note: Call to function 'mem= set' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memset_s' in case of C11 memset(&n->conn_info, 0, sizeof(n->conn_info)); ^~~~~~ Suppressed 55 warnings (55 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. >> drivers/media/cec/core/cec-pin.c:331:2: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.msg)); ^~~~~~ drivers/media/cec/core/cec-pin.c:331:2: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.msg)); ^~~~~~ drivers/media/cec/core/cec-pin.c:583:4: warning: Call to function 'memse= t' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memset_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.ms= g)); ^~~~~~ drivers/media/cec/core/cec-pin.c:583:4: note: Call to function 'memset' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memset_s' in case of C11 memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.ms= g)); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 55 warnings generated. Suppressed 55 warnings (55 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. drivers/hwmon/adm1029.c:164:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index= ])); ^~~~~~~ drivers/hwmon/adm1029.c:164:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index= ])); ^~~~~~~ drivers/hwmon/adm1029.c:177:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0\n"); ^~~~~~~ drivers/hwmon/adm1029.c:177:10: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0\n"); ^~~~~~~ drivers/hwmon/adm1029.c:182:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", val); ^~~~~~~ drivers/hwmon/adm1029.c:182:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", val); ^~~~~~~ drivers/hwmon/adm1029.c:192:10: warning: Call to function 'sprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0\n"); ^~~~~~~ drivers/hwmon/adm1029.c:192:10: note: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0\n"); ^~~~~~~ drivers/hwmon/adm1029.c:193:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->ind= ex])); ^~~~~~~ drivers/hwmon/adm1029.c:193:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->ind= ex])); ^~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 52 warnings generated. drivers/media/tuners/xc5000.c:645:2: warning: 3rd function call argument= is an uninitialized value [clang-analyzer-core.CallAndMessage] dprintk(1, "*** ADC envelope (0-1023) =3D %d\n", adc_envelope); ^ drivers/media/tuners/xc5000.c:37:2: note: expanded from macro 'dprintk' printk(KERN_INFO "%s: " fmt, "xc5000", ## arg) ^ include/linux/printk.h:446:44: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^ drivers/media/tuners/xc5000.c:1286:2: note: Assuming 'debug' is < 1 dprintk(1, "%s()\n", __func__); ^ drivers/media/tuners/xc5000.c:36:41: note: expanded from macro 'dprintk' #define dprintk(level, fmt, arg...) if (debug >=3D level) \ ^~~~~~~~~~~~~~ drivers/media/tuners/xc5000.c:1286:2: note: Taking false branch dprintk(1, "%s()\n", __func__); ^ drivers/media/tuners/xc5000.c:36:37: note: expanded from macro 'dprintk' #define dprintk(level, fmt, arg...) if (debug >=3D level) \ ^ drivers/media/tuners/xc5000.c:1288:2: note: Taking false branch if (xc_load_fw_and_init_tuner(fe, 0) !=3D 0) { ^ drivers/media/tuners/xc5000.c:1293:6: note: Assuming 'debug' is not equa= l to 0 if (debug) ^~~~~ drivers/media/tuners/xc5000.c:1293:2: note: Taking true branch if (debug) ^ drivers/media/tuners/xc5000.c:1294:3: note: Calling 'xc_debug_dump' xc_debug_dump(priv); ^~~~~~~~~~~~~~~~~~~ drivers/media/tuners/xc5000.c:625:2: note: 'adc_envelope' declared witho= ut an initial value u16 adc_envelope; ^~~~~~~~~~~~~~~~ drivers/media/tuners/xc5000.c:644:2: note: Calling 'xc_get_adc_envelope' xc_get_adc_envelope(priv, &adc_envelope); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/xc5000.c:478:9: note: Calling 'xc5000_readreg' return xc5000_readreg(priv, XREG_ADC_ENV, adc_envelope); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/xc5000.c:284:6: note: Assuming the condition is true if (i2c_transfer(priv->i2c_props.adap, msg, 2) !=3D 2) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/tuners/xc5000.c:284:2: note: Taking true branch if (i2c_transfer(priv->i2c_props.adap, msg, 2) !=3D 2) { ^ drivers/media/tuners/xc5000.c:285:3: note: Loop condition is false. Exi= ting loop printk(KERN_WARNING "xc5000: I2C read failed\n"); -- ^ net/batman-adv/tvlv.c:197:2: note: Calling 'batadv_tvlv_container_put' batadv_tvlv_container_put(tvlv); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/batman-adv/tvlv.c:112:7: note: 'tvlv' is non-null if (!tvlv) ^~~~ net/batman-adv/tvlv.c:112:2: note: Taking false branch if (!tvlv) ^ net/batman-adv/tvlv.c:115:2: note: Calling 'kref_put' kref_put(&tvlv->refcount, batadv_tvlv_container_release); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kref.h:64:2: note: Taking true branch if (refcount_dec_and_test(&kref->refcount)) { ^ include/linux/kref.h:65:3: note: Calling 'batadv_tvlv_container_release' release(kref); ^~~~~~~~~~~~~ net/batman-adv/tvlv.c:102:2: note: Memory is released kfree(tvlv); ^~~~~~~~~~~ include/linux/kref.h:65:3: note: Returning; memory was released release(kref); ^~~~~~~~~~~~~ net/batman-adv/tvlv.c:115:2: note: Returning; memory was released kref_put(&tvlv->refcount, batadv_tvlv_container_release); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/batman-adv/tvlv.c:197:2: note: Returning; memory was released via 1s= t parameter batadv_tvlv_container_put(tvlv); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/batman-adv/tvlv.c:198:2: note: Use of memory after it is freed batadv_tvlv_container_put(tvlv); ^ ~~~~ net/batman-adv/tvlv.c:248:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); ^~~~~~ net/batman-adv/tvlv.c:248:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); ^~~~~~ net/batman-adv/tvlv.c:248:2: warning: Null pointer passed as 2nd argumen= t to memory copy function [clang-analyzer-unix.cstring.NullArg] memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); ^ ~~~~~~~~~~ net/batman-adv/tvlv.c:237:6: note: Assuming 'tvlv_value' is null if (!tvlv_value) ^~~~~~~~~~~ net/batman-adv/tvlv.c:237:2: note: Taking true branch if (!tvlv_value) ^ net/batman-adv/tvlv.c:240:13: note: Calling 'kzalloc' tvlv_new =3D kzalloc(sizeof(*tvlv_new) + tvlv_value_len, GFP_ATO= MIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ include/linux/slab.h:715:9: note: Calling 'kmalloc' return kmalloc(size, flags | __GFP_ZERO); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/slab.h:569:2: note: Taking false branch if (__builtin_constant_p(size)) { ^ include/linux/slab.h:586:2: note: Returning pointer, which participates = in a condition later return __kmalloc(size, flags); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/slab.h:715:9: note: Returning from 'kmalloc' return kmalloc(size, flags | __GFP_ZERO); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/slab.h:715:2: note: Returning pointer, which participates = in a condition later return kmalloc(size, flags | __GFP_ZERO); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/batman-adv/tvlv.c:240:13: note: Returning from 'kzalloc' tvlv_new =3D kzalloc(sizeof(*tvlv_new) + tvlv_value_len, GFP_ATO= MIC); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ net/batman-adv/tvlv.c:241:6: note: Assuming 'tvlv_new' is non-null if (!tvlv_new) ^~~~~~~~~ net/batman-adv/tvlv.c:241:2: note: Taking false branch if (!tvlv_new) ^ net/batman-adv/tvlv.c:248:2: note: Null pointer passed as 2nd argument t= o memory copy function memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); ^ ~~~~~~~~~~ net/batman-adv/tvlv.c:289:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(new_buff, *packet_buff, min_packet_len); ^~~~~~ net/batman-adv/tvlv.c:289:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(new_buff, *packet_buff, min_packet_len); ^~~~~~ net/batman-adv/tvlv.c:341:3: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len)); ^~~~~~ net/batman-adv/tvlv.c:341:3: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len)); ^~~~~~ net/batman-adv/tvlv.c:631:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tvlv_buff, tvlv_value, tvlv_value_len); ^~~~~~ net/batman-adv/tvlv.c:631:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(tvlv_buff, tvlv_value, tvlv_value_len); ^~~~~~ Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. >> drivers/md/dm-ps-service-time.c:138:15: warning: Call to function 'sscan= f' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (argc && (sscanf(argv[0], "%u%c", &repeat_count, &dummy) !=3D= 1)) { ^~~~~~ drivers/md/dm-ps-service-time.c:138:15: note: Call to function 'sscanf' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'sscanf_s' in case of C11 if (argc && (sscanf(argv[0], "%u%c", &repeat_count, &dummy) !=3D= 1)) { ^~~~~~ drivers/md/dm-ps-service-time.c:149:7: warning: Call to function 'sscanf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] (sscanf(argv[1], "%u%c", &relative_throughput, &dummy) !=3D = 1 || ^~~~~~ drivers/md/dm-ps-service-time.c:149:7: note: Call to function 'sscanf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sscanf_s' in case of C11 (sscanf(argv[1], "%u%c", &relative_throughput, &dummy) !=3D = 1 || ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. drivers/md/dm-snap.c:1323:2: warning: Value stored to 'argv' is never re= ad [clang-analyzer-deadcode.DeadStores] argv +=3D args_used; ^ ~~~~~~~~~ drivers/md/dm-snap.c:1323:2: note: Value stored to 'argv' is never read argv +=3D args_used; ^ ~~~~~~~~~ drivers/md/dm-snap.c:1324:2: warning: Value stored to 'argc' is never re= ad [clang-analyzer-deadcode.DeadStores] argc -=3D args_used; ^ ~~~~~~~~~ drivers/md/dm-snap.c:1324:2: note: Value stored to 'argc' is never read argc -=3D args_used; ^ ~~~~~~~~~ drivers/md/dm-snap.c:2745:3: warning: Call to function 'snprintf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(result, maxlen, "%s", o->dev->name); ^~~~~~~~ drivers/md/dm-snap.c:2745:3: note: Call to function 'snprintf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'snprintf_s' in case of C11 snprintf(result, maxlen, "%s", o->dev->name); ^~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 76 warnings generated. net/9p/trans_fd.c:351:3: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(m->rc.sdata, m->tmp_buf, m->rc.capacity); ^~~~~~ net/9p/trans_fd.c:351:3: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(m->rc.sdata, m->tmp_buf, m->rc.capacity); ^~~~~~ net/9p/trans_fd.c:936:7: warning: Call to function 'sscanf' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'sscanf_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] rc =3D sscanf(buf, "%d.%d.%d.%d", &in[0], &in[1], &in[2], &in[3]= ); ^~~~~~ net/9p/trans_fd.c:936:7: note: Call to function 'sscanf' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'sscanf_s' in case of C11 rc =3D sscanf(buf, "%d.%d.%d.%d", &in[0], &in[1], &in[2], &in[3]= ); ^~~~~~ net/9p/trans_fd.c:951:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(&cl, 0, sizeof(cl)); ^~~~~~ net/9p/trans_fd.c:951:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(&cl, 0, sizeof(cl)); ^~~~~~ net/9p/trans_fd.c:1036:2: warning: Call to function 'strcpy' is insecure= as it does not provide bounding of the memory buffer. Replace unbounded co= py functions with analogous functions that support length arguments such as= 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(sun_server.sun_path, addr); ^~~~~~ net/9p/trans_fd.c:1036:2: note: 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 's= trlcpy'. CWE-119 strcpy(sun_server.sun_path, addr); ^~~~~~ Suppressed 72 warnings (71 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 79 warnings generated. net/9p/trans_virtio.c:416:33: warning: The right operand of '+' is a gar= bage value [clang-analyzer-core.UndefinedBinaryOperatorResult] out_nr_pages =3D DIV_ROUND_UP(n + offs, PAGE_SIZE); ^ include/linux/math.h:36:22: note: expanded from macro 'DIV_ROUND_UP' #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP ^ include/uapi/linux/const.h:34:40: note: expanded from macro '__KERNEL_DI= V_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ net/9p/trans_virtio.c:402:2: note: 'offs' declared without an initial va= lue size_t offs; ^~~~~~~~~~~ net/9p/trans_virtio.c:406:2: note: Taking false branch p9_debug(P9_DEBUG_TRANS, "virtio request\n"); ^ include/net/9p/9p.h:56:2: note: expanded from macro 'p9_debug' no_printk(fmt, ##__VA_ARGS__) ^ include/linux/printk.h:131:2: note: expanded from macro 'no_printk' if (0) \ ^ net/9p/trans_virtio.c:408:6: note: Assuming 'uodata' is non-null if (uodata) { ^~~~~~ net/9p/trans_virtio.c:408:2: note: Taking true branch if (uodata) { ^ net/9p/trans_virtio.c:410:11: note: Calling 'p9_get_mapped_pages' int n =3D p9_get_mapped_pages(chan, &out_pages, uodata, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/9p/trans_virtio.c:319:6: note: Assuming the condition is true if (!iov_iter_count(data)) -- ret =3D snprintf( ^~~~~~~~ drivers/md/raid5-cache.c:2555:9: note: Call to function 'snprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'snprintf_s' in case of C11 ret =3D snprintf( ^~~~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 51 warnings generated. drivers/md/raid5-ppl.c:245:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(io, 0, sizeof(*io)); ^~~~~~ drivers/md/raid5-ppl.c:245:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(io, 0, sizeof(*io)); ^~~~~~ drivers/md/raid5-ppl.c:256:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] clear_page(pplhdr); ^ arch/arm/include/asm/page.h:139:26: note: expanded from macro 'clear_pag= e' #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE) ^~~~~~ drivers/md/raid5-ppl.c:256:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 clear_page(pplhdr); ^ arch/arm/include/asm/page.h:139:26: note: expanded from macro 'clear_pag= e' #define clear_page(page) memset((void *)(page), 0, PAGE_SIZE) ^~~~~~ drivers/md/raid5-ppl.c:257:2: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(pplhdr->reserved, 0xff, PPL_HDR_RESERVED); ^~~~~~ drivers/md/raid5-ppl.c:257:2: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(pplhdr->reserved, 0xff, PPL_HDR_RESERVED); ^~~~~~ drivers/md/raid5-ppl.c:863:3: warning: Call to function 'memset' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(page_address(page1), 0, PAGE_SIZE); ^~~~~~ drivers/md/raid5-ppl.c:863:3: note: Call to function 'memset' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memset_s' in case of C11 memset(page_address(page1), 0, PAGE_SIZE); ^~~~~~ drivers/md/raid5-ppl.c:1064:2: warning: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(pplhdr->reserved, 0xff, PPL_HDR_RESERVED); ^~~~~~ drivers/md/raid5-ppl.c:1064:2: note: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 memset(pplhdr->reserved, 0xff, PPL_HDR_RESERVED); ^~~~~~ drivers/md/raid5-ppl.c:1513:8: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] ret =3D sprintf(buf, "%d\n", ppl_conf ? ppl_conf->write_hint : 0= ); ^~~~~~~ drivers/md/raid5-ppl.c:1513:8: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 ret =3D sprintf(buf, "%d\n", ppl_conf ? ppl_conf->write_hint : 0= ); ^~~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/regulator/as3722-regulator.c:46:8: warning: Excessive padding in= 'struct as3722_register_mapping' (14 padding bytes, where 2 is optimal). = Optimal fields order: = name, = sname, = n_voltages, = enable_reg, = control_reg, = sleep_ctrl_reg, = regulator_id, = vsel_reg, = vsel_mask, = enable_mask, = mode_mask, = sleep_ctrl_mask, = consider reordering the fields or adding explicit padding members [clang= -analyzer-optin.performance.Padding] struct as3722_register_mapping { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/regulator/as3722-regulator.c:46:8: note: Excessive padding in 's= truct as3722_register_mapping' (14 padding bytes, where 2 is optimal). Opti= mal fields order: name, sname, n_voltages, enable_reg, control_reg, sleep_c= trl_reg, regulator_id, vsel_reg, vsel_mask, enable_mask, mode_mask, sleep_c= trl_mask, consider reordering the fields or adding explicit padding members struct as3722_register_mapping { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 67 warnings generated. net/batman-adv/bat_iv_ogm.c:575:2: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(skb_buff, packet_buff, packet_len); ^~~~~~ net/batman-adv/bat_iv_ogm.c:575:2: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(skb_buff, packet_buff, packet_len); ^~~~~~ Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 68 warnings generated. >> net/batman-adv/bat_v_elp.c:128:2: warning: Call to function 'memset' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-secu= rity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&link_settings, 0, sizeof(link_settings)); ^~~~~~ net/batman-adv/bat_v_elp.c:128:2: note: Call to function 'memset' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'memset_s' in case of C11 memset(&link_settings, 0, sizeof(link_settings)); ^~~~~~ Suppressed 67 warnings (67 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 18 warnings generated. drivers/fpga/fpga-bridge.c:289:9: warning: Call to function 'sprintf' is= insecure as it does not provide bounding of the memory buffer or security = checks introduced in the C11 standard. Replace with analogous functions tha= t support length arguments or provides boundary checks such as 'sprintf_s' = in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBuffe= rHandling] return sprintf(buf, "%s\n", bridge->name); ^~~~~~~ drivers/fpga/fpga-bridge.c:289:9: note: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 return sprintf(buf, "%s\n", bridge->name); ^~~~~~~ drivers/fpga/fpga-bridge.c:301:9: warning: Call to function 'sprintf' is= insecure as it does not provide bounding of the memory buffer or security = checks introduced in the C11 standard. Replace with analogous functions tha= t support length arguments or provides boundary checks such as 'sprintf_s' = in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBuffe= rHandling] return sprintf(buf, "%s\n", enable ? "enabled" : "disabled"); ^~~~~~~ drivers/fpga/fpga-bridge.c:301:9: note: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 return sprintf(buf, "%s\n", enable ? "enabled" : "disabled"); ^~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. drivers/fpga/fpga-region.c:169:9: warning: Call to function 'sprintf' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%016llx%016llx\n", ^~~~~~~ drivers/fpga/fpga-region.c:169:9: note: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%016llx%016llx\n", ^~~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 103 warnings generated. Suppressed 103 warnings (97 in non-user code, 6 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 98 warnings generated. Suppressed 98 warnings (97 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 81 warnings generated. Suppressed 81 warnings (80 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. drivers/leds/flash/leds-lm3601x.c:226:3: warning: Value stored to 'ret' = is never read [clang-analyzer-deadcode.DeadStores] ret =3D regmap_update_bits(led->regmap, LM3601X_CFG_REG, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/flash/leds-lm3601x.c:226:3: note: Value stored to 'ret' is = never read ret =3D regmap_update_bits(led->regmap, LM3601X_CFG_REG, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/flash/leds-lm3601x.c:230:3: warning: Value stored to 'ret' = is never read [clang-analyzer-deadcode.DeadStores] ret =3D regmap_update_bits(led->regmap, LM3601X_ENABLE_R= EG, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/flash/leds-lm3601x.c:230:3: note: Value stored to 'ret' is = never read ret =3D regmap_update_bits(led->regmap, LM3601X_ENABLE_R= EG, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/flash/leds-lm3601x.c:234:3: warning: Value stored to 'ret' = is never read [clang-analyzer-deadcode.DeadStores] ret =3D regmap_update_bits(led->regmap, LM3601X_ENABLE_R= EG, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/leds/flash/leds-lm3601x.c:234:3: note: Value stored to 'ret' is = never read ret =3D regmap_update_bits(led->regmap, LM3601X_ENABLE_R= EG, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. Suppressed 45 warnings (44 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/leds/leds-mlxreg.c:232:3: warning: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(led_data->led_cdev_name, sizeof(led_data->led_c= dev_name), ^~~~~~~~ drivers/leds/leds-mlxreg.c:232:3: note: Call to function 'snprintf' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'snprintf_s' in case of C11 snprintf(led_data->led_cdev_name, sizeof(led_data->led_c= dev_name), ^~~~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 47 warnings generated. fs/inode.c:407:2: warning: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI= .DeprecatedOrUnsafeBufferHandling] memset(mapping, 0, sizeof(*mapping)); ^~~~~~ fs/inode.c:407:2: note: Call to function 'memset' is insecure as it does= not provide security checks introduced in the C11 standard. Replace with a= nalogous functions that support length arguments or provides boundary check= s such as 'memset_s' in case of C11 memset(mapping, 0, sizeof(*mapping)); ^~~~~~ fs/inode.c:419:2: warning: Call to function 'memset' is insecure as it d= oes not provide security checks introduced in the C11 standard. Replace wit= h analogous functions that support length arguments or provides boundary ch= ecks such as 'memset_s' in case of C11 [clang-analyzer-security.insecureAPI= .DeprecatedOrUnsafeBufferHandling] memset(inode, 0, sizeof(*inode)); ^~~~~~ fs/inode.c:419:2: note: Call to function 'memset' is insecure as it does= not provide security checks introduced in the C11 standard. Replace with a= nalogous functions that support length arguments or provides boundary check= s such as 'memset_s' in case of C11 memset(inode, 0, sizeof(*inode)); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 10 warnings generated. Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. drivers/staging/greybus/gbphy.c:34:9: warning: Call to function 'sprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'sprintf_s' in case of C11 [clang-analyze= r-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "0x%02x\n", gbphy_dev->cport_desc->protocol_= id); ^~~~~~~ drivers/staging/greybus/gbphy.c:34:9: note: Call to function 'sprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "0x%02x\n", gbphy_dev->cport_desc->protocol_= id); ^~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 38 warnings generated. drivers/staging/greybus/uart.c:273:3: warning: Value stored to 'ret' is = never read [clang-analyzer-deadcode.DeadStores] ret =3D kfifo_out(&gb_tty->write_fifo, &request->data[0], ^ drivers/staging/greybus/uart.c:273:3: note: Value stored to 'ret' is nev= er read drivers/staging/greybus/uart.c:520:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&gb_tty->line_coding, &newline, sizeof(newline)); ^~~~~~ drivers/staging/greybus/uart.c:520:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&gb_tty->line_coding, &newline, sizeof(newline)); ^~~~~~ drivers/staging/greybus/uart.c:571:3: warning: Value stored to 'retval' = is never read [clang-analyzer-deadcode.DeadStores] retval =3D send_control(gb_tty, gb_tty->ctrlout); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/staging/greybus/uart.c:571:3: note: Value stored to 'retval' is = never read retval =3D send_control(gb_tty, gb_tty->ctrlout); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/staging/greybus/uart.c:590:3: warning: Value stored to 'retval' = is never read [clang-analyzer-deadcode.DeadStores] retval =3D send_control(gb_tty, gb_tty->ctrlout); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/staging/greybus/uart.c:590:3: note: Value stored to 'retval' is = never read retval =3D send_control(gb_tty, gb_tty->ctrlout); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. >> drivers/video/fbdev/core/fbcon_ccw.c:347:3: warning: Call to function 'm= emset' is insecure as it does not provide security checks introduced in the= C11 standard. Replace with analogous functions that support length argumen= ts or provides boundary checks such as 'memset_s' in case of C11 [clang-ana= lyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(mask, 0, w * vc->vc_font.width); ^~~~~~ drivers/video/fbdev/core/fbcon_ccw.c:347:3: note: Call to function 'mems= et' is insecure as it does not provide security checks introduced in the C1= 1 standard. Replace with analogous functions that support length arguments = or provides boundary checks such as 'memset_s' in case of C11 memset(mask, 0, w * vc->vc_font.width); ^~~~~~ Suppressed 45 warnings (45 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 17 warnings generated. drivers/mtd/nand/raw/gpio.c:250:3: warning: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(plat, dev_get_platdata(dev), sizeof(*plat)); ^~~~~~ drivers/mtd/nand/raw/gpio.c:250:3: note: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 memcpy(plat, dev_get_platdata(dev), sizeof(*plat)); ^~~~~~ Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 49 warnings generated. drivers/scsi/libsas/sas_scsi_host.c:87:4: warning: Call to function 'mem= cpy' is insecure as it does not provide security checks introduced in the C= 11 standard. Replace with analogous functions that support length arguments= or provides boundary checks such as 'memcpy_s' in case of C11 [clang-analy= zer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(sc->sense_buffer, ts->buf, ^~~~~~ drivers/scsi/libsas/sas_scsi_host.c:87:4: note: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 memcpy(sc->sense_buffer, ts->buf, ^~~~~~ drivers/scsi/libsas/sas_scsi_host.c:150:2: warning: Call to function 'me= mcpy' is insecure as it does not provide security checks introduced in the = C11 standard. Replace with analogous functions that support length argument= s or provides boundary checks such as 'memcpy_s' in case of C11 [clang-anal= yzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); ^~~~~~ drivers/scsi/libsas/sas_scsi_host.c:150:2: note: Call to function 'memcp= y' is insecure as it does not provide security checks introduced in the C11= standard. Replace with analogous functions that support length arguments o= r provides boundary checks such as 'memcpy_s' in case of C11 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 48 warnings generated. drivers/scsi/libsas/sas_task.c:27:3: warning: Call to function 'memcpy' = is insecure as it does not provide security checks introduced in the C11 st= andard. Replace with analogous functions that support length arguments or p= rovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-s= ecurity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tstat->buf, iu->sense_data, tstat->buf_valid_size= ); ^~~~~~ drivers/scsi/libsas/sas_task.c:27:3: note: Call to function 'memcpy' is = insecure as it does not provide security checks introduced in the C11 stand= ard. Replace with analogous functions that support length arguments or prov= ides boundary checks such as 'memcpy_s' in case of C11 memcpy(tstat->buf, iu->sense_data, tstat->buf_valid_size= ); ^~~~~~ Suppressed 47 warnings (47 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 34 warnings generated. Suppressed 34 warnings (34 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 27 warnings generated. Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 29 warnings generated. drivers/input/serio/arc_ps2.c:166:2: warning: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(io->name, sizeof(io->name), "ARC PS/2 port%d", index); ^~~~~~~~ drivers/input/serio/arc_ps2.c:166:2: note: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 snprintf(io->name, sizeof(io->name), "ARC PS/2 port%d", index); ^~~~~~~~ drivers/input/serio/arc_ps2.c:167:2: warning: Call to function 'snprintf= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'snprintf_s' in case of C11 [clang-analyz= er-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] snprintf(io->phys, sizeof(io->phys), "arc/serio%d", index); ^~~~~~~~ drivers/input/serio/arc_ps2.c:167:2: note: Call to function 'snprintf' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'snprintf_s' in case of C11 snprintf(io->phys, sizeof(io->phys), "arc/serio%d", index); ^~~~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/input/serio/userio.c:145:4: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buf, &userio->buf[userio->tail], copylen); ^~~~~~ drivers/input/serio/userio.c:145:4: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(buf, &userio->buf[userio->tail], copylen); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 63 warnings generated. Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/hwmon/pmbus/max20730.c:726:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&data->info, &max20730_info[chip_id], sizeof(data->info)); ^~~~~~ drivers/hwmon/pmbus/max20730.c:726:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(&data->info, &max20730_info[chip_id], sizeof(data->info)); ^~~~~~ drivers/hwmon/pmbus/max20730.c:730:3: warning: Call to function 'memset'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(data->vout_voltage_divider, 0, sizeof(data->vout_= voltage_divider)); ^~~~~~ drivers/hwmon/pmbus/max20730.c:730:3: note: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 memset(data->vout_voltage_divider, 0, sizeof(data->vout_= voltage_divider)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/hwmon/pmbus/mp2975.c:694:2: warning: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&data->info, &mp2975_info, sizeof(*info)); ^~~~~~ drivers/hwmon/pmbus/mp2975.c:694:2: note: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 memcpy(&data->info, &mp2975_info, sizeof(*info)); ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 55 warnings generated. >> drivers/media/cec/platform/cros-ec/cros-ec-cec.c:48:2: warning: Call to = function 'memcpy' is insecure as it does not provide security checks introd= uced in the C11 standard. Replace with analogous functions that support len= gth arguments or provides boundary checks such as 'memcpy_s' in case of C11= [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(cros_ec_cec->rx_msg.msg, cec_message, len); ^~~~~~ drivers/media/cec/platform/cros-ec/cros-ec-cec.c:48:2: note: Call to fun= ction 'memcpy' is insecure as it does not provide security checks introduce= d in the C11 standard. Replace with analogous functions that support length= arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(cros_ec_cec->rx_msg.msg, cec_message, len); ^~~~~~ drivers/media/cec/platform/cros-ec/cros-ec-cec.c:130:2: warning: Call to= function 'memcpy' is insecure as it does not provide security checks intro= duced in the C11 standard. Replace with analogous functions that support le= ngth arguments or provides boundary checks such as 'memcpy_s' in case of C1= 1 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(msg.data.msg, cec_msg->msg, cec_msg->len); ^~~~~~ drivers/media/cec/platform/cros-ec/cros-ec-cec.c:130:2: note: Call to fu= nction 'memcpy' is insecure as it does not provide security checks introduc= ed in the C11 standard. Replace with analogous functions that support lengt= h arguments or provides boundary checks such as 'memcpy_s' in case of C11 memcpy(msg.data.msg, cec_msg->msg, cec_msg->len); ^~~~~~ Suppressed 53 warnings (46 in non-user code, 7 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. Suppressed 46 warnings (46 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 12 warnings generated. drivers/w1/masters/ds1wm.c:567:2: warning: Value stored to 'inten' is ne= ver read [clang-analyzer-deadcode.DeadStores] inten =3D ds1wm_read_register(ds1wm_data, DS1WM_INT_EN); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/w1/masters/ds1wm.c:567:2: note: Value stored to 'inten' is never= read inten =3D ds1wm_read_register(ds1wm_data, DS1WM_INT_EN); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Suppressed 11 warnings (10 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 14 warnings generated. drivers/hwmon/adt7x10.c:235:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", ADT7X10_REG_TO_TEMP(data, ^~~~~~~ drivers/hwmon/adt7x10.c:235:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", ADT7X10_REG_TO_TEMP(data, ^~~~~~~ drivers/hwmon/adt7x10.c:278:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", ^~~~~~~ drivers/hwmon/adt7x10.c:278:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", ^~~~~~~ drivers/hwmon/adt7x10.c:315:9: warning: Call to function 'sprintf' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%d\n", !!(ret & attr->index)); ^~~~~~~ drivers/hwmon/adt7x10.c:315:9: note: Call to function 'sprintf' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%d\n", !!(ret & attr->index)); ^~~~~~~ drivers/hwmon/adt7x10.c:323:9: warning: Call to function 'sprintf' is in= secure as it does not provide bounding of the memory buffer or security che= cks introduced in the C11 standard. Replace with analogous functions that s= upport length arguments or provides boundary checks such as 'sprintf_s' in = case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHa= ndling] return sprintf(buf, "%s\n", data->name); ^~~~~~~ drivers/hwmon/adt7x10.c:323:9: note: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 return sprintf(buf, "%s\n", data->name); ^~~~~~~ Suppressed 10 warnings (10 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 69 warnings generated. net/hsr/hsr_forward.c:143:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(dst, src, copylen); ^~~~~~ net/hsr/hsr_forward.c:143:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(dst, src, copylen); ^~~~~~ net/hsr/hsr_forward.c:314:2: warning: Call to function 'memmove' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memmove_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] memmove(dst, src, movelen); ^~~~~~~ net/hsr/hsr_forward.c:314:2: note: Call to function 'memmove' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'memmove_s' in case of C11 memmove(dst, src, movelen); ^~~~~~~ net/hsr/hsr_forward.c:578:2: warning: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(frame, 0, sizeof(*frame)); ^~~~~~ net/hsr/hsr_forward.c:578:2: note: Call to function 'memset' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memset_s' in case of C11 memset(frame, 0, sizeof(*frame)); ^~~~~~ Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 66 warnings generated. Suppressed 66 warnings (66 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 70 warnings generated. net/nfc/nci/rsp.c:65:2: warning: Call to function 'memcpy' is insecure a= s it does not provide security checks introduced in the C11 standard. Repla= ce with analogous functions that support length arguments or provides bound= ary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.insec= ureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(ndev->supported_rf_interfaces, ^~~~~~ net/nfc/nci/rsp.c:65:2: note: Call to function 'memcpy' is insecure as i= t does not provide security checks introduced in the C11 standard. Replace = with analogous functions that support length arguments or provides boundary= checks such as 'memcpy_s' in case of C11 memcpy(ndev->supported_rf_interfaces, ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 71 warnings generated. net/nfc/nci/hci.c:118:2: warning: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memset(hdev->gate2pipe, NCI_HCI_INVALID_PIPE, sizeof(hdev->gate2= pipe)); ^~~~~~ net/nfc/nci/hci.c:118:2: note: Call to function 'memset' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memset_s' in case of C11 memset(hdev->gate2pipe, NCI_HCI_INVALID_PIPE, sizeof(hdev->gate2= pipe)); ^~~~~~ net/nfc/nci/hci.c:576:2: warning: Call to function 'memcpy' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.inse= cureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(tmp + 1, param, param_len); ^~~~~~ net/nfc/nci/hci.c:576:2: note: Call to function 'memcpy' is insecure as = it does not provide security checks introduced in the C11 standard. Replace= with analogous functions that support length arguments or provides boundar= y checks such as 'memcpy_s' in case of C11 memcpy(tmp + 1, param, param_len); ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 60 warnings generated. >> net/nfc/nci/uart.c:120:2: warning: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.ins= ecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(nu, nci_uart_drivers[driver], sizeof(struct nci_uart)); ^~~~~~ net/nfc/nci/uart.c:120:2: note: Call to function 'memcpy' is insecure as= it does not provide security checks introduced in the C11 standard. Replac= e with analogous functions that support length arguments or provides bounda= ry checks such as 'memcpy_s' in case of C11 memcpy(nu, nci_uart_drivers[driver], sizeof(struct nci_uart)); ^~~~~~ Suppressed 59 warnings (59 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. drivers/hwmon/hwmon.c:70:9: warning: Call to function 'sprintf' is insec= ure as it does not provide bounding of the memory buffer or security checks= introduced in the C11 standard. Replace with analogous functions that supp= ort length arguments or provides boundary checks such as 'sprintf_s' in cas= e of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandl= ing] return sprintf(buf, "%s\n", to_hwmon_device(dev)->name); ^~~~~~~ drivers/hwmon/hwmon.c:70:9: note: Call to function 'sprintf' is insecure= as it does not provide bounding of the memory buffer or security checks in= troduced in the C11 standard. Replace with analogous functions that support= length arguments or provides boundary checks such as 'sprintf_s' in case o= f C11 return sprintf(buf, "%s\n", to_hwmon_device(dev)->name); ^~~~~~~ drivers/hwmon/hwmon.c:312:9: warning: Call to function 'sprintf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sprintf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] return sprintf(buf, "%ld\n", val); ^~~~~~~ drivers/hwmon/hwmon.c:312:9: note: Call to function 'sprintf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sprintf_s' in case of C11 return sprintf(buf, "%ld\n", val); ^~~~~~~ drivers/hwmon/hwmon.c:332:9: warning: Call to function 'sprintf' is inse= cure as it does not provide bounding of the memory buffer or security check= s introduced in the C11 standard. Replace with analogous functions that sup= port length arguments or provides boundary checks such as 'sprintf_s' in ca= se of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHand= ling] return sprintf(buf, "%s\n", s); ^~~~~~~ drivers/hwmon/hwmon.c:332:9: note: Call to function 'sprintf' is insecur= e as it does not provide bounding of the memory buffer or security checks i= ntroduced in the C11 standard. Replace with analogous functions that suppor= t length arguments or provides boundary checks such as 'sprintf_s' in case = of C11 return sprintf(buf, "%s\n", s); ^~~~~~~ drivers/hwmon/hwmon.c:912:13: warning: Call to function 'sscanf' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-security= .insecureAPI.DeprecatedOrUnsafeBufferHandling] if (likely(sscanf(dev_name(dev), HWMON_ID_FORMAT, &id) =3D=3D 1)= ) { ^ include/linux/compiler.h:77:40: note: expanded from macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^ drivers/hwmon/hwmon.c:912:13: note: Call to function 'sscanf' is insecur= e as it does not provide security checks introduced in the C11 standard. Re= place with analogous functions that support length arguments or provides bo= undary checks such as 'sscanf_s' in case of C11 if (likely(sscanf(dev_name(dev), HWMON_ID_FORMAT, &id) =3D=3D 1)= ) { ^ include/linux/compiler.h:77:40: note: expanded from macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^ Suppressed 40 warnings (40 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 45 warnings generated. drivers/media/tuners/mc44s803.c:342:2: warning: Call to function 'memcpy= ' is insecure as it does not provide security checks introduced in the C11 = standard. Replace with analogous functions that support length arguments or= provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer= -security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&fe->ops.tuner_ops, &mc44s803_tuner_ops, ^~~~~~ drivers/media/tuners/mc44s803.c:342:2: note: Call to function 'memcpy' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memcpy_s' in case of C11 memcpy(&fe->ops.tuner_ops, &mc44s803_tuner_ops, ^~~~~~ Suppressed 44 warnings (43 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. 56 warnings generated. 84 warnings generated. 112 warnings generated. 140 warnings generated. 168 warnings generated. 196 warnings generated. 224 warnings generated. drivers/mtd/tests/mtd_test.c:16:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ drivers/mtd/tests/mtd_test.c:16:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ Suppressed 216 warnings (216 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. drivers/mtd/tests/speedtest.c:49:2: warning: Call to function 'memset' i= s insecure as it does not provide security checks introduced in the C11 sta= ndard. Replace with analogous functions that support length arguments or pr= ovides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-se= curity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ drivers/mtd/tests/speedtest.c:49:2: note: Call to function 'memset' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memset_s' in case of C11 memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ Suppressed 27 warnings (27 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 28 warnings generated. 56 warnings generated. 84 warnings generated. 112 warnings generated. 140 warnings generated. 168 warnings generated. 196 warnings generated. 224 warnings generated. drivers/mtd/tests/mtd_test.c:16:2: warning: Call to function 'memset' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memset_s' in case of C11 [clang-analyzer-sec= urity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ drivers/mtd/tests/mtd_test.c:16:2: note: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 memset(&ei, 0, sizeof(struct erase_info)); ^~~~~~ Suppressed 216 warnings (216 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 70 warnings generated. net/core/net_namespace.c:115:2: warning: Call to function 'memcpy' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(&ng->ptr[MIN_PERNET_OPS_ID], &old_ng->ptr[MIN_PERNET_OPS_= ID], ^~~~~~ net/core/net_namespace.c:115:2: note: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 memcpy(&ng->ptr[MIN_PERNET_OPS_ID], &old_ng->ptr[MIN_PERNET_OPS_= ID], ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 43 warnings generated. -- 16 warnings generated. Suppressed 16 warnings (16 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 36 warnings generated. drivers/mtd/ubi/attach.c:878:2: warning: Call to function 'memset' is in= secure as it does not provide security checks introduced in the C11 standar= d. Replace with analogous functions that support length arguments or provid= es boundary checks such as 'memset_s' in case of C11 [clang-analyzer-securi= ty.insecureAPI.DeprecatedOrUnsafeBufferHandling] memset(ubi->peb_buf, 0x00, ubi->leb_size); ^~~~~~ drivers/mtd/ubi/attach.c:878:2: note: Call to function 'memset' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memset_s' in case of C11 memset(ubi->peb_buf, 0x00, ubi->leb_size); ^~~~~~ Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 35 warnings generated. Suppressed 35 warnings (35 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 11 warnings generated. Suppressed 11 warnings (11 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 71 warnings generated. net/mac802154/llsec.c:29:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(sec, 0, sizeof(*sec)); ^~~~~~ net/mac802154/llsec.c:29:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(sec, 0, sizeof(*sec)); ^~~~~~ net/mac802154/llsec.c:31:2: warning: Call to function 'memset' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'memset_s' in case of C11 [clang-analyzer-security.i= nsecureAPI.DeprecatedOrUnsafeBufferHandling] memset(&sec->params.default_key_source, 0xFF, IEEE802154_ADDR_LE= N); ^~~~~~ net/mac802154/llsec.c:31:2: note: Call to function 'memset' is insecure = as it does not provide security checks introduced in the C11 standard. Repl= ace with analogous functions that support length arguments or provides boun= dary checks such as 'memset_s' in case of C11 memset(&sec->params.default_key_source, 0xFF, IEEE802154_ADDR_LE= N); ^~~~~~ net/mac802154/llsec.c:603:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(iv + 1, &addr_bytes, sizeof(addr_bytes)); ^~~~~~ net/mac802154/llsec.c:603:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(iv + 1, &addr_bytes, sizeof(addr_bytes)); ^~~~~~ net/mac802154/llsec.c:604:2: warning: Call to function 'memcpy' is insec= ure as it does not provide security checks introduced in the C11 standard. = Replace with analogous functions that support length arguments or provides = boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-security.= insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(iv + 9, &frame_counter, sizeof(frame_counter)); ^~~~~~ net/mac802154/llsec.c:604:2: note: Call to function 'memcpy' is insecure= as it does not provide security checks introduced in the C11 standard. Rep= lace with analogous functions that support length arguments or provides bou= ndary checks such as 'memcpy_s' in case of C11 memcpy(iv + 9, &frame_counter, sizeof(frame_counter)); ^~~~~~ Suppressed 67 warnings (67 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 46 warnings generated. Suppressed 46 warnings (46 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 96 warnings generated. net/core/sock_reuseport.c:197:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(more_reuse->socks, reuse->socks, ^~~~~~ net/core/sock_reuseport.c:197:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(more_reuse->socks, reuse->socks, ^~~~~~ net/core/sock_reuseport.c:199:2: warning: Call to function 'memcpy' is i= nsecure as it does not provide security checks introduced in the C11 standa= rd. Replace with analogous functions that support length arguments or provi= des boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-secur= ity.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(more_reuse->socks + ^~~~~~ net/core/sock_reuseport.c:199:2: note: Call to function 'memcpy' is inse= cure as it does not provide security checks introduced in the C11 standard.= Replace with analogous functions that support length arguments or provides= boundary checks such as 'memcpy_s' in case of C11 memcpy(more_reuse->socks + ^~~~~~ Suppressed 94 warnings (93 in non-user code, 1 with check filters). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 63 warnings generated. Suppressed 63 warnings (63 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 74 warnings generated. net/decnet/sysctl_net_decnet.c:150:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(addr, buffer, len); ^~~~~~ net/decnet/sysctl_net_decnet.c:150:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(addr, buffer, len); ^~~~~~ net/decnet/sysctl_net_decnet.c:174:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, addr, len); ^~~~~~ net/decnet/sysctl_net_decnet.c:174:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(buffer, addr, len); ^~~~~~ net/decnet/sysctl_net_decnet.c:197:3: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(devname, buffer, *lenp); ^~~~~~ net/decnet/sysctl_net_decnet.c:197:3: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(devname, buffer, *lenp); ^~~~~~ net/decnet/sysctl_net_decnet.c:225: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 argum= ents such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] strcpy(devname, dev->name); ^~~~~~ net/decnet/sysctl_net_decnet.c:225:2: note: Call to function 'strcpy' is= insecure as it does not provide bounding of the memory buffer. Replace unb= ounded copy functions with analogous functions that support length argument= s such as 'strlcpy'. CWE-119 strcpy(devname, dev->name); ^~~~~~ net/decnet/sysctl_net_decnet.c:232:2: warning: Call to function 'memcpy'= is insecure as it does not provide security checks introduced in the C11 s= tandard. Replace with analogous functions that support length arguments or = provides boundary checks such as 'memcpy_s' in case of C11 [clang-analyzer-= security.insecureAPI.DeprecatedOrUnsafeBufferHandling] memcpy(buffer, devname, len); ^~~~~~ net/decnet/sysctl_net_decnet.c:232:2: note: Call to function 'memcpy' is= insecure as it does not provide security checks introduced in the C11 stan= dard. Replace with analogous functions that support length arguments or pro= vides boundary checks such as 'memcpy_s' in case of C11 memcpy(buffer, devname, len); ^~~~~~ Suppressed 69 warnings (69 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. 44 warnings generated. >> drivers/md/dm-unstripe.c:81:6: warning: Call to function 'sscanf' is ins= ecure as it does not provide security checks introduced in the C11 standard= . Replace with analogous functions that support length arguments or provide= s boundary checks such as 'sscanf_s' in case of C11 [clang-analyzer-securit= y.insecureAPI.DeprecatedOrUnsafeBufferHandling] if (sscanf(argv[4], "%llu%c", &start, &dummy) !=3D 1 || start != =3D (sector_t)start) { ^~~~~~ drivers/md/dm-unstripe.c:81:6: note: Call to function 'sscanf' is insecu= re as it does not provide security checks introduced in the C11 standard. R= eplace with analogous functions that support length arguments or provides b= oundary checks such as 'sscanf_s' in case of C11 if (sscanf(argv[4], "%llu%c", &start, &dummy) !=3D 1 || start != =3D (sector_t)start) { ^~~~~~ Suppressed 43 warnings (43 in non-user code). Use -header-filter=3D.* to display errors from all non-system headers. U= se -system-headers to display errors from system headers as well. vim +49 arch/arm/kernel/crash_dump.c 67742c8168ed66 Mika Westerberg 2010-05-10 17 = 67742c8168ed66 Mika Westerberg 2010-05-10 18 /** 67742c8168ed66 Mika Westerberg 2010-05-10 19 * copy_oldmem_page() - copy= one page from old kernel memory 67742c8168ed66 Mika Westerberg 2010-05-10 20 * @pfn: page frame number t= o be copied 67742c8168ed66 Mika Westerberg 2010-05-10 21 * @buf: buffer where the co= pied page is placed 67742c8168ed66 Mika Westerberg 2010-05-10 22 * @csize: number of bytes t= o copy 67742c8168ed66 Mika Westerberg 2010-05-10 23 * @offset: offset in bytes = into the page 67742c8168ed66 Mika Westerberg 2010-05-10 24 * @userbuf: if set, @buf is= int he user address space 67742c8168ed66 Mika Westerberg 2010-05-10 25 * 67742c8168ed66 Mika Westerberg 2010-05-10 26 * This function copies one = page from old kernel memory into buffer pointed by 67742c8168ed66 Mika Westerberg 2010-05-10 27 * @buf. If @buf is in users= pace, set @userbuf to %1. Returns number of bytes 67742c8168ed66 Mika Westerberg 2010-05-10 28 * copied or negative error = in case of failure. 67742c8168ed66 Mika Westerberg 2010-05-10 29 */ 67742c8168ed66 Mika Westerberg 2010-05-10 30 ssize_t copy_oldmem_page(uns= igned long pfn, char *buf, 67742c8168ed66 Mika Westerberg 2010-05-10 31 size_t csize, unsigned l= ong offset, 67742c8168ed66 Mika Westerberg 2010-05-10 32 int userbuf) 67742c8168ed66 Mika Westerberg 2010-05-10 33 { 67742c8168ed66 Mika Westerberg 2010-05-10 34 void *vaddr; 67742c8168ed66 Mika Westerberg 2010-05-10 35 = 67742c8168ed66 Mika Westerberg 2010-05-10 36 if (!csize) 67742c8168ed66 Mika Westerberg 2010-05-10 37 return 0; 67742c8168ed66 Mika Westerberg 2010-05-10 38 = 8fad87bca7ac97 Liu Hua 2014-03-27 39 vaddr =3D ioremap(__pfn_to_= phys(pfn), PAGE_SIZE); 67742c8168ed66 Mika Westerberg 2010-05-10 40 if (!vaddr) 67742c8168ed66 Mika Westerberg 2010-05-10 41 return -ENOMEM; 67742c8168ed66 Mika Westerberg 2010-05-10 42 = 67742c8168ed66 Mika Westerberg 2010-05-10 43 if (userbuf) { 67742c8168ed66 Mika Westerberg 2010-05-10 44 if (copy_to_user(buf, vadd= r + offset, csize)) { 67742c8168ed66 Mika Westerberg 2010-05-10 45 iounmap(vaddr); 67742c8168ed66 Mika Westerberg 2010-05-10 46 return -EFAULT; 67742c8168ed66 Mika Westerberg 2010-05-10 47 } 67742c8168ed66 Mika Westerberg 2010-05-10 48 } else { 67742c8168ed66 Mika Westerberg 2010-05-10 @49 memcpy(buf, vaddr + offset= , csize); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6757797389905345875==--