Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1981419rdd; Thu, 11 Jan 2024 15:58:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHv6FNxgRo8buCzJFyOwIzt8OOlPKLVaT3yMNhJcQDu44pCPRmzF7hrXKO+IrMTeu//3Vzk X-Received: by 2002:a05:620a:270b:b0:783:316a:e319 with SMTP id b11-20020a05620a270b00b00783316ae319mr766265qkp.7.1705017536873; Thu, 11 Jan 2024 15:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705017536; cv=none; d=google.com; s=arc-20160816; b=CeuGIXEvOmAe6KETWFz8ciDymHVB6uk0rab71iQ08FaucwJt8kecRIye0nMvlKrj8O Ko/GBDKB1EtuzLmnHh/xxBrbcp8UMSLLVqPi1QmmObtX2JLSREeDlX0G1Zqo8pC5fJFO MqFyoRGZ9d0lvWrck2/+7oFbJtSl7smp4c2XuYVkipEdKc7ZAPTkfXsG8sGwdTrQmi65 rb6t89jz7aGCkt4YLGPJq44nNxCurVWn47M5R/prgdQqDXmTNyI3HgTXgZEvQWgUltUP EWFU2VOHiuFYaRWT1dJatg7ABIMR2p/RFtpwu/KvT6TNsU8rskAiNownqalTkBR18oxg L+ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Nsr6PFlZr2msZU50SITFyVGPFm+oEax+N/q9E6uP/As=; fh=HCONYYsNjtFhfvB1oXog7nmUW5W3jCoELeTrR5n7z5c=; b=gpR7J5JuTrCzlGCek4R2rW4pY8FXcF7zEW6V8RQNtPWL5R2UI3gKS8OZRz8K7rDAOK CWeDrSmEhBI34wbJj7Jln+hrtojYI9YE+JVJ4LWsEY7l1qa4QPPjh9/JELx/pC4J3/17 cEuRVtpZGtmc5omnkN2IXx+ANiWT1jqJEXCwfykHXXEkr1VFPCk+ylVaGuXsK5pVnjVK nxTj7XDolfDeBhGGW83AXVbLlDslzzadfmjW6LtTXim1g6weVaI03XEhLuhlV8WMX5CK ZWj1SHnAjVU6XiYX533NCyBsjrx6YA1jBmhnIOvErPUOF5eXenWZTlwcPXLYIiHt/tQD scvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DYyV9AVQ; spf=pass (google.com: domain of linux-kernel+bounces-24155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24155-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id eb5-20020a05620a480500b0078349d53711si86468qkb.0.2024.01.11.15.58.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 15:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DYyV9AVQ; spf=pass (google.com: domain of linux-kernel+bounces-24155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24155-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A08F01C23AA7 for ; Thu, 11 Jan 2024 23:58:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D91B25A0ED; Thu, 11 Jan 2024 23:58:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="DYyV9AVQ" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 646CE59B7A for ; Thu, 11 Jan 2024 23:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a2821884a09so504323866b.2 for ; Thu, 11 Jan 2024 15:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1705017522; x=1705622322; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Nsr6PFlZr2msZU50SITFyVGPFm+oEax+N/q9E6uP/As=; b=DYyV9AVQydERZeSEYr2aUBf0HOdug7/MGPUMX0nhGBEq9vWPVkwEV8BfrQpI1hoRRB vQA2tKUmrFEaUD06Wr8Pn/bgqRZmRQACgeClukpS7VRNpBVlMKWU4hWNT9lXGfyanV6z FV5N+3AfJJLXoSSKkgZmoKUX7NoQU4CfyWGQg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705017522; x=1705622322; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Nsr6PFlZr2msZU50SITFyVGPFm+oEax+N/q9E6uP/As=; b=ge5vfZSkC40T+bE9pvuSYL5BLtow5bfLCyTEnTZuyl2R3xDYkBvRaxQbMbvstIrzBe hB0oUSWrNgxMITjfvwkOLdtPZ/lOQsvDy5ft1dZFxFgt3Xt9GpM9NcaxugzJZ7GuHdvq eHZSC9avYAkv9x7IeuaBdyEsInPgZ+35D4Gdx4hJPOjEb6kXEkaxmNQ77d9btk9Qo/RV gBqDKZFTxFnJrSuOdo0UJ4sKXXIgCnBaE2Z9MN3rXFgBjhyTzqxQ1ABp8y24qNq9KYk8 Z7WZ4QS1leyzVZ5TKXaP5oUwATPzC6VCZQUSQtJQyVGwPUp9D3kwE+Y0J27Wy+819YVQ 04Vg== X-Gm-Message-State: AOJu0YzK49YMTRWsT0UnDpuXZITthwXwYn+e7Hg+HA3GdX6tpjdpbGZO BfDK8OAxI+KLGAJfTvz/asaIXl3pVPfqULNrJz7SYXRdI8I7Wx7P X-Received: by 2002:a17:907:804:b0:a28:d6f0:510a with SMTP id wv4-20020a170907080400b00a28d6f0510amr275319ejb.49.1705017522641; Thu, 11 Jan 2024 15:58:42 -0800 (PST) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com. [209.85.218.41]) by smtp.gmail.com with ESMTPSA id m23-20020a17090607d700b00a233efe6aa7sm1125568ejc.51.2024.01.11.15.58.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 15:58:41 -0800 (PST) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a28a997f3dfso452492866b.0 for ; Thu, 11 Jan 2024 15:58:41 -0800 (PST) X-Received: by 2002:a17:907:a609:b0:a2b:d242:8d35 with SMTP id vt9-20020a170907a60900b00a2bd2428d35mr295990ejc.40.1705017520730; Thu, 11 Jan 2024 15:58:40 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <202401101525.112E8234@keescook> <6pbl6vnzkwdznjqimowfssedtpawsz2j722dgiufi432aldjg4@6vn573zspwy3> <202401101625.3664EA5B@keescook> <202401111534.859084884C@keescook> In-Reply-To: <202401111534.859084884C@keescook> From: Linus Torvalds Date: Thu, 11 Jan 2024 15:58:23 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] bcachefs updates for 6.8 To: Kees Cook Cc: Matthew Wilcox , Kent Overstreet , linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 11 Jan 2024 at 15:42, Kees Cook wrote: > > 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. That's probably not a horrible idea, at least when we're talking a reasonable number of users (ie when we're talking "tens of users" like strlcpy is now). We should probably generally rename functions much more aggressively any time the "signature" changes. We've had situations where the semantics changed but not enough to necessarily trigger type warnings, and then renaming things is just a good thing just to avoid mistakes. Even if it's temporary and you plan on renaming things back. And with a coccinelle script (that should be documented in the patch) it's not necessarily all that painful to do. Linus