Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2753712ybf; Mon, 2 Mar 2020 15:01:15 -0800 (PST) X-Google-Smtp-Source: ADFU+vvhVJ+y6ICzRyIj/C0NmM4KXdHGe/njR+IRZBLc6ztoe0k0X8maSfey0Plo+Jk85bC0ORzP X-Received: by 2002:a9d:5d07:: with SMTP id b7mr1189397oti.209.1583190075592; Mon, 02 Mar 2020 15:01:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583190075; cv=none; d=google.com; s=arc-20160816; b=mk+36Y0gUaK/uc08HcwSsd4uiYARwr4WSS7hcIbpjpFK8V19pNp5KJi+PU8mK955hd WbJh1pRr4l9dhokE+15uzMMOL45QR9vGpMqDLvm82srSeN2GGoqEr+Ayp5lr3n8XzFwz nXeGd5PwBe1uB3ZVzMqT4rN/adx0bK7ozyW4hZDS13ilZLshuhjLKRNnZaTtm3Eydcj4 RgxhiXKcK4OP1EhnMuThlzHrtXow8yE6dsG1d7Bq7D6rhTRwdW2TWc79pWYXU1RfAyFc Ks+LRWADnIavJY/3wv115OHpXbJJa1iIMFMb5Jq5rBJ0nzv4sVtWR41f+p/qLX6Jho7G zRFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MCMKD840BhJWe+2H9XuHZdSWxt+oBFLhLhTqcGG/y/U=; b=bL6lszs1z+2SHjvbNE7rRwZwV/AcpYDmhNZbq1DU+mLvR+yKhAYQ8B1WIHFZxImMDc N+FgDXJhB7494gADYu10Pt2kgq9saI2OvX1XSBeoORKYQcENnXLl5ONZwTdZeLCZ6F3S pa1+otRrarvd88T7AvaIk7nr1OrT4boBZxdTo9XsaJCPez7DPg7vGGex71OFLV+ve1na Sii6CKqhOuPg+tKJ44q4RH/Q80TKGxqz+E+fxaoIXGnoQKqmau13TYfZdJQtEAb8JMzT bMwCtyeSW0fi4qJ7UZy4xXv4bQVsV2cSGqiS4YOKd5fq+bGJhw3fZbEQyJ0Qpg6jkEY/ qKAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h203si6780175oif.3.2020.03.02.15.01.00; Mon, 02 Mar 2020 15:01:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgCBXAs (ORCPT + 99 others); Mon, 2 Mar 2020 18:00:48 -0500 Received: from mga09.intel.com ([134.134.136.24]:3395 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbgCBXAs (ORCPT ); Mon, 2 Mar 2020 18:00:48 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 15:00:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,508,1574150400"; d="scan'208";a="258130650" Received: from pl-dbox.sh.intel.com (HELO intel.com) ([10.239.159.39]) by orsmga002.jf.intel.com with ESMTP; 02 Mar 2020 15:00:45 -0800 Date: Tue, 3 Mar 2020 07:01:28 +0800 From: Philip Li To: "Eric W. Biederman" Cc: kbuild test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [kbuild-all] Re: [PATCH 3/3] proc: Remove the now unnecessary internal mount of proc Message-ID: <20200302230128.GE5513@intel.com> References: <87r1yeqxbp.fsf_-_@x220.int.ebiederm.org> <202002291137.px8YXKJI%lkp@intel.com> <8736auov5g.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8736auov5g.fsf@x220.int.ebiederm.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 10:49:15PM -0600, Eric W. Biederman wrote: > kbuild test robot writes: > > > Hi "Eric, > > > > Thank you for the patch! Yet something to improve: > > Dear kbuild robot, > > Yep. You got it the wrong base. I will see about using --base thanks for the feedback, we will also take a look to see how to better identify the base automatically. > if I repost, or have another patchset that so clearly needs > to be applied on top of a non-default base. > > Thank you for writing me how to do that. > > Eric > > > > [auto build test ERROR on uml/linux-next] > > [also build test ERROR on linux/master kees/for-next/pstore linus/master v5.6-rc3 next-20200228] > > [if your patch is applied to the wrong git tree, please drop us a note to help > > improve the system. BTW, we also suggest to use '--base' option to specify the > > base tree in git format-patch, please see https://stackoverflow.com/a/37406982] > > > > url: https://github.com/0day-ci/linux/commits/Eric-W-Biederman/proc-Actually-honor-the-mount-options/20200229-100926 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git linux-next > > config: x86_64-defconfig (attached as .config) > > compiler: gcc-7 (Debian 7.5.0-5) 7.5.0 > > reproduce: > > # save the attached .config to linux build tree > > make ARCH=x86_64 > > > > If you fix the issue, kindly add following tag > > Reported-by: kbuild test robot > > > > All errors (new ones prefixed by >>): > > > > fs/proc/base.c: In function 'proc_flush_task': > >>> fs/proc/base.c:3217:33: error: 'struct pid_namespace' has no member named 'proc_mnt'; did you mean 'proc_self'? > > proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr, > > ^~~~~~~~ > > proc_self > > > > vim +3217 fs/proc/base.c > > > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 3180 > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3181 /** > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3182 * proc_flush_task - Remove dcache entries for @task from the /proc dcache. > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3183 * @task: task that should be flushed. > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3184 * > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3185 * When flushing dentries from proc, one needs to flush them from global > > 60347f6716aa49 Pavel Emelyanov 2007-10-18 3186 * proc (proc_mnt) and from all the namespaces' procs this task was seen > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3187 * in. This call is supposed to do all of this job. > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3188 * > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3189 * Looks in the dcache for > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3190 * /proc/@pid > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3191 * /proc/@tgid/task/@pid > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3192 * if either directory is present flushes it and all of it'ts children > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3193 * from the dcache. > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3194 * > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3195 * It is safe and reasonable to cache /proc entries for a task until > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3196 * that task exits. After that they just clog up the dcache with > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3197 * useless entries, possibly causing useful dcache entries to be > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3198 * flushed instead. This routine is proved to flush those useless > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3199 * dcache entries at process exit time. > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3200 * > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3201 * NOTE: This routine is just an optimization so it does not guarantee > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3202 * that no dcache entries will exist at process exit time it > > 0895e91d60ef9b Randy Dunlap 2007-10-21 3203 * just makes it very unlikely that any will persist. > > 60347f6716aa49 Pavel Emelyanov 2007-10-18 3204 */ > > 60347f6716aa49 Pavel Emelyanov 2007-10-18 3205 > > 60347f6716aa49 Pavel Emelyanov 2007-10-18 3206 void proc_flush_task(struct task_struct *task) > > 60347f6716aa49 Pavel Emelyanov 2007-10-18 3207 { > > 9fcc2d15b14894 Eric W. Biederman 2007-11-14 3208 int i; > > 9b4d1cbef8f41a Oleg Nesterov 2009-09-22 3209 struct pid *pid, *tgid; > > 130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3210 struct upid *upid; > > 130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3211 > > 130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3212 pid = task_pid(task); > > 130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3213 tgid = task_tgid(task); > > 9fcc2d15b14894 Eric W. Biederman 2007-11-14 3214 > > 9fcc2d15b14894 Eric W. Biederman 2007-11-14 3215 for (i = 0; i <= pid->level; i++) { > > 130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3216 upid = &pid->numbers[i]; > > 130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 @3217 proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr, > > 9b4d1cbef8f41a Oleg Nesterov 2009-09-22 3218 tgid->numbers[i].nr); > > 130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3219 } > > 60347f6716aa49 Pavel Emelyanov 2007-10-18 3220 } > > 60347f6716aa49 Pavel Emelyanov 2007-10-18 3221 > > > > :::::: The code at line 3217 was first introduced by commit > > :::::: 130f77ecb2e7d5ac3e53e620f55e374f4a406b20 pid namespaces: make proc_flush_task() actually from entries from multiple namespaces > > > > :::::: TO: Pavel Emelyanov > > :::::: CC: Linus Torvalds > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org