Received: by 10.223.185.116 with SMTP id b49csp1093459wrg; Sat, 3 Mar 2018 15:21:45 -0800 (PST) X-Google-Smtp-Source: AG47ELvXy2NtfdfZU8lN3LCWSlRrBNwboTMoWiRyOmO9zcgYCLy3n+QQaTyMEr22j2z2a9oMOnAC X-Received: by 10.101.96.212 with SMTP id r20mr8349114pgv.139.1520119305623; Sat, 03 Mar 2018 15:21:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520119305; cv=none; d=google.com; s=arc-20160816; b=CpLQE3FeBru4p03jM3p6EM/FfgR2Dj+moPQLbb3wn47qbghJO7+HWxXQ//Q3S3NA78 Wsd0ONs48WJhdBSQvIWZ9XqvBOQiJEhmDZ09e/WJ50w9Jl8reRYSPs/KoCQ5bjQ/liZT nq/vCUDNT3LMVV6Uy8upncrWyn86a/FZ3ZXdw7hOFP6drdVPlz8rRmAe2FNySONF7f7f J1nID9rUssjop1Rua524e8CHThKgy7ZBPZ5fyZefaZNVb8uWFfaI96Uwk+gi4/+9o5NY 9yw8Ok8CZl8EA4ZdD8KIG2PnJXq2b00QLe+eBcoCzhBNsUE4w64H4A19qbttpXfQJXSX +MTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=4ujMfCk6yPXzldDxVFBy/9AW+CR+m7+cK27cgfKp2TI=; b=cPP9tKY3vlTevHZuK09AHE0g5GdEFsFz4DiOrAy8MRghMaTiWpDzjeN90FK/3NwFB3 QdT5vsSJmpftS+tI27pUAmz5OFRoUXcFy2cfy3bddrkZIARbRIIL33NNihmAlAyEagje sgqRgdnQZfWP908j1CQVroQGs+C71tM17pIQADer8gB3XAfa+3gJXlerdTdnE0CyYUVP 9C4CP1gHEozU66lD8HbU/NZZeTh4IvgOlKNVmjPvyODPBGb1jVKeyPGddawYKB2lZng1 N15HPKO/dXoSl0zYxBZu4YXerMAbyeKHiWId0U3IGmjzePg63OQ0ARqv9wSyA4j6DnIG QB6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=NIJzxePo; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si7468296pfa.413.2018.03.03.15.21.31; Sat, 03 Mar 2018 15:21:45 -0800 (PST) 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=@microsoft.com header.s=selector1 header.b=NIJzxePo; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933738AbeCCXUx (ORCPT + 99 others); Sat, 3 Mar 2018 18:20:53 -0500 Received: from mail-co1nam03on0134.outbound.protection.outlook.com ([104.47.40.134]:45128 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934782AbeCCWh5 (ORCPT ); Sat, 3 Mar 2018 17:37:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4ujMfCk6yPXzldDxVFBy/9AW+CR+m7+cK27cgfKp2TI=; b=NIJzxePo5s+V6xZcw1JrYVcE7rx77u+Ai8wP9bprZjxOgaGOn5S8nH/X1wsCENiqsQid4TUPvLeT4S1q5akjDfmKctT8KWmY18iPH7JkAWkm6Pz/6hmeFBKOiUdcI3uZ9RGohKy4U0002LOTU/mg/H9DGRjN5WpiuTPa/acdnLA= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MW2PR2101MB1100.namprd21.prod.outlook.com (52.132.149.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.2; Sat, 3 Mar 2018 22:37:53 +0000 Received: from MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0]) by MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0%3]) with mapi id 15.20.0567.006; Sat, 3 Mar 2018 22:37:53 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: =?utf-8?B?VmFsdHRlcmkgSGVpa2tpbMOk?= , Tomasz Kramkowski , Jiri Kosina , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 005/115] HID: reject input outside logical range only if null state is set Thread-Topic: [PATCH AUTOSEL for 4.4 005/115] HID: reject input outside logical range only if null state is set Thread-Index: AQHTsz9ItrjyAlUbGUO5XbW/+tjTmw== Date: Sat, 3 Mar 2018 22:30:50 +0000 Message-ID: <20180303223010.27106-5-alexander.levin@microsoft.com> References: <20180303223010.27106-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223010.27106-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1100;7:cBsJYZmSYAFkKQrXhwtn7IcOjdrW7SsJr8vTXVedRoE2GTHKnxsOE5HW2cTO2R8ArZiaiZ8kt8QdVn+cCCs0oNtXDxcE0bFC3Fxk5T5Ze6JwP7KSjNBf6a3PFXpwS3eDelxPIuzglJtN5kgyxVWz8eVtLywQGAxG6UlXhnyCyK9NQ0b+yz3BNhSpsospz4eayij1qJTvujYZ+4wu+85MVyDk57FA/p+j2McGBte+7+fA/hxJiFPs0kQUv8BWSmOQ x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 18079d3f-7e12-47d8-7449-08d581576764 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MW2PR2101MB1100; x-ms-traffictypediagnostic: MW2PR2101MB1100: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231220)(944501244)(52105095)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:MW2PR2101MB1100;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1100; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(376002)(39860400002)(396003)(366004)(346002)(199004)(189003)(22452003)(97736004)(7736002)(5250100002)(105586002)(2906002)(6506007)(72206003)(966005)(66066001)(4326008)(305945005)(10290500003)(186003)(3280700002)(102836004)(2950100002)(2501003)(478600001)(26005)(2900100001)(10090500001)(53936002)(8676002)(25786009)(81166006)(81156014)(54906003)(86362001)(6436002)(106356001)(110136005)(68736007)(36756003)(316002)(6512007)(5660300001)(107886003)(8936002)(1076002)(6486002)(3660700001)(99286004)(6306002)(76176011)(3846002)(86612001)(14454004)(6116002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1100;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: WVpEoUOnV5ckhPileuvLdm+O/QITZX2ZX9udyJv7gGGDhPsshK/eeaadEE0YuTcS5GtWCTqWr6MG9JOnmKEkpBTAR4UycQ+uyVu7HIyDQ69SZodfp30DPI16era/GoYSHr4G/kpklT5RUPrIhQ0+MOjecFr1o5v3XMdc2wzga7U= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18079d3f-7e12-47d8-7449-08d581576764 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:30:50.0258 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVmFsdHRlcmkgSGVpa2tpbMOkIDxybmRAbmljLmZpPg0KDQpbIFVwc3RyZWFtIGNvbW1p dCAzZjM3NTI3MDVkYmQ1MGI2NmI2NmFkN2I0ZDU0ZmUzM2QyZjc0NmVkIF0NCg0KVGhpcyBwYXRj aCBmaXhlcyBhbiBpc3N1ZSBpbiBkcml2ZXJzL2hpZC9oaWQtaW5wdXQuYyB3aGVyZSBVU0IgSElE DQpjb250cm9sIG51bGwgc3RhdGUgZmxhZyBpcyBub3QgY2hlY2tlZCB1cG9uIHJlamVjdGluZyBp bnB1dHMgb3V0c2lkZQ0KbG9naWNhbCB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