Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp477606rdb; Thu, 22 Feb 2024 09:19:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLJSYdXz1A3/kAH7sulhW+tSzCh1Jq2QQ0YNr+pP8dSUvWzsbT95tEQFPe/9jq9EKdnOT3oY2GWpM1MSA4AazcW7JhzaF1Y29jTTv4ZA== X-Google-Smtp-Source: AGHT+IElJ4Q3zMSZ3Q9ceZW1pubI9Nuy5ufovTGgXMzNtUqKGnF84MIQnEIcDQ+YxrzLi+7/8aG3 X-Received: by 2002:a05:620a:1359:b0:787:18cc:722f with SMTP id c25-20020a05620a135900b0078718cc722fmr23457405qkl.32.1708622378919; Thu, 22 Feb 2024 09:19:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708622378; cv=pass; d=google.com; s=arc-20160816; b=MiEwFptVQuvtRhHOMTyyoN993AnIHaO3/T9hV5H9x9SHQSIub5983OkFZJrIw5SjEY WlqoQG5ejRA5mOBnmrOAnJbx1iCW+3HftBuq1mmgCbxzSXJLLFojKSZxqBBVfWPH7ZT/ oT3wJeXaM3RTYdHOm5M6HPGl60A+ka4FeF5D5yes4wR70jn2bGMIo1mqo8kBvUI2wasR 5XxILeDx8lIYfl50yFrsWtfG5u+LJcHlqNudLPZWd/j16cn9rfOF80GBMuUGVcrWno9w lfKa+nYPBQcM4kaeqx/YmQ/xzAsZ9wybfldGmdNbl6rj6KT/JTUKWgNiArXLmDTNxQVg BSFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Zqp7KMxnS3tgxqil8GTGuIU1kjnPtVAi/sr2VLjeeDc=; fh=kwDGra7vorGCllK5bf0hEnY6UBAhOu2fmaGgLJu9riw=; b=uow6MRV00guqkSeT0lW+Kf9X4eLuTXp8pcO9w+nxG98iBuX3kAnZAXn0n+ZCzB8whR 5twa0PQ2J5Ydk7J4e7qggBCn2sA2zUfLGC0bPqLoGJJkHPWqT+Fcr1tYsA+V3RvIWTHw IX/MDAlHyUpYr3H9RaXp0BZD9XVEEqAZ2HNFjUI3SUJfvxLSUVQQyJ61vGh1UT8vWh9k +hDKjT/PBGx1N95kjjJX1QTq6DZWQL7FmFo+NAP7T2Arsd1TN5Zzan3BP15uSSHz0B2l sLYNz6d/LIAaG95VxoJ8zy0hUfVx5MZdHMW4Avyg5Qg74A8T1yM0aVdbheUeCoscn5V2 IwZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gMOPKaTA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-76965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pj28-20020a05620a1d9c00b0078726059318si13445389qkn.202.2024.02.22.09.19.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 09:19:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gMOPKaTA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-76965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76965-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AAEF31C21874 for ; Thu, 22 Feb 2024 17:19:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2B2214F9FE; Thu, 22 Feb 2024 17:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gMOPKaTA" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 589AC1552EF; Thu, 22 Feb 2024 17:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708622282; cv=none; b=eRnssKK2D9nZ3MrI+rOp1QqqXB3NU9Q6hjPQTKDJwvfRVRxmm8a2ccwguo8a/UmK2YNLKhZz/fxzI8ea41DUVQx6SPhe3xmAYoBoTEwS8W12TphWIGqfnQ0bCLi0eTwCUh/FlndSdcc508Nk4z3fwZ0KvMfPOqYMFhQlxrskdxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708622282; c=relaxed/simple; bh=O/0Gz7vAaC3S8gLPnPm8qA1Nclu74fJDM5Pg0xVTtyk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NzjDIUF9IvfdIP2yLDHXXWKQ8MvePZkE77ehgK0hRtyqCaHVRLFsp7WXHhZt/PPGEJoRzw7VGJuNXxJVzGMT02IqEmdY57wGI3OUsqnHVyVz5YoSiGThLAU05yxjdkjwMGe+rZRTNPExw43o3oiXPNRmcnQZsMbiRLs8nfhkDWw= 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=gMOPKaTA; arc=none smtp.client-ip=198.175.65.15 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=1708622280; x=1740158280; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=O/0Gz7vAaC3S8gLPnPm8qA1Nclu74fJDM5Pg0xVTtyk=; b=gMOPKaTAF61gyHWbKikw3IZ5Ad3/ps94TsUA83JbXox+p7cqN8JXRpfI 2h11bQghu19s5B3quAH4SBcluJqlzZ4wIdn0QD5CJGLoGQrsKDVwuIKND JVVlMW57X5sxHWTL4/MbdyD5r7yGSHRSrGYmPbYd+fvjojOsF8tJdI5BI sdc4KWAiW+NgVSZkIUnrKNp9lfn9GQrrH9ptXuvOm3rSbFtiTsBL/VoJ9 iHavKs9s4ZawdOnHywo8G3bpqgmzs6tyJyrmHQEr/cfbm5jprmyG3uNeG Cy+IJChzDwVruqTAkoyKU8dMKCK9DjfF5Am9fk3GY+743zOxk1QJ9QJ4G g==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="6683638" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="6683638" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 09:17:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="913558245" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="913558245" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 09:17:58 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rdChn-00000006ggT-3yHX; Thu, 22 Feb 2024 19:17:55 +0200 Date: Thu, 22 Feb 2024 19:17:55 +0200 From: Andy Shevchenko To: Kees Cook Cc: linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v1 1/1] kernel.h: Move lib/cmdline.c prototypes to string.h Message-ID: References: <20231003130142.2936503-1-andriy.shevchenko@linux.intel.com> <202310031638.D39E80C32B@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Oct 04, 2023 at 12:27:41PM +0300, Andy Shevchenko wrote: > On Wed, Oct 4, 2023 at 2:39 AM Kees Cook wrote: > > On Tue, Oct 03, 2023 at 04:01:42PM +0300, Andy Shevchenko wrote: > > > The lib/cmdline.c is basically a set of some small string parsers > > > which are wide used in the kernel. Their prototypes belong to the > > > string.h rather then kernel.h. > > > > I think these should live in string_helpers.h not string.h (which is, in > > theory, supposed to be used for the standard C string library functions, > > though that's not 100% currently)... > > These are being used in the early stages where usually we have > string.h. So, I would argue, but if you insist, I can move them. What > about lib/argv_slit.c then? Because semantically it's quite close to > what the lib/cmdline.c is doing. So, if no further ARs, can we got this applied and move on? -- With Best Regards, Andy Shevchenko