Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4463556pxb; Sat, 6 Nov 2021 14:35:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKXKgCvzTa5wYBayekH3Es4glyPdinBTEdto+frzs+HCshYEEZ0mnaC7HHFbmM2W69yE6Z X-Received: by 2002:a05:6402:4413:: with SMTP id y19mr27762763eda.216.1636234534846; Sat, 06 Nov 2021 14:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636234534; cv=none; d=google.com; s=arc-20160816; b=LcoXQsQqs0ZNcfL/FJpGh4HjNPO+ZhxyLXqUZ23tiw+zUtnOTGpTLMlWDJimrfvuQ8 mfQX9EjVY0LbWOb8+XV77MCgjOri7EvWea0VHAcTRpYp2IXmhAaHWuwGXQqWWLq9gB8A 2NLnvXfcTOi4bqACVCw7rKRd7D5Nq2rp2PIPu/o4764aXubpCwvLIaaAHJjIT8q64jW7 xeiD5Pjxj03BcPOMOzhz4wwsb7KFmSMuWCPbb3yn7XRauoHIWzWUTPXxom78qAsmf1XX VQBOpzWTDAd2og0k1n54tG5hA0yxu9Lly4jOnm1lu32811qd/iCak3zjyjMocMIwO/qK ilwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:to:from; bh=6IW8/p9AV3AJxfnI2sdCtl4lhUOAG2r4Or44I8oxWnM=; b=ngnGNGMbLhyxHH1yeOFNeCgwnUt9ycQAfsp/zDi699Vx/iSVrTO3SnBoc4ck5Z7Cop ECAmN3jJm/lZ09IXVFiU3YfQXlovPe1zIWAneccooSTWhL5CL3txKvgkiIbQGWK+TE8I /mVD/mkFDNBjRNHREyzRAGXjXBcO8UukOQaYsGzm0mGOs1YISDaxyU+Ppwe4wWI/8lzM BQj13eIXWS30UBugsoaTmTnCBv3Cs0A5zjPy+/JE/J0/tiAQlS7RFS8uEjVFh4jzXELM b4RKHwDdHw4/uIgyQWsa6+PTbRBcgFYSv4U4QPkY+IUXm60qWffOl46T8AsUV6uPRWPt pwoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si21287580edc.536.2021.11.06.14.35.12; Sat, 06 Nov 2021 14:35:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbhKFQnD (ORCPT + 99 others); Sat, 6 Nov 2021 12:43:03 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:51602 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233943AbhKFQnC (ORCPT ); Sat, 6 Nov 2021 12:43:02 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-279-Uuiy6FHeNDuYeQdc0PaFdQ-1; Sat, 06 Nov 2021 16:40:17 +0000 X-MC-Unique: Uuiy6FHeNDuYeQdc0PaFdQ-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.24; Sat, 6 Nov 2021 16:40:16 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.024; Sat, 6 Nov 2021 16:40:16 +0000 From: David Laight To: 'Pavel Skripkin' , Ajay Garg , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] tty: vt: keyboard: do not copy an extra-byte in copy_to_user Thread-Topic: [PATCH] tty: vt: keyboard: do not copy an extra-byte in copy_to_user Thread-Index: AQHX0wDMp45dq2RRKUOAel7eGWdnJqv2s61A Date: Sat, 6 Nov 2021 16:40:16 +0000 Message-ID: <868025b485b94480ad17d0ec971b3ee9@AcuMS.aculab.com> References: <20211106092041.43745-1-ajaygargnsit@gmail.com> <9eafae1f-d9f0-298d-cf20-212865d0becc@gmail.com> In-Reply-To: <9eafae1f-d9f0-298d-cf20-212865d0becc@gmail.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUGF2ZWwgU2tyaXBraW4NCj4gU2VudDogMDYgTm92ZW1iZXIgMjAyMSAxMToyNA0KPiAN Cj4gSGksIEFqYXkhDQo+IA0KPiBPbiAxMS82LzIxIDEyOjIwLCBBamF5IEdhcmcgd3JvdGU6DQo+ ID4gQm90aCAoc3RhdGljYWxseS1hbGxvY2F0ZWQpICJ1c2VyX2tkZ2tiLT5rYl9zdHJpbmciIGFu ZA0KPiA+IChkeW5hbWljYWxseS1hbGxvY2F0ZWQpICJrYnMiIGFyZS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