Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3286164ybb; Tue, 31 Mar 2020 02:07:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsAUMoo/CkT4j0/DjH9s9SiZLbUhPhcZk4zC77QEjVKUH5f8Y/lngkBBIeYrrleUHddmry1 X-Received: by 2002:a4a:370f:: with SMTP id r15mr12670835oor.100.1585645630127; Tue, 31 Mar 2020 02:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645630; cv=none; d=google.com; s=arc-20160816; b=DyVt7uyn8bhy50HRgfqKnZDVaTTP4rRS4qSig/vH15Kpssme3yXh4nAU6LW1beks6z aXBfliAild6Y69x/zC2FYwmzUwdBe72Ilw7BhS4tSwmkEqopHqd+SeTzxpzwDFjiCo2i vU856/clA315/NRY/NSNetyUrcKUq5YljoYBXHo63CoALFdZGaNXOKxT5RYp25Ja6lgM V5lY4d6y3Wqr6dT+5oDU7xscYVMok1QA/f9VdwITB3YgUw6lMbj1Y8hZ3rDU/uEoXsSr dIe4W9OS5NWa+smzBu3qQP4Npnn3X6/NKjMosrtoqkuyVIghc++3xnl58NBTr78d1OJF UJYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8ZnQBJoC89/MyR3CltAULtl84937z9rveJRdlX2IlI4=; b=Njxl9UvPjtP3leQlms0kyAzWOxuTQxwlcmOWXqLRRUrKrx/MHX9FjGj151SZLjoUfx qj5N4RCrEa2d9z/E7xNztLEWGDgD2YuFT63Q42FUAJMFON5jmxrwnSYa97LjQeAcSMjW 7B49gJZMkQu7lgwWxRSQs9h8iv3P0bCeViUXf/2YnPdUxZFQDAFw8yUfUVw5M3XcjruC Tl9m6Ui24/GMzu2n7SnV4Ez1wz41QMWw1RXQKio5/FF17ssEWukPGRYyAqZENeA5tnYj ebdVu5GpLxVQBUwi4BWyZ7dfZy2I6QOHzcra6FtxrqIYsIENOIv6iuy+uAULWA1742T3 PF0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DUblurly; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w32si403401otb.122.2020.03.31.02.06.57; Tue, 31 Mar 2020 02:07:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DUblurly; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731071AbgCaJFd (ORCPT + 99 others); Tue, 31 Mar 2020 05:05:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:46642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730541AbgCaJFd (ORCPT ); Tue, 31 Mar 2020 05:05:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B07120B80; Tue, 31 Mar 2020 09:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645532; bh=eTsrk4rS2oByHAz2G34KbqfNarKNhRueHXowZf1Awo4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DUblurlyG+tcG3+W0+6KPmfCK0nhZvc+Eh4RGS1xxjHZp01BYZ6/UbjYikSSzqa41 X7193yhnit7f4cvwq6c/gC3WKuS/Ms019XJIKxQLgkaAPW+vv4oYTQJBXaYDnEmcxg WcGkSIXTZPi1N4xfkl8HX5fziors5R/aNKAjGwk8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, teika kazura , Dmitry Torokhov Subject: [PATCH 5.5 083/170] Input: fix stale timestamp on key autorepeat events Date: Tue, 31 Mar 2020 10:58:17 +0200 Message-Id: <20200331085433.125640559@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Torokhov commit 4134252ab7e2c339a54302b88496cb5a89cdbaec upstream. We need to refresh timestamp when emitting key autorepeat events, otherwise they will carry timestamp of the original key press event. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=206929 Fixes: 3b51c44bd693 ("Input: allow drivers specify timestamp for input events") Cc: stable@vger.kernel.org Reported-by: teika kazura Tested-by: teika kazura Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/input.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -190,6 +190,7 @@ static void input_repeat_key(struct time input_value_sync }; + input_set_timestamp(dev, ktime_get()); input_pass_values(dev, vals, ARRAY_SIZE(vals)); if (dev->rep[REP_PERIOD])