Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5306519ybl; Tue, 4 Feb 2020 11:26:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzzLbjhzWKCm0Iry5AM1ogSnPqEyQt8ken755D/zCFBzQQSZmOua6AFpO9PloWFjRzZ0gP/ X-Received: by 2002:a9d:65cf:: with SMTP id z15mr24087274oth.238.1580844401635; Tue, 04 Feb 2020 11:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580844401; cv=none; d=google.com; s=arc-20160816; b=HKUfTPTrw4ApuN+f3qkxgKPv7MqNg8C+kMDDg5ooknznsPqXgxyqwwLJjDyRVM0BXA itlHSCrDNC8CT9F3Ml3AI6N+yRvM3NhKj5ozo6nxjlnFFMi7g/5ykZ1GKs+KWCxpSmUp 7bPFkJj9eT3y3BIAWPsYUdDIMjS/jFgN9zw6qtFg6D5hIbr3O60XTLb6gc+2h4H+MbuY v9NhgZemXGbQInpSa5Kx8PNycSTNXcRo3kVsbdn80T7sOlLXCqzd3a7jh2mNLx+jS6f7 SxUd1rfxtn57h0VjCE+nWQy86C79Kd0xwIPllf/IexwLi3Yq3NLkzQi1lj41RdPpCvPr quQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=a5Iw4+7GJ6slzzgm0iCqz2HJ63btbwexeYhU6/Y4dIs=; b=QyNcTvySglk1er/tVJFZgD6Cxo7y4EKMbUWwWmg49ReVu7OJRHKt6hdev8ZdWcd9bv B9wYCFhmojOsAokDHCquPEP86Y1cku+lwRSVPd4kXZQc0DIZVZ/z8fBThYzZtCTz3yOP MCeGckQCYY3XrV8xMSK3ymkQStMScs5Sn7cPB+IDY+P6Io78EXlmnOt2HNTylcUVVsuM S87AMnW+KKA1cakLCq04NRekG+AaYkFI74LCExMO0HMvprhvYptzY+xOY9AaNa9WjZew UlysAWjrfVv4QPyOtFejgXkakyK/EmXtsc3fpBheiCRgxDshXfK+tpYlSJPWKyBhZXN8 9vfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ni7Aww9W; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si11112859oik.171.2020.02.04.11.26.16; Tue, 04 Feb 2020 11:26:41 -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=@gmail.com header.s=20161025 header.b=ni7Aww9W; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727482AbgBDTYi (ORCPT + 99 others); Tue, 4 Feb 2020 14:24:38 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43875 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbgBDTYi (ORCPT ); Tue, 4 Feb 2020 14:24:38 -0500 Received: by mail-pg1-f194.google.com with SMTP id u131so10137357pgc.10; Tue, 04 Feb 2020 11:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=a5Iw4+7GJ6slzzgm0iCqz2HJ63btbwexeYhU6/Y4dIs=; b=ni7Aww9WoUSs0GKXVt/SoJpWmFbM6lLHH7xWWJFszpNJ36iL47jCP2G4/ebJdwec5w Mgl3NWNH3cF+WPgRAcEGgLjtlDF+4quyk3LbK7QdJsZLJAZk7yt3fJVFV6IcUQrYBwM4 CrEEVIG0iMRUs+8mSAg9p0DhDq01pGqppy6edxKNEuqkQ6XdeKBuRBJNK7bU6JNGopIM VUideZrJ23HI4cy9ZWH4jwjHiDGvH2tNleIKPeD1IHuhbY2DbS+nSnXn7UHGietDXl6K mCLBDbKGCG+I3UbrCkg7wiDPIRt37uk9H2F4ITdKMs7bho3uOO50Ly9dRo/hr3Q/obrb WsCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=a5Iw4+7GJ6slzzgm0iCqz2HJ63btbwexeYhU6/Y4dIs=; b=d/VbbW2Wsp+cb7awkKvd98CQE+xasCYcbHF4aPY5l6w+eGqETa56VSDKt4wx9Pc4h8 Pfohm/4GtyYU03KaEeZ7DBMkkjZZfHCs9Zm2StmBMIFBLPrIwzeXvi4KYVzPgdo/jTP6 ARy5P8RSMAA3a+1k9oM9b//lc6cVZbOd4PXy5KehLAx7AwNrhhig/e/ku0AH58FiyQBU qzT7oYDtG/kzd6NADUw6Q38v/afbMtGMVtKdB3XNwzma/x+GK91fZ02FXUkGUoiGpv/5 CQB6VxInWvwg1+YZwadEL5EjMtcUKUwp3oPUV9EONg23tZlnqWmYKo/2cCdwXt3A4yqW Y9AA== X-Gm-Message-State: APjAAAWKl1qVnOJipY+J7sQNgdm7/gjnlODMWVFctqEGwiEOC7v870TB ojjDGER6R4menbquNJUMbtE= X-Received: by 2002:a62:1b07:: with SMTP id b7mr32923122pfb.186.1580844277137; Tue, 04 Feb 2020 11:24:37 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id fh24sm4333677pjb.24.2020.02.04.11.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 11:24:36 -0800 (PST) Date: Tue, 4 Feb 2020 11:24:34 -0800 From: Dmitry Torokhov To: Johan Hovold Cc: Greg KH , stable@vger.kernel.org, linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: Re: [PATCH 1/7] Input: pegasus_notetaker: fix endpoint sanity check Message-ID: <20200204192434.GH184237@dtor-ws> References: <20191210113737.4016-1-johan@kernel.org> <20191210113737.4016-2-johan@kernel.org> <20200204082441.GD26725@localhost> <20200204100232.GB1088789@kroah.com> <20200204101435.GH26725@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200204101435.GH26725@localhost> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 04, 2020 at 11:14:35AM +0100, Johan Hovold wrote: > On Tue, Feb 04, 2020 at 10:02:32AM +0000, Greg Kroah-Hartman wrote: > > On Tue, Feb 04, 2020 at 09:24:41AM +0100, Johan Hovold wrote: > > > On Tue, Dec 10, 2019 at 12:37:31PM +0100, Johan Hovold wrote: > > > > The driver was checking the number of endpoints of the first alternate > > > > setting instead of the current one, something which could be used by a > > > > malicious device (or USB descriptor fuzzer) to trigger a NULL-pointer > > > > dereference. > > > > > > > > Fixes: 1afca2b66aac ("Input: add Pegasus Notetaker tablet driver") > > > > Cc: stable # 4.8 > > > > Cc: Martin Kepplinger > > > > Signed-off-by: Johan Hovold > > > > > > Looks like the stable tag was removed when this one was applied, and > > > similar for patches 2, 4 and 7 of this series (commits 3111491fca4f, > > > a8eeb74df5a6, 6b32391ed675 upstream). > > > > > > While the last three are mostly an issue for the syzbot fuzzer, we have > > > started backporting those as well. > > > > > > This one (bcfcb7f9b480) is more clear cut as it can be used to trigger a > > > NULL-deref. > > > > > > I only noticed because Sasha picked up one of the other patches in the > > > series which was never intended for stable. > > > > Did I end up catching all of these properly? I've had to expand my > > search for some patches like this that do not explicitly have the cc: > > stable mark on them as not all subsystems do this well (if at all.) > > No, sorry, should have been more clear on that point; these four were > never picked up for stable it seems. > > I was a bit surprised to see the stable-tags be removed from the > original submissions here, even if I know the net-maintainers do this > routinely, and any maintainer can of course override a submitters > judgement. Sorry, dropping stable tags was not intentional. I was trying to improve my tooling and drop the CC noise from the changelogs, but my script got too eager and removed "Cc: stable" as well. I believe my tool should be fixed now and it should not happen again. Thanks. -- Dmitry