CC: [email protected] TO: "Yu-cheng Yu" <[email protected]> CC: gaojianf <[email protected]> CC: "Kirill A. Shutemov" <[email protected]>
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto head: 2202f30edc3f9f14646647cd48c4bd4bfd12e9b7 commit: 933d01c9f63c0957cee5277f0054c32ca7b892c3 [17557/17586] mm: Add guard pages around a shadow stack. :::::: branch date: 7 days ago :::::: commit date: 13 days ago config: x86_64-randconfig-m001-20211115 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> New smatch warnings: arch/x86/mm/mmap.c:271 vm_start_gap() warn: bitwise AND condition is false here arch/x86/mm/mmap.c:289 vm_end_gap() warn: bitwise AND condition is false here Old smatch warnings: arch/x86/mm/mmap.c:168 arch_vma_name() warn: bitwise AND condition is false here vim +271 arch/x86/mm/mmap.c 933d01c9f63c09 Yu-cheng Yu 2019-10-04 263 933d01c9f63c09 Yu-cheng Yu 2019-10-04 264 unsigned long vm_start_gap(struct vm_area_struct *vma) 933d01c9f63c09 Yu-cheng Yu 2019-10-04 265 { 933d01c9f63c09 Yu-cheng Yu 2019-10-04 266 unsigned long vm_start = vma->vm_start; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 267 unsigned long gap = 0; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 268 933d01c9f63c09 Yu-cheng Yu 2019-10-04 269 if (vma->vm_flags & VM_GROWSDOWN) 933d01c9f63c09 Yu-cheng Yu 2019-10-04 270 gap = stack_guard_gap; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 @271 else if (vma->vm_flags & VM_SHADOW_STACK) 933d01c9f63c09 Yu-cheng Yu 2019-10-04 272 gap = SHADOW_STACK_GUARD_GAP; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 273 933d01c9f63c09 Yu-cheng Yu 2019-10-04 274 if (gap != 0) { 933d01c9f63c09 Yu-cheng Yu 2019-10-04 275 vm_start -= gap; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 276 if (vm_start > vma->vm_start) 933d01c9f63c09 Yu-cheng Yu 2019-10-04 277 vm_start = 0; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 278 } 933d01c9f63c09 Yu-cheng Yu 2019-10-04 279 return vm_start; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 280 } 933d01c9f63c09 Yu-cheng Yu 2019-10-04 281 933d01c9f63c09 Yu-cheng Yu 2019-10-04 282 unsigned long vm_end_gap(struct vm_area_struct *vma) 933d01c9f63c09 Yu-cheng Yu 2019-10-04 283 { 933d01c9f63c09 Yu-cheng Yu 2019-10-04 284 unsigned long vm_end = vma->vm_end; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 285 unsigned long gap = 0; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 286 933d01c9f63c09 Yu-cheng Yu 2019-10-04 287 if (vma->vm_flags & VM_GROWSUP) 933d01c9f63c09 Yu-cheng Yu 2019-10-04 288 gap = stack_guard_gap; 933d01c9f63c09 Yu-cheng Yu 2019-10-04 @289 else if (vma->vm_flags & VM_SHADOW_STACK) --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
