From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 BE8312C18F; Mon, 5 Feb 2024 13:36:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140205; cv=none; b=QupQGimMS76rBmdWLjtes4IpJUwtvuSvSqtrNn02eSZdW7I1o8DHhQATrnbfMVdmuCMXz1yY0bHQnwLWKOWHmRW13n/KdkZ6xXl76UItanaDESv6JSTvtNasviA6h6HbSLtUqxboM9et5XOkA3f7atwKuiNMSs/HTgxjJrcddRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140205; c=relaxed/simple; bh=FvQJ1OssakCkef4t00u3cYzZ+nC2ToWNqUXrj/BrNZk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QweKk8AlB/KvGttzcvoMT77Nn2oruLRbaqOZuF3QdZu/FWKLFY2SQ4etmCWCkDw5sv2Cbc33gHhHuauY4U6KB8X1P4qRPYSR/xS/HxMyJHkscrlBh0xbb3LowxHJVrgg9xFqX/bnu45jVaUgSEbvy7xHMYS2ZadKE2IUi4yXjJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=fail smtp.mailfrom=kernel.org; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="429061" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="429061" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:36:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="909299375" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="909299375" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:36:38 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rWyXm-000000024en-0CSF; Mon, 05 Feb 2024 14:57:50 +0200 Date: Mon, 5 Feb 2024 14:57:49 +0200 From: Andy Shevchenko To: Geert Uytterhoeven Cc: Kees Cook , Richard Weinberger , linux-um@lists.infradead.org, Justin Stitt , Anton Ivanov , Johannes Berg , Willem de Bruijn , Jason Wang , kernel test robot , Nathan Chancellor , Azeem Shaikh , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v2 4/4] um: Convert strscpy() usage to 2-argument style Message-ID: References: <20240205122916.it.909-kees@kernel.org> <20240205123525.1379299-4-keescook@chromium.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Feb 05, 2024 at 01:50:14PM +0100, Geert Uytterhoeven wrote: > On Mon, Feb 5, 2024 at 1:36 PM Kees Cook wrote: ... > > +#define strscpy(dst, src) sized_strscpy(dst, src, sizeof(dst)) > > (dst), (src) No need. -- With Best Regards, Andy Shevchenko