[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209301222.Qgb5XviJ-lkp@intel.com>
Date: Fri, 30 Sep 2022 12:15:03 +0800
From: kernel test robot <lkp@...el.com>
To: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [kas:lam 16/16] arch/x86/kernel/process_64.c:796:27: error: 'struct
mm_struct' has no member named 'pasid'
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-a002
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# 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
make 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: In function 'prctl_enable_tagged_addr':
>> arch/x86/kernel/process_64.c:796:27: error: 'struct mm_struct' has no member named 'pasid'
796 | if (pasid_valid(mm->pasid) &&
| ^~
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" (158161 bytes)
Powered by blists - more mailing lists