Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1071431oof; Tue, 25 Sep 2018 07:56:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV60oKIO2/0KRs141Cv3ediaRaPKjvxBTaO8AslJJq7VzWfaX/ejZiUnRF30gjSJ3pYiD0JI1 X-Received: by 2002:a63:447:: with SMTP id 68-v6mr1439624pge.409.1537887384326; Tue, 25 Sep 2018 07:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537887384; cv=none; d=google.com; s=arc-20160816; b=VI97eWHTt4wkbLY/QdouLbbG3+A609C7sndKQ0Y8rK1AU4ky4gcYYakmaPhLb2FoXc hLj/9TzA30JSkkV/Kck4hmbyG+HGgyfg81F4R7z9rsFcgDqjU9Rq5kU+JfnCY1Rs0hxO q92ocGfRuA4x7NW7VjsuC7DhuY46VcMqu6cLuP3QLIpnw49YPoBhbEX9rHiOb+wLZVcM tCRGqUwvRSEfTw7ytBX+3IImqc6Ehpg/fASm+oaVx/8N6uA5hdvChHwUunw3f9mIUdnU l3y5fz4es2s+dwiHUdYBjhCkBdWG/qoGGFSZFfFJg1pikWngRtLlp7XZaHzAUDFwWR8P COYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=N0DnlLYWNL2pY9D+UbWJt10Rx5eSsUkmKY9YUabxSvI=; b=ydyJR1GtDbPYWntIyj2QcMC1oKTkseOjxDuvTE+gkbRci6Nsjq4l++KFD3QqCI6fkr oQCY9d0m/Xt52uSzR6atxyeBqs+PQdUZCq9B26at4QKgpy/3rbjqMyicstTzo9bE4OkJ gTxbGC9kB6jQuG3iFIa7S0E189gIx1C4P6DE+aIo/frrE3ukQad7Jh0Jc+CF9zcOrNOW 4r+vQXgmSCTZy3S5IXzWjDWwcW5j7OGc2erWVUZp7weEM22+gPasK/A+c9AiMjH5aKlb mr7nKQOe0UghwAWPI+DuEB0TC2flzX+JkhFzAvflGIBjJMCNcxZ6b2cZMdfLsTxqkGFu FU8Q== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a186-v6si2482995pge.408.2018.09.25.07.56.08; Tue, 25 Sep 2018 07:56:24 -0700 (PDT) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729366AbeIYVDr (ORCPT + 99 others); Tue, 25 Sep 2018 17:03:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43632 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729224AbeIYVDq (ORCPT ); Tue, 25 Sep 2018 17:03:46 -0400 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B99F136A5E6; Tue, 25 Sep 2018 14:55:54 +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 804AE30A606B; Tue, 25 Sep 2018 14:55:54 +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 664991808872; Tue, 25 Sep 2018 14:55:54 +0000 (UTC) Date: Tue, 25 Sep 2018 10:55:54 -0400 (EDT) From: Vladis Dronov To: Alan Stern Cc: Greg Kroah-Hartman , Oliver Neukum , Hans de Goede , syzkaller@googlegroups.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable Message-ID: <13984886.16016319.1537887354102.JavaMail.zimbra@redhat.com> In-Reply-To: References: Subject: Re: [PATCH] usb: usbfs: fix crash in check_ctrlrecip()->usb_find_alt_setting() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.5.28, 10.4.195.22] Thread-Topic: usbfs: fix crash in check_ctrlrecip()->usb_find_alt_setting() Thread-Index: N1pN1orxDvlqdu0l2DHznH0UzA/W0g== X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 25 Sep 2018 14:55:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > What reason is there for having two different fixes for the same bug? > This one isn't going to get into any mainline trees that don't already > have c9a4cb204e9e. I believe this is the right thing to do, so usb_find_alt_setting() is not called with a known-bad argument. Honestly, I would change "if (!config)" in usb_find_alt_setting() to "BUG_ON(!config)" so we know when its callers do smth wrong and go fix callers. Unfortunately, I understand this hardly will be accepted. Best regards, Vladis Dronov | Red Hat, Inc. | Product Security Engineer