Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7632525ybc; Thu, 28 Nov 2019 21:58:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzKuwcE1cl+YhSla8uNwHwcI6FFtqqgsYI/S6fKgCcwDHvJ+WNNgkV/2prztkpaXjgyeLqE X-Received: by 2002:a50:f081:: with SMTP id v1mr42767370edl.131.1575007098979; Thu, 28 Nov 2019 21:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575007098; cv=none; d=google.com; s=arc-20160816; b=iL4Dj38A6DEOJRHXrUDZcWpW4sfukchwum3FmntHdzuvtYYInj81jLV0HXQYlJSNMv e1VD9luuJiBlndu64hJdrOM2YlCXWrMIgCUeAKrLeuHW8h8/Z+X9PL61QkvmT3bxgSpe U/29NOkl9wKU1Vi2sMzdm421xLQMvxrmKm/JUmDzN8c7ca7/JHo8RaSJUb9h4C7+cyBQ fVYqBZa5aiKG0vRqnbeiMWh9omL/ZEplCi74ttikf6BN0nhJfVlftwc3r4eGc/1oQjJo e074PVVAkpR8HTKVCyJvC1hXCm6SF0rzQgzlXE5z6waIiKTqS6EzXgmC9c5FJC/YUyxK 0h6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jmqoLt1Ipq80GEdpA7uVx5mVDtS/SHGillzYT51kWkE=; b=LvYnTf8U8YscF2misZ3WQPvcruINWeegvpu2WX/6K33PUNmjGLDFeGXGhqHCZ2I5H5 VVHgb+EoQSqAhjIFMC8REy7nYg0elNzSoaa4ZjfjpRYj3NQjrNORb1jKQGBlPT9fHB3p Nedegandg/miBgmcJhl3mkf6uCzAsNQlGJ+hcRoJHHpuoGlxfSEaGRA3gr51I3cGNENj JgwQf6y7wvXwlBULF8Bdr2UaFY4as6LavR+HzC2V9twZqaK/so2skzN2fmnizfse2zV8 5Zun2isKABkKgtQt4IRBb8+yk47dESxnvf1ojP6OTQlMRDlHe/qzz469KCfmsSePJ5YT XQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=drRBrsLJ; 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 z28si15460016edm.123.2019.11.28.21.57.54; Thu, 28 Nov 2019 21:58:18 -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=drRBrsLJ; 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 S1726804AbfK2Fyz (ORCPT + 99 others); Fri, 29 Nov 2019 00:54:55 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:37091 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbfK2Fyy (ORCPT ); Fri, 29 Nov 2019 00:54:54 -0500 Received: by mail-io1-f65.google.com with SMTP id k24so20511450ioc.4; Thu, 28 Nov 2019 21:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jmqoLt1Ipq80GEdpA7uVx5mVDtS/SHGillzYT51kWkE=; b=drRBrsLJwOsSDbcgTdjYnL5YhMtimm45cqMj6s4jIv1ZiQMoJ+n2QJ7Y4N2fpxng+k Av+QFRIqa3MGfDJvB6fXNrrtHwh/kKJkEwpY9NxTP5WdivkgkRF61Ef6lL7lkGNhzDUn mBh9Eabz7V+PMQcprEOS3wCgTBqMtOwzW53Da7vf+dbdon4HexOvCTcVAdFWAV/fyDQQ KvrRpmTc4IPAcG2Rmqyz5DUUXcMHWsyn6PctBCfMdcRQtValX9jxUzw/OogRD1nIfNKC zghJpMGqLmvnXVts6NHiYcNaN/WiKBs/svtV0BjUNRC61e+3CXOCi/kv/X5GG9ScEWIR Wlww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jmqoLt1Ipq80GEdpA7uVx5mVDtS/SHGillzYT51kWkE=; b=XdJU8TheBbhTC+up6Wx+DJOmJgBlo32F3IPJ3Jgaiq9PqdxKwBlUbYNdCUdyxKiZdq bU+Rmg18OhpttAc91ViAheUjsFePQxBiRJcPY5Nmq/++aeOdUThqILzps7YATSnYsUeS 8V+c7HRA+zmgvyVv0louhi3/1l7HPzE/gqZauhPifxUFCf/7eRLCt7mB3HCZyvmW2eT0 kc10p3y8+UXkVC2BwszKfqOaaXPuEjVj+OKY/u1oXLNiG19uVfx+hsNIcNN/s2aaMLCP jk0dh3W+vNUZ/Kt6dzr/vdVcplg+FmDs0MGqCNvqUhQK06WSgpO5iA6ucSxBpVzETqRx gZ6w== X-Gm-Message-State: APjAAAVJCs9ifF4MWHI0cvs6P+gRJydiISXO03DjK/x6AG6bcZ3qMCTt KRUlPRljM4cwcSuOM8+nExsg7TbsmzbiWfIwZ3E= X-Received: by 2002:a02:a08:: with SMTP id 8mr8538761jaw.98.1575006893958; Thu, 28 Nov 2019 21:54:53 -0800 (PST) MIME-Version: 1.0 References: <0000000000007d22100573d66078@google.com> In-Reply-To: From: Lukas Bulwahn Date: Fri, 29 Nov 2019 06:54:47 +0100 Message-ID: Subject: Re: unregister_netdevice: waiting for DEV to become free (2) To: Tetsuo Handa Cc: syzbot , YueHaibing , Jouni Hogander , Julian Anastasov , ddstreet@ieee.org, Dmitry Vyukov , Linux Kernel Mailing List , Netdev , syzkaller-bugs@googlegroups.com, Hulk Robot , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 28, 2019 at 10:56 AM Tetsuo Handa wrote: > > Hello people involved in commit a3e23f719f5c4a38 ("net-sysfs: call dev_hold if kobject_init_and_add success") > and commit b8eb718348b8fb30 ("net-sysfs: Fix reference count leak in rx|netdev_queue_add_kobject"). > > syzbot is reporting that unregister_netdevice() hangs due to underflowing > device refcount when kobject_init_and_add() failed due to -ENOMEM. > Tetsuo, would you happen to have a C reproducer program that creates the trace you reported? I could not quickly find one that by the date would fit to when we included our change on this syzbot page: https://syzkaller.appspot.com/bug?id=bae9a2236bfede42cf3d219e6bf6740c583568a4 Jouni, can you please follow up on this report. Thanks. Lukas