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 B29ECEB64D8 for ; Tue, 13 Jun 2023 16:13:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 30BFE6B007B; Tue, 13 Jun 2023 12:13:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2BC446B007E; Tue, 13 Jun 2023 12:13:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 15C6E8E0002; Tue, 13 Jun 2023 12:13:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 072CB6B007B for ; Tue, 13 Jun 2023 12:13:09 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id C53BC4055A for ; Tue, 13 Jun 2023 16:13:08 +0000 (UTC) X-FDA: 80898218856.08.4564F93 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf18.hostedemail.com (Postfix) with ESMTP id 871801C001B for ; Tue, 13 Jun 2023 16:13:05 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UFoE1f1B; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 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=1686672785; 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=IWeG0ux+GxVLQ3ruAqKYAzIuHNUTX84nvf5oDDI0BdU=; b=Hjo2OqSiO62vEQXjD4ChHnKi+mfDsO0zHeRcZprriUTpqeVKfLtB+sLkxaCZwwK9+HbGLF N0IvVjaVSbI75Tzmxp8HSMDTtGqCChXFjad53+4HOnDunNmEvrdAu8pgllTq7UmUolAtfV WbDA6mG+nYyITCmBZ39oWdSp4KK2z9U= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UFoE1f1B; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686672785; a=rsa-sha256; cv=none; b=26mmKxCONpjrXuTSc5YsvVQTD3BeMlz4KtgM0r2oI4WIOPLRDYQQzA8DstFzXWNJQXf2pp 5dz+KIIdhx7NfBzTkASwmPJr0mWYyjLY8wK4IEeaUjMFeA7QT0hQCepEYoLVFLf4sU8Cpp OWNio1qeg3+M58ZMViKXCTV5Yelki1I= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686672785; x=1718208785; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yulm3bjtOhAx++5hy7jnoRy12hPcqf9WnybGIldX7jo=; b=UFoE1f1BtIWNoxmpkbwVxq9tFlCDkZp3nkMLQzNxyeLlNB1HJf403H+b /p173LC2vzQKFa/K+G3XSvA3eH49uZlhd0Q9VeIxwzvtETFMMrwaFfZW1 5adScc9cndnHg4crVi4RL228BTs55sL6+I47hUBEMTRos/mYcoGIWxDRy Gr5dhHiwTe+4dapVpuo95jYd8LuSfI2klhznZ1CGLV8sDC2IojDmOsvDq 8QEiyZVLQWTu97MjM8SfZvKImQzBUnYwJg2UXhrjNhKbRBoFa7wogLLG/ whKpTHJE7d/NFYceLDJUBon2VHsAW8A6W+xg41GDEQIItUNIClN5LcKnI w==; X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="343070695" X-IronPort-AV: E=Sophos;i="6.00,240,1681196400"; d="scan'208";a="343070695" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2023 09:12:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="835937291" X-IronPort-AV: E=Sophos;i="6.00,240,1681196400"; d="scan'208";a="835937291" Received: from lkp-server01.sh.intel.com (HELO 211f47bdb1cb) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 13 Jun 2023 09:12:06 -0700 Received: from kbuild by 211f47bdb1cb with local (Exim 4.96) (envelope-from ) id 1q96cn-0001WA-0T; Tue, 13 Jun 2023 16:12:05 +0000 Date: Wed, 14 Jun 2023 00:11:54 +0800 From: kernel test robot To: Muhammad Usama Anjum , Peter Xu , David Hildenbrand , Andrew Morton , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Andrei Vagin , Danylo Mocherniuk , Paul Gofman , Cyrill Gorcunov , Mike Rapoport , Nadav Amit Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alexander Viro , Shuah Khan , Christian Brauner , Yang Shi , Vlastimil Babka , "Liam R . Howlett" , Yun Zhou , Suren Baghdasaryan , Alex Sierra , Muhammad Usama Anjum , Matthew Wilcox , Pasha Tatashin , Axel Rasmussen , "Gustavo A . R . Silva" , Dan Williams , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, Greg KH Subject: Re: [PATCH v18 2/5] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs Message-ID: <202306132324.Npiix2ct-lkp@intel.com> References: <20230613102905.2808371-3-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230613102905.2808371-3-usama.anjum@collabora.com> X-Rspamd-Queue-Id: 871801C001B X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: ofj7xjbfi1dni9bwwu78wrjf86t6fgg4 X-HE-Tag: 1686672785-679069 X-HE-Meta: U2FsdGVkX19+iDmDDN0ZQfAQEOCbEMOoNvy1AQEOw2bWTau9eUXLa15lTIoIljc2uDZ+pwE05YMIdROxJfYY19gT0LuXqV5BdJ3s0sS4MopYeIffMLYnh2k9o0XIQzYqRPpcmGX/fjhMKd4BsRrJxCBA6RwNN7a64+fjCxTeucKz4lA7khYvGRixPeNhijPLc9giXwNZKu9n8ZCfPDlC6XDagBNR63irn+VgYsfM4tp6g/xXiSCf7rSOBMsYMA//MGpIYg/XLGDH4c5OMEw0xCWhSNbm0F1Wi2DMGcqVn4WcPXiElIYZtcdpHxvmFvFuGgGglJdiBjOvRo0CTLyWivdAKd+ML1Jju/r9St48WMyI0FS84JyHo998qTsXWBiKU/5fKkSBBjnpPVkHwY0iqHsPWGTE+scGItuj5Ie5pYHcrrVrcbXvxgDLep/w+7eWQSyHoQUUVLqxwN6zbMCKwuooqUZ9pjAF3bnlRIvnlK+2IpC65xEJE06xtRb+y3T7mU4L1bRR8LXdqlEhGd50nI1Q9MzrEDEbddj4S1eEYrWqaMkjUsR5XC468seFCzC6qi3CEY7VDJsEOldmrHs//TOlGPDQ9HzEr2uX1NOi5vfJWP8TrhiyfWkB0NX+cSQG8Yj4S/jD7zQef5t94s3JbWVKTmFW3I/zf9T85LQNkO16VQrLtSAaN1fLOoR6/y9hQbtv54DUwtCyRtxX7ztSnnU8WyFHXo7VoOoeu4r2T/O0Vf1TWouVbS6qBYvydKHhYezS4AgCMJ2DOFe0nfPgGsahhCPBql/nJMUf0JeKr/OSU8zAkN9AtSiMACfYKDN72Xr7lRrXQsgV6oB6oNzG234Bm61zYbvsj6E5naIAd3e54ACEo27Mqyt4pzVTOCjvj6MMDCJkKyJexKG8gtGiX7g+DLzrqXAbA/l+HTjWUy4xgLcXwJgYJIb4EYrsK89hmHP5VrZ+0bpnH1xHFNP 7Ec0JOX+ 8Dzqc7lJMFAY98Kt8XncBDEhnhJBOBlw4b3YyPodezCVUdCQFV96OLiQWR8DGen9BsgM+r1oMEA95RNooH08wSmeEW/R2u7X3AbgAILoizKAPrYeXpcAphkZdHx1x9BBbZ7Q6Q4VvGQVHtclOC610S/k3rRcBEL9RJKmn7Vt98JoV7IZFxxqwlW8cs+4pv9Ia7Ur7sojvXqs+TJF2jN2cK8AW6L/+fxPt9VU8zdmVHhjPXOhZjEtP+ydserGLHlULhVRVEGBCQSz5MUM3yIPFz7vhFh55vb25NcY9j76nJBctyKlSOjC+RzIkm55Sqw55lrLPSWYOvTxoG6SXMimXmx55kq6h22rKDRAyEvuAbLlySRgZ9CJ1uTlKJIa7Q0SPpcvVzWG/ZcrwoA27QL/PndKwfPVp81rHvppZV5eXUzi360se2JTfx3LPqJEGdUMmUXLslAl8k+QQZRx1UlEOI4f9sfp1ZoSD4l8ub+4y+lyibbdEX3wN4HG0VXmJ38SL55IA0r3CeU5gBiGr00Y2L0+eXr9hiKH9n+xg 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: Hi Muhammad, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING on next-20230613] [cannot apply to linus/master v6.4-rc6] [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/Muhammad-Usama-Anjum/userfaultfd-UFFD_FEATURE_WP_ASYNC/20230613-183334 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230613102905.2808371-3-usama.anjum%40collabora.com patch subject: [PATCH v18 2/5] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs config: hexagon-randconfig-r041-20230612 (https://download.01.org/0day-ci/archive/20230613/202306132324.Npiix2ct-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch akpm-mm mm-everything git checkout akpm-mm/mm-everything b4 shazam https://lore.kernel.org/r/20230613102905.2808371-3-usama.anjum@collabora.com # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash fs/proc/ 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/202306132324.Npiix2ct-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/proc/task_mmu.c:3: In file included from include/linux/mm_inline.h:7: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from fs/proc/task_mmu.c:3: In file included from include/linux/mm_inline.h:7: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from fs/proc/task_mmu.c:3: In file included from include/linux/mm_inline.h:7: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> fs/proc/task_mmu.c:1866:18: warning: shift count >= width of type [-Wshift-count-overflow] 1866 | if ((p->flags & PM_SCAN_OP_WRITE) && (!userfaultfd_wp_async(vma) || | ^~~~~~~~~~~~~~~~ fs/proc/task_mmu.c:1769:26: note: expanded from macro 'PM_SCAN_OP_WRITE' 1769 | #define PM_SCAN_OP_WRITE BIT(63) | ^~~~~~~ include/vdso/bits.h:7:26: note: expanded from macro 'BIT' 7 | #define BIT(nr) (UL(1) << (nr)) | ^ ~~~~ fs/proc/task_mmu.c:2102:22: warning: shift count >= width of type [-Wshift-count-overflow] 2102 | PAGE_IS_WRITTEN) ? PM_SCAN_OP_WRITE : 0; | ^~~~~~~~~~~~~~~~ fs/proc/task_mmu.c:1769:26: note: expanded from macro 'PM_SCAN_OP_WRITE' 1769 | #define PM_SCAN_OP_WRITE BIT(63) | ^~~~~~~ include/vdso/bits.h:7:26: note: expanded from macro 'BIT' 7 | #define BIT(nr) (UL(1) << (nr)) | ^ ~~~~ 8 warnings generated. vim +1866 fs/proc/task_mmu.c 1859 1860 static int pagemap_scan_test_walk(unsigned long start, unsigned long end, 1861 struct mm_walk *walk) 1862 { 1863 struct pagemap_scan_private *p = walk->private; 1864 struct vm_area_struct *vma = walk->vma; 1865 > 1866 if ((p->flags & PM_SCAN_OP_WRITE) && (!userfaultfd_wp_async(vma) || 1867 !userfaultfd_wp_use_markers(vma))) 1868 return -EPERM; 1869 1870 if (vma->vm_flags & VM_PFNMAP) 1871 return 1; 1872 1873 return 0; 1874 } 1875 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki