All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Huangzhaoyang <huangzhaoyang@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC PATCH] arch: arm64: introduce RODATA_FULL_USE_PTE_CONT
Date: Mon, 22 Nov 2021 15:37:25 +0800	[thread overview]
Message-ID: <202111221548.YCVEkjRo-lkp@intel.com> (raw)
In-Reply-To: <1637558929-22971-1-git-send-email-huangzhaoyang@gmail.com>

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

Hi Huangzhaoyang,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on v5.16-rc2 next-20211118]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Huangzhaoyang/arch-arm64-introduce-RODATA_FULL_USE_PTE_CONT/20211122-133031
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-buildonly-randconfig-r004-20211122 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/0day-ci/linux/commit/6d67cb438683b6f0ae4e8ca1504af4f8e9815b88
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Huangzhaoyang/arch-arm64-introduce-RODATA_FULL_USE_PTE_CONT/20211122-133031
        git checkout 6d67cb438683b6f0ae4e8ca1504af4f8e9815b88
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/mm/

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

All errors (new ones prefixed by >>):

>> arch/arm64/mm/mmu.c:140:17: error: cannot take the address of an rvalue of type 'pteval_t' (aka 'unsigned long long')
           if (old | new) & PTE_CONT)
                          ^ ~~~~~~~~
>> arch/arm64/mm/mmu.c:140:27: error: expected ';' after expression
           if (old | new) & PTE_CONT)
                                    ^
                                    ;
>> arch/arm64/mm/mmu.c:140:27: error: expected expression
   3 errors generated.


vim +140 arch/arm64/mm/mmu.c

   133	
   134		/* creating or taking down mappings is always safe */
   135		if (old == 0 || new == 0)
   136			return true;
   137	
   138		/* live contiguous mappings may not be manipulated at all */
   139	#ifndef CONFIG_RODATA_FULL_USE_PTE_CONT
 > 140		if (old | new) & PTE_CONT)
   141			return false;
   142	#endif
   143	
   144		/* Transitioning from Non-Global to Global is unsafe */
   145		if (old & ~new & PTE_NG)
   146			return false;
   147	
   148		/*
   149		 * Changing the memory type between Normal and Normal-Tagged is safe
   150		 * since Tagged is considered a permission attribute from the
   151		 * mismatched attribute aliases perspective.
   152		 */
   153		if (((old & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL) ||
   154		     (old & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL_TAGGED)) &&
   155		    ((new & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL) ||
   156		     (new & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL_TAGGED)))
   157			mask |= PTE_ATTRINDX_MASK;
   158	
   159		return ((old ^ new) & ~mask) == 0;
   160	}
   161	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41893 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH] arch: arm64: introduce RODATA_FULL_USE_PTE_CONT
Date: Mon, 22 Nov 2021 15:37:25 +0800	[thread overview]
Message-ID: <202111221548.YCVEkjRo-lkp@intel.com> (raw)
In-Reply-To: <1637558929-22971-1-git-send-email-huangzhaoyang@gmail.com>

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

Hi Huangzhaoyang,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on v5.16-rc2 next-20211118]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Huangzhaoyang/arch-arm64-introduce-RODATA_FULL_USE_PTE_CONT/20211122-133031
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-buildonly-randconfig-r004-20211122 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/0day-ci/linux/commit/6d67cb438683b6f0ae4e8ca1504af4f8e9815b88
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Huangzhaoyang/arch-arm64-introduce-RODATA_FULL_USE_PTE_CONT/20211122-133031
        git checkout 6d67cb438683b6f0ae4e8ca1504af4f8e9815b88
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/mm/

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

All errors (new ones prefixed by >>):

>> arch/arm64/mm/mmu.c:140:17: error: cannot take the address of an rvalue of type 'pteval_t' (aka 'unsigned long long')
           if (old | new) & PTE_CONT)
                          ^ ~~~~~~~~
>> arch/arm64/mm/mmu.c:140:27: error: expected ';' after expression
           if (old | new) & PTE_CONT)
                                    ^
                                    ;
>> arch/arm64/mm/mmu.c:140:27: error: expected expression
   3 errors generated.


vim +140 arch/arm64/mm/mmu.c

   133	
   134		/* creating or taking down mappings is always safe */
   135		if (old == 0 || new == 0)
   136			return true;
   137	
   138		/* live contiguous mappings may not be manipulated at all */
   139	#ifndef CONFIG_RODATA_FULL_USE_PTE_CONT
 > 140		if (old | new) & PTE_CONT)
   141			return false;
   142	#endif
   143	
   144		/* Transitioning from Non-Global to Global is unsafe */
   145		if (old & ~new & PTE_NG)
   146			return false;
   147	
   148		/*
   149		 * Changing the memory type between Normal and Normal-Tagged is safe
   150		 * since Tagged is considered a permission attribute from the
   151		 * mismatched attribute aliases perspective.
   152		 */
   153		if (((old & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL) ||
   154		     (old & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL_TAGGED)) &&
   155		    ((new & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL) ||
   156		     (new & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL_TAGGED)))
   157			mask |= PTE_ATTRINDX_MASK;
   158	
   159		return ((old ^ new) & ~mask) == 0;
   160	}
   161	

---
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: 41893 bytes --]

  reply	other threads:[~2021-11-22  7:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22  5:28 [RFC PATCH] arch: arm64: introduce RODATA_FULL_USE_PTE_CONT Huangzhaoyang
2021-11-22  7:37 ` kernel test robot [this message]
2021-11-22  7:37   ` kernel test robot
2021-11-22  8:52 ` Ard Biesheuvel
2021-11-22  9:00   ` Zhaoyang Huang
2021-11-22  9:04     ` Ard Biesheuvel
2021-11-22  9:17       ` Zhaoyang Huang
2021-11-22  9:23         ` Ard Biesheuvel
2021-11-22 11:24           ` Zhaoyang Huang
2021-11-22 18:16             ` Ard Biesheuvel
2021-11-23  6:48               ` Zhaoyang Huang
2021-11-25 12:18 ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111221548.YCVEkjRo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=huangzhaoyang@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.