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 C6A2BC4167B for ; Sat, 25 Nov 2023 22:26:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E860A6B0433; Sat, 25 Nov 2023 17:26:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E357A6B0434; Sat, 25 Nov 2023 17:26:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CFDB26B0435; Sat, 25 Nov 2023 17:26:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C0D806B0433 for ; Sat, 25 Nov 2023 17:26:53 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 92F461204BE for ; Sat, 25 Nov 2023 22:26:53 +0000 (UTC) X-FDA: 81497912706.02.9EFB7FE Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by imf02.hostedemail.com (Postfix) with ESMTP id E21A48000C for ; Sat, 25 Nov 2023 22:26:50 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="J/sNdWrQ"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 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=1700951211; 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=fKa16reHfl305YFqc6i9Xxdo0uDVDkZskHm92kPeg1c=; b=Ii+buouTz/yttAU9PooUZHllqLxtBMHvQq76Xsl0cnurpOg0qPXcE+XXpv2XlE5RXDbMzz rUMt1ov3yURt5Jzo7VsQi2F3l7QEg6bEyiDemP2w8XaHKnJm/R3wSyEonSMnWM/D8wj6xp 1AlrRPVrpCIf37XRGyzXdJmZ4Ugri5U= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="J/sNdWrQ"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700951211; a=rsa-sha256; cv=none; b=2y3arSIq5E8hILOIkWKgpimaXfJfevUbFg5DzM3RNIHTrPJ2BT1VCni7pdxMmHtKFEg1Nc wPQDIcFi7SPhteJ3GFaEd18IE/LS7vfAtunzcQ5gg5s2fTiqZSMWsHN3Yq+jzJIKAIxMkk 8l/LoQXCgcPQ5f71fEemQqt6QVRgBD0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700951210; x=1732487210; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=z2qF1yxkjQxwNjJSlS7e6s6wsk55BfzArxL0w4u/DX8=; b=J/sNdWrQ+lKPkikAeBiRTHI6Lnr2wa5rjLLm3aqAEFCZHJRhpuSyx1Hs TotkGkVcBMMiCoP+HyeMeUA6LEk72bckfBqej1phm/jv8uIVMo3AmVzr6 qLfm2Ia6ps/Pq1yrCJ03Fyfr3ebe2a9+q6WEOu6k9HqSQe3/YxCbwRi7C /7jZ/FIdp9GDcBE/Y2X7KQCfidK2U6UkF3S4CvELrlonQJhzlxtjc3tjl kXT38DvK8/2uhe2JF6t/GMR/rBguPIhqjKwOvRVrcncriq0KX76gTlFhF 9/2jiWyp8jMpBOBsj9VtlX8iGpThwUpeWkInw1TF69hRKYu+fgCN8wFVf A==; X-IronPort-AV: E=McAfee;i="6600,9927,10905"; a="389691518" X-IronPort-AV: E=Sophos;i="6.04,227,1695711600"; d="scan'208";a="389691518" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2023 14:26:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10905"; a="767781166" X-IronPort-AV: E=Sophos;i="6.04,227,1695711600"; d="scan'208";a="767781166" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 25 Nov 2023 14:26:44 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r716o-0004Tg-1P; Sat, 25 Nov 2023 22:26:42 +0000 Date: Sun, 26 Nov 2023 06:26:08 +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: 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: <202311260535.WXAlmfsl-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: E21A48000C X-Stat-Signature: fj17fgfwue1o8xtsfdudkb85b7hfjrgc X-Rspam-User: X-HE-Tag: 1700951210-370290 X-HE-Meta: U2FsdGVkX1/4eYjnglwtVbKX1DSrsK93tfSfSPO3JakA8YLIg9YUJlxBzFp4cV5Xn+ReuSPrxciycyZU3e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FmFgNsGsfA6aLVnxYXwmZY5TVieTppI2wypm+/gIUbWdtwMAHP9TO5ZQSyvy+S1VXNaQG1tniA7m4wkCS7zl6cpu+X2Vdp+cKyLl7skvV5sHPQaVVYZ3ZGUnZaVJJke+VUekViCuqLnHQ9789X4ZHjiM4YZPaiY6QIZN2NOIiWeqMTwTvQ7CTm+vy0biNbm7tDk58qEdJ3UHJ6MG7Blvsou1kepzgdERR2Zq9g= 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-randconfig-122-20231126 (https://download.01.org/0day-ci/archive/20231126/202311260535.WXAlmfsl-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231126/202311260535.WXAlmfsl-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/202311260535.WXAlmfsl-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/sys.c: In function 'prctl_get_vma': >> kernel/sys.c:2371:3: error: a label can only be part of a statement and a declaration is not a statement 2371 | const struct anon_vma_name *anon_name = NULL; | ^~~~~ kernel/sys.c:2389:21: warning: passing argument 1 of 'anon_vma_name_put' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2389 | anon_vma_name_put(anon_name); | ^~~~~~~~~ In file included from kernel/sys.c:10: include/linux/mm_inline.h:363:60: note: expected 'struct anon_vma_name *' but argument is of type 'const struct anon_vma_name *' 363 | static inline void anon_vma_name_put(struct anon_vma_name *anon_name) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 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