[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209301256.9HZU8zn3-lkp@intel.com>
Date: Fri, 30 Sep 2022 12:15:01 +0800
From: kernel test robot <lkp@...el.com>
To: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [kas:lam 16/16] arch/x86/kernel/process_64.c:796:22: error: no
member named 'pasid' in 'struct mm_struct'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git lam
head: 2ebc300f734787b39a936549e0f0b1317c87c55e
commit: 2ebc300f734787b39a936549e0f0b1317c87c55e [16/16] x86/mm, iommu/sva: Make LAM and SVM mutually exclusive
config: x86_64-randconfig-a012-20220926
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git/commit/?id=2ebc300f734787b39a936549e0f0b1317c87c55e
git remote add kas https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
git fetch --no-tags kas lam
git checkout 2ebc300f734787b39a936549e0f0b1317c87c55e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> arch/x86/kernel/process_64.c:796:22: error: no member named 'pasid' in 'struct mm_struct'
if (pasid_valid(mm->pasid) &&
~~ ^
1 error generated.
vim +796 arch/x86/kernel/process_64.c
779
780 static int prctl_enable_tagged_addr(struct mm_struct *mm, unsigned long nr_bits)
781 {
782 int ret = 0;
783
784 if (!cpu_feature_enabled(X86_FEATURE_LAM))
785 return -ENODEV;
786
787 if (mmap_write_lock_killable(mm))
788 return -EINTR;
789
790 /* Already enabled? */
791 if (mm->context.lam_cr3_mask) {
792 ret = -EBUSY;
793 goto out;
794 }
795
> 796 if (pasid_valid(mm->pasid) &&
797 !(mm->context.flags & MM_CONTEXT_FORCE_TAGGED_SVM)) {
798 ret = -EBUSY;
799 goto out;
800 }
801
802 if (!nr_bits) {
803 ret = -EINVAL;
804 goto out;
805 } else if (nr_bits <= LAM_U57_BITS) {
806 mm->context.lam_cr3_mask = X86_CR3_LAM_U57;
807 mm->context.untag_mask = ~GENMASK(62, 57);
808 } else if (nr_bits <= LAM_U48_BITS) {
809 if (!lam_u48_allowed()) {
810 ret = -EBUSY;
811 goto out;
812 }
813
814 mm->context.lam_cr3_mask = X86_CR3_LAM_U48;
815 mm->context.untag_mask = ~GENMASK(62, 48);
816 } else {
817 ret = -EINVAL;
818 goto out;
819 }
820
821 on_each_cpu_mask(mm_cpumask(mm), enable_lam_func, mm, true);
822 static_branch_enable(&tagged_addr_key);
823 out:
824 mmap_write_unlock(mm);
825 return ret;
826 }
827
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (163104 bytes)
Powered by blists - more mailing lists