CC: [email protected] BCC: [email protected] CC: [email protected] TO: Anshuman Khandual <[email protected]> CC: Andrew Morton <[email protected]> CC: Linux Memory Management List <[email protected]> CC: Catalin Marinas <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 979086f5e0066b4eff66e1eee123da228489985c commit: b3aca728fb276782ab3c851aedaf3d19b33faabe arm64/mm: enable ARCH_HAS_VM_GET_PAGE_PROT date: 7 weeks ago :::::: branch date: 3 hours ago :::::: commit date: 7 weeks ago config: arm64-randconfig-m031-20220615 (https://download.01.org/0day-ci/archive/20220616/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 11.3.0 If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: arch/arm64/mm/mmap.c:77 vm_get_page_prot() warn: bitwise AND condition is false here vim +77 arch/arm64/mm/mmap.c b3aca728fb2767 Anshuman Khandual 2022-04-28 58 b3aca728fb2767 Anshuman Khandual 2022-04-28 59 pgprot_t vm_get_page_prot(unsigned long vm_flags) b3aca728fb2767 Anshuman Khandual 2022-04-28 60 { b3aca728fb2767 Anshuman Khandual 2022-04-28 61 pteval_t prot = pgprot_val(protection_map[vm_flags & b3aca728fb2767 Anshuman Khandual 2022-04-28 62 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]); b3aca728fb2767 Anshuman Khandual 2022-04-28 63 b3aca728fb2767 Anshuman Khandual 2022-04-28 64 if (vm_flags & VM_ARM64_BTI) b3aca728fb2767 Anshuman Khandual 2022-04-28 65 prot |= PTE_GP; b3aca728fb2767 Anshuman Khandual 2022-04-28 66 b3aca728fb2767 Anshuman Khandual 2022-04-28 67 /* b3aca728fb2767 Anshuman Khandual 2022-04-28 68 * There are two conditions required for returning a Normal Tagged b3aca728fb2767 Anshuman Khandual 2022-04-28 69 * memory type: (1) the user requested it via PROT_MTE passed to b3aca728fb2767 Anshuman Khandual 2022-04-28 70 * mmap() or mprotect() and (2) the corresponding vma supports MTE. We b3aca728fb2767 Anshuman Khandual 2022-04-28 71 * register (1) as VM_MTE in the vma->vm_flags and (2) as b3aca728fb2767 Anshuman Khandual 2022-04-28 72 * VM_MTE_ALLOWED. Note that the latter can only be set during the b3aca728fb2767 Anshuman Khandual 2022-04-28 73 * mmap() call since mprotect() does not accept MAP_* flags. b3aca728fb2767 Anshuman Khandual 2022-04-28 74 * Checking for VM_MTE only is sufficient since arch_validate_flags() b3aca728fb2767 Anshuman Khandual 2022-04-28 75 * does not permit (VM_MTE & !VM_MTE_ALLOWED). b3aca728fb2767 Anshuman Khandual 2022-04-28 76 */ b3aca728fb2767 Anshuman Khandual 2022-04-28 @77 if (vm_flags & VM_MTE) -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
