All of lore.kernel.org
 help / color / mirror / Atom feed
* [rppt:cet/kvm 16/51] arch/x86/mm/pgtable.c:617 maybe_mkwrite() warn: bitwise AND condition is false here
@ 2022-05-27 10:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-27 10:41 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2898 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: Mike Rapoport <rppt@kernel.org>
CC: linux-kernel(a)vger.kernel.org
TO: "Yu-cheng Yu" <yu-cheng.yu@intel.com>
CC: Mike Rapoport <rppt@kernel.org>
CC: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
CC: Rick Edgecombe <rick.p.edgecombe@intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git cet/kvm
head:   6c13d37e6c4ff3a7f86c5490b3d0f4f12d0a40da
commit: c4cd555bfd9f80a5d2cdc9993d05f3b5bcb8ccae [16/51] x86/mm: Update maybe_mkwrite() for shadow stack
:::::: branch date: 24 hours ago
:::::: commit date: 4 months ago
config: i386-randconfig-m021 (https://download.01.org/0day-ci/archive/20220527/202205271831.Tb2kH9zS-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
arch/x86/mm/pgtable.c:617 maybe_mkwrite() warn: bitwise AND condition is false here
arch/x86/mm/pgtable.c:627 maybe_pmd_mkwrite() warn: bitwise AND condition is false here

Old smatch warnings:
arch/x86/mm/pgtable.c:281 pgd_mop_up_pmds() warn: we never enter this loop

vim +617 arch/x86/mm/pgtable.c

db3eb96f4e6281 Andrea Arcangeli 2011-01-13  612  
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  613  pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma)
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  614  {
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  615  	if (vma->vm_flags & VM_WRITE)
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  616  		pte = pte_mkwrite(pte);
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30 @617  	else if (vma->vm_flags & VM_SHADOW_STACK)
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  618  		pte = pte_mkwrite_shstk(pte);
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  619  	return pte;
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  620  }
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  621  
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  622  #ifdef CONFIG_TRANSPARENT_HUGEPAGE
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  623  pmd_t maybe_pmd_mkwrite(pmd_t pmd, struct vm_area_struct *vma)
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  624  {
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  625  	if (vma->vm_flags & VM_WRITE)
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  626  		pmd = pmd_mkwrite(pmd);
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30 @627  	else if (vma->vm_flags & VM_SHADOW_STACK)
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  628  		pmd = pmd_mkwrite_shstk(pmd);
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  629  	return pmd;
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  630  }
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  631  #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
c4cd555bfd9f80 Yu-cheng Yu      2022-01-30  632  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-27 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-27 10:41 [rppt:cet/kvm 16/51] arch/x86/mm/pgtable.c:617 maybe_mkwrite() warn: bitwise AND condition is false here kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.