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 5A142C47258 for ; Wed, 31 Jan 2024 23:14:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE54E6B0074; Wed, 31 Jan 2024 18:14:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B6E5B6B0075; Wed, 31 Jan 2024 18:14:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E78A6B0078; Wed, 31 Jan 2024 18:14: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 8C95F6B0074 for ; Wed, 31 Jan 2024 18:14:47 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 3CCB6160DF0 for ; Wed, 31 Jan 2024 23:14:46 +0000 (UTC) X-FDA: 81741162972.02.A871639 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by imf20.hostedemail.com (Postfix) with ESMTP id A532D1C001F for ; Wed, 31 Jan 2024 23:14:43 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=SVJAINkM; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 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=1706742884; 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=0dnocVgtJFWgVyCXX6Vf/7K8pBfRvn1RlEAwobbSTto=; b=hSSwapS1GJrnjkeBpK4V2brmUSMejDnmFny0oL12DYNuN8bJ889onL+MdOkapTDhNZkary QzJooK2zrfcybkekezH4/IFoQ7v+326/msXtSXy1DgHgxDbIu4Vd43+EEgmx4/4NL9Jm0z q/gxqLLL182ZuqDxYcpmLYoSek27KtA= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=SVJAINkM; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 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=1706742884; a=rsa-sha256; cv=none; b=HIZ4tU6PUgfBRPkiTXsnurStfxRd+XAmqIKJiAVRlVgo2R/5gJ8eDqnMaCPit8611TOeIO jz73581Lh86Pxq4j/bdjBTlXMAltH321HB0E2iHNEG6nb/XNsjcKW120w7XiDfwni4HeG0 tfO97wWgslrfootaxrSUfpjzZDUiuAU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706742883; x=1738278883; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YDcV1Cmi5bJEdHBzWK8e0YEggkl/TRz+YUAYBOkFfsw=; b=SVJAINkM5r/Bo7vUy20bNl4vKX5YMQbd9G0moVQ/3T6Fd3g9FAMv1Ucz GZrigkpa7Lc6IUtZHruPkTnzdt1ddtHfTeIzztEnL0gScYy8v0D+Qnkvo ew3oribtw3BzH0MRCnIcGaoGB0aC5WV4WQQzSkyzKyNUEEcCsTL2R2IoD GK7x6pKjcYfSP4C0WRjr2IUe3kPNuL9XsLUnOltZB06iipfFQ+mVWsOSX E8ii+BIFuiZxGtSWd9hvV9FgspyKjGd7b+0pWAd3B6InzPxsUVAcYmboV dpCkDB6MP6h63zO7IvzEvUzR9zwzZ375JWSZVs+TBa05uJU/x6xCLj6EI A==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="3590385" X-IronPort-AV: E=Sophos;i="6.05,233,1701158400"; d="scan'208";a="3590385" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 15:14:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,233,1701158400"; d="scan'208";a="4236973" Received: from lkp-server02.sh.intel.com (HELO 59f4f4cd5935) ([10.239.97.151]) by fmviesa003.fm.intel.com with ESMTP; 31 Jan 2024 15:14:33 -0800 Received: from kbuild by 59f4f4cd5935 with local (Exim 4.96) (envelope-from ) id 1rVJmp-00029D-1S; Wed, 31 Jan 2024 23:14:31 +0000 Date: Thu, 1 Feb 2024 07:11:21 +0800 From: kernel test robot To: Christophe Leroy , Andrew Morton , Kees Cook Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Christophe Leroy , Russell King , Catalin Marinas , Will Deacon , Michael Ellerman , Nicholas Piggin , "Aneesh Kumar K.V" , "Naveen N. Rao" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Gerald Schaefer , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andy Lutomirski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/5] mm: ptdump: Have ptdump_check_wx() return bool Message-ID: <202402010649.MtBnf3u8-lkp@intel.com> References: <7943149fe955458cb7b57cd483bf41a3aad94684.1706610398.git.christophe.leroy@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7943149fe955458cb7b57cd483bf41a3aad94684.1706610398.git.christophe.leroy@csgroup.eu> X-Rspamd-Queue-Id: A532D1C001F X-Rspam-User: X-Stat-Signature: zox7nx9soq1hsdeka81r6wb16y8o7oab X-Rspamd-Server: rspam01 X-HE-Tag: 1706742883-474817 X-HE-Meta: U2FsdGVkX18YYu7I0oO09/hGvtf0ByXsOwFS3GimlauT3M1FBXd1z7k3LnY94q62dwdfCpr3WXOtEl/CB+Do5hKkTWa5GlN07ZcZZlo811dJa4ke4NEucRpz+hKPTumciFTGiyme+ky70rtgPSh6e0ol3e9zeMJAh7P9b+N/AHvj67inCai12vtCZrZIs7i6NqszDAEej9UHWU/8LQh9tUr4eruwkW7lCXsP1OnpC9G3kgwexR9LiukA/bzPob5m6J12AQXHbCWF2R/nfYRpfAd7fbGrVwx5cAUNpmqNEr6RNg/3RPzZKc2RxLMtagOW9wgtvMMMpZshaMjwowjAv0CdSPB2l8rKfhTpJLE94b5J78QvZMAZKGT+B03IBBP/0xMcF2jp/0PiucE+o46TLUzJhljlLeKFYTGHVO8vro3q5UZElTfh2LIo7gmis4pyS0MvB9aAWu+C+dh0cEwlmTp2cqd4UQXjZ4cRlv5xqYpR/CWIGhHBabOFd00zF5JOq9n1yAmOxYz5GoQtPSnr73GcKJ3mEoVvLigGTb3vehd2ueoduVXh0tut6frZvY6POUdmvhlU31nsr23Xsl/I9vL/Lwave9d2gMoksB1Y6doAFxir/GQKRll99KwRTY72p50uVkj9CTpN6tTv3hRWIB2A4SzwYQruFHodra5BDt0XFe47G3zF3ECKD0wY//s5Fje6rBbM5kHtraIc18gC1lqvfdzV5k9Pn5kxSeCcN50uTZr83j0y54c8PaEKy+aZajPGcEr5TbLiBzfDFEBFPTerdTJ/t8InPRtd35bSWZdb9k5okcpGDpxRdibTZyxHerUVxU5vLAyyqPeDaEt2eLKoJ3sAo86nmn0yLk2+U+CXieTPWK5B+Sx2jDe4GmHxfrl/GsFXk5XGp39IznkY0U6i95wpuD/PKjgzIPnI/906nLEAtn+uUxu63rW+Vjll/aixKLBQDSDt8EpTwGG 7gm4eWfx YqlRFAeeYQpl9he4OuL7vm2f+kWydosB414fOfRANFoFQla+vCGIHYlqZ6uHluBAUD6EkdBdBoR7Dq0epuHbc7DNCLvzUyXZvrjTiT/c39h9pYpw/mtY7LQF8lP5dETFiddLbPCwd2CmW7StxvPcToVxeTWnv6QcKHNxeR1N5cJrnIaYe7gMmN5JKpiWokSOieC8iHeCrnqLdkn1SRyeLIS6s8Tf2B2VfYPUZQXW1Y8SEMTtE/d5Q1F2eGnOsQevi8/Gu0GYjGwLJPJrmQ7MjvCfuGzT5dMBQalq4MrAh95zhCGwRtXMuiG2QJ8+Wv/p4rbl0xy7FAiGx9gOrXT61n2qsCY+YF5kW0NKrc9QkRx8HdiPI2pYY3Zrmwz48GkAFyI2u86PN08Cd3TVT3hROr/2UgTlJT6+ixMxI 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 Christophe, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Christophe-Leroy/arm-ptdump-Rename-CONFIG_DEBUG_WX-to-CONFIG_ARM_DEBUG_WX/20240130-183913 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/7943149fe955458cb7b57cd483bf41a3aad94684.1706610398.git.christophe.leroy%40csgroup.eu patch subject: [PATCH v2 4/5] mm: ptdump: Have ptdump_check_wx() return bool config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20240201/202402010649.MtBnf3u8-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240201/202402010649.MtBnf3u8-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/202402010649.MtBnf3u8-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/mm/dump_pagetables.c:365:6: error: two or more data types in declaration specifiers 365 | bool void ptdump_walk_pgd_level_core(struct seq_file *m, | ^~~~ >> arch/x86/mm/dump_pagetables.c:365:11: warning: no previous prototype for 'ptdump_walk_pgd_level_core' [-Wmissing-prototypes] 365 | bool void ptdump_walk_pgd_level_core(struct seq_file *m, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/ptdump_walk_pgd_level_core +365 arch/x86/mm/dump_pagetables.c 364 > 365 bool void ptdump_walk_pgd_level_core(struct seq_file *m, 366 struct mm_struct *mm, pgd_t *pgd, 367 bool checkwx, bool dmesg) 368 { 369 const struct ptdump_range ptdump_ranges[] = { 370 #ifdef CONFIG_X86_64 371 {0, PTRS_PER_PGD * PGD_LEVEL_MULT / 2}, 372 {GUARD_HOLE_END_ADDR, ~0UL}, 373 #else 374 {0, ~0UL}, 375 #endif 376 {0, 0} 377 }; 378 379 struct pg_state st = { 380 .ptdump = { 381 .note_page = note_page, 382 .effective_prot = effective_prot, 383 .range = ptdump_ranges 384 }, 385 .level = -1, 386 .to_dmesg = dmesg, 387 .check_wx = checkwx, 388 .seq = m 389 }; 390 391 ptdump_walk_pgd(&st.ptdump, mm, pgd); 392 393 if (!checkwx) 394 return true; 395 if (st.wx_pages) { 396 pr_info("x86/mm: Checked W+X mappings: FAILED, %lu W+X pages found.\n", 397 st.wx_pages); 398 399 return false; 400 } else { 401 pr_info("x86/mm: Checked W+X mappings: passed, no W+X pages found.\n"); 402 403 return true; 404 } 405 } 406 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki