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 35281C4167B for ; Sat, 25 Nov 2023 20:00:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 48DFD6B044E; Sat, 25 Nov 2023 15:00:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 416E86B0455; 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 2D13A6B0453; 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 1E9CA6B044E for ; Sat, 25 Nov 2023 15:00:56 -0500 (EST) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E274A120639 for ; Sat, 25 Nov 2023 20:00:55 +0000 (UTC) X-FDA: 81497544870.14.9CC10F2 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by imf08.hostedemail.com (Postfix) with ESMTP id 83F93160016 for ; Sat, 25 Nov 2023 20:00:52 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MLfo+bPe; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 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=uZrjYj73lPtZjKVOIS+03IJsJuZ++PF5v7XjFO9sFq1iMPW4WHDasoa40zshf4hBBBiUTu IkIAvXJIgJmrN9fm9zTA5zcYWBO6PAFxjDg6f6waYVYqJNr+qtB3xQGDiyqkokiW8sLF0V r9COnpnAjWwDzTdoCLBzmLstsDOgPhc= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MLfo+bPe; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 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=NRIZ84kVk0RtpezQIznkAzyIOTwkIbSIhGgfxnqJFok=; b=MHW7WHAWhZDESDeME3TaDF2pvx6ZRGMa0P+Wo8aTMcJeyOSwKnf+wkg28wPJxXWcM74Gx9 PXGhRkz/A7OyghvpXyMSnnPd1N2sXjcUn0AxuhdZEs9Ie7kVCNTaQ3MlU5hKscn+s8XJMR A1AojfYIbosaGrbXSL6eAAlKAGyOebc= 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=mpJPZbnlB++0pfKcK61vyQxNXtYXyj1Pv2g2mZivN6w=; b=MLfo+bPej91+hxwl7pmwUiwWE3E2APkBWuMwKGLaUQabUrLezKwejtrA wty8zO/dCtC3ohA3K7v1URONoxH5XRD/lvQIeY61efuvDfo7F+EIo6Zhs fUWDkxvSrKFypq6rGA8/RBzY0Y3vm4uoDymPwmtc56cE7ZNqjrXYytVFs Em5FRcgm4qpPDhopmbFgRxlbBFqQllMHA3xsA+HqrAr+Hq8jweV2D462S VhuaAHVgUFx7YUnvx6iDP319S+fYniyA+6fCFOL/N7Cmwm1S9bHRNRLHJ OYg12lK0QxFiQErMwxaG+ozsrVh84AR7XXVfs39rLrxmrw+T24x3hkuUQ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10905"; a="391398667" X-IronPort-AV: E=Sophos;i="6.04,227,1695711600"; d="scan'208";a="391398667" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2023 12:00:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10905"; a="891332352" X-IronPort-AV: E=Sophos;i="6.04,227,1695711600"; d="scan'208";a="891332352" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by orsmga004.jf.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-0004Me-0y; Sat, 25 Nov 2023 20:00:44 +0000 Date: Sun, 26 Nov 2023 04:00:31 +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: <202311260314.iuUprWJb-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-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 83F93160016 X-Stat-Signature: weh78utbmeuf51d6kbo9oy6fyoi1hid1 X-HE-Tag: 1700942452-460751 X-HE-Meta: U2FsdGVkX183NxdgPz18T9z3f62ldMhJ6zGq868gl0dNJ5sdT5iKsAslcZgUYXkxdA3IxNyfa7tnfEsxuPMxAUR6rG3OvYzZH8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7z8JYs77yjX9HMXV+Fpu340QCo8JUqzSLB17gkrIO+c10LgPMlWvrYNeSQ1m8WOs6P29emm5gTNUKqHsVBKiiGrn1tJQCnnnN/94rhigzivKEpTQWpaU3Ui1Qv6ZHIrK1aEzByL20hoI6srfgOWO3MnYn6lWvgQhMcckaGG9RQf62ffGZNxY8oXm7uAIHU7jsobvf2k2LUCBckAg= 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 warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING 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: s390-allmodconfig (https://download.01.org/0day-ci/archive/20231126/202311260314.iuUprWJb-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231126/202311260314.iuUprWJb-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/202311260314.iuUprWJb-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/sys.c: In function 'prctl_get_vma': >> kernel/sys.c:2389:35: 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 +2389 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