* arch/arm64/include/asm/mman.h:53 arch_vm_get_page_prot() warn: bitwise AND condition is false here
@ 2021-07-02 2:26 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-02 2:26 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3002 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Catalin Marinas <catalin.marinas@arm.com>
CC: Vincenzo Frascino <vincenzo.frascino@arm.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e04360a2ea01bf42aa639b65aad81f502e896c7f
commit: 9f3419315f3cdc41a7318e4d50ba18a592b30c8c arm64: mte: Add PROT_MTE support to mmap() and mprotect()
date: 10 months ago
:::::: branch date: 5 hours ago
:::::: commit date: 10 months ago
config: arm64-randconfig-m031-20210630 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
arch/arm64/include/asm/mman.h:53 arch_vm_get_page_prot() warn: bitwise AND condition is false here
arch/arm64/include/asm/mman.h:53 arch_vm_get_page_prot() warn: bitwise AND condition is false here
vim +53 arch/arm64/include/asm/mman.h
9f3419315f3cdc Catalin Marinas 2019-11-27 37
8ef8f360cf30be Dave Martin 2020-03-16 38 static inline pgprot_t arch_vm_get_page_prot(unsigned long vm_flags)
8ef8f360cf30be Dave Martin 2020-03-16 39 {
9f3419315f3cdc Catalin Marinas 2019-11-27 40 pteval_t prot = 0;
9f3419315f3cdc Catalin Marinas 2019-11-27 41
9f3419315f3cdc Catalin Marinas 2019-11-27 42 if (vm_flags & VM_ARM64_BTI)
9f3419315f3cdc Catalin Marinas 2019-11-27 43 prot |= PTE_GP;
9f3419315f3cdc Catalin Marinas 2019-11-27 44
9f3419315f3cdc Catalin Marinas 2019-11-27 45 /*
9f3419315f3cdc Catalin Marinas 2019-11-27 46 * There are two conditions required for returning a Normal Tagged
9f3419315f3cdc Catalin Marinas 2019-11-27 47 * memory type: (1) the user requested it via PROT_MTE passed to
9f3419315f3cdc Catalin Marinas 2019-11-27 48 * mmap() or mprotect() and (2) the corresponding vma supports MTE. We
9f3419315f3cdc Catalin Marinas 2019-11-27 49 * register (1) as VM_MTE in the vma->vm_flags and (2) as
9f3419315f3cdc Catalin Marinas 2019-11-27 50 * VM_MTE_ALLOWED. Note that the latter can only be set during the
9f3419315f3cdc Catalin Marinas 2019-11-27 51 * mmap() call since mprotect() does not accept MAP_* flags.
9f3419315f3cdc Catalin Marinas 2019-11-27 52 */
9f3419315f3cdc Catalin Marinas 2019-11-27 @53 if ((vm_flags & VM_MTE) && (vm_flags & VM_MTE_ALLOWED))
9f3419315f3cdc Catalin Marinas 2019-11-27 54 prot |= PTE_ATTRINDX(MT_NORMAL_TAGGED);
9f3419315f3cdc Catalin Marinas 2019-11-27 55
9f3419315f3cdc Catalin Marinas 2019-11-27 56 return __pgprot(prot);
8ef8f360cf30be Dave Martin 2020-03-16 57 }
8ef8f360cf30be Dave Martin 2020-03-16 58 #define arch_vm_get_page_prot(vm_flags) arch_vm_get_page_prot(vm_flags)
8ef8f360cf30be Dave Martin 2020-03-16 59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27423 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* arch/arm64/include/asm/mman.h:53 arch_vm_get_page_prot() warn: bitwise AND condition is false here
@ 2021-08-15 19:12 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-15 19:12 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3004 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Catalin Marinas <catalin.marinas@arm.com>
CC: Vincenzo Frascino <vincenzo.frascino@arm.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aa78d17099b04fd9d36fe338af48ad6fe2d7fca
commit: 9f3419315f3cdc41a7318e4d50ba18a592b30c8c arm64: mte: Add PROT_MTE support to mmap() and mprotect()
date: 12 months ago
:::::: branch date: 13 hours ago
:::::: commit date: 12 months ago
config: arm64-randconfig-m031-20210814 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
arch/arm64/include/asm/mman.h:53 arch_vm_get_page_prot() warn: bitwise AND condition is false here
arch/arm64/include/asm/mman.h:53 arch_vm_get_page_prot() warn: bitwise AND condition is false here
vim +53 arch/arm64/include/asm/mman.h
9f3419315f3cdc Catalin Marinas 2019-11-27 37
8ef8f360cf30be Dave Martin 2020-03-16 38 static inline pgprot_t arch_vm_get_page_prot(unsigned long vm_flags)
8ef8f360cf30be Dave Martin 2020-03-16 39 {
9f3419315f3cdc Catalin Marinas 2019-11-27 40 pteval_t prot = 0;
9f3419315f3cdc Catalin Marinas 2019-11-27 41
9f3419315f3cdc Catalin Marinas 2019-11-27 42 if (vm_flags & VM_ARM64_BTI)
9f3419315f3cdc Catalin Marinas 2019-11-27 43 prot |= PTE_GP;
9f3419315f3cdc Catalin Marinas 2019-11-27 44
9f3419315f3cdc Catalin Marinas 2019-11-27 45 /*
9f3419315f3cdc Catalin Marinas 2019-11-27 46 * There are two conditions required for returning a Normal Tagged
9f3419315f3cdc Catalin Marinas 2019-11-27 47 * memory type: (1) the user requested it via PROT_MTE passed to
9f3419315f3cdc Catalin Marinas 2019-11-27 48 * mmap() or mprotect() and (2) the corresponding vma supports MTE. We
9f3419315f3cdc Catalin Marinas 2019-11-27 49 * register (1) as VM_MTE in the vma->vm_flags and (2) as
9f3419315f3cdc Catalin Marinas 2019-11-27 50 * VM_MTE_ALLOWED. Note that the latter can only be set during the
9f3419315f3cdc Catalin Marinas 2019-11-27 51 * mmap() call since mprotect() does not accept MAP_* flags.
9f3419315f3cdc Catalin Marinas 2019-11-27 52 */
9f3419315f3cdc Catalin Marinas 2019-11-27 @53 if ((vm_flags & VM_MTE) && (vm_flags & VM_MTE_ALLOWED))
9f3419315f3cdc Catalin Marinas 2019-11-27 54 prot |= PTE_ATTRINDX(MT_NORMAL_TAGGED);
9f3419315f3cdc Catalin Marinas 2019-11-27 55
9f3419315f3cdc Catalin Marinas 2019-11-27 56 return __pgprot(prot);
8ef8f360cf30be Dave Martin 2020-03-16 57 }
8ef8f360cf30be Dave Martin 2020-03-16 58 #define arch_vm_get_page_prot(vm_flags) arch_vm_get_page_prot(vm_flags)
8ef8f360cf30be Dave Martin 2020-03-16 59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 40439 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-15 19:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 2:26 arch/arm64/include/asm/mman.h:53 arch_vm_get_page_prot() warn: bitwise AND condition is false here kernel test robot
2021-08-15 19:12 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.