Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5756338rwl; Tue, 4 Apr 2023 03:14:13 -0700 (PDT) X-Google-Smtp-Source: AKy350bvyDAx+864nciz5ucRFPfYnOq5gi8Ur/XkHXi9DRCFasCAZrOaSU3eoa4O5Uv1FvCQCOqs X-Received: by 2002:a17:906:854e:b0:930:21a:c80 with SMTP id h14-20020a170906854e00b00930021a0c80mr1483101ejy.47.1680603253019; Tue, 04 Apr 2023 03:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680603253; cv=none; d=google.com; s=arc-20160816; b=wpod++8eQe3y8Rsw68IwstpTw6z0oOS+fN6Cx5Fp8IH3aqzYNny/xSZdyVEHYwgpvf 8YUPvRNis/QzZ62leCVdg9SPlpdZ5oFGqFELB3zuWbrT6YLMJ+81CH5lGnID/7GxcNiV xulJEEiqfSdPR5Qgqioz3C4tL89zCnxm/o7aOxoX2zyIHfO6IinYVqB6IlsxG8iWS1sL DW8YZHiyz2keUJyTG1tDWN7OQf9e34ZGyaleFZHCyRSF8zuZ/q+tLszt6lB0l4a+lY+X zzUMBwOWh4F0QbGGrvgBKjD/DDCuiy13RV8lFu6k85sx+9ofQk8lcQTrnzWpOIIOdN00 H4Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pEE9RmZdA8dawy1dhLDEWNdkydacvwu00cgirPzaPqc=; b=iXbdMePHgUZmpDKkfrMuPm2K8NkiGt55+uJw6rF9sTEZV4dwED1vRt9vzUvFy70Xy1 vuD0lE8zjLtvIHcKXYKb4raptLoeRoGAyqJDDMuJjnd29YBNMhEmLQlSp3LAwCxblQOZ ThWFwjlK+fYvkLcYpDEOj62vJV+TkmwgIrKpAcmdbrO0q0c/qBekxwQKGR+XyYEpusr0 tjUBRRKODpXe1zel++r27taYnL0a+yGGhZYMublul/hKDg/Y/sdyNMYZqRQXV2FmEcPu LBKxje6Rzxy+7U6T50fsYXzL03+/AgCZhAa8QUpHgZtPSqQ2BRFMzAblMyirT6nsRRH3 +NFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="lv5/E6is"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj8-20020a170906f9c800b008b20e95d474si2710415ejb.51.2023.04.04.03.13.48; Tue, 04 Apr 2023 03:14:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="lv5/E6is"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234350AbjDDKKR (ORCPT + 99 others); Tue, 4 Apr 2023 06:10:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234338AbjDDKKP (ORCPT ); Tue, 4 Apr 2023 06:10:15 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98CA3E79 for ; Tue, 4 Apr 2023 03:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680603014; x=1712139014; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2WpOwPpwAvS3ja0wM80XZdqT10gY15brihXwIR0tEyM=; b=lv5/E6is4Yd/jKKeDx/3N76yaR9zA+4bHw+4SOHyACmd/DcNT1UwmAHX KuHu0QJEOr7rMHkxRWYifh9Lugc2IqE9+lY3+/n8t3jee9m8hdzjvqE0t XSy4bH906UCUymmxqvjuClVWi83BxHrfBhFADXCXmBK4DD0/RIQvSmTft MTa9zjA+n54DzknjXjVV9PdvbklkxOvQyxXTMwaA4nbS4CjEjiFbGOT+D t9MCumU5Im06BUxdCoMJGC2op+k/94pHdCgeJ8utzi7ghLzWLUj9/bWb3 grRnZM5oTuCi+OM+EzC0pgdY5FAjCaZ34vHvInBRghnEXwxk04T1ggKeq A==; X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="321798531" X-IronPort-AV: E=Sophos;i="5.98,317,1673942400"; d="scan'208";a="321798531" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 03:10:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="688839750" X-IronPort-AV: E=Sophos;i="5.98,317,1673942400"; d="scan'208";a="688839750" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 04 Apr 2023 03:10:12 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pjdcB-000PWw-2B; Tue, 04 Apr 2023 10:10:11 +0000 Date: Tue, 4 Apr 2023 18:09:16 +0800 From: kernel test robot To: Josh Triplett , Andrew Morton , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: Re: [PATCH] prctl: Add PR_GET_AUXV to copy auxv to userspace Message-ID: <202304041710.JYcSAmPL-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Josh, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.3-rc5] [cannot apply to akpm-mm/mm-everything next-20230404] [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/Josh-Triplett/prctl-Add-PR_GET_AUXV-to-copy-auxv-to-userspace/20230404-140043 patch link: https://lore.kernel.org/r/b11a591e085f1cd06adb454b1f7cde676d317318.1680585798.git.josh%40joshtriplett.org patch subject: [PATCH] prctl: Add PR_GET_AUXV to copy auxv to userspace config: arm-randconfig-r025-20230403 (https://download.01.org/0day-ci/archive/20230404/202304041710.JYcSAmPL-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/4323f9bd6c2ecbfd6be4f8a3830ea47a89558314 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Josh-Triplett/prctl-Add-PR_GET_AUXV-to-copy-auxv-to-userspace/20230404-140043 git checkout 4323f9bd6c2ecbfd6be4f8a3830ea47a89558314 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304041710.JYcSAmPL-lkp@intel.com/ All warnings (new ones prefixed by >>): >> kernel/sys.c:2383:23: warning: comparison of distinct pointer types ('typeof (sizeof (mm->saved_auxv)) *' (aka 'unsigned int *') and 'typeof (len) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] unsigned long size = min(sizeof(mm->saved_auxv), len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:67:19: note: expanded from macro 'min' #define min(x, y) __careful_cmp(x, y, <) ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 1 warning generated. vim +2383 kernel/sys.c 2379 2380 static int prctl_get_auxv(void __user *addr, unsigned long len) 2381 { 2382 struct mm_struct *mm = current->mm; > 2383 unsigned long size = min(sizeof(mm->saved_auxv), len); 2384 2385 if (size && copy_to_user(addr, mm->saved_auxv, size)) 2386 return -EFAULT; 2387 return sizeof(mm->saved_auxv); 2388 } 2389 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests