Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp753989rdb; Thu, 15 Feb 2024 14:40:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWzPWZyRGXw+YSNb8rVl3QzPxbDzJmLCSfmow7XtWWQQ6vT9ozx9gsizqLt7ZYboEYTPhVvEU/lLqDXPpkjv1wbKFW8OeA0RZr0t6ANMw== X-Google-Smtp-Source: AGHT+IHsO6CaW0lwg3oQk/ZIb15YnGVyjMpIUfGfMabVB7E+o6Hdan4zvwJOPaaAxCdvECoNmM24 X-Received: by 2002:a05:6e02:12c2:b0:363:c79e:fac4 with SMTP id i2-20020a056e0212c200b00363c79efac4mr3964624ilm.6.1708036817339; Thu, 15 Feb 2024 14:40:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708036817; cv=pass; d=google.com; s=arc-20160816; b=XK8F5AmtpzqralbhfpFYrETzRLfVpmhImSMu2S9pv6V02iPMfm/F70J8q78vxbactA y0nEeLjQRmis8snZ5Jw/fw6ICXu7EuRbgn+1689fQP+5JrDtrensMpMR9l7bxv5jCqFF pTmDVSiSsP1/PeaAEt+I3F9Vqmxa0pfdaEQO5h9Msjw3UbGaIpjmQE7sNY5dcWZxRQTe TOKSvNpqBJqhzqqlGkYxiBoIrl1IWZG0//WE+CE7oXrNQxxbGjJkzPRpShxbgbMFrcqm eCePuhboDIoeIMLpVW5loEhn0HKtI9EB0KDuRwbJE1yXDmgznmoqGiEHegaQpoU9sSv3 GAXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=sd6SNGl4BoZWz4f77IgbL9cTsj6QBuPdWD0YGHLZF+E=; fh=HNPew3q8P66zth+h/nJ/uwnxL/AeqSWSewWs7UHY15Q=; b=AguWtB9npiKqRe1H73C0LgtWi9teaHR0ZeksChc8VDkMBWO/tAC0S76ye+AfL3opPx g7XkZGz4hio7YXymHUnXzq9qkzOARycLeFp9LfbnPVR97pPsj0znzjefhtzy9oMDh2zp /9iRhTDx9kOL+TSJ2aOEI1+73gfbdlKwr1LSjpZab2AHIDdUxCvy8X10k7gtHeEoePkQ REIVqhwuk0SM4W1iOH3dNlekZT9lEYO4p5yH/EGJsoGo5ttgp9qrzN5VS9wjcqYg/M20 vA9ZnT2qwsdTr7VCa0KM+FnPXgV5pwSW/TNNHRqvugAKKvrlPhrAqLaAipXIrfWXwpbP h0Hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=atrljX81; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-67591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d28-20020a63735c000000b005d44c945aebsi1835357pgn.82.2024.02.15.14.40.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:40:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=atrljX81; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-67591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 00615286050 for ; Thu, 15 Feb 2024 19:34:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8D9C13A255; Thu, 15 Feb 2024 19:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="atrljX81" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 733D3139563; Thu, 15 Feb 2024 19:34:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025671; cv=none; b=nL2WYRxlz/78n/ts9Q9+qgTPtVInQVe7SlFAEBa5JAX1eM7aY2YKiv/zDbsSOCKli4MQW69bYlApuXJL32nJkJZ+UIP7LcKbgB4BHaxNX+OgZ1Sm6JZqGKZNxJHDqYfIpJGjKHoQ1axozIGWPvDD3B8RhJPgdPmR3Y5bPGp0D8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708025671; c=relaxed/simple; bh=DpX+QLqMpXLedN4ugddvfd9mbmUiqpJiSZRn+YSTau8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AR/hp/sowRCjVvRwSMhYYeIwgtj6nmWOu4xP4dtOeoMmHg0FdMFW5c82iJS8Rw1+I6SmiYrVm1tPHi4B0PMqjxZ8rEOaoHLec9atLr4bpjyEZMnd1XL0iHXzKjmD/qWirxXeT4/8ZrTaqJOdbdUX9hiNnQ6a7ZZYFRvPSIFBnSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=atrljX81; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708025670; x=1739561670; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DpX+QLqMpXLedN4ugddvfd9mbmUiqpJiSZRn+YSTau8=; b=atrljX81KYRXN+uI4jedHA23GkMyx8dSafQe6kxNXds/qU7sKEztQ2Yj OVpRoiK2QNASDofP7zss51oJqHVKpKASyuvQC9FUVkfvWOJ7M+JpBBIcD uL55stagHHJRWhNYzNG0s8e1ji60ceXyjlQj4uRqL4+wK5e/ozGp9yNlD cEjCtACviXXipddAzK920pSbm7rCLJIQVQkvkD1mBeRhbkLyfptditFuS mEY35zGeviIiEtTRHATrtpCFS3mMHiHdBBFoOJ2rFlHKh4FlQEAzDDgVw y8z64+fhItHx7L5UNGkwkv+upir7kJOB1mBxOpQYu1cN1h4cUwYyAl39b g==; X-IronPort-AV: E=McAfee;i="6600,9927,10985"; a="5948276" X-IronPort-AV: E=Sophos;i="6.06,162,1705392000"; d="scan'208";a="5948276" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 11:34:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10985"; a="912217578" X-IronPort-AV: E=Sophos;i="6.06,162,1705392000"; d="scan'208";a="912217578" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 11:34:04 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rahUf-00000004sJi-3y0g; Thu, 15 Feb 2024 21:34:01 +0200 Date: Thu, 15 Feb 2024 21:34:01 +0200 From: Andy Shevchenko To: Kees Cook Cc: Michal Wajdeczko , Jani Nikula , Julia Lawall , Nicolas Palix , cocci@inria.fr, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] cocci: Add rules to find str_plural() replacements Message-ID: References: <20240215180156.work.548-kees@kernel.org> 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Feb 15, 2024 at 09:33:31PM +0200, Andy Shevchenko wrote: > On Thu, Feb 15, 2024 at 10:02:00AM -0800, Kees Cook wrote: > > Add rules for finding places where str_plural() can be used. This > > currently finds: > > 54 files changed, 62 insertions(+), 61 deletions(-) > > Can we extend this to cover string_choices and call the script probably > str_choices.cocci ? (And add it to MAINTAINERS?) -- With Best Regards, Andy Shevchenko