Received: by 10.223.185.116 with SMTP id b49csp1078167wrg; Sat, 3 Mar 2018 14:57:46 -0800 (PST) X-Google-Smtp-Source: AG47ELsNv6rJyjdkvzYFDwZjmExnpD8dHYN9tphHtbnp2BKyez9ypMMpbySoU4LB5ZUMganIKQjm X-Received: by 10.99.149.24 with SMTP id p24mr8309105pgd.122.1520117866730; Sat, 03 Mar 2018 14:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520117866; cv=none; d=google.com; s=arc-20160816; b=DBBp2qzF36/QJa4CZ+wat01KJHEAG6xyJ+sWr/CwyLSbjXiTg21CRGvWBRe1bPwqzp WQNRIOzYAwITr0u1JyH33wZUvCUywn7PCaAzKkTWSo/1Lwx3VuqUr4R7YELt7IWLwXrI XUFMKk93/VJ+dheE9tsrrFjfcF+uYAlEqMP7gglM/kdFpMpdLa3E0Bg6o9fiHfIFl/F6 Eun3blBU/VxMRehVkcaB4TukT1R4P6SrNuNl9a/3Xa9kM8lRSBgHJ5qVvBKb7Alp4H/W PhcHb3CHB/MMMj5HycFCgQYTyiJ5kA6B3hdzEHxAqS7QZKxIsvHy4X0Ml30dSPeE/n2J tclQ== 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=Ah+sJRchFAON3Ef+oiIeYv+CByJpKxYlR0KTphHA/u0=; b=yY2ioyg4qHEy+ERWCtzEJlGag2cWhK3SuNvHYfEzs9rSVRG/rDqlq7etXM2Q60+V1v 4OhYXLmFjHt9nhHFR6S4WRgD+Vdjl8thpF6PizhiCuKcibPmdA1ZUTTJEGNBMH/K1By7 hE//undn/QF3BG6GFv6JOV/ZutXf3lpTBulfaTnIz2gdqP63U+M7ItLIhRr9VGpXWCb+ 5ycz/YFkqOfBVlGOpjcVnsTXUKkwpYBethb9H/ODpivd9LucIu6b4rqfjgJ3J/dHQG4m +9ZkPBLrVRGdhf+dPgc7YrLCT+NlLnD3CQGl5kI5XArzkoUts6weGogUMKEk8ZN4d1KA RTCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=E5sGPYrs; 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 y1si6153436pgs.208.2018.03.03.14.57.32; Sat, 03 Mar 2018 14:57:46 -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=E5sGPYrs; 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 S935297AbeCCW46 (ORCPT + 99 others); Sat, 3 Mar 2018 17:56:58 -0500 Received: from mail-cys01nam02on0110.outbound.protection.outlook.com ([104.47.37.110]:31968 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935350AbeCCWk6 (ORCPT ); Sat, 3 Mar 2018 17:40:58 -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=Ah+sJRchFAON3Ef+oiIeYv+CByJpKxYlR0KTphHA/u0=; b=E5sGPYrsAvGZlP4rw0nqcWF98mwKtgttKIXluJHVmzmZg46WHgLNOlhvAxxleQy2nPRPu9QQjaUyucigVq9DmXeUCuttMNStJw9V6Dr7BvJuykYbpcBrvoSU214x+GSJpEw7QLECzJ2ffYlje3ngeRTEtDWpeJ/SAIXc9EQJz5U= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MWHSPR01MB344.namprd21.prod.outlook.com (10.174.251.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.3; Sat, 3 Mar 2018 22:40:55 +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:40:55 +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 3.18 03/63] HID: reject input outside logical range only if null state is set Thread-Topic: [PATCH AUTOSEL for 3.18 03/63] HID: reject input outside logical range only if null state is set Thread-Index: AQHTsz+bzB3jY/nA/U2w3lkisfxqSA== Date: Sat, 3 Mar 2018 22:33:09 +0000 Message-ID: <20180303223228.27323-3-alexander.levin@microsoft.com> References: <20180303223228.27323-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223228.27323-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;MWHSPR01MB344;7:5Gs3Q/TmLqO3CfuMp6liPd4kbZlfwO//jP9b9VQk/iTVxyzHs36HVJHbSZOcGltZOATyhRsY3/Z3bRYNJzmxXFyeaibvk6YG6R7q49lkpsPCubwPw0BANcEmNB+EDwznzJlNSh6pVkVe7oT7nDTmYcGlgk4DTmZqGlNpw/zEyLDYwe1vEB6JBj/DLGN/2KAX09XYDAQC1OcgHtQvu3lD/WCJ65p58tbYvlW0B3Q08eGQpD3qxp4X9LwAPd6PF8rI x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3c173c96-d510-4d03-b209-08d58157d3ad x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MWHSPR01MB344; x-ms-traffictypediagnostic: MWHSPR01MB344: 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)(3231220)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:MWHSPR01MB344;BCL:0;PCL:0;RULEID:;SRVR:MWHSPR01MB344; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(346002)(39860400002)(366004)(39380400002)(189003)(199004)(8676002)(5660300001)(5250100002)(2501003)(6506007)(7736002)(36756003)(25786009)(3846002)(6116002)(966005)(97736004)(305945005)(2900100001)(76176011)(6436002)(10090500001)(26005)(8936002)(186003)(81166006)(102836004)(81156014)(106356001)(86362001)(10290500003)(3660700001)(2906002)(99286004)(14454004)(86612001)(105586002)(478600001)(4326008)(6486002)(53936002)(107886003)(68736007)(316002)(54906003)(110136005)(6512007)(72206003)(3280700002)(22452003)(2950100002)(1076002)(6306002)(6666003)(66066001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHSPR01MB344;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: E4zLfMvv7RyBPSluaAptym7/WbuUlJqLY2sNXbEeZBJWnTx+L1v+uDwmDpFqOBTao+eJ5DTj/yDkqyLnkkQjzdfvYr7HeKNZZ6cWmey+ZnHJZUIuvNimIUlnNWxhhJK6LdItg94EcjB9OHNII3YZfuef/0DDKgGoZtnF8AN9bRg= 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: 3c173c96-d510-4d03-b209-08d58157d3ad X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:33:09.7785 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHSPR01MB344 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVmFsdHRlcmkgSGVpa2tpbMOkIDxybmRAbmljLmZpPg0KDQpbIFVwc3RyZWFtIGNvbW1p dCAzZjM3NTI3MDVkYmQ1MGI2NmI2NmFkN2I0ZDU0ZmUzM2QyZjc0NmVkIF0NCg0KVGhpcyBwYXRj aCBmaXhlcyBhbiBpc3N1ZSBpbiBkcml2ZXJzL2hpZC9oaWQtaW5wdXQuYyB3aGVyZSBVU0IgSElE DQpjb250cm9sIG51bGwgc3RhdGUgZmxhZyBpcyBub3QgY2hlY2tlZCB1cG9uIHJlamVjdGluZyBp bnB1dHMgb3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