From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E758C0755A for ; Sat, 25 Nov 2023 20:00:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 803BA6B0450; Sat, 25 Nov 2023 15:00:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7B3516B0453; Sat, 25 Nov 2023 15:00:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 60AE46B0458; Sat, 25 Nov 2023 15:00:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 3CC006B0450 for ; Sat, 25 Nov 2023 15:00:56 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 0E86AC01FA for ; Sat, 25 Nov 2023 20:00:56 +0000 (UTC) X-FDA: 81497544912.12.145F1C1 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by imf03.hostedemail.com (Postfix) with ESMTP id 7045D20016 for ; Sat, 25 Nov 2023 20:00:52 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OdNYDkAc; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1700942453; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=pKTUdsK8u7lrNKGS6CPnGMYfBHwmgcbiG3Yl8Tt9kFw=; b=7KTsqOqOtTsp0iu0d7HhYguEjsqdD+8kx1/ini6/eofs2dQVUEKzYRVvhbRquPNsM4Tjcg rMb7m6KABb8vWILQL0E4jFZuWx970UtyPE+LHAylss3FHPuaz9YmDbrx8AwyRLX4Qsbf9J 1U4LhZuwKrgvDCp30PQyxAF1TVroCyc= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OdNYDkAc; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700942453; a=rsa-sha256; cv=none; b=8VJO1hS1RbC+SSg+FdYbfWSDpOgZ1DeUQwiDrBoOVqK0aq5dUo/z8cvpiDGNHtjQmZQFJZ V/Dx6LYCPIfC6grh+3FRau3V9E66PjlPfdGA9eO5MedhdLw4x0UwiJ8VqQi0qGOaXwXS1J eUNMgqDhs6+Oy+a/ZYiWJmL6jGEnEog= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700942452; x=1732478452; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pn1nn4Uav0B2OyVdmkxjy4PLq+NCw1RTFiLnTs5OM9w=; b=OdNYDkAcc1Z6pz247UEkM3dmLIugDjEN/+WmkNnEueaOHdeEIviHiGXB gncPcXWIUgAjVyMFO24cmXBwSBncPj3KJJ4HeSceMElWkMxvCaeUjR4D8 CA4KphmBryGlz2aGSNIgycaOm28RTE+0CwQLSMzmOwSGYicLwxQ/jBxlF 0l4FJcyC2q9rrlvnlXie9V5FSX3unXa5cHKFcTzabEavL98yV3kTMIy5T +2YQYZxpV2Ix5mouWsiKhX02wjCJdSszfSa3A9TvRr/EtoJI+rFA2mrmI NsIkCXu4Qh2A0NjwFJ8SXf/kaFUiu/41oVBGIbBoOJ8wLkQ1GlgSCpIwl Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10905"; a="371884463" X-IronPort-AV: E=Sophos;i="6.04,227,1695711600"; d="scan'208";a="371884463" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2023 12:00:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10905"; a="885570412" X-IronPort-AV: E=Sophos;i="6.04,227,1695711600"; d="scan'208";a="885570412" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 25 Nov 2023 12:00:46 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r6ypY-0004Ma-0I; Sat, 25 Nov 2023 20:00:44 +0000 Date: Sun, 26 Nov 2023 04:00:30 +0800 From: kernel test robot To: Rong Tao , Andrew Morton , Catalin Marinas , Florent Revest , Kees Cook , David Hildenbrand , Stefan Roesch , Andy Chiu , Josh Triplett , Joey Gouly , Oleg Nesterov , Miguel Ojeda , Ondrej Mosnacek , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , rtoax@foxmail.com, rongtao@cestc.cn Subject: Re: [PATCH] prctl: Get private anonymous memory region name Message-ID: <202311260319.o8HoCceP-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspam-User: X-Stat-Signature: tgz5163uewqd61aditjhcczpx6di7t5d X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 7045D20016 X-HE-Tag: 1700942452-89661 X-HE-Meta: U2FsdGVkX1+e1SycKjOM8ba7ozdD9Wk8fWPmwe6pR1tZGccdSzWgU/MRzX82f44o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KRwBXcYOo38T0sdibtxHB/2BwUmYo0qJAtOU+VuMdGTMGpxp+3ZnCliorPEfBEshBCzA46axGblKLEgw/Ra+KzzdkrUZPlI/ia1Gujky9EjtZJYTY/YCchb1uLBCdcG0az5OMyhe7Czt2v3rTWufqPNEfzAi75WFB4RXu36xqDoY8FXAAOWYJq9Ul0spMJFfp3MZUPfamLueuRpKekUN7vmypE3O6xRbbnxX/GoCQnoN52Jtca4Bq3M= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Rong, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v6.7-rc2 next-20231124] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Rong-Tao/prctl-Get-private-anonymous-memory-region-name/20231125-220925 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/tencent_977CBF8E8CA6234A1B740A35655D5D7EAA0A%40qq.com patch subject: [PATCH] prctl: Get private anonymous memory region name config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231126/202311260319.o8HoCceP-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231126/202311260319.o8HoCceP-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/202311260319.o8HoCceP-lkp@intel.com/ All errors (new ones prefixed by >>): >> kernel/sys.c:2371:3: error: expected expression const struct anon_vma_name *anon_name = NULL; ^ >> kernel/sys.c:2377:3: error: use of undeclared identifier 'anon_name' anon_name = madvise_get_anon_name(mm, addr); ^ kernel/sys.c:2378:8: error: use of undeclared identifier 'anon_name' if (!anon_name) { ^ kernel/sys.c:2385:13: error: use of undeclared identifier 'anon_name' strlen(anon_name->name) + 1)) ^ kernel/sys.c:2384:42: error: use of undeclared identifier 'anon_name' if (copy_to_user((char __user *)u_buf, anon_name->name, ^ kernel/sys.c:2389:21: error: use of undeclared identifier 'anon_name' anon_vma_name_put(anon_name); ^ 6 errors generated. vim +2371 kernel/sys.c 2361 2362 static int prctl_get_vma(unsigned long opt, unsigned long addr, 2363 unsigned long buf, unsigned long arg) 2364 { 2365 struct mm_struct *mm = current->mm; 2366 const char __user *u_buf; 2367 int error; 2368 2369 switch (opt) { 2370 case PR_GET_VMA_ANON_NAME: > 2371 const struct anon_vma_name *anon_name = NULL; 2372 2373 u_buf = (const char __user *)buf; 2374 error = 0; 2375 2376 mmap_read_lock(mm); > 2377 anon_name = madvise_get_anon_name(mm, addr); 2378 if (!anon_name) { 2379 mmap_read_unlock(mm); 2380 error = -EFAULT; 2381 break; 2382 } 2383 2384 if (copy_to_user((char __user *)u_buf, anon_name->name, 2385 strlen(anon_name->name) + 1)) 2386 error = -EFAULT; 2387 2388 mmap_read_unlock(mm); 2389 anon_vma_name_put(anon_name); 2390 break; 2391 default: 2392 error = -EINVAL; 2393 } 2394 return error; 2395 } 2396 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki