Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2399392rdb; Mon, 5 Feb 2024 05:37:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPUBzdDSUnV7V5VC0CV+o/J4Z1iuF+on/67DmmdE9qWgahouUA2Pj/ok8lFDUzFvMmtOhc X-Received: by 2002:a05:6e02:4cc:b0:363:bc9b:9e91 with SMTP id f12-20020a056e0204cc00b00363bc9b9e91mr6732696ils.14.1707140250526; Mon, 05 Feb 2024 05:37:30 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXs8UYWnQ59HHtXm4c3Y1Cjhzxs2JeY7it4FUjA99S/vTPtn7cqrZOFHMkpigugu0wLjnEHrnFFe7PTratrcVugpotIfu7VzwJFamh1gg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n16-20020a634d50000000b005d6d6f8cbddsi6133251pgl.360.2024.02.05.05.37.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:37:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52730-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; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-52730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0EBDD285240 for ; Mon, 5 Feb 2024 13:37:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B9B520DD5; Mon, 5 Feb 2024 13:36:45 +0000 (UTC) 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