Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2073432rdb; Sun, 3 Dec 2023 01:05:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKifwqN4PviOBcV4cOYftjVi2EgKtRDeNyAGrckORVIOrw26oseER89431riFH3nHMQzQI X-Received: by 2002:a05:620a:2811:b0:77e:fba3:a235 with SMTP id f17-20020a05620a281100b0077efba3a235mr3373542qkp.143.1701594345787; Sun, 03 Dec 2023 01:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701594345; cv=none; d=google.com; s=arc-20160816; b=tG6LQ508vsoxOfOcMyi0wJ8JTpLv+8E5u4j/4qy4n1OEA5xOjDKEq+WFsrSQSI2lQs PuQgCifj5Q94nGiWSSsm9aeb0xkpkvLIDJKrR0TDbEQDpiSoun4YkeEf3ywQVwCza1PI +fHJwrS+cm+THl8MExNW+E48Ij/DIPCFCM3/stdmrlZNJjTQ6zOnqcHDWxPeRRgKF16u pV/HMRJjbYjiduvs6mxluD25LS9KS7U+3mACS2lQ2e5Znbtda3wCVVwNrD7dkFZG+NU9 39VwjTduFGsvpfbVbx6VUXOBq9wAScRQKrhSf1Xl5/g/TyomYTY2/Rdjr/F/YbtFilL3 fVpw== 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=JLlqLid1B9ZhCGwUEvLLGJt5foYwLmzA1C2sxCI3a4ZCeEBB3lglfs1XitbLvr/ZUn ONFOnrAmcjkuMY500OuT5sqU1P/ZG32i3WAbvX034KRxj1mq+qXBSI4Gr+xrMJKyatrw zgQZlIhokpyEBvg3bQG8oN5D75LvyrNbYVoNO9RVDeC4bETafeNY6WPbKO23MhRWxY0K le/YpBZ66wDmUFg5aPJ1fwT9aO3qklepyikV8kUoRa3Y8EEsWVeFBBZ0/3f048RaimDR uru+WRZ4gP4zkl/HmjcU3K3mjYsSLCeDEhiowPzDb/2WgSr8m7B2AAglQnl2ik2kAT47 YVLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Yd5Z3VS5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id oc2-20020a17090b1c0200b00286988cd141si679440pjb.111.2023.12.03.01.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 01:05:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Yd5Z3VS5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 2BAEA80239B3; Sun, 3 Dec 2023 01:05:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229450AbjLCJF0 (ORCPT + 99 others); Sun, 3 Dec 2023 04:05:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjLCJFZ (ORCPT ); Sun, 3 Dec 2023 04:05:25 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA6E0CD for ; Sun, 3 Dec 2023 01:05:31 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-54bfd4546fbso4189579a12.1 for ; Sun, 03 Dec 2023 01:05:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701594330; x=1702199130; 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=Yd5Z3VS5yBqdmAsMdzEi9nmZ/0MbTU0C/BSHbpZdQW/iU9rEi+mYIPpp8H/3dL7zJ/ AFZPEcx8WJx1YzLf6854viWaMEtDbwv4Pmj/uh7ce/aTR6SRZmZGqX8bxADEiy+Lfs5m 1a+kP8sQi7mvtD+LsiXNeDXLzhEfcUYbprmAR40cG3d4YWhu0wWsCiR+jL3/BJUhFQ8K 0s7EC0PmTJdhBjQnER2tvQQxCKNv/U0+DUBrXz+GldCycw0z2RQWGNNi43xhtAzg51nf v9OxN1zLyB4Zy6DYt5DtRt/JN/R1yRVO8osMJFiffitNg9MQJ0pMoUdDO+jIRe44XsLK eRcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701594330; x=1702199130; 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=wqC9RB/ScKnyeHzpRcG2wRbzqkP1UNnOJ9PVTC20wTTDUGjIPafZ7AXIimtIHMHPfK kd8h9SRU7iV582lG2GoUNd9+CPFF+MmVwATbyy97sZaXlIGXRXf8f6TAqxTCxQU+lxQ4 oLaCTt0p5Dnf+tdxYdz3GJyu2KIVKvRaYvEpFJ9J/onAK5hzIwL0JjggBjCarFGFXIXX RqZdmKwT3Hb59AL6AGl33bOyYp1crqQUyV17ZSZigT2BWj4J8W+9TXFWG0s6PrmjEgcQ 0lMTFAbXQnDHY8crHTufVeh8zAt4XFsfAP+gCHu93+/d9wIxh7cdJSKD0uwckYUVMFlL qnag== X-Gm-Message-State: AOJu0Yx5fmBe893Sxm6iqNneKbbnXQmm9+ZCXQOPDqq+iXnEb3+2rtEc 9z4Cg4/LnvhpavF1RFtdVSpTRRvWUss= X-Received: by 2002:a50:a444:0:b0:54c:67c0:831f with SMTP id v4-20020a50a444000000b0054c67c0831fmr1682569edb.13.1701594329818; Sun, 03 Dec 2023 01:05:29 -0800 (PST) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id r23-20020a056402019700b0054b2040ea46sm3468888edv.61.2023.12.03.01.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 01:05:29 -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:05:20 +0100 Message-ID: <20231203090520.85855-1-zboszor@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <202311171716.uIQY5rT4-lkp@intel.com> References: <202311171716.uIQY5rT4-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 pete.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 (pete.vger.email [0.0.0.0]); Sun, 03 Dec 2023 01:05:42 -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