Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2103781rwa; Mon, 22 Aug 2022 02:04:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR5mNFDcnq74moTsM9F8hGooioCuDCEGzsf2qCHDYHKab3ef5+sL3ZDkJiaXV6cxik/o/Mb8 X-Received: by 2002:a17:902:f684:b0:172:d54d:6f9e with SMTP id l4-20020a170902f68400b00172d54d6f9emr9453312plg.174.1661159054312; Mon, 22 Aug 2022 02:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661159054; cv=none; d=google.com; s=arc-20160816; b=XzAdHfdHkDuk9u2zKcsF+6mtOA8sRvFxKXdzjj4Xeg/4mGz003btbFMYj3c4jkIPU7 kcdGyhfuf0rlExIqgWPEog+u0lY/Rh2m7X9AjpNk/SpGTMlrkjtUD6G21eOHMoVb76ou bZ0fDYKAcGB9m5M3A2iZp7j+t8RhgtHmb7mKvmh9bnAzBsupsyXllr92YUlEegzXUDOM zsnROUnXE4X1+UoV+esNGmdA2z9hCc1cZ/NZicoC70hIP056BgY+L9j61p2lfzx9A67J BwI+O2iKwbgZvFaTjnc3P768GRk798ISN0mzqNJ64/h0Rv/80Ij6xNeWuo/JAT5tmd4w aM6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=u+b5sv9adYiXIg7WaQ0dFoaXR96uyVCcaa8BeGTtoXo=; b=U5jQewFqRMkwojP4pu8JQCqT3cMkBz0x+9MXGOd730HpH5GQ/XB7qwGx4rKkIMFi+i OvPGLVb2yV29KJtf3OMTydesnM8HSPQ5z4Tt9oR+ZllTl2JblwdiGEX83O1v/kS+Ssq7 hwfz81sdwl/e1LXaOHRhelhdf5GR3dQ8Ni/9agvqDHHPYJvIdYqpA0+oq0KZGPWR4fyj nBKYr508ZRF2o91b9xL9dIFSMFEyoNudX/NQVaQyVjJ8xxYCvtS0SgqHJJgrU67VRM15 gPTEdH6A2bCIVKKc2dnUFe85Krzp++eu+cX/MDMLxe5/bej3mLUld44/2YqElLhYGPQj W2QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=NVkwDgOP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a632b02000000b0042a77ec2435si6181223pgr.287.2022.08.22.02.04.03; Mon, 22 Aug 2022 02:04:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=NVkwDgOP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232841AbiHVIh6 (ORCPT + 99 others); Mon, 22 Aug 2022 04:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbiHVIh4 (ORCPT ); Mon, 22 Aug 2022 04:37:56 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ADF32C67A for ; Mon, 22 Aug 2022 01:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=hsUU+M8inv09Ir/zuanJetA2licV zhMzd31+/Qc062w=; b=NVkwDgOPZ1Hr4Lbbc5MAOnCaS0237NRp8x6WfbIHtqB6 tl44Pm5GFRZr3iwYxwD6MBg46TVQZADvJvH9nadaBmGhcAbsZbvFABrrQApeM7q9 Ilo+UPZEiN0fsmswdxOcBBzTYUz3EXlL03V1LD1WWsL5CdmMChnOQUgfdWbFTUw= Received: (qmail 1214028 invoked from network); 22 Aug 2022 10:37:47 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Aug 2022 10:37:47 +0200 X-UD-Smtp-Session: l3s3148p1@MiDDXNDmnOkgAwDPXxw3AFlguiwjsjwa Date: Mon, 22 Aug 2022 10:37:47 +0200 From: Wolfram Sang To: Alexander Gordeev Cc: linux-kernel@vger.kernel.org, Stefan Haberland , Jan Hoeppner , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Vineeth Vijayan , Peter Oberparleiter , Alexandra Winter , Wenjia Zhang , Steffen Maier , Benjamin Block , linux-s390@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] s390: move from strlcpy with unused retval to strscpy Message-ID: Mail-Followup-To: Wolfram Sang , Alexander Gordeev , linux-kernel@vger.kernel.org, Stefan Haberland , Jan Hoeppner , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Vineeth Vijayan , Peter Oberparleiter , Alexandra Winter , Wenjia Zhang , Steffen Maier , Benjamin Block , linux-s390@vger.kernel.org, netdev@vger.kernel.org References: <20220818210102.7301-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ABC3aCasbFWYlJHr" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ABC3aCasbFWYlJHr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Alexander, > Could you please explain why you skipped strlcpy() usage in > drivers/s390/char/diag_ftp.c and drivers/s390/char/sclp_ftp.c? Sure. It is a bit hidden in $subject, but the key is to convert strlcpy instances for now which do not check the return value. This is the low-hanging fruit. Converting the other uses checking the return value needs to be done manually and much more carfully. I wanted to this as a second step, but if you prefer to have everything converted in one go, I can give your subsystem a priority boost. Would you prefer that? Thanks and happy hacking, Wolfram --ABC3aCasbFWYlJHr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmMDQFsACgkQFA3kzBSg Kbbcew/9EjjU46h1Hw7hn47Z8s7LOJ86qovV0HqE8I6JiZmPknoKxmBppnvrlG/5 sGdJVtiWUpHmedA5M+DQYLFO2ZxeGeluaQOg22nsMbGmb7V7W0LosiZUm/Er7pOd qbXdLrgVnDzWIRfDVEh0HvJT3RNrc8WhmrW5MeBW4Dnhvwccn6kxCnVVAb66lnQ5 m5qwdFjHgrCsf4QhNCZ1o8g/dwGjirIJjT7svqFirSMB81q3tNA/yNr2XLarOuDb kCtKyKHOHr4Vzy4uxi6HnpvYz8nYE+tF04rB+nqNYLeCoEM8R42zz3kuaA95vQYg 3mcCYr3tZIGDZV6kdCYrFq2e9iQf2w3XmdrlSe31CBUGugL/jx89DOfNaOCUba1k lWNdmUJDUmicmcBeR6Yv/arWqMnkmBLABURl9WmXmrbl6ya9Dh/bM3vjSV+WoJVv GhiUgQKgEdi3pWhrRBYoRk//OtgEu5fxFIGs90DYlrXGLdsCQk3L0Ng/IR/MZ/jG jZjkD/4arMVqz+EPOI9nhxflWh70q/oKgdvejgmsGIEz8EIxEyukvi61Ea/VDuJf C96kGPeR6A0F2RiG0wtesUZM9PAE3TKr3LNDM4UNZ5/BgBVzD4XFCq3BKYHsHv/0 SMHb42lEJze4FeBTAJ+R+AjL1Ckgz4MzNG816dblvKDHfU5B24E= =183G -----END PGP SIGNATURE----- --ABC3aCasbFWYlJHr--