Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3600293ybf; Tue, 3 Mar 2020 08:51:26 -0800 (PST) X-Google-Smtp-Source: ADFU+vvsHqlWMnajesZSc2451FRV3rLcSbBSCrYsh6marI//ywgy32jMFPRno1mJ7jhr1uUwqr6g X-Received: by 2002:a9d:6d96:: with SMTP id x22mr2371995otp.264.1583254286168; Tue, 03 Mar 2020 08:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583254286; cv=none; d=google.com; s=arc-20160816; b=rw4Td8Oex1jVY2R3zfH/V3cGZtUKCzFlB2VA0pg+ccvxVVLVP7eLowDUWxKznYy3UU cY7LwiCnsgsjuExig448PaJp6wwZIdIc6i0ppM3rFVFbD0LU91N85UQ1e6nxwVK4bT0m MyxXm4BdEt/qeugVtTs7qNhUPivAL7rO0UGJiFMbvTOU4GFvMapGzLlxhWT1E6+ckU9V qv/vm8EEHWorbb1BYY1OJUquAtvJQY+TTDV/TpbRAZSd044GDY6tS20Zuxdl+OwtUMw3 MDxR53/+Q30jZ5wmjtSKj0/pt0O80cHYISjVKM/PxEJSkQ4Pr6T7QVFbJHfXjRa29Va0 WLqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qHOn5vqQErDHAkJzL6biRHoTSOSlgdzSHmMDR1rwOSw=; b=e5NmWy0gCuFXYbsVHzcLhwbCZURH1P5inAjXqwyEF2ZlHyPEjzEpsQJe9qFmEFOO0i PIo8yaVMMXYhI4xUF0Tw/iZdzCiKHFcwhz0cXVlLy07NweUyLOeNHTd3XNm3TMQwEoqH OSWrByvjVVsft5xSwY4pGGX1Dqm58B6FgYYYP2xQMP2wE4atwz3/1xcU7VonypFE8jNO ZPj8TXQ4N5dwBDjV8KOcHzI8jx2KEl+LE8dZiCgjXP94+gihvycH/9qSCZHLssonJvdv oN9za+EedeKA59lUBZrqP2Qz1KpXCAC3DUsVF2ZefFn4lT/37Dg1c4HOA3+fPLork58W ouFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="PrhC/74b"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n15si8748439otr.262.2020.03.03.08.51.14; Tue, 03 Mar 2020 08:51:26 -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; dkim=pass header.i=@google.com header.s=20161025 header.b="PrhC/74b"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730383AbgCCQvH (ORCPT + 99 others); Tue, 3 Mar 2020 11:51:07 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33418 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730216AbgCCQvH (ORCPT ); Tue, 3 Mar 2020 11:51:07 -0500 Received: by mail-ot1-f65.google.com with SMTP id a20so3708897otl.0 for ; Tue, 03 Mar 2020 08:51:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qHOn5vqQErDHAkJzL6biRHoTSOSlgdzSHmMDR1rwOSw=; b=PrhC/74bze2iem1KsYtIHMvUu/v2Av2MYk8EydsyRsT6ErJ1YQjmNh0R/wDKNLwWyQ giq1Pswj3xm3xsbBxVlb00LD6jgh8VspNAcUdojVVHgzs6YNMORKfgfiLcxXKihiD2U4 VPumlwmRJK94sUJBBlqZZYGZUQDwIbA2T5iHVgWPvH96kjWeV0LugsEESIk6ALCIRDQm RBXbpHeIFbrG+TdqIZuAbNbugBhyCIMZGQaFYAf3mlAz6FH7d7jAZcPCS1yweB7G38bo a3New9pxIAHaKb1Yr5Al4Jz6nhSG737F7DafcGI95pWkYx4GRRGQsLd7Cs4k3E6agMnj 8xSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qHOn5vqQErDHAkJzL6biRHoTSOSlgdzSHmMDR1rwOSw=; b=cLSZD0VxFIWYo543C6ebYzAr5HIPJAJGacgecQMaGOtPQB67NW8mC42ZMpfb8OdnTG 6s72u4l9z4671PjwBU78bYABOtp0oMDZv9k6mJZsUjPDAcbYnQfL2Xzngg4N9XSmqTlv XSxiUd7JqQzSAehIgbCC0cDxkT3kLXgXeiIAcfUWZvjmW+/1C8SGixF5A/TSQO61WtDC scFESQ5oFCvlANt/hKCG6PWUAXKkSUM5mQHFWE+4KJg2//4Z7xoGMDK9ASp+U/gwFAgY KAoXSzx41eolp4KVge4NIIhm6AbrffAHLsUGCAwESfTccIiMnjAICUeF45wpaGk8/yd5 xgRg== X-Gm-Message-State: ANhLgQ2oCLKUW3jVWXjAdjcdl5W9Xrs074QHCmmktlohwlaiHy5A+O7J QXNilQFDXolb6pg/7zIrJYLGVnDY5k0kSXzzn8G0RQ== X-Received: by 2002:a05:6830:118c:: with SMTP id u12mr3866768otq.124.1583254265433; Tue, 03 Mar 2020 08:51:05 -0800 (PST) MIME-Version: 1.0 References: <20200303013901.32150-1-dxu@dxuuu.xyz> In-Reply-To: <20200303013901.32150-1-dxu@dxuuu.xyz> From: Shakeel Butt Date: Tue, 3 Mar 2020 08:50:54 -0800 Message-ID: Subject: Re: [PATCH 0/2] Support user xattrs in cgroupfs To: Daniel Xu Cc: Cgroups , Tejun Heo , Li Zefan , Johannes Weiner , LKML , Greg Kroah-Hartman , Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Mon, Mar 2, 2020 at 5:42 PM Daniel Xu wrote: > > User extended attributes are useful as metadata storage for kernfs > consumers like cgroups. Especially in the case of cgroups, it is useful > to have a central metadata store that multiple processes/services can > use to coordinate actions. > > A concrete example is for userspace out of memory killers. We want to > let delegated cgroup subtree owners (running as non-root) to be able to > say "please avoid killing this cgroup". In server environments this is > less important as everyone is running as root. I would recommend removing the "everyone is running as root" statement as it is not generally true. Shakeel