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 31C13C0218D for ; Sun, 26 Jan 2025 14:09:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4518B2800F9; Sun, 26 Jan 2025 09:09:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3FE622800F8; Sun, 26 Jan 2025 09:09:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2C5E22800F9; Sun, 26 Jan 2025 09:09:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 0F88C2800F8 for ; Sun, 26 Jan 2025 09:09:47 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id B0461121821 for ; Sun, 26 Jan 2025 14:09:46 +0000 (UTC) X-FDA: 83049786372.17.E22FCF1 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf01.hostedemail.com (Postfix) with ESMTP id 85A0E40008 for ; Sun, 26 Jan 2025 14:09:43 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jVqc4Eew; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737900584; 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=5o1oRFEbEtnZ8XpbuBIDddPvc/PVT0AeN8Y7q8K/nd8=; b=3nbvBasA54jFAgwDRzxXme2cydu7Up0Bgujv6bV0EpNf1QwsO2mneBeDB3VQMJAfAewET8 U+zancktfv00iyDH5irwTnAuEKMZPwyPdUHme8T7yUxjZ7MS4ljK4gopCn042zRHu/u0BP /Eurs4yLc31mhyvAhUkh3exQWbDlYWc= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jVqc4Eew; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737900584; a=rsa-sha256; cv=none; b=4IT1/c09oR4F+XXzOgzCP3AZruHpeOlnq5eBACg7xO3wJ7zjGxHQXkwDPgrbwhoh8Zkr+k DgXWFIxeJIYTTcwnXBz/94oJ8C0zYURqR+8Jv90U6Ksdr7GRAFQKocXdg9tbst7zb5M4bf MFjl/eP+D6NffywfeMaNqh/RQmmCdAQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737900584; x=1769436584; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SN28Hz4kBPo9CE4Gfvp1PzH22or5pSlMhQJuJbCKFdE=; b=jVqc4EewHYC1KL/IHRiTSY2/+CrLf5CjxoxUOmSxYY0H3oltH/LHlxbq ADkvYDYNZ1dZS7ICa5qR10cQwqabEkSLaanWjPiG23SPhoVbzgK6HzOtw NmrrbafYZuzIPazP6oiDU1mQ39839eBsrBdUuLtvWXaU7X61HjHCxeHJA w3WdWnif8Hdy8FuLNQI0vUiffLCXVG51pAOtOa8mUkz+9gflrt1+j64s+ 21XMI98sOfoioYljiq9dzvkIr2UPwxTqpmeywFR93TUWo9BnY2gy/3J4y cEkt9d2mOJmBvIjpdc18S/n74QJO3jQ30IEirRbF7Wcv8Gw44b/g5ZSxU g==; X-CSE-ConnectionGUID: eZadzFarRFOoYyAtH7mBVw== X-CSE-MsgGUID: PKLWWBsqRoy7LuCkZMQ2mA== X-IronPort-AV: E=McAfee;i="6700,10204,11327"; a="63729726" X-IronPort-AV: E=Sophos;i="6.13,236,1732608000"; d="scan'208";a="63729726" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2025 06:09:42 -0800 X-CSE-ConnectionGUID: 1LQVlRlOSDSoDpCzpDXxAQ== X-CSE-MsgGUID: xny16wPYTAeSahberUmNcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,236,1732608000"; d="scan'208";a="113233046" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 26 Jan 2025 06:09:39 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tc3KS-000fPz-1h; Sun, 26 Jan 2025 14:09:36 +0000 Date: Sun, 26 Jan 2025 22:08:37 +0800 From: kernel test robot To: Jordan Rome , bpf@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Kernel Team , Andrew Morton , Shakeel Butt , Alexander Potapenko Subject: Re: [bpf-next v4 1/3] mm: add copy_remote_vm_str Message-ID: <202501262133.9mKauA5U-lkp@intel.com> References: <20250126124147.3154108-1-linux@jordanrome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250126124147.3154108-1-linux@jordanrome.com> X-Rspamd-Queue-Id: 85A0E40008 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: nzqh6kps61uro14x9gg556re3yxpiqwj X-HE-Tag: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Of6PmLV/cQwIY1QEpPxqn4zqSQxFJTv92UtIOjuuARPQxzv78XBHwtlSOu5udUlj0f5aw1WUQuRrDmaIx6O+g1j46swU/WFC4BOD5BAzHe3IYMbM7uA1wta2mF7g0mlowQvupzqjTuvDzSUvh5Erc8kWkbByXfoznhLrJbE3Aw78EUCQirFx0F/RdxN91KRPbC+LFskOHHw4jXpxFqZVQXLCAtlj9WRSNsjGw8n8nV5m9QJD6hA+b1crrStu7rBmSydQ2zX1V5OBjM7SOrl0Sd0iHr0qy/gEOBDdhb1QB75PBCSgV4kPqevyACXgaWV6dGq8+U+hTwI44XxV36NffgDrnxpAWLrEv3zAUH4ndFAG/TizCp+MKXmGAoz7h0= 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 Jordan, kernel test robot noticed the following build errors: [auto build test ERROR on bpf-next/master] [also build test ERROR on bpf/master linus/master v6.13 next-20250124] [cannot apply to akpm-mm/mm-everything] [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/Jordan-Rome/bpf-Add-bpf_copy_from_user_task_str-kfunc/20250126-204439 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20250126124147.3154108-1-linux%40jordanrome.com patch subject: [bpf-next v4 1/3] mm: add copy_remote_vm_str config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20250126/202501262133.9mKauA5U-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250126/202501262133.9mKauA5U-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/202501262133.9mKauA5U-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/nommu.c:1717:2: error: use of undeclared identifier 'vma' 1717 | vma = find_vma(mm, addr); | ^ mm/nommu.c:1718:6: error: use of undeclared identifier 'vma'; did you mean 'vmap'? 1718 | if (vma) { | ^~~ | vmap mm/nommu.c:303:15: note: 'vmap' declared here 303 | EXPORT_SYMBOL(vmap); | ^ mm/nommu.c:1720:21: error: use of undeclared identifier 'vma' 1720 | if (addr + len >= vma->vm_end) | ^ mm/nommu.c:1721:10: error: use of undeclared identifier 'vma' 1721 | len = vma->vm_end - addr; | ^ mm/nommu.c:1724:7: error: use of undeclared identifier 'vma' 1724 | if (vma->vm_flags & VM_MAYREAD) { | ^ >> mm/nommu.c:1725:23: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const char *' [-Wint-conversion] 1725 | ret = strscpy(buf, addr, len); | ^~~~ include/linux/string.h:113:55: note: expanded from macro 'strscpy' 113 | CONCATENATE(__strscpy, COUNT_ARGS(__VA_ARGS__))(dst, src, __VA_ARGS__) | ^~~ include/linux/string.h:82:21: note: expanded from macro '__strscpy1' 82 | sized_strscpy(dst, src, size + __must_be_cstr(dst) + __must_be_cstr(src)) | ^~~ include/linux/string.h:72:43: note: passing argument to parameter here 72 | ssize_t sized_strscpy(char *, const char *, size_t); | ^ 6 errors generated. vim +/vma +1717 mm/nommu.c 1703 1704 /* 1705 * Copy a string from another process's address space as given in mm. 1706 * If there is any error return -EFAULT. 1707 */ 1708 static int __copy_remote_vm_str(struct mm_struct *mm, unsigned long addr, 1709 void *buf, int len) 1710 { 1711 int ret; 1712 1713 if (mmap_read_lock_killable(mm)) 1714 return -EFAULT; 1715 1716 /* the access must start within one of the target process's mappings */ > 1717 vma = find_vma(mm, addr); 1718 if (vma) { 1719 /* don't overrun this mapping */ > 1720 if (addr + len >= vma->vm_end) 1721 len = vma->vm_end - addr; 1722 1723 /* only read mappings where it is permitted */ 1724 if (vma->vm_flags & VM_MAYREAD) { > 1725 ret = strscpy(buf, addr, len); 1726 if (ret < 0) 1727 ret = len - 1; 1728 } else { 1729 ret = -EFAULT; 1730 } 1731 } else { 1732 ret = -EFAULT; 1733 } 1734 1735 mmap_read_unlock(mm); 1736 return ret; 1737 } 1738 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki