Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1195239imw; Tue, 5 Jul 2022 05:32:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vgCt7a7JO3b40SU+kGOBpl0MJTAmi+7r462YZOACS5tw/eqns/torlHZIzH5zOXmNoksDW X-Received: by 2002:a63:6a06:0:b0:3fd:5a1d:85c5 with SMTP id f6-20020a636a06000000b003fd5a1d85c5mr30349601pgc.130.1657024333278; Tue, 05 Jul 2022 05:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657024333; cv=none; d=google.com; s=arc-20160816; b=wpkX8W9Qu1F/F7lxrUDERl6OWfR1GcI2vWrPfDBtcxesXNAMxrhlv51WHUVvHOba8K 4XjYBPbF7Khw2GGwTrVZ51xAUDU0EPb8i6XN+Wfphdsf7Gv3xaDHp1EdRdyKfqs3a2tM AwELAWFh1kxc8g9SSTMs8MDIJUYGGAOTQhdrdEEJHnstiCqVIxjmWJ36obd0Uzk1k312 7s+Z1INyTtvbX0RZgmSUXsFA6oQmT8WNsULGLRGtQqqSdOAXNKyeU/t6Vl2xUgzO4kvr 0HDxqZNFYT5yX0pe7HrILARRSx8JdJyXA0HxvHl+V6uw5gleRkKJewJ660CD2+b66rj9 U5tg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=eL+08v8Oi5zgvZaTmHJaJqmfpDb3pg+GRYdgzapfaeA=; b=UZ7aoUUsIHyZ1P7KJNjucWQnKaK6AV+54Wo7o6CbqXyWZES2GEmFU5Clur/VgRJqIu 26fzGeAdqWn0xZ2zWYpG4aOt/Y4j9hr1KzKzNXXSgS7ZZ+YbxM385VgBanJbaBrzJV9n dcqszEKGKLtsMhK3M4JaFs0l4a5rneyBlkIFh9I6xtnUt9do0dfXST4GAlxlgqXAsfnR UVCLwDtq2I/CZYcJ8+ujuEjKY5ZnlZUgUVQ4P2dG1xaXE4TWG4jvARy5MLZ3qgWGUgZw HeLpx+zWgYLHZAuJuJlIOimV764ycMAODwvtdzo4a5R0SI3uIdlmKQWn8tIzwLA7JdoB vR1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IlbN2EKy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y30-20020a056a001c9e00b0052857cf7840si10257869pfw.135.2022.07.05.05.31.50; Tue, 05 Jul 2022 05:32:13 -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=pass header.i=@linaro.org header.s=google header.b=IlbN2EKy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238537AbiGEM3Q (ORCPT + 99 others); Tue, 5 Jul 2022 08:29:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237496AbiGEMTR (ORCPT ); Tue, 5 Jul 2022 08:19:17 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A23851D0EE for ; Tue, 5 Jul 2022 05:14:51 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id y16so20174932lfb.9 for ; Tue, 05 Jul 2022 05:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=eL+08v8Oi5zgvZaTmHJaJqmfpDb3pg+GRYdgzapfaeA=; b=IlbN2EKy4yQqYZ6TvuHxuB4Brfc58jz2COGInOXdqWYrxosn56LD8j38tIpCLG+ifF O4hd4lyK4J+FilFcGOge/0dt6N2OQ/8ClL09bZ1CTBK5jhppv/EUnvSV8jitc1OMFVqh 0V3GML79t3b42q12UUevZQ30e/m4KFt2PwjMWBMNJQhYow/6/kD4dmrRovGPowydnBdo CsRijzBCJLV0+witJNk/3iPbzuM7Px2532fhidb2oljMhB2bwptWF+dafPlMb9jt08M9 F04VWDAC2OdUnbcNOuzOr6Y2UaKVUYwPCjBZht6u6QvbU/+zKAr45qwH0yH/XyAnDS0U 42MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=eL+08v8Oi5zgvZaTmHJaJqmfpDb3pg+GRYdgzapfaeA=; b=R+1FTQFMfj2G2aMJZ9GfngXyB70kmnBJzjGns01Q+whBLJQ98GnO5C3qrfIxmkFAxd 1p4NXAyyoy7cIvdKX8Om4jESJE1j5BDKBPGoxt3bqWYZ0b4AMYBUBy25zJTDTZyhXgfS IlFDHqbBiM8XLNpsX797A2p8em06HVasaMqdG5oeMEHsHurKFM1JXVg4orGxTlW1UOv/ dm+9PRAUdFfSMyALBZq7NaMHfXuAZtdh9ITyVqHq2LNArkmNeWx2eo5XxKzd7pEzgw2/ QFj6T2t4xRTZwGM3tIT/enztX/o0tC433FQ1DAQyyLhWsdqMcoOJO6eGcp9pnh1Xe5xP TlKA== X-Gm-Message-State: AJIora8yHRoDFK+6znKXfT4yE9l/M01i2ZDT32NsQDALqT+NnZMxfFlf A+C6My+u520bfB61DZGjdKzgmw== X-Received: by 2002:ac2:4c19:0:b0:47f:9f39:768c with SMTP id t25-20020ac24c19000000b0047f9f39768cmr21990330lfq.285.1657023290040; Tue, 05 Jul 2022 05:14:50 -0700 (PDT) Received: from [192.168.1.52] ([84.20.121.239]) by smtp.gmail.com with ESMTPSA id t15-20020ac243af000000b0048295a41b0asm1990198lfl.302.2022.07.05.05.14.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jul 2022 05:14:49 -0700 (PDT) Message-ID: <57aca768-18f4-6b79-9490-c57123d71232@linaro.org> Date: Tue, 5 Jul 2022 14:14:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 1/3] rpmsg: qcom: glink: replace strncpy() with strscpy_pad() Content-Language: en-US From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Mathieu Poirier , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stephen Boyd References: <20220519073330.7187-1-krzysztof.kozlowski@linaro.org> <640d2a3d-4c38-b921-45c1-048c255b5a9d@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 20/06/2022 20:37, Krzysztof Kozlowski wrote: > On 09/06/2022 10:56, Krzysztof Kozlowski wrote: >> On 19/05/2022 09:33, Krzysztof Kozlowski wrote: >>> The use of strncpy() is considered deprecated for NUL-terminated >>> strings[1]. Replace strncpy() with strscpy_pad(), to keep existing >>> pad-behavior of strncpy, similarly to commit 08de420a8014 ("rpmsg: >>> glink: Replace strncpy() with strscpy_pad()"). This fixes W=1 warning: >>> >>> In function ‘qcom_glink_rx_close’, >>> inlined from ‘qcom_glink_work’ at ../drivers/rpmsg/qcom_glink_native.c:1638:4: >>> drivers/rpmsg/qcom_glink_native.c:1549:17: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation] >>> 1549 | strncpy(chinfo.name, channel->name, sizeof(chinfo.name)); >>> >>> [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings >>> >>> Signed-off-by: Krzysztof Kozlowski >>> >>> --- >>> >>> Changes since v1: >>> 1. Split series per subsystem. >> >> Any comments on these? > > I sent first iteration in May, then on 19th of May. There is review from > Stephen. > > On 9th of June I pinged but the patchset is still waiting. Anyone minds > me taking these? Hmmm... These are all fixes but wait for quite a long time. Shall we make the rpmsg subsystem orphaned? Best regards, Krzysztof