Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp942686pxb; Thu, 30 Sep 2021 22:59:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVxd86U2PGA8qeNNM3RTQ1znT9WDuo7c7Zpvmu1L+FWa07JFzCC7DGuPAEGHwUnn2RYM2g X-Received: by 2002:a17:906:3805:: with SMTP id v5mr4009715ejc.440.1633067999564; Thu, 30 Sep 2021 22:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633067999; cv=none; d=google.com; s=arc-20160816; b=aloPGvkTGsvZwSNcr6dheKLZ8j49ZX6wkav9MOe8cFeLLZKjzkGZqIbn7FX9M08RyJ HuMkokUot0JqCkx/379OwQYR2nFDaD3LNYhFVBfYhIOOA17ZabQWIrIeIfxzqoFwf4WI 84yI8vxJq6OOX9Xyajmn2L7nRX04WUoVoujcC7tmF8fvLpIeCkY663IJEHnxBbJYt6bq 9vw/GlnujW3saMFYuJZvgrKkoIXuLsfs4tB51Sx+tSlni7/dGfC61hIHsQoFK49myIZI 9k44kr5+08Bh3XGYpz7TBEJuBxNB1tgb+xo496WZfTTwUZU9i7KEeL95vV6jz7nNe7i/ usGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EyTaw5QtAJ4bW8Vm8xYfacGbohlYt9c/AnSihiB9j34=; b=RTT5WadIomHqDAMWNlSWMTksFZ35ZOOjZxa1lc8xlwgJc2tUyM+KGk6QWIpRezK5MO a8ewK2+aPp3bKZ7Rx9QTEdWy7ZVZKYpgP2TEzJF1bwkOsPCoK9EV5PxP3288Qh4fB9Mu xFV/deegB3aNb0QY8hTu67vAqJAd9fLATrbUSWDtbvFEbw7sgCM1C1XTtSTKeKr5iDxm wUJe+H06wL6ON6yQegXNkJnL4GgQCO6/RGn8P9QVQT1EKEo4yLv7MdEsqhQwMZ/cHqm1 ydi+rXMPIzICc2kIB7fwFGqumknZvSDeMzQ+HcZ+gMz1gs7NeKDaAUlU1Kces/mqrmLN BP0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lHWczr+O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz6si5698868ejc.374.2021.09.30.22.59.35; Thu, 30 Sep 2021 22:59:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lHWczr+O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352008AbhJAFVh (ORCPT + 99 others); Fri, 1 Oct 2021 01:21:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351982AbhJAFVg (ORCPT ); Fri, 1 Oct 2021 01:21:36 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F575C06176D for ; Thu, 30 Sep 2021 22:19:52 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id m21so8333923pgu.13 for ; Thu, 30 Sep 2021 22:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EyTaw5QtAJ4bW8Vm8xYfacGbohlYt9c/AnSihiB9j34=; b=lHWczr+OPdwO6X6MxEziwiIYJTBe2iPHyLjFCYgLTl/SDrIXrQSS6vb7hnCYEx5bZs d9rHB0J91KliCK2wBSHSVBMNFc5ozW8CIi+2CARgkV1a8mv4S6Xg1wwZ+hD6nn2xdNJE qb+heFtlqPryXdSvgJZC8fLl3cg6iDg4rAcpQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EyTaw5QtAJ4bW8Vm8xYfacGbohlYt9c/AnSihiB9j34=; b=TFS5i6cJVs2UpkpuG3VsrHOfPo9JyrVJcZjz5wWX4y53nP49nl85kNtMwn83MqHV7+ BT+h5J6RurVV6WXwUoF18lp6DCYJhGTg3i85BdYot2mixXJt7kMyA6yOLPKhz5+bsL5q 1x2TctxHqvlxFrFHrYzZ9DKwD619QGmSMUy2Nl6UomS8xnWZhO3IZDqjy4OyNuuATlk6 iyzDjc6IjokHyCtMx3BEQojvFr0sm80T65m0XVpx0Fv0KqiYUugeaJOB56gCRnJhuoAr n2km2q7RtXSo7N5cx/1GgPGkNTuBs5BHAE/lWIEvHhjs9DODxbdo+5NdVda/nnXf6rBI QkBg== X-Gm-Message-State: AOAM532sf+pF856gdPNFV3L6gpJ32/j1kppTon9yytHbq4cKaYi0sljh qQg+iDuc8iyxVkAaHPBhR9FgJg== X-Received: by 2002:a65:51c7:: with SMTP id i7mr8248588pgq.300.1633065592032; Thu, 30 Sep 2021 22:19:52 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k2sm6543077pjq.28.2021.09.30.22.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:19:51 -0700 (PDT) Date: Thu, 30 Sep 2021 22:19:50 -0700 From: Kees Cook To: Suren Baghdasaryan Cc: Andrew Morton , Colin Cross , Sumit Semwal , Michal Hocko , Dave Hansen , Matthew Wilcox , "Kirill A . Shutemov" , Vlastimil Babka , Johannes Weiner , Jonathan Corbet , Al Viro , Randy Dunlap , Kalesh Singh , Peter Xu , rppt@kernel.org, Peter Zijlstra , Catalin Marinas , vincenzo.frascino@arm.com, Chinwen Chang =?utf-8?B?KOW8temMpuaWhyk=?= , Axel Rasmussen , Andrea Arcangeli , Jann Horn , apopple@nvidia.com, John Hubbard , Yu Zhao , Will Deacon , fenghua.yu@intel.com, thunder.leizhen@huawei.com, Hugh Dickins , feng.tang@intel.com, Jason Gunthorpe , Roman Gushchin , Thomas Gleixner , krisman@collabora.com, chris.hyser@oracle.com, Peter Collingbourne , "Eric W. Biederman" , Jens Axboe , legion@kernel.org, Rolf Eike Beer , Cyrill Gorcunov , Muchun Song , Viresh Kumar , Thomas Cedeno , sashal@kernel.org, cxfcosmos@gmail.com, Rasmus Villemoes , LKML , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm , kernel-team Subject: Re: [PATCH v9 2/3] mm: add a field to store names for private anonymous memory Message-ID: <202109302219.FF1F3E24@keescook> References: <20210902231813.3597709-1-surenb@google.com> <20210902231813.3597709-2-surenb@google.com> <202109031439.B58932AF0@keescook> <202109031522.ACDF5BA8@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 08:44:25PM -0700, Suren Baghdasaryan wrote: > While testing v10 I found one case when () are used in the name > "dalvik-main space (region space)". So I can add ` and $ to the > restricted set but not ( and ). Kees, would you be happy with: > > static inline bool is_valid_name_char(char ch) > { > return ch > 0x1f && ch < 0x7f && !strchr("\\`$[]", ch); > } > > ? That works for me! :) -- Kees Cook