Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4249962ybh; Tue, 6 Aug 2019 08:35:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUUtevpL71Pc9FxsGm6EIWWCD3/p0GnNKLoI09U5b64KgPSA5qsIX4J2XnQ8vFTU612JpH X-Received: by 2002:a17:902:a612:: with SMTP id u18mr3657232plq.181.1565105724941; Tue, 06 Aug 2019 08:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565105724; cv=none; d=google.com; s=arc-20160816; b=NwaQ7BvDIKUm4lA4QJ74MUWbneLL0rQ9fVS4ahI9h/snSqijRzceme9E41ha2t1uxS qDUfcHQrvxvC5KNnOzx1l9oy4lb6lbF+Br6TFaf7I9cRts54Z4uaLBzKNQscgBtiNlSx /UqBXn0BfVKZpAfg564zgkRPkkun9ef5TzLpWS/3OwB9yLwWPR/o3DMaZ++o/e7Lh4UI i612zG1rwrNe/AYQO8AzQxXHR8+usUFkXZKBriW13f3fLu1X9x95qZE6xGOELOlHZW+f 7fYwCiAt70yDNAM3rOWboGYGHdQ2SOxl7De/hks76/zDl9obG+kR8m2u7PgV0Fz2KxpZ fZ/g== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=/i7FJTG6UVgqUEw9GroVUapKyB5c+4frzBsVyDhmi7w=; b=Oq7Y6MrSBroKxryEUyh/S0Q/ZUTVrQUdyE7W6fyP7UTALpKTAFpX3lWxKao7K7G9hY 6BCpJS1WpG+HDuc72AT3q1FRIpaB5PXDW6gLlna/TciEoR2dskPClVrNeht2IX1GUPVm uujxfsKXOwC0EdL6utZWTJ4deTVbQzIsv5eWlPTR7rqTiat6+cQU8Tzsf2gR7Ql5XVy0 xBNCKonitRwZ6NVh8nmTYub4Dm+8CKTIZiyv1v5qqNAX/9FXm2p7SvU2jzjoZEzZ04i7 a4Xkgo/LVA6P3MiNOoFc5jo75/4nwL3ikz9fiZpMozF6bzPNaRZpSBl6LvieiY3QG1Dh 4RWw== 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 95si43606607ple.51.2019.08.06.08.35.08; Tue, 06 Aug 2019 08:35: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732037AbfHFPeW (ORCPT + 99 others); Tue, 6 Aug 2019 11:34:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:55838 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728156AbfHFPeW (ORCPT ); Tue, 6 Aug 2019 11:34:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BDDA3AFBD; Tue, 6 Aug 2019 15:34:20 +0000 (UTC) Message-ID: <1565105624.8136.32.camel@suse.com> Subject: Re: KASAN: use-after-free Read in device_release_driver_internal From: Oliver Neukum To: Alan Stern Cc: Andrey Konovalov , syzkaller-bugs , syzbot , LKML , USB list Date: Tue, 06 Aug 2019 17:33:44 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, den 06.08.2019, 10:19 -0400 schrieb Alan Stern: > In any case, I don't know if this missing "get" would cause the > problem, but it might well. Hi, upon further thought, this should be automated. Checking for refcount leaks is KASAN's job. In particular, refcounts should not * decrease in probe() * increase in disconnect() * change in case probe() fails Regards Oliver