Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1916255pxk; Sat, 26 Sep 2020 09:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySKF0XYjEvURb7AFLAsubTp8EYilJtnjz2UFeFcV7Wlbe9SFn2M68Ryb5JQK34W7WV7J1e X-Received: by 2002:a17:907:94cf:: with SMTP id dn15mr8268918ejc.114.1601137474354; Sat, 26 Sep 2020 09:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601137474; cv=none; d=google.com; s=arc-20160816; b=xAZcW8SoHKDmSXs6cBkFMHADH6LJQO8jwUrpLubGnloZ5IQ2kx5jcCVDbkH/7oWKkZ rGHjIY3YT/fvp+z10UrlTLoPbjaOG7IlSDOS4HPbn9TvKgilqiQDhn317SI9PX+0uqlD ZAyjh5YIrAjPhdT88CyqNBP0oavtKxS/dm0is/m3axdxL0O+eIDX9BoNiPUE21cKhUNy 22Joc8aeiXKpXym0q2b6OkeYdUgBauT3VOfmO6Un+1eOlGgNYkU/heeUiqWkhk3nzQ96 4AEG/bcm7pn3oYgnt9v5Lq4FcN6fqWgW7BmsZ6dQ0m1lmlTdRydLQ0eUZZdrjdktui1I YPAw== 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=56nCuRUirvF7dXeR3ek+2dKjHsN+uDHepkMc5x/GUbI=; b=A4WtD/w7BoNSld3gDhy6a4iY0SGZOSimMM6QrLuHFcnLO12GY0FDSRa0bKR4Ka7qYn VpI2KDpsxFhxKrhbL0zD0IiCfetBTJkEB7dNxsgbmN+L+Ccncb1Lm4s/qiNU3l/7Fwio bVA9B8dYugYHet3hADvQt+QR74PeBO54CQKdViUkp6PQXuE3QplHTB9dM0GLzTbq74Ic 4M7lS3vehlz9sOb/EOkD/1+LqlppFoYkM9bex3eMM3VEN4EQL8jv4looVy0AEptsG+uM mq7Z6eX+dsYSv+vL+hIu0Xa13k6UOhwmC+glIuIweGC9fl8IuR7hP/YsDEOjWbywVYSC ioyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Isi2jLYX; 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 l23si4325062eds.274.2020.09.26.09.24.11; Sat, 26 Sep 2020 09:24:34 -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=Isi2jLYX; 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 S1729810AbgIZQWt (ORCPT + 99 others); Sat, 26 Sep 2020 12:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729747AbgIZQWt (ORCPT ); Sat, 26 Sep 2020 12:22:49 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 473ABC0613D4 for ; Sat, 26 Sep 2020 09:22:49 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id d9so5812185pfd.3 for ; Sat, 26 Sep 2020 09:22:49 -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=56nCuRUirvF7dXeR3ek+2dKjHsN+uDHepkMc5x/GUbI=; b=Isi2jLYXO6Dg8qyvVuPVHRyByy5BJbI/6gQ7oyreYCwo3hF2HZWbgFd+OR7hRce1fZ 2U/ZQbjFTvRuIeCm/BU9DG+iLYnBeO1MwXQ0sQdx/BPZPYKSow2g5lkv8xfIdoh/h6P+ yYMV58dnKIat08n/3yoDRx3fvWRtDiWeJp814= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=56nCuRUirvF7dXeR3ek+2dKjHsN+uDHepkMc5x/GUbI=; b=AN0EF/awsIIkhgodAsgsb5/Aatc6LE4mQhXWL07p6Df29MiKuihFOabucwq+4SMSLi OVUJRWde3yUBYALvYRgTT9aze5zKXtbGTun5yIyhe0P10Cjz2Dx1eHpeSqVlKRpL8YoS FNPLPNmdpN5XNP4EaJ8CIQ8XAH8nG4PULyr5bQ/1XGr99Zai4giddMhmJcoC0Swgix1t 3EMa+nUnEhTp9ptYFD/YTRQCbS9TwUYJYjBshi/mZUfd7d/d7qdysncah8rpiY0YegfZ 7eJrMgc1lOqd9iOTTbsZ5mB2tWZJVUxDWS3tJ9OlBVbYM4GmG8XXwccNXVocBEL9Z6Hp PGOA== X-Gm-Message-State: AOAM5314dtmsAXvdMQERotHPE0I20MTQ5zN13RVT9JMTlWkxyEp3Jt0z 0wH9RNV8TNm+DVEV5YGp8p1byw== X-Received: by 2002:a65:6883:: with SMTP id e3mr585170pgt.250.1601137368721; Sat, 26 Sep 2020 09:22:48 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id g4sm5156438pgj.15.2020.09.26.09.22.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 09:22:47 -0700 (PDT) Date: Sat, 26 Sep 2020 09:22:46 -0700 From: Kees Cook To: Shuah Khan Cc: corbet@lwn.net, gregkh@linuxfoundation.org, shuah@kernel.org, rafael@kernel.org, johannes@sipsolutions.net, lenb@kernel.org, james.morse@arm.com, tony.luck@intel.com, bp@alien8.de, arve@android.com, tkjos@android.com, maco@android.com, joel@joelfernandes.org, christian@brauner.io, hridya@google.com, surenb@google.com, minyard@acm.org, arnd@arndb.de, mchehab@kernel.org, rric@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-acpi@vger.kernel.org, devel@driverdev.osuosl.org, openipmi-developer@lists.sourceforge.net, linux-edac@vger.kernel.org Subject: Re: [PATCH 00/11] Introduce Simple atomic and non-atomic counters Message-ID: <202009260920.DC9C2743@keescook> References: 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 Fri, Sep 25, 2020 at 05:47:14PM -0600, Shuah Khan wrote: > This patch series is a result of discussion at the refcount_t BOF > the Linux Plumbers Conference. In this discussion, we identified > a need for looking closely and investigating atomic_t usages in > the kernel when it is used strictly as a counter without it > controlling object lifetimes and state changes. BTW, I realized the KSPP issue tracker hadn't broken this task out of the refcount_t conversion issue[1] into a separate issue, so I've created it now: https://github.com/KSPP/linux/issues/106 -Kees [1] https://github.com/KSPP/linux/issues/104 -- Kees Cook