Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1975760rdd; Thu, 11 Jan 2024 15:42:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSAXtnnxVezCVMVpFXfeTbC/lJyB2ZMiS+ZXUa7L0zDJo9mqFGsj7DNPvcWPinZW9iozMm X-Received: by 2002:a05:6870:d1c3:b0:203:c580:c51d with SMTP id b3-20020a056870d1c300b00203c580c51dmr572621oac.84.1705016552634; Thu, 11 Jan 2024 15:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705016552; cv=none; d=google.com; s=arc-20160816; b=Ggj9TJhF6Hi0RCWsTDs5Dt77aW8h3fkJPFMlsJ+HhikxHkKIhLGzqNOWlY/DUuCOFw lIv4gGDU7zGGSfmPx2YYK76QrEcCY3mflibv1mRLjm+cG/o5FkvjVvAeZCO/z/trssPe QS70HPZ0+ak4RNR+rP+GxTqfMS9nNQYsTzbeNU5Vx0A1kXYZw8PsQZotQAlzAozdbqnD sGPYlLA+44BV0PNis3fbGUNOR4PNW9t2h12hRugnZwF2FcYtykElCH9l8B84OFMjn7VM UhE3gkt52UVXqL2v8R5qPx/8ljinztvzHVKPw9b/YnWJksoPVjxpjSbRXksmANHej8S+ W6+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HLRr3cB956ITDOde4XWHLwfBAaAcN3eYLs/KzgE1pRQ=; fh=hXDqIfLmBC6aufod19otyr7zg/Rogjr1uw6uRYZlwPc=; b=n92CJqadRXZ+b3Q4IEKMtuAF610Igg/Kq1m+GXp9swGrQczPLy5iefFO1V5eyjmOpW D33tPj/qja9RuVT4h2nIDhl0rK31fRTNyDqOpWFbSLwI51gOmTFCr6CXfed7oxSOkDVD gXDPL/8Hn510aetKyTJ8XgPU0oDv0OB/foYsIBuR7jH0cTN4/mP/+cDW/0HhoizrqgyH VfslF4/nltr5gs6MBHtDmo+nW6vktEOLwfQXcc7nHwyaHiWapbClzSY+TCUH4y7+02vW w9GuRZh3shV6lCGq2F0vbMQwQ0fIWfqzEX1v7ARmiwpBO2pFWSmG+zK7PZABvgBX4JoU rH9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a5qWjW9y; spf=pass (google.com: domain of linux-kernel+bounces-24138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ca29-20020a056a02069d00b005cdf8b4d2fesi2213281pgb.747.2024.01.11.15.42.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 15:42:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a5qWjW9y; spf=pass (google.com: domain of linux-kernel+bounces-24138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9131A2857FA for ; Thu, 11 Jan 2024 23:42:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B52A459B7C; Thu, 11 Jan 2024 23:42:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="a5qWjW9y" Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BF8959B69 for ; Thu, 11 Jan 2024 23:42:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-28be52a85b9so4155422a91.1 for ; Thu, 11 Jan 2024 15:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705016541; x=1705621341; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HLRr3cB956ITDOde4XWHLwfBAaAcN3eYLs/KzgE1pRQ=; b=a5qWjW9yo4c1/T7BMdV3f9YajqD8Ud9NEhvBr5fJYN38WQ9jnsrVgKt5JGiUSCk/1n WC1wQuEK0MdY82dkaMAN13BtBOBwF5wCmecSvgG7uR5UYtcpzjdUsI8K1xdoigWBziT4 dct7uefkdXD+yVMsi5Y2CSZKSzXCvkSBR8g8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705016541; x=1705621341; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HLRr3cB956ITDOde4XWHLwfBAaAcN3eYLs/KzgE1pRQ=; b=qIijzdnSL1YaDyl7kAbeSJn0GOv7+YTLdmeXaKC7+T2C4cJKrgnIMMMeInJFH0wDQw RBcgQ/u/DbJLiLYrZFFrug4T0QqgPegAIQXbt7RMl8QBKO6HMgg0K9ZHsAkFHEk8nurt EclfdsNCeUOQRWiY3S8cyU4uppll4SUceBWRzVxjl/Lif7JQDdYOiZW+sNazD8UZAJPX hkdBnGPZ68ZCfCGno5CXdFCo4gi7O7/1Hnu0pvMC2fllFX40g5Jz4wxAf9u5VttIsOeD BsixPLamM3wHIoIcsdf1jhjOg+VjStQa4oTbuh7zwXTe1lmMqTO3ZJiPkcYJWH50zRb7 7T2Q== X-Gm-Message-State: AOJu0Yxi3x7FZ+8MJZnbnlGDSV9pPls5JYa2+uBpIqrcikWn4+XXUtSb t8vOa4DP2ZTfJtfGDN7Wud0Dv01VmUd+ X-Received: by 2002:a17:90a:458f:b0:28b:fe1b:5274 with SMTP id v15-20020a17090a458f00b0028bfe1b5274mr533729pjg.32.1705016540850; Thu, 11 Jan 2024 15:42:20 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id eu15-20020a17090af94f00b0028b845f2890sm4534946pjb.33.2024.01.11.15.42.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 15:42:20 -0800 (PST) Date: Thu, 11 Jan 2024 15:42:19 -0800 From: Kees Cook To: Matthew Wilcox Cc: Linus Torvalds , Kent Overstreet , linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [GIT PULL] bcachefs updates for 6.8 Message-ID: <202401111534.859084884C@keescook> References: <202401101525.112E8234@keescook> <6pbl6vnzkwdznjqimowfssedtpawsz2j722dgiufi432aldjg4@6vn573zspwy3> <202401101625.3664EA5B@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jan 11, 2024 at 10:57:18PM +0000, Matthew Wilcox wrote: > On Wed, Jan 10, 2024 at 05:47:20PM -0800, Linus Torvalds wrote: > > No, because the whole idea of "let me mark something deprecated and > > then not just remove it" is GARBAGE. > > > > If somebody wants to deprecate something, it is up to *them* to finish > > the job. Not annoy thousands of other developers with idiotic > > warnings. > > What would be nice is something that warned about _new_ uses being > added. ie checkpatch. Let's at least not make the problem worse. For now, we've just kind of "dealt with it". For things that show up with new -W options we've enlisted sfr to do the -next builds with it explicitly added (but not to the tree) so he could generate nag emails when new warnings appeared. That could happen if we added it to W=1 builds, or some other flag like REPORT_DEPRECATED=1. Another ugly idea would be to do a treewide replacement of "func" to "func_deprecated", and make "func" just a wrapper for it that is marked with __deprecated. Then only new instances would show up (assuming people weren't trying to actively bypass the deprecation work by adding calls to "func_deprecated"). :P Then the refactoring to replace "func_deprecated" could happen a bit more easily. Most past deprecations have pretty narrow usage. This is not true with the string functions, which is why it's more noticeable here. :P -Kees -- Kees Cook