From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C596C43603 for ; Wed, 11 Dec 2019 11:55:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E984208C3 for ; Wed, 11 Dec 2019 11:55:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gCUQ+BxW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729141AbfLKLzt (ORCPT ); Wed, 11 Dec 2019 06:55:49 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:28242 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727469AbfLKLzs (ORCPT ); Wed, 11 Dec 2019 06:55:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576065347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XwexMGmPekdr4+AxISaEIBvhb/7gR+zi4pC7R+9p3hQ=; b=gCUQ+BxW+gCE/4JWfQ7CMsGczLSXrXybGZPZpiwr02Nl9OXE9D31Mbno8lmXITIslfkUD8 ODy7gFiF414bfEKwof+ZWvTCZlpxdKm7bSXt7zBn038YCujrWF7Xuptn7um/jyMShxUsaG ILy4lXcFR+TAIkiMUqgoU5THM5PkF+c= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-276-6hO2WSIAMWeD3kkaBT-oyg-1; Wed, 11 Dec 2019 06:55:46 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DB47818543D1; Wed, 11 Dec 2019 11:55:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D1D5A5C1B5; Wed, 11 Dec 2019 11:55:44 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C366B18034E9; Wed, 11 Dec 2019 11:55:44 +0000 (UTC) Date: Wed, 11 Dec 2019 06:55:44 -0500 (EST) From: Vladis Dronov To: Johan Hovold Cc: Dmitry Torokhov , linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable Message-ID: <17522697.476689.1576065344710.JavaMail.zimbra@redhat.com> In-Reply-To: <20191210113737.4016-3-johan@kernel.org> References: <20191210113737.4016-1-johan@kernel.org> <20191210113737.4016-3-johan@kernel.org> Subject: Re: [PATCH 2/7] Input: aiptek: fix endpoint sanity check MIME-Version: 1.0 X-Originating-IP: [10.40.205.203, 10.4.195.30] Thread-Topic: Input: aiptek: fix endpoint sanity check Thread-Index: yxnpiHiLIHXEq4+MmBp4wSYn+N3S+A== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: 6hO2WSIAMWeD3kkaBT-oyg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A fix for a bug indeed, thank you Johan. Best regards, Vladis Dronov | Red Hat, Inc. | The Core Kernel | Senior Software Engineer ----- Original Message ----- > From: "Johan Hovold" > To: "Dmitry Torokhov" > Cc: linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Johan Hovold" > , "stable" , "Vladis Dronov" > Sent: Tuesday, December 10, 2019 12:37:32 PM > Subject: [PATCH 2/7] Input: aiptek: fix endpoint sanity check > > The driver was checking the number of endpoints of the first alternate > setting instead of the current one, something which could lead to the > driver binding to an invalid interface. > > This in turn could cause the driver to misbehave or trigger a WARN() in > usb_submit_urb() that kernels with panic_on_warn set would choke on. > > Fixes: 8e20cf2bce12 ("Input: aiptek - fix crash on detecting device without > endpoints") > Cc: stable # 4.4 > Cc: Vladis Dronov > Signed-off-by: Johan Hovold