Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp702612imm; Sat, 26 May 2018 09:01:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKmz1QeQ0dwy72hbQZhPi5jmXPaqx3dL9FCaq5ORJLQvj6wRPFPvjKu2mb5tZrRC6tT1WSt X-Received: by 2002:a62:f551:: with SMTP id n78-v6mr1853680pfh.200.1527350519869; Sat, 26 May 2018 09:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527350519; cv=none; d=google.com; s=arc-20160816; b=eZjSu632dAh4/o7iLJQLoyJB3URwyq8aOiIKopPOfxkEDRF67LArLymEpJ60m4N1F2 qsHRCA+MAHn9PUDl20b8+eH7t0Y9CZdHcWRuVNKhLvu5jZnrSuGpdSDqNvwqRcBBy2CT /V7lR1kC3488qmq8/tls04JoO6IL2nQWz6bBE3GWlSnqz8t6fb9PNVzVzl59icoRH/c/ Ewpw0hmOQXWvi9689DWtQuYIXi+1fXS+JHJyUGRogtlxYByJW5AQICWXz62S+9NMuiLr p54QQviblWh6wpiU0/PPjD/TDXL3df2u2exl41f0D1+0ORmOwzSXSg0prkPKq4m//MyG HCEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=5kQRSBjauAeOmZsQTqnmTmgpO3fdAM0YHM2CxnkCybc=; b=RNe3GDSdp786nFegK6Xn6gY3f36v5Jh+unbZQVOwrxyuNROVzAkPSxlnBTKBpqL5em J6QUDQvKS0oAj7LwrOh7Lk0zRfc5eTWf/C9XYo4lbpmPKjHkri0JWBlSR/v7JHXcdnd/ Wd55JMSJ/hHjOprQsg6VymBX6Nd/2FYTU3MKecL48xEI25bu6oquZsZ2MmFTW+tk3wXF z9IrH/6+GWBEfN1dENBp1fPo+b7LcAL6dGIhkqVuq11du0k+q8/NRzzxP5AGiomb5hzM bebiyIYnxLgKoKxGEinjslRSwrcgAmJlYqBVQwhZdtxZa5M83253E0vp1Lz1Tfg+frY5 fD3A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si24788732plm.268.2018.05.26.09.01.44; Sat, 26 May 2018 09:01:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032112AbeEZQBQ (ORCPT + 99 others); Sat, 26 May 2018 12:01:16 -0400 Received: from spacedout.fries.net ([47.47.3.166]:56388 "EHLO SpacedOut.fries.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031989AbeEZQBO (ORCPT ); Sat, 26 May 2018 12:01:14 -0400 X-Greylist: delayed 617 seconds by postgrey-1.27 at vger.kernel.org; Sat, 26 May 2018 12:01:14 EDT Received: from SpacedOut.fries.net (ip6-localhost [IPv6:::1]) by SpacedOut.fries.net (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w4QFohIZ004443 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 26 May 2018 10:50:43 -0500 Received: (from david@localhost) by SpacedOut.fries.net (8.14.4/8.14.4/Submit) id w4QFofLc004442; Sat, 26 May 2018 10:50:41 -0500 Date: Sat, 26 May 2018 10:50:41 -0500 From: David Fries To: linux-kernel@vger.kernel.org Cc: Guennadi Liakhovetski , Laurent Pinchart , Mauro Carvalho Chehab , stable@vger.kernel.org Subject: [PATCH 0/1] media: uvc_driver: fix USB Camera ref leak denial of service Message-ID: <20180526155041.GA4126@spacedout.fries.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch in the following e-mail fixes a reference count bug, it seems to me that uvc_unregister_video is a good location to release the final reference, I find it is called once. It may sound like a lot to plug and unplug the USB camera 250 some times, but in my case "disabled by hub (EMI?), re-enabling..." kept unplugging and plugging in the device until days later it ran out of minors and I lost the video security feed. With this patch, now that the device is actually being removed other problems are showing up. Specifically the following if the camera is removed or `rmmod ehci_pci` while an application is getting video from it. It doesn't happen if the camera is not in use. How do I track that down? sysfs group 'power' not found for kobject 'event10' sysfs group 'power' not found for kobject 'input32' sysfs group 'id' not found for kobject 'input32' sysfs group 'capabilities' not found for kobject 'input32' sysfs group 'power' not found for kobject 'media0' -- David Fries