Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp553395ybl; Wed, 11 Dec 2019 03:59:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzo/sDtgMHKo3K07uaflruAHnr2dL7q4EK/94W2mzrQcpx9BPtDqBJT4R0HM0+VN7xCNisM X-Received: by 2002:aca:bb02:: with SMTP id l2mr1880432oif.60.1576065591500; Wed, 11 Dec 2019 03:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576065591; cv=none; d=google.com; s=arc-20160816; b=Z9k9ZRr4F7K70FgSXQoWiFR/rA8U7RVyFvzmWdi4uMjfCODTY5KNHUK+43kdH/L57E xOKM8IWsGsUj8ieGQTELf7PSKp2Lp8rGTs+jl66c34bQmYuOHLSIXeYV9DeoT2FJZPNy H67BqwZzYqtGfkshNcz072Fif/zaIQK89exmdKNnsw8vRHluEMDUmsRAW+K+/JNtqrpZ 08feMSmT0HzrgKR6z2SgfGi2Kag/81UPvrXimpdo//ZxmCnB3Jgb3+D8puibcP1vLl1T hlmciBa5jmwAV/lBq3Cqusw3B1twMPWXQWftX9lkbYn1hLVkzqqg2ao83pfel6WzH0Mm L/Hg== 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:thread-index :thread-topic:mime-version:subject:references:in-reply-to:message-id :cc:to:from:date:dkim-signature; bh=1MJ/fwuQR4t72zOTPK9wMDKlEy/poZs/KypX6iUojPE=; b=miN3u9gZ/Gb414JX8ZfWHgl6MP5bK5YbD8EwYKqzq6nyPsDq0wAF/4GNRCBxcxQES8 ssU/sJVycjXr5JGW0oDrNX1zxwNXlvqvlDBOx3bw013LKVHQSU84cJfo6yB3IhoGTlXO 2YCs9daV3G/IG5wTJvVtbLDUlKGEY5ReyL3F2+AQul9w3bRwIhgv46SCZ9713egYbTlN cAbb5mwiYDs85JaexHZ/T73hW12QC7m+kHUeYqDR+Xj0Ew+d5HMJPlIf7GQmrGBMY0/C lgiUZpCueCbZ/vl9MsbjeQfGt9/VHoKfow6MGBi2jM8efDjBLA3u+sJm9g5ecqE2Pwlo 0BJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="IKdKrh/U"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 25si1023002oiz.230.2019.12.11.03.59.39; Wed, 11 Dec 2019 03:59:51 -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=@redhat.com header.s=mimecast20190719 header.b="IKdKrh/U"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728989AbfLKL7L (ORCPT + 99 others); Wed, 11 Dec 2019 06:59:11 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:37382 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727365AbfLKL7L (ORCPT ); Wed, 11 Dec 2019 06:59:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576065550; 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=1MJ/fwuQR4t72zOTPK9wMDKlEy/poZs/KypX6iUojPE=; b=IKdKrh/UWy1Sc+RwHR0y9ojYKC4XJJDgtyTIQVtnu5KscOLwB9JsueOeyKcRXl168EEiD/ 5TeH+Cu4X/L7g9D50FJmubRVMVkjAnbsg7cKCGPeJYANg5RTmGLLxktc3AhWNG8ZiZR8DK RmQElv3F0ngr2xCYjyh9RiGVU/vVgcY= 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-323-2FEyLIKVOxWoD7oWFM6o2w-1; Wed, 11 Dec 2019 06:59:08 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EFBF718552A1; Wed, 11 Dec 2019 11:59:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E168263BCE; Wed, 11 Dec 2019 11:59:06 +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 D105083701; Wed, 11 Dec 2019 11:59:06 +0000 (UTC) Date: Wed, 11 Dec 2019 06:59:06 -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: <1494038413.477288.1576065546815.JavaMail.zimbra@redhat.com> In-Reply-To: <20191210113737.4016-5-johan@kernel.org> References: <20191210113737.4016-1-johan@kernel.org> <20191210113737.4016-5-johan@kernel.org> Subject: Re: [PATCH 4/7] Input: gtco: fix endpoint sanity check MIME-Version: 1.0 X-Originating-IP: [10.40.205.203, 10.4.195.10] Thread-Topic: Input: gtco: fix endpoint sanity check Thread-Index: 3V9+GHLYaSjQ6iE6ppPbHQZjaM9agA== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: 2FEyLIKVOxWoD7oWFM6o2w-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 Thanks, Johan! A fix for a bug indeed. 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:34 PM > Subject: [PATCH 4/7] Input: gtco: 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: 162f98dea487 ("Input: gtco - fix crash on detecting device without > endpoints") > Cc: stable # 4.6 > Cc: Vladis Dronov > Signed-off-by: Johan Hovold