Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp808426lqb; Fri, 24 May 2024 14:06:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/uHLX2EjmAPjUgfbgbI6M7wdApiP48Twj5bNcZHeRdz0JhANApdQaJbPe3pMU04USkqNby8rsWM1Ut8FE+JLAHXL2lVx2ZMSQ42D8aw== X-Google-Smtp-Source: AGHT+IEt9gLDjPcVvzMJrLDUSwd9C4Rzcqe1fDV4BdvvbKotqtzHQB5KxtxQQ7SXFsPbahaP5t9U X-Received: by 2002:a05:6214:590b:b0:6ab:8a43:9ae4 with SMTP id 6a1803df08f44-6abccfad2cdmr38442556d6.52.1716584791648; Fri, 24 May 2024 14:06:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716584791; cv=pass; d=google.com; s=arc-20160816; b=iV6huhSR3CIq1Ui3h4PTzwB2PQifr/DYobKBG+warmLlLJMpY+09YLYnLzUrODsOK3 GPjbZsSLxkh8FpNTpScD2XS9b9m6Qc9+W5KStkBq+5MLdxivbqQpxnyuqAOdAEO3kDbt AFwko7ICT2r2FV9XKPErtLnYz7e01DYSq2i1gD7H5LXDRfbHKZojP3iPT+cLbxMvP7Uo TKBQTCOXg4GRgTNaZ67p4tqtVNc8era26A8t4UpH2wldnCc0vz9rtBUa4DIn2BU25KNo UDh6FrXJgqGhfuWhBZg5+hv4egwbBQiDY04viSXR1vIUF1R71+7wBqIP+bbHIpDO05Q8 LiRQ== 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=piQKhC8kL3j7jsJ7exi0/layF2q6bB76iE/5FpOwKTk=; fh=OxDctv/AGM9mZX8COSD40cbYmSL2BOQAe46Jtht8YWs=; b=MjfP5JQ1VAkhBLWkAu4hSuZZS94C0GAA995rVMnDQnkD/AHF8BSysMiTlq6e03QiC/ 7jURfLeLxeCfqmHBuld3L7JsUP577TVgHkuUynNZHwkLTk0rxz+T7EQYoqJ/LEHeLPwg 6toeeG8KyWa1rW30wqX8y5qYVEEnqOafI5onkljkB1r5u3Zt11teQxW8fDc438Tso8Nx snXt1WnLkSq1t/yulT78CTcQ0UyO48UIJ2Jgw+Rfw2h+gtkjToyi/l5PRSgiIvkFRVMX qWV4XxMzwCR+ezMmTpCcL873yXvzQqjqGhafR0uRSzsem9uZqonn+8POxKcoBJvKcReY IoZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mGsQVoaz; 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-189134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac070f155esi26139106d6.299.2024.05.24.14.06.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 14:06:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189134-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=mGsQVoaz; 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-189134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189134-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 2BCDF1C218FA for ; Fri, 24 May 2024 21:06:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F72481AB5; Fri, 24 May 2024 21:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mGsQVoaz" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 AAF643C47C; Fri, 24 May 2024 21:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716584777; cv=none; b=ig1O0U7fMj/CICqAaFAotSYIyz8crm2fu+UQpwpzLKybxgUiv3hWE7DrxhY5/zI0wmmWI4bizc+cdcI+YIjLFaNSNoMY5d8DheI8/Rhj4tEiecTvaAkSGNpr0fBFe2ztprviDwuXHSxKfe/ruJZGLINqBtJ1Vp+ii7KaLKTIoCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716584777; c=relaxed/simple; bh=i2FYvQ/BuCKRsKhUyvuotfGtwF1qiSXoUMR8uyOnvAg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MHg5Nc78JUPZDfw9VeG8CBzoHpmn0GCfqkl2j84wybuMwqE3UKktyeiL3HmwrHKuUk9xYs2xgv/dO87kzjkt9gnjPzxIA4cQIqKYAoOwkpzuUj4KgYa0c4iKkJwp+uX3hV0MblMNqbu9QE+6qeXhpOTWtZSFOXCoaaOrdX19RT0= 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=mGsQVoaz; arc=none smtp.client-ip=198.175.65.11 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=1716584775; x=1748120775; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=i2FYvQ/BuCKRsKhUyvuotfGtwF1qiSXoUMR8uyOnvAg=; b=mGsQVoazfreoJ4VR+jVsWh/U0L5a0weCmoOf0jNA4VmQ6mj7tGiDckFV wYOC8SZSBmHFSXbp9zu3xznKZK7P91ntdMXeFdXm45dh4wyA4JoB/iqqc N5U+JUblgIcAZbnp6NG1DNBIXNc/p/9Bb05KthJQHjizCtQ3lxiMNSnZv X+SlyozcuJcSTzm44/6Rfs/vbI8FwtzyifS023UFnhjMBQwcR/BlKKbP4 64BpmiP/ZdEd3bAEF3D6fKdMryf6rjC6vGK3PBdrKYZIAU4j/+vnvqEJE kHOnSE5FzUZ1hYZ6jo6YrF8UTBZJGDtJHjic+DIzty0v4CYen4szU2nvP w==; X-CSE-ConnectionGUID: RwRlITcQTgWntLv1y3flew== X-CSE-MsgGUID: Y44mRza0TOKNicZIZ37Ezg== X-IronPort-AV: E=McAfee;i="6600,9927,11082"; a="23546283" X-IronPort-AV: E=Sophos;i="6.08,186,1712646000"; d="scan'208";a="23546283" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2024 14:06:14 -0700 X-CSE-ConnectionGUID: dg0+kzl/TTiFuWKJa05m+Q== X-CSE-MsgGUID: bBCnSzmmQreu0Xqb9a7bkQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,186,1712646000"; d="scan'208";a="34112530" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by fmviesa008.fm.intel.com with ESMTP; 24 May 2024 14:06:10 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sAc6x-0005ul-1D; Fri, 24 May 2024 21:06:00 +0000 Date: Sat, 25 May 2024 05:05:28 +0800 From: kernel test robot To: Adrian Ratiu , linux-fsdevel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-doc@vger.kernel.org, kernel@collabora.com, gbiv@google.com, ryanbeltran@google.com, inglorion@google.com, ajordanr@google.com, jorgelo@chromium.org, Adrian Ratiu , Jann Horn , Kees Cook , Christian Brauner Subject: Re: [PATCH v4 1/2] proc: pass file instead of inode to proc_mem_open Message-ID: <202405250413.EENbErWw-lkp@intel.com> References: <20240524192858.3206-1-adrian.ratiu@collabora.com> 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: <20240524192858.3206-1-adrian.ratiu@collabora.com> Hi Adrian, kernel test robot noticed the following build errors: [auto build test ERROR on kees/for-next/pstore] [also build test ERROR on kees/for-next/kspp linus/master v6.9 next-20240523] [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/Adrian-Ratiu/proc-restrict-proc-pid-mem/20240525-033201 base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/pstore patch link: https://lore.kernel.org/r/20240524192858.3206-1-adrian.ratiu%40collabora.com patch subject: [PATCH v4 1/2] proc: pass file instead of inode to proc_mem_open config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240525/202405250413.EENbErWw-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7aa382fd7257d9bd4f7fc50bb7078a3c26a1628c) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240525/202405250413.EENbErWw-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/202405250413.EENbErWw-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from fs/proc/task_nommu.c:3: In file included from include/linux/mm.h:2208: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> fs/proc/task_nommu.c:262:27: error: incompatible pointer types passing 'struct inode *' to parameter of type 'struct file *' [-Werror,-Wincompatible-pointer-types] 262 | priv->mm = proc_mem_open(inode, PTRACE_MODE_READ); | ^~~~~ fs/proc/internal.h:298:46: note: passing argument to parameter 'file' here 298 | struct mm_struct *proc_mem_open(struct file *file, unsigned int mode); | ^ 1 warning and 1 error generated. vim +262 fs/proc/task_nommu.c b76437579d1344 Siddhesh Poyarekar 2012-03-21 251 b76437579d1344 Siddhesh Poyarekar 2012-03-21 252 static int maps_open(struct inode *inode, struct file *file, b76437579d1344 Siddhesh Poyarekar 2012-03-21 253 const struct seq_operations *ops) 662795deb854b3 Eric W. Biederman 2006-06-26 254 { dbf8685c8e2140 David Howells 2006-09-27 255 struct proc_maps_private *priv; dbf8685c8e2140 David Howells 2006-09-27 256 27692cd56e2aa6 Oleg Nesterov 2014-10-09 257 priv = __seq_open_private(file, ops, sizeof(*priv)); ce34fddb5bafb4 Oleg Nesterov 2014-10-09 258 if (!priv) ce34fddb5bafb4 Oleg Nesterov 2014-10-09 259 return -ENOMEM; ce34fddb5bafb4 Oleg Nesterov 2014-10-09 260 2c03376d2db005 Oleg Nesterov 2014-10-09 261 priv->inode = inode; 27692cd56e2aa6 Oleg Nesterov 2014-10-09 @262 priv->mm = proc_mem_open(inode, PTRACE_MODE_READ); 27692cd56e2aa6 Oleg Nesterov 2014-10-09 263 if (IS_ERR(priv->mm)) { 27692cd56e2aa6 Oleg Nesterov 2014-10-09 264 int err = PTR_ERR(priv->mm); 27692cd56e2aa6 Oleg Nesterov 2014-10-09 265 27692cd56e2aa6 Oleg Nesterov 2014-10-09 266 seq_release_private(inode, file); 27692cd56e2aa6 Oleg Nesterov 2014-10-09 267 return err; 27692cd56e2aa6 Oleg Nesterov 2014-10-09 268 } 27692cd56e2aa6 Oleg Nesterov 2014-10-09 269 ce34fddb5bafb4 Oleg Nesterov 2014-10-09 270 return 0; 662795deb854b3 Eric W. Biederman 2006-06-26 271 } 662795deb854b3 Eric W. Biederman 2006-06-26 272 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki