Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21587244ybl; Mon, 6 Jan 2020 07:27:43 -0800 (PST) X-Google-Smtp-Source: APXvYqw5GTpGfBXho3FdbywbQ4n3H7aZa5136+IDpnNIRZ0zjO1zSRkAKeTdtXnDOgp7D8Yndvk3 X-Received: by 2002:a05:6830:174e:: with SMTP id 14mr89385741otz.142.1578324462917; Mon, 06 Jan 2020 07:27:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578324462; cv=none; d=google.com; s=arc-20160816; b=0RPM9et22aFhyA8WgdksMyoN/7c+YQ1xwxeAsidANGlG0Izvbm0OrWvOj1Buc7asgj kMKheOsQ8nqPUsx47j3WCF91d1VVeeFOdWXJGFhxWIqrgXR6hdzw322Vq6V/jqF7OXKs Lu2nC3BRDvL8vBNQ+qRSPpOVVttjwk/Vgh1NQ2TH42JmT2jz7mram36rF+yn3RT5vTaj 3KIpTzReBQ8ImASSfaoB8ud4Q+7+iVLF7/ttJ05FA8cQGkBwTlAPc4RnNxdwYc+cNqNs cVAwY156S8Qf90Vk/EsoVC3Jf1S/evRqPfCWLaZPtt0/x7fHyxAhl4Xa1aeDj0ktJBFB TJrQ== 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:dkim-signature; bh=FasDblTVRzo6rSHY9siQrWkIk7A08Z0SsxWwX4908tk=; b=b714dGKglydjdKUPG5eUZ9zv2ZyqVZpwKBX8k0tDg6OuqtzJFUaM5KfQrAPMdyegKc 14Dgbv5LfbHlTrbHyI+/EyQs4z/PVoEiKKiX2LDZqF4IXYOmCIyhsC1P0rCLcq1pINbo OBNp7uCBhzmuy5u6EUyPJiPGuHmi+pWyISkd5kBAPEBMk7Uc8uy/Dc5RwbKdiWVsBagZ YhAa49iYfcJGSFwWQBQl6qyzg8rXtfrohIT+sZz5J3U+aNoM8zn+jV0p0Ip2AaWqoI81 hSI0n+JtW9VFZNPadvURob1fDx/nJDJCBIO3CtoEs9Kny2w4yxWPwHjoLBONaUCp5gUi vzRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Jd2iIRuk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si32750701oij.139.2020.01.06.07.27.28; Mon, 06 Jan 2020 07:27:42 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Jd2iIRuk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbgAFP0j (ORCPT + 99 others); Mon, 6 Jan 2020 10:26:39 -0500 Received: from merlin.infradead.org ([205.233.59.134]:42514 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbgAFP0j (ORCPT ); Mon, 6 Jan 2020 10:26:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FasDblTVRzo6rSHY9siQrWkIk7A08Z0SsxWwX4908tk=; b=Jd2iIRukT2gpL+bEHVbwcYxtW 8s2OSMrjJzx3WE/yFOTRZoWLSLNZXciYHY5q7QJkisLP4rmnVOyVzIduop2LPuk8HXVyljnkkeOEJ 26RLsR2xZIfmU9VSqUsT0OqIqPhh358sLzHaBGqXEhSaN4Ze4bA8v8bJ/vBzf+fq7EF+uSF2k4IIb rq3LmMw3kl3FHytWhsAx06X7t51Neq6fwkF9eaN6tmjv+xqkk6YEP3rc/A/L5yS3JMb5sIuuOzHZu 3lL+g5wT2p8vSWPENmB9Pos/Dpns9a5Mc6PBfSeEPJMYq2Us/y6lcellgxZ7GWO951JmY2J7Jj5xp 4UTIsOArg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ioUH0-0003Fa-Mc; Mon, 06 Jan 2020 15:26:31 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 047963012DC; Mon, 6 Jan 2020 16:24:57 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1FF772B28450D; Mon, 6 Jan 2020 16:26:29 +0100 (CET) Date: Mon, 6 Jan 2020 16:26:29 +0100 From: Peter Zijlstra To: Kees Cook Cc: Eric Biggers , linux-kernel@vger.kernel.org, Ingo Molnar , Will Deacon , Elena Reshetova , Thomas Gleixner , Anna-Maria Gleixner , Sebastian Andrzej Siewior , Luc Van Oostenryck , linux-sparse@vger.kernel.org Subject: Re: [PATCH] locking/refcount: add sparse annotations to dec-and-lock functions Message-ID: <20200106152629.GU2810@hirez.programming.kicks-ass.net> References: <20191226152922.2034-1-ebiggers@kernel.org> <20191228114918.GU2827@hirez.programming.kicks-ass.net> <201912301042.FB806E1133@keescook> <20191230191547.GA1501@zzz.localdomain> <201912301131.2C7C51E8C6@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201912301131.2C7C51E8C6@keescook> 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 Mon, Dec 30, 2019 at 11:32:31AM -0800, Kees Cook wrote: > Is there a meaningful proposal anywhere for sparse to DTRT here? These are what I found going through my Sent folder and Google'ing the resulting subjects: https://markmail.org/message/4obybcgqscznnx63 https://markmail.org/message/pp4ofksgactvgjbd?q=inverted_lock > If > not, it seems best to use what you've proposed until sparse reaches the > point of being able to do this on its own. Or just leave the silly sparse warning, they're easy to ignore.