lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007070205.1i4bao5c%lkp@intel.com>
Date:   Tue, 7 Jul 2020 02:27:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     Will Deacon <will@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast to non-scalar

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
commit: dee081bf8f824cabeb7c7495367d5dad0a444eb1 READ_ONCE: Drop pointer qualifiers when reading from scalar types
date:   3 months ago
config: arm64-randconfig-s032-20200706 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-14-g8fce3d7a-dirty
        git checkout dee081bf8f824cabeb7c7495367d5dad0a444eb1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)

>> arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast to non-scalar
>> arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast from non-scalar

vim +88 arch/arm64/kernel/efi.c

f7d92489426579 Ard Biesheuvel    2015-11-30  84  
8b1e0f81fb6fcf Anshuman Khandual 2019-07-11  85  static int __init set_permissions(pte_t *ptep, unsigned long addr, void *data)
bd264d046aad25 Ard Biesheuvel    2016-06-29  86  {
bd264d046aad25 Ard Biesheuvel    2016-06-29  87  	efi_memory_desc_t *md = data;
20a004e7b017cc Will Deacon       2018-02-15 @88  	pte_t pte = READ_ONCE(*ptep);
bd264d046aad25 Ard Biesheuvel    2016-06-29  89  
bd264d046aad25 Ard Biesheuvel    2016-06-29  90  	if (md->attribute & EFI_MEMORY_RO)
bd264d046aad25 Ard Biesheuvel    2016-06-29  91  		pte = set_pte_bit(pte, __pgprot(PTE_RDONLY));
bd264d046aad25 Ard Biesheuvel    2016-06-29  92  	if (md->attribute & EFI_MEMORY_XP)
bd264d046aad25 Ard Biesheuvel    2016-06-29  93  		pte = set_pte_bit(pte, __pgprot(PTE_PXN));
bd264d046aad25 Ard Biesheuvel    2016-06-29  94  	set_pte(ptep, pte);
bd264d046aad25 Ard Biesheuvel    2016-06-29  95  	return 0;
bd264d046aad25 Ard Biesheuvel    2016-06-29  96  }
bd264d046aad25 Ard Biesheuvel    2016-06-29  97  

:::::: The code at line 88 was first introduced by commit
:::::: 20a004e7b017cce282a46ac5d02c2b9c6b9bb1fa arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables

:::::: TO: Will Deacon <will.deacon@....com>
:::::: CC: Catalin Marinas <catalin.marinas@....com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (37441 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ