Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1091353pxb; Wed, 29 Sep 2021 17:03:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkILkkUIcCInCr/cfsfk48R0nrBqOxk6uV92IYe9aR2TG384osBIiWeJPbx5/k+QkqD3x2 X-Received: by 2002:a17:902:bb95:b0:13e:6924:30e5 with SMTP id m21-20020a170902bb9500b0013e692430e5mr1224906pls.20.1632960219268; Wed, 29 Sep 2021 17:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632960219; cv=none; d=google.com; s=arc-20160816; b=My70I16FjN7m7oQm3kgxFGUsKvlfyWrhXd3hi6CpQlKYfmlc+kI6nGucvOuwjec5xC R1WYIC8aj7rVeBkrYW0x/OfbTrjZj2TcjKzmETVx6mSXlk5swW09Rcg/oysD56Qs58Z4 fiJfMJWz08Drv3mJUfC+upbZMPcB7l64mFTKX9VUpAfhJsLhyWZaOUSU4bcSR9KZ8XDG 3rqyJfFqexrZi8JUzQJlgOJA1uoAQytj7h1AYTCIC+lHtCt9dStj1zeWGypnDESbZq1I qfTcToIL9+1ULsZk0iG3liZGtma+szdd9/sr413jPW7fCTsVv0/pTPGgXXs1TWU314sF PHqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=t5Ud1HoWc2AE8fPw74lPEZmDPu+L87G/nd7k7thGgCM=; b=NasZ0VuqSQOjFCUZg2ZL1iBeNbiRZeMqdAr7MA9UBVw5ivgwW1t40XgmZVTHYYifhx miRWyTkpV3r/Uja8Xu0AuXZB+wKbf3yTSrVTcxGgNSMXUjZ3NeNQVFOH+pAC/HCbjjby rtauZtO522hJsdaniGiJbuW4fP9BKflqesTVv/Hj7Y0W6xMpVzCq6kXQxIpnZtE+4xVL kY2LFXHrjQo5CzKAX7YcbUO4oW2wkrahmQwOHo62qXoAiw1uqR4LIpcqlRN/uROo9ab1 T95S+/HEkvdSChUQECLhT0Bk6woQgjK1FrAqku4QyPPR+G393a03F2GeDu3XQghDcfVI lYsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F6Uld0kl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si1444339pgk.438.2021.09.29.17.03.05; Wed, 29 Sep 2021 17:03:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F6Uld0kl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347718AbhI2XuX (ORCPT + 99 others); Wed, 29 Sep 2021 19:50:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:56268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347701AbhI2XuX (ORCPT ); Wed, 29 Sep 2021 19:50:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0662261406; Wed, 29 Sep 2021 23:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632959321; bh=6LGCRh2a54DE+4CW/D1vYpAnD2PLO1BmCnkStylPMnM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F6Uld0klJBeQAccFUpZNUUa4ictS2UsaIv8lXRNjCnEJtOynhTiY7g9kIzSy52Bo5 ZU6CXTs4ZvC7pxUMH7YwKzsrbX46NVY55FmNsul/ybAuezX4D4tAQ/pwqhGCvUnQ0l Hvv8LW6dJxy6YiiAyhKQxymRVBhPvnBCuwI1//Ie2t+4nTEMsniBkwtIKCEtjof47E Ifo9Et1EoyDehvM2A39rasM+zDniK6fxPuVJvf+LCA7NfaHu2jMI0qoUq/pWh+XEfM 7nC0dCgjbdrZpk1gawwdLGUPqLRtmxVmgnh2JtnlxwpDwSjrtJoSGvgSdC64AzTn/G 8EtD4RqK9VzTQ== Date: Wed, 29 Sep 2021 16:48:40 -0700 From: Jakub Kicinski To: Pavel Skripkin Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, buytenh@marvell.com, afleming@freescale.com, dan.carpenter@oracle.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+398e7dc692ddbbb4cfec@syzkaller.appspotmail.com Subject: Re: [PATCH v2 2/2] phy: mdio: fix memory leak Message-ID: <20210929164840.76afdec8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <55e9785e2ae2eae03c4af850a07e3297c5a0b784.1632861239.git.paskripkin@gmail.com> References: <2324212c8d0a713eba0aae3c25635b3ca5c5243f.1632861239.git.paskripkin@gmail.com> <55e9785e2ae2eae03c4af850a07e3297c5a0b784.1632861239.git.paskripkin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Sep 2021 23:40:15 +0300 Pavel Skripkin wrote: > + /* We need to set state to MDIOBUS_UNREGISTERED to correctly realese > + * the device in mdiobus_free() > + * > + * State will be updated later in this function in case of success > + */ > + bus->state == MDIOBUS_UNREGISTERED; IDK how syzbot has tested it but clearly we should blindly depend on that. s/==/=/ Compiler would have told you this.