Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2073890rdb; Sun, 3 Dec 2023 01:06:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVaP+6AsZJ6aT1VuPzIAe+JP8087asxRpWpuP81jawjXyC7iLWNkqjhZ9GGVE2lNUDF3RB X-Received: by 2002:a05:6870:96a1:b0:1f9:57df:ce37 with SMTP id o33-20020a05687096a100b001f957dfce37mr3276164oaq.33.1701594417170; Sun, 03 Dec 2023 01:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701594417; cv=none; d=google.com; s=arc-20160816; b=C+ahvwleNhhwsd4uavSHjP+AM06z7xRq+ajgZtXCNtQDFginLyPB//t+JpiRZSUVck CssnFSbYAye0N3adnmpVkX7LjDk1tMQVY/D3hKz08a8k9N/hAWnmV7XCocR8LNcc4Np6 ENqR0HcWJ0KvDJ8h3mtof9qEg3MJW9BRypA3zj8ieAaeNaw6SDIvbpgN+uf45bSEMaW5 VgCpHPab/I9HXVZ1townDljUdwLZTU8Geq+EMFPp/4mvdvyEHTM7Z+Nhmvr9h/Oj4/K3 4elBJDj9AJs9nDC3k8x02p8ekus35CX0+RQN5aOJhZT/Wfhlx5VSDSdDFAUXkaPRzmEW 3wNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kX+3yDbq4orl3F1IwroT1JgXwfqK8BBsS1e+lWobZFk=; fh=3OlfoKgYUsLPyWSg5YaiS/a9erfiiRooSW7Ev9acFkM=; b=FD664F6FWwLygwre19nDmlul05ikcOH3ZA1vo5N2m6bMtytFVnN9Q4gBDHLxZhwKmL eXOndwXmNSYFgyYyPI8uk2DjKky+gJ6+TXgFEAhuJvLXjN24mkEHXtLPMeXWqmNKdKok Av6sKXkQPo+yhfv28T13NRXTS3JRxlpU2cz9CTUzOHVQbUGb/gsd2k7hH09kVs6NzVb7 y7pXSsxqWEh69VPwPcl86tUm8OOoM3y9O+KJTlX/HNSG7xSBdYbFhtyI0HfgjyhHt/SI 9giZl9kThpWPf+sIZeYh+UobFf6/6FEXEDK/4vsCB3jOcI3Yi+XjM/CGdvSf6Qlwbib0 yeLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=m5Q5GpXP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cm17-20020a056a020a1100b005c66e60900csi1235298pgb.239.2023.12.03.01.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 01:06:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=m5Q5GpXP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AFED1807F2A0; Sun, 3 Dec 2023 01:06:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233258AbjLCJGB (ORCPT + 99 others); Sun, 3 Dec 2023 04:06:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjLCJGA (ORCPT ); Sun, 3 Dec 2023 04:06:00 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 526C1118 for ; Sun, 3 Dec 2023 01:06:06 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a1b68ae40ffso19866166b.0 for ; Sun, 03 Dec 2023 01:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701594364; x=1702199164; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kX+3yDbq4orl3F1IwroT1JgXwfqK8BBsS1e+lWobZFk=; b=m5Q5GpXPi0Wx1uZRd+Vbmilwv/oIJQlC53/6cAfABQT/goXP+jKpoVPoMGWCeQQex9 XtnzJFoCut2FN0wzoNU+ByXyxSPynrvoH4aUQ3R/faDzK7IwmT6l75seaADeVtN5z+F5 OzI+VVBoFBQeRIKdfeqoWgfHFg1W6QeGmFr1JygRuFwCwnqWM51CO7NJdqSGpnnW0KqP pfo/1+yw31d3THuop9aKH+G2gTi7UPBVvLko5MxD7EyKacAp+z29Hi3bkYMTjedJWSxO Ca9xH1FoRwKx1uX9nFdOK+tcumJtU5IiEpqTeu8uzLQzltpPB/eqg5Dayrd2TqdJ3g0O nnCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701594364; x=1702199164; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kX+3yDbq4orl3F1IwroT1JgXwfqK8BBsS1e+lWobZFk=; b=KPBxHZIJ9aDVlIeVuVLF5meWDmMqxaB4q0DtRClj9XuIcTZxSrQU5icHVL2SqdJHhf /LDOqa7xb0kzpTmwtQshjx7hFn2uUHPUKhiZXww/hwP0BNaygIdOLVzvo1f92X8gF0wi CNBu688aFYd6QQtuA+JGSE1QGNgB7L0lr46DHegPzJL2F17Ic7KQ0hnL4wLLXiCUC7lA +D6jChcEHJMHMBWbbs81A152hNyTr3rytDZ2AF8qtBBFsGdDsb3pPmSOBv1hD32QmXEc GxoObFc+dxxUdprxBeNa/yj4JLYECF+DzHHEBcnAnfEoOZuS6b5lzP4gM6StKgL/fEEr oDYQ== X-Gm-Message-State: AOJu0Yzc8sUzyiSr0l8pBEQ+H9VX8vG0GHBPVHWMYlWqOk9mDSYY3ecd 05URB++yDi0CY+CM7t5gxeyszhA8awk= X-Received: by 2002:a17:906:b302:b0:a0f:f117:e2aa with SMTP id n2-20020a170906b30200b00a0ff117e2aamr1292476ejz.42.1701594364281; Sun, 03 Dec 2023 01:06:04 -0800 (PST) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id la26-20020a170906ad9a00b009bd9ac83a9fsm3939717ejb.152.2023.12.03.01.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 01:06:04 -0800 (PST) From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= To: linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Dmitry Torokhov , zboszormenyi@sicom.com, =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= , kernel test robot Subject: [PATCH] egalax_ts_serial: Fix potential buffer overflow Date: Sun, 3 Dec 2023 10:06:00 +0100 Message-ID: <20231203090600.85890-1-zboszor@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <202312021646.cwwvptuB-lkp@intel.com> References: <202312021646.cwwvptuB-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 03 Dec 2023 01:06:21 -0800 (PST) Update my old (defunct) email addresses in passing. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202311171716.uIQY5rT4-lkp@intel.com/ Signed-off-by: Zoltán Böszörményi --- CREDITS | 3 ++- drivers/input/touchscreen/egalax_ts_serial.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CREDITS b/CREDITS index f33a33fd2371..5efccb40d577 100644 --- a/CREDITS +++ b/CREDITS @@ -470,8 +470,9 @@ S: Montreal, Quebec S: Canada N: Zoltán Böszörményi -E: zboszor@mail.externet.hu +E: zboszor@gmail.com D: MTRR emulation with Cyrix style ARR registers, Athlon MTRR support +D: eGalax serial touchscreen support N: John Boyd E: boyd@cis.ohio-state.edu diff --git a/drivers/input/touchscreen/egalax_ts_serial.c b/drivers/input/touchscreen/egalax_ts_serial.c index 375922d3a6d1..f8b56896a42f 100644 --- a/drivers/input/touchscreen/egalax_ts_serial.c +++ b/drivers/input/touchscreen/egalax_ts_serial.c @@ -2,7 +2,7 @@ /* * EETI Egalax serial touchscreen driver * - * Copyright (c) 2015 Zoltán Böszörményi + * Copyright (c) 2015 Zoltán Böszörményi * * based on the * @@ -42,7 +42,7 @@ struct egalax { struct serio *serio; int idx; u8 data[EGALAX_FORMAT_MAX_LENGTH]; - char phys[32]; + char phys[NAME_MAX]; }; static void egalax_process_data(struct egalax *egalax) @@ -185,6 +185,6 @@ static struct serio_driver egalax_drv = { }; module_serio_driver(egalax_drv); -MODULE_AUTHOR("Zoltán Böszörményi "); +MODULE_AUTHOR("Zoltán Böszörményi "); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL v2"); -- 2.42.0