Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1520571pxb; Fri, 27 Aug 2021 10:39:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznHTIFuPnJWVUFhDnNQkMO86Df7TqKmV6dFigbIHwSHcSRj2I2kmN7eE+aikozr2Kn5Dyx X-Received: by 2002:a17:906:1913:: with SMTP id a19mr11311955eje.390.1630085958218; Fri, 27 Aug 2021 10:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630085958; cv=none; d=google.com; s=arc-20160816; b=VwAmAQmIVyQQgjUS6jPeMZ+8HIhKgd7c8QgRGSo/2BAuVTUP1vHzQcQiDiK1Mqjtcb tKPdsE5Va49B3GO1s6NmTvaOW3Uz/i9C2x2sFQpUZnX9/CXjHfv88mYBnkKPAnkEbk2H lFh/H8q/0vkWzgBh+UqUe6sVXX2ni9aPQNujGO/dq5xe95FebzfA9qY7xmv/wVWAexOC 6DZ/r7kdD9DX/P0kRe26aF+hYJiVQmycTrM0gL+gHIdo1w6H6augWv+A5NGD+eTzeK7R k0prLj5LwiaDntWdZlsMV47i1GzquQabOgFY/4wl+dMEv+Xn+sXN1CA7by8gWGzG9wHk oMKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nTR4iuVPmMGAXaXpmel+nekd8a2+COglF3GB0Y3BokA=; b=P89XDS9+f1NUVpiapso1ATMrdccVIFQkO+G+dwGdOcr00GamkInTAV3mxf9B+f1Q8i pS/Ops1/w3AQJ081m8XV07YXxnhuxnO+SU6qGyS2GkD7d9sfVwqwaeshZFnQTbGbpjh0 i9DWUIXxSNb6KcL9QctJ3kJGekAXwhCPrm6EXYJ3yL3IXvik2wSdbrCx/y6KkmNcSXeu BWOID1NnhDsOT6vi8MknNZgjxia1crNn4WirSz4yJFXj7WI+MWQLo4KGKPImOUnA7cph 4xnt8Yb8vRPh9wtN1c+kan3gy4VFIY+6QDMBzCvhe5IB+cF1P/exFYP81kGOlEsiQhAp 5Z8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Xj0ceu4u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs20si6639330ejc.481.2021.08.27.10.38.47; Fri, 27 Aug 2021 10:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Xj0ceu4u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237288AbhH0Rhz (ORCPT + 99 others); Fri, 27 Aug 2021 13:37:55 -0400 Received: from mout.gmx.net ([212.227.15.15]:54303 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237087AbhH0Rhz (ORCPT ); Fri, 27 Aug 2021 13:37:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630085807; bh=nTR4iuVPmMGAXaXpmel+nekd8a2+COglF3GB0Y3BokA=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=Xj0ceu4uzMDri8vHPD4M+88HkanYzsPE3T1ha1BfamL9rdRH6XOhgRv0STcK9ZuRp d0TVMC6TSjs9m3JgNNEUFyB9rtGBmBeAhTAKmEI6jg8aRyNKiNnfIjKupeDXv4KMXw bnSpM3bImH8ydjlIZbEMzZty7wD1r0gyXLLK8GUg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from titan ([79.150.72.99]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MWRVh-1mV0Sa0N4d-00XtPK; Fri, 27 Aug 2021 19:36:47 +0200 Date: Fri, 27 Aug 2021 19:36:33 +0200 From: Len Baker To: Borislav Petkov Cc: Len Baker , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , Joe Perches , David Laight , Kees Cook , linux-hardening@vger.kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] EDAC/mc: Prefer strscpy over strcpy Message-ID: <20210827173633.GA3040@titan> References: <20210814075527.5999-1-len.baker@gmx.com> <20210824090338.GB7999@titan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:JEqlwMVH6r3hWoS9kloc3KrglkJTJwAoWlVo2fLLTtKvjRpRX6o dU7eV+hcBX9GOgqqiO+nenAY32iusp2nmfkldMlDPUgRQwvGrWImH62x+iBUTSgIwyyyxle rGhJNAfpbEKM9aJo4xz8jQRyjpBK1gjmZ2OndaQg2KtGWvnuo5aNnKOYWcgg17Br4AtPEQQ 1chVSUBR9ej0Un8jTmU+Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bog80o/EQMA=:fEvY3VupqWgMiyNOuCvw5K MnyYTx/T3zlkyUvpDjOLv4V2g8IeTJy5AxDpW0hvY7Rsq0aJtL5Z9yx6nGgKGeWnUlw/o3zj1 ZZeZ6dQPcutCv/7EKg+FI6TTclaPgXPJ+qMsOZddrO7S3lqYXnO+t06e1TwkvPv7HqsySiPex 2yW0xPt8uq7P6yLO2BOqvvdFZTX6Rut9DwDTkJddGpB8akCnjb8uqulDFNSgcn5mOqzf+4/LG Zf7n+XDNWNzFZyScGYXCZM04oxexsYVXW8VlL/9LucX8KqLPkM981k4driNnVdT8uJskzhp0X owuSu/7Yjhj2UKgA/4wTJO/DPK4xcfR4SDi4y7YpU3bQ5cF2wb1cFJUrV1gdolWjvq/smNahH mVlz4K9NhLj+hLEA6VKF+C/GCLxiuRK7nuSACA/pARh8fn/JNuWVx2T2RPpVw4t/I8tFKhr7x 0FA/v+S62emrJYa1H1ltUNmDGe7jcUqCFySr0kHhBfqyfRwZzsFzr8RwKv7s89Te31QUz4Djn yGvjZyYrbY4r1RfNr0iC7m1KYT67BCAa8s4mA8M/STkjxdGm0FDjROuUVhaf7ui1uOejUgKUX 24rfeuP18ZnPcM2KyIxh4KcQLQ5suduLbBgRjMcwqerbkKrbhbFEUgsuZ/035sQ6AhtMd6vAy 8IGUaHjVk5tu+zUfgKkJDcT4GCY5+KVMRwgq+B5NDizMNVtz122acl+soOzWFLp/Fg+xzqtew oKqlrjjMYcEHe3ZQdbM7LqLg0Q3Goydfy0Es5xHaTlXhNUzihQdSytYpV3aS49gxtK3KsPBji PvZtGuq8pKdUtWxZUCQ/cGRn41nFbdN0dB7aRiHwLMilmTaWslTWUdmghtRNubybG1Sc/Jf3U roT589Wm7kg29iZGOHmrhzLOnUM4uSUFJ6hYaPmHa6Vhds2mDUBLYZcYYnkJBzauqfvZDHjcL qJEopzBSftXuVUxIxvK028xk7MEezrLZ17IygQCMWC230cJ+mvzst1aTosYSyal9tsqsSjcF7 q6Jvzhnr+uvvg1e1y9aFBFbC3E+V/H+9TcJ0ZsD8CZTw44Sm48ONlg11CdotVO/AsvOTK36+h InvEi1JZ/itVVygCaNzoX1NtQde3l4G+GOz7a3CdlZSu3yMNg3RS3rLHw== Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Aug 24, 2021 at 08:26:10PM +0200, Borislav Petkov wrote: > On Tue, Aug 24, 2021 at 12:28:07PM +0200, Len Baker wrote: > > This is a task of the KSPP [1] and the main reason is to clean up the > > proliferation of str*cpy functions in the kernel. > > That I understood - you prominently explain where the patches stem from. > > What I can't parse is that formulation "previous step". What previous > step do you mean? Well, the main purpose is to clean up the proliferation of str*cpy functio= ns. One task is to remove the strcpy uses: The first step (previous step) woul= d be to remove all the strcpy uses. Then, as a second step remove all the strcpy implementations. I hope that this clarify your question. Regards, Len