From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3936D38A9A8 for ; Tue, 10 Feb 2026 17:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770745918; cv=none; b=UOkFbT0VtAoV7srFqSIFW+g+YfEls+WZBDe1NkFb7ApaF0OLiC64qFRf/GJzkWBQuPMkvO1xRmzb2xFlpw+mDsLvhH6P1SqnnMrbvBo5mgqXK6pdYrfWIlNv3VfLsiE1zSkerp/Q6Z5ue48J+akA5zgqnYMTdYRj0jIAH+h2shE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770745918; c=relaxed/simple; bh=qA06aqPLShHsei2q4s7sufdt3dRHU5s7RVveGATdUlY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NQYy+ord7BSztyIB7i1+iCHRdhAGoYOzp4lfzRtbkclLaAhLGD6UQq8CcOihxFO/nLTFXfvKtBOzVIAcmdvpwQHlfgC14FEX0Fzc0Sv7CTXCQgbx5yL3tFa/IJRqiX82kHSl5bA4cRRuPlSpY42I5jp2yhZX8CfA9ifhosZGQL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=H7K9Vh6j; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H7K9Vh6j" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770745916; x=1802281916; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=qA06aqPLShHsei2q4s7sufdt3dRHU5s7RVveGATdUlY=; b=H7K9Vh6jBL3Hro2kqYHHLn8FEi5Ex9nDHzv0CB7EZnApevf2TP9d1LB2 VTYVW3m7eKcg9lOQder4fYnDTFi1nVQzOLC+twnq9A3MjJGJY1X2jZ79o wkwDignks04pyhyFwPuAoGytFxPXUFVNsJBYediiLalNhvyrFSI2DMSLy y3d8lpbhoR2MtcpAPtlbIHJh98907+dlfgR1ZZgUQp00Nb2vfCzkSSgz/ X2M58lhpLG4qn7kLcd0menexEvyVED75JOTCIJQfBU21f1gIYGd2qH+JY OxzUkYTuK7ts4bHTki6g9zABRTMkXOdQtZqG0PGQFZeQYQBb8xl+MoAur Q==; X-CSE-ConnectionGUID: KOp3uC7GSkKwo2v382O7zQ== X-CSE-MsgGUID: ZgQyjYI1TKalXHR6GLDh4g== X-IronPort-AV: E=McAfee;i="6800,10657,11697"; a="89473479" X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="89473479" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2026 09:51:55 -0800 X-CSE-ConnectionGUID: 5euT5pk4QyyxthZ+F314CA== X-CSE-MsgGUID: DBvC165RT2emIBVDWIIp4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="216495371" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 10 Feb 2026 09:51:51 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vprtt-00000000pH0-0MlI; Tue, 10 Feb 2026 17:51:49 +0000 Date: Wed, 11 Feb 2026 01:51:22 +0800 From: kernel test robot To: Deepanshu Kartikey , akpm@linux-foundation.org, david@kernel.org, lorenzo.stoakes@oracle.com, baolin.wang@linux.alibaba.com, Liam.Howlett@oracle.com, npache@redhat.com, ryan.roberts@arm.com, dev.jain@arm.com, baohua@kernel.org, ackerleytng@google.com, seanjc@google.com, pbonzini@redhat.com, michael.roth@amd.com, vannapurve@google.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, ziy@nvidia.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Deepanshu Kartikey , syzbot+33a04338019ac7e43a44@syzkaller.appspotmail.com Subject: Re: [PATCH] mm: thp: Deny THP for guest_memfd and secretmem in file_thp_enabled() Message-ID: <202602110124.Y72YFz1K-lkp@intel.com> References: <20260209033558.22943-1-kartikey406@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260209033558.22943-1-kartikey406@gmail.com> Hi Deepanshu, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Deepanshu-Kartikey/mm-thp-Deny-THP-for-guest_memfd-and-secretmem-in-file_thp_enabled/20260209-113800 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20260209033558.22943-1-kartikey406%40gmail.com patch subject: [PATCH] mm: thp: Deny THP for guest_memfd and secretmem in file_thp_enabled() config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260211/202602110124.Y72YFz1K-lkp@intel.com/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/202602110124.Y72YFz1K-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202602110124.Y72YFz1K-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/huge_memory.c:96:30: error: use of undeclared identifier 'GUEST_MEMFD_MAGIC' 96 | if (inode->i_sb->s_magic == GUEST_MEMFD_MAGIC || | ^ >> mm/huge_memory.c:97:30: error: use of undeclared identifier 'SECRETMEM_MAGIC' 97 | inode->i_sb->s_magic == SECRETMEM_MAGIC) | ^ 2 errors generated. vim +/GUEST_MEMFD_MAGIC +96 mm/huge_memory.c 84 85 static inline bool file_thp_enabled(struct vm_area_struct *vma) 86 { 87 struct inode *inode; 88 89 if (!IS_ENABLED(CONFIG_READ_ONLY_THP_FOR_FS)) 90 return false; 91 92 if (!vma->vm_file) 93 return false; 94 95 inode = file_inode(vma->vm_file); > 96 if (inode->i_sb->s_magic == GUEST_MEMFD_MAGIC || > 97 inode->i_sb->s_magic == SECRETMEM_MAGIC) 98 return false; 99 100 return !inode_is_open_for_write(inode) && S_ISREG(inode->i_mode); 101 } 102 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki