Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp838684lqj; Mon, 3 Jun 2024 02:18:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3QL53ySbRzaTc4SrjWiH8pCx9pRpqsPUGfIaP3dVkA4U4FKee8QrudOHX5arqNeEbJ/FmLcBTFCSqTtAb/9Vb6pCTPz/ObHXTKb1izg== X-Google-Smtp-Source: AGHT+IFL13MnZkRMaNYCwX/kqw4+GpZNtcrwP1b3ozFf1Cm0yIfc0Jx/j8IGjirryOCMRyLt0WJs X-Received: by 2002:a05:622a:1aa0:b0:43f:eec2:f70b with SMTP id d75a77b69052e-43ff5292bacmr88331971cf.31.1717406285075; Mon, 03 Jun 2024 02:18:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717406285; cv=pass; d=google.com; s=arc-20160816; b=xMqi8pxcJbXiThNrNd6NbKItSXSed2a8cu8lyl06h/c8QltrO704oPg/Qk7rVCE8s2 aX4ttwyguUlG9g9Zs3PVECNx4qhXJP8UWc62zb9Xr8bSH3iHxuFYARrjNx4qoAgYJMvr VKlB1lY12cksboSbYRS4wbHhn+scmZI6cvFUoAvVaOC4vAQdPR+SzuxejIm3l631Mh74 9+tDjGMx52NxN9JKVpjMKwsteIaP+bd0Hi+UyIYN2jTJq78iYxce1wqbvmgjK57DbfEB hLCU3n+R6SctTE0BggRSDkAwGX8Lhmq/e9Pw51EVEwZTbDC+tE5TAJfZTgWX/aJ3xo+p mZbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ER449LmaSckkw0lE9Rnq7WLr5seCu4LCDcpsoMn1VAg=; fh=WDau3FspAYkN2FjMPS9oDiIyRISxRLHK/KyXqF79BPw=; b=M3co2UHAiCfe/a/bAPwOhCHFWsW/Cw0myx2ynpKb6r8O1sFTFcQkRELUdDLu7KIbK0 CzgYx6l2KwCvyo+joRWkr5aZBD5ZpD3oubxjw+iSeo6si5M5o6X0l7dY5e3BosvjBb3x Zf2coOjVrIcVGyUxRCv2cAxdfvtu/KAr4S9K1BhRq3MSWyZnwF+bZOHzFO4Y+UfMUTTz 5c5rgV4xt4We0dRadvB3fhsibHruUw9ItRm4EY/LG7vT8NhTBR5cXVhB1XDQy4gdybjj veDB7Jy6Z5ErJ/l6IE8AX6ve4ACivFP0SZhI/5khdRAoEDvlgG/GY9w5D2/rTIa+ANrc kNSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ha02Sbz8; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-198853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff23ae35esi84218851cf.125.2024.06.03.02.18.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:18:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ha02Sbz8; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-198853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2B37F1C216D0 for ; Mon, 3 Jun 2024 09:17:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB80576F17; Mon, 3 Jun 2024 09:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ha02Sbz8" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 B805C5FDA7 for ; Mon, 3 Jun 2024 09:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406203; cv=none; b=GYQLS165jbKNgmWlkh4M53gA5YGkoY7qnQv7RlPD3AE8/oLxnaICnbsGTq7hoc1ztiEooBdt34NEzwz1S/4TizUVtREXBrdGtOliGSV2ojeIJT7uFLXdghZorfYCW0cDpYUUowfmMl696/0s4j7DAcucRS1mQz8rYwLR7wTpluM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406203; c=relaxed/simple; bh=ImHt7Zo3bC3AcAH6+P9BA7vqDiszxaZntToY+2lkWmo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qe9sVjRtQxqvGe8dgn0Nooc2qqgbgQInBTTR0Zhf2lH4I361+FBq6EEjOkb+oDuqMRrQmIM8GjDmhyfxewj8+Fyg5uTk1oJtnwZyrNgg3tiNKniQsFnvbVGM453SuRhaSL4AKMUAf91dcJIg8BDYsiLntxGvrIF5ZjQcHGNT9tI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ha02Sbz8; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717406200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ER449LmaSckkw0lE9Rnq7WLr5seCu4LCDcpsoMn1VAg=; b=ha02Sbz8D9KBAremrNqChFdMk11lZVoYY4uwFhc/6WZ6+YFiK+llKtuC/0XrVIkU36V9Zl Ael1dpH0OUCGdOHNkXBguIR813htmmhQ7zZFodoKLhJwmdrr/rhlkE1kxq1voUsOcVSfJD fjaRJJLXUEawLeGyq+kJ7V5knKYH2h8= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-615-9nYSV_c_P02eZer28fdVrQ-1; Mon, 03 Jun 2024 05:16:37 -0400 X-MC-Unique: 9nYSV_c_P02eZer28fdVrQ-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a68e0faf1f6so57759266b.3 for ; Mon, 03 Jun 2024 02:16:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717406196; x=1718010996; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ER449LmaSckkw0lE9Rnq7WLr5seCu4LCDcpsoMn1VAg=; b=I6RZkm6UiTT2qnL0U5yqxx9Xg8Fv4XQlhZE/wlL5VlYdTuP42DoqgaxKra1ptouRkY 9IlI1tlmVeyovrg/cUUvOIgmnqpYHVf98BNNEb6cJb+8CdmWuWy0s7pbSHiCBULoCyN/ eLQomgu5TwRX9q1RfbUKGWcPIMnOmIvWI83f+PrDtRyqQTwqqPEtWJr2/TZeuAa+7pQx 9g80MGzDi+uTXIa3kWMwd+4tTL1EWatwbwOWMhhMyosaf1Dhkv+fsBkd4KskNKAeqavH gRu/uMj0GJrSfkvpSk40jwgi2eoUf+rnYatPlexPvMKgpk6WwA8b82TYKVLmULKYHXa6 cD5Q== X-Forwarded-Encrypted: i=1; AJvYcCXAL8Wx7Zp6YLIovCNRMlVu1yB7W0wqExzCKUgoAx7pw8D5T3hG4uBITcDuZdP3cSoEDEq2cPv85U1JKQH92lsjSfoQ97kKHE6RKSJC X-Gm-Message-State: AOJu0YwVK/C6bnoKmEWZamOB4BH8nbI1DJA42YmgHShypf95FxBpQqsC ArdcPL/gQpIfLMrCknxwE/O/F1LvTTx3QbcwZ+rZF7xCLBJt/E9bX0xyxSv0a0KGU7N4moSRHKS JEotDS3ynC9hAeX+1+EQWkclabUIOZUIoIcAUwceCmv+on8wOdTWs3XQz9B0LMg== X-Received: by 2002:a17:907:3fa6:b0:a69:180e:9dde with SMTP id a640c23a62f3a-a69180e9e03mr102605066b.26.1717406196040; Mon, 03 Jun 2024 02:16:36 -0700 (PDT) X-Received: by 2002:a17:907:3fa6:b0:a69:180e:9dde with SMTP id a640c23a62f3a-a69180e9e03mr102603466b.26.1717406195678; Mon, 03 Jun 2024 02:16:35 -0700 (PDT) Received: from [10.40.98.157] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68fbf068fesm186916366b.26.2024.06.03.02.16.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jun 2024 02:16:35 -0700 (PDT) Message-ID: <6629757d-fa07-450f-9de8-bcda54d42067@redhat.com> Date: Mon, 3 Jun 2024 11:16:34 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 7/7] platform/x86: touchscreen_dmi: Use 2-argument strscpy() To: Andy Shevchenko , Jorge Lopez , Li Zetao , Simon Trimmer , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Mark Pearson , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, ibm-acpi-devel@lists.sourceforge.net, linux-input@vger.kernel.org Cc: Corentin Chary , "Luke D. Jones" , Mark Pearson , Henrique de Moraes Holschuh References: <20240602090244.1666360-1-andy.shevchenko@gmail.com> <20240602090244.1666360-8-andy.shevchenko@gmail.com> Content-Language: en-US From: Hans de Goede In-Reply-To: <20240602090244.1666360-8-andy.shevchenko@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 6/2/24 10:58 AM, Andy Shevchenko wrote: > Use 2-argument strscpy(), which is not only shorter but also provides > an additional check that destination buffer is an array. > > Signed-off-by: Andy Shevchenko Since the code being modified only exists on the fixes branch I've merged this as a fix now. I know this is more of a cleanup then a pure fix, but since the DMI quirks always get updated through the fixes branch this avoids conflicts. Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Regards, Hans > --- > drivers/platform/x86/touchscreen_dmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c > index 2d9ca2292ea1..879a63e4ecd0 100644 > --- a/drivers/platform/x86/touchscreen_dmi.c > +++ b/drivers/platform/x86/touchscreen_dmi.c > @@ -1907,7 +1907,7 @@ static int __init ts_parse_props(char *str) > u32 u32val; > int i, ret; > > - strscpy(orig_str, str, sizeof(orig_str)); > + strscpy(orig_str, str); > > /* > * str is part of the static_command_line from init/main.c and poking