Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5288956ybl; Tue, 10 Dec 2019 03:40:36 -0800 (PST) X-Google-Smtp-Source: APXvYqysfFaJLUDSXlv639LHxOeq63/xFavF9DfJj87jbU6zLRcIug63kRrQjW5bFa8tuwqwkj1f X-Received: by 2002:a05:6808:7d9:: with SMTP id f25mr3416077oij.139.1575978036550; Tue, 10 Dec 2019 03:40:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575978036; cv=none; d=google.com; s=arc-20160816; b=Hksumacb3CuzLXJYTGeXlWx9HxJKGb5z76+s9+pjg6oQ3pE2J9rYAFX8UdP2PtrMty R9U1mIGF5C6GfG5bm33q9Di7jExFvY1nD04jdebANJU2knEW0D0dezAx4VAA3bHFdOBx NZzRRgPjeIeOBJyUccIs/9pXOULj497XjuL6MnzbAiY1X+zPA4vhty4/OrbFju57iqpY SBa1EMgVzJZ7n4Cq1VXPVQGlY5hmgn4aXFx71HgY9aUlCvmVDHueOkUIUDzvsVLXALnL 5Ss0pr83ImnsG1ajGtpVtFl4oP6qtTW0phrmzM4g0Kxo5ry7mz8PnpSIUoKBaUBgt8pk dvAg== 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 :message-id:date:subject:cc:to:from; bh=eZNh4wJZKItTijN7b21HY0LHSvrpQd4qo9HGr6Bov0E=; b=dbdtYEnJJwuj9ViOEGbgvOQHGdw05nsFiXeIiNkY4dMDZQ1VEbSHp7x/GtTrcFvQWh dldag+7OghH6892JVEdOXWus3Uu33t/YnENCMfqkw4/niZ7bzYVMQ5+9GRtgYE2/oJko BJgYX1aZIOoN7MX0L+3wiXaZimiaAj1pPvBR+aGFTjcYSGe66yUHeBqgSDF68ip1gEmH DuxWgem0oCFXUxmvOWOPKlvCq4gqyUPqGjHOt5QxQwP7BnK/uqTxz8LHgAVjyDtrAWba ss+CMxRqBOP7oBO6ObHFxhtoU4HIMGrgcJiVAiWhidu2eujqM4jN9m9aIl7eZkDA4egh FThQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si1842162otq.144.2019.12.10.03.40.24; Tue, 10 Dec 2019 03:40:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727332AbfLJLhu (ORCPT + 99 others); Tue, 10 Dec 2019 06:37:50 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:36585 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbfLJLhu (ORCPT ); Tue, 10 Dec 2019 06:37:50 -0500 Received: by mail-lf1-f67.google.com with SMTP id n12so13449726lfe.3; Tue, 10 Dec 2019 03:37:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eZNh4wJZKItTijN7b21HY0LHSvrpQd4qo9HGr6Bov0E=; b=opQkfcEyqSy+csA1rofEkp47kBDF+RS+7SAIVI79+qe5WO8ojUs0ORHYwePDZDsOzQ ZDedP4lG/VtxU6JXvO1HZkQVErAI3YmzE33X4v7E2H/vFW058hQ+9LxPgkQjywiTBV5C 9UcgjnI8FPWrNiGEfN0z/4K8ndKzt/4hhpDWclwPAZH+0CXpxL4yQv9Q77lrz9DFboUF +26NiMEFgCiGfXs90/R1KbedPKFJJb+1TrHSHhc5/MwVVSZsufH1xeU2VtRLZVVmcbFl DSuXEKwVHZ6AO6yo1MAOBs/X0G8KXAEvIWN5vTlr1U7176qEjL98wH5uvn5i6w9Wht73 sKbQ== X-Gm-Message-State: APjAAAUpKN5ZGiVKyFLM9pbbDqg+u8FV+YQ99RN3yL03KV8P67g1P4nj EcOeqg3HD30tdPruYmQwNZM= X-Received: by 2002:a19:f514:: with SMTP id j20mr17098761lfb.31.1575977868238; Tue, 10 Dec 2019 03:37:48 -0800 (PST) Received: from xi.terra (c-14b8e655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.184.20]) by smtp.gmail.com with ESMTPSA id q27sm1628548ljc.65.2019.12.10.03.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 03:37:47 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.92.3) (envelope-from ) id 1iedpt-00013f-Mb; Tue, 10 Dec 2019 12:37:49 +0100 From: Johan Hovold To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/7] Input: fix USB alsetting bugs Date: Tue, 10 Dec 2019 12:37:30 +0100 Message-Id: <20191210113737.4016-1-johan@kernel.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We had quite a few driver using the first alternate setting instead of the current one when doing descriptor sanity checks. This is mostly an issue on kernels with panic_on_warn set due to a WARN() in usb_submit_urn(). Since we've started backporting such fixes (e.g. as reported by syzbot), I've marked these for stable as well. Included are also a couple of related clean ups to prevent future issues. Johan Johan Hovold (7): Input: pegasus_notetaker: fix endpoint sanity check Input: aiptek: fix endpoint sanity check Input: aiptek: use descriptors of current altsetting Input: gtco: fix endpoint sanity check Input: gtco: fix extra-descriptor debug message Input: gtco: drop redundant variable reinit Input: sur40: fix interface sanity checks drivers/input/tablet/aiptek.c | 8 ++++---- drivers/input/tablet/gtco.c | 13 ++++--------- drivers/input/tablet/pegasus_notetaker.c | 2 +- drivers/input/touchscreen/sur40.c | 2 +- 4 files changed, 10 insertions(+), 15 deletions(-) -- 2.24.0