Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1976993rdb; Wed, 31 Jan 2024 15:32:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGWLdj9yLP3q0L+4olUpmcg6GrTERvnpuQJzHyn6r4y2EX/p6O6/9MQn+t9MHfS3o6FNXD X-Received: by 2002:a05:620a:4389:b0:785:3c85:e7dc with SMTP id a9-20020a05620a438900b007853c85e7dcmr928429qkp.0.1706743921978; Wed, 31 Jan 2024 15:32:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706743921; cv=pass; d=google.com; s=arc-20160816; b=kvKtl4dn5S1oXrTM5UIvMpuk60mTmOZO277UcFUF3ycpH4X2QM4GfG9fzm3J79ejbZ Eir2+oGIkWtAjIfxEK9DBIb+8Kt5KQqHKSOOMxvv99IAJqoGfYP5H8ON8IpVsyrOuSM1 MsJzZYAaIHA23njaxYBtPcDIAv3K3EDfDBoZwkyc/kz6DZZZkCoTg7rBhVoOewYv38NK O1YQJcKP9WwrBWmGfTxzorq6YjTsFUDogYT7qeceala1yNopTrn9svFIi1hndKzOv3vm 8gd0ZLKyrKmKh7HsoOnwYB4Zr+pe/xyqzR6GjP9U2PkrflveNC4eFhERpTuRBNE6MAkX 2MTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0dnocVgtJFWgVyCXX6Vf/7K8pBfRvn1RlEAwobbSTto=; fh=Aa+22niOxCOReOv4iXA7RFwZSGscKvGJEMBVYr1TLkk=; b=j6Yn+nYO4ITuZS2p7zHBd6X9FQ8OGzmijRiHE0FoCIJIZj/Pwb6i52hawtxcakbQCB 5yzeWlOmb142QmCNEvjlSjNSrKtUcLN4Eq02la12FZRIMndMqrtsE3/QPAHVfqGbBGB4 X6b1xMsn8puf9mRuLgLMoA7G+RMLCyPwkOYKqAcN6uf4SDFCGyGx3rYzFPVDcjgsvkNC 4/6Jm1du2+zXUoKyRp8eMTsztE3UnGKRu9wl1b9ocK6DbklVUY+kAPcBkkjfZtl+JdIK xRnEGZkytIbeFsVQ6XsEjVD6y3BWzidLM6NBEmdd0Soz/hfHVxj3U4G9+YBTjVnTBf8W 8gvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SVJAINkM; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-47360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCVyeSctoWzVYQ8i5RSjLj8XdBhMArEM9xw240kzPDoIjvkJN+QAOv7pV38MHPdvH4R5WxxPGqUInt1mpF2+OLx3zt7LpnznspigSmEveQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q2-20020a05620a038200b0078321c60d62si6427008qkm.762.2024.01.31.15.32.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 15:32:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SVJAINkM; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-47360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B82171C20A8B for ; Wed, 31 Jan 2024 23:32:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65B1C3C49B; Wed, 31 Jan 2024 23:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SVJAINkM" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FA483A8D2 for ; Wed, 31 Jan 2024 23:14:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706742887; cv=none; b=FCYP7+ntJTjRSaeL/o0k+MLuMf+TrsLl3f1ShBD4rN981GplkkK8XlPzfo5iafuxv9OQAgefeHEq73Z7UhrI06c8wrKcSqcJ19KRugQ8ayKtbbvzoubXwAxls6raCZzTtKzWmqxbjfMv18sJ2x3pVU8ypAyTeMI+bZRK0L65yDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706742887; c=relaxed/simple; bh=YDcV1Cmi5bJEdHBzWK8e0YEggkl/TRz+YUAYBOkFfsw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WgcnlrTwu4paxv0mUJ+3xQVYpV/sDrvbUcLzJIj3fQT6ydwYmBf8AM2SJSgs5yFOFJF4HbZv1uOkz/Uqu2L8Jmz/RzT6schecM7rGVMmTDA6SpNdr/87DFoy38M+gLtd8kXW8BdLxbUJHXDSj67MOUy9wbmDECsHwPAoacuc9YU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SVJAINkM; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com 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="3590384" X-IronPort-AV: E=Sophos;i="6.05,233,1701158400"; d="scan'208";a="3590384" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7943149fe955458cb7b57cd483bf41a3aad94684.1706610398.git.christophe.leroy@csgroup.eu> 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