Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2825273ybi; Mon, 1 Jul 2019 20:08:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaR0w6TY2J+jTwiUiYh+O37CYjxBNT09ivE6xPUkHFIpn274VapPhE14Ay1sxHg1rxdCj/ X-Received: by 2002:a17:902:e011:: with SMTP id ca17mr33237860plb.328.1562036918568; Mon, 01 Jul 2019 20:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562036918; cv=none; d=google.com; s=arc-20160816; b=p2HUNVfm8KmQSB8ypnhU+SkHLX1CCAX8D11wsmrQY9Sd8SnWyqM6wapjtCeKGfw9GA JzYL++vVO3hxSExuG+s64W1FH3sHXuSKkNSVX2QW9W3pukr1gs0A4H5neyT7mOrCyti+ 3Lad8o5Kg6HoRoalYg1AEmAIGTEz6A8ijrAXlKXzoHKi5F/O478f7Rk+LnBGJ7zpxvkv jt4VgacXe4I9QTcimfxM1LVb+a2IwNKVq3adDSijs1ns9v9R/2+qXx60f+wHwIakhZr7 ZzkJgoWq0L9sA2HO2G3T6s0KVWSYtVqnPed9NWVgwAL4/G4nWqlPJYwRw4o3BrVYfbu5 osXg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Fs6kSj1lNlmKFFkvCv71QG06kU56DRX1KEDeflpwLYI=; b=yZn+HMRig9CCJ7fs/WFI/mGOppwGzOfjyKoaiaKNdJ3CS+4IqS2QMrmTHn03GQEq17 AU8JvF/tvdesvuf7KzWCv/5WnnoNNmJ2FRaka8Lz2BhfDy/h4g1yg7NSxlwWfhhDf0Jv KP968iNO5eE8EGA2GX5M29MTCf8Yi5eH5B/GM+ROjd7P0jqKisbT3/MO9p3yh/XiRyv/ 6sz8OpAPARxxB6OhRDKSDEA2jXin0WKwO+qaah3NqTQuyiaRTuSUhvCLFzhn3wzmpbSW VYBzqivtIXo96LfvI7X37FwJHqGUC3cq7o/UeYEZ52J0O/tTOLPqlaFxjbUf5eTVz1zH ++Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Czw/6PNR"; 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 7si10772075pfh.38.2019.07.01.20.08.21; Mon, 01 Jul 2019 20:08:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Czw/6PNR"; 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 S1726830AbfGBDIB (ORCPT + 99 others); Mon, 1 Jul 2019 23:08:01 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:43393 "EHLO mail-qt1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbfGBDIA (ORCPT ); Mon, 1 Jul 2019 23:08:00 -0400 Received: by mail-qt1-f179.google.com with SMTP id w17so16947007qto.10 for ; Mon, 01 Jul 2019 20:08:00 -0700 (PDT) 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:content-transfer-encoding; bh=Fs6kSj1lNlmKFFkvCv71QG06kU56DRX1KEDeflpwLYI=; b=Czw/6PNRt00suUoSDwDgGLWSmebXwYGLWPcd80ETgUef3ImGJ3OH8VCl4CqcSE1ZkX 3RWzHUj4VqjzvcVQ1JZq1/fGigmNZcwB2e5iQqcTLQeC26EoagVJ2KrgfBYx8GvfTrkz Go+dybA6beOjC8SOTAR3ACuSOa77RwaOyZ43goEGTMZki9bc8N+AsiNxUJrjIT5t9bdK qI+dfU3FFopktlg3WhVqvWxsPEdcIPh9uVwb/aA6Ndh0Xi/t2KepGU/qI7Q84jH/NUgV DIf1Dn5VJORFYu3+yPFGRxkoHSMe9M44BZaRpqRhZfRPRZbYib0L0UmVslNLmei5F1RP sq1A== 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:content-transfer-encoding; bh=Fs6kSj1lNlmKFFkvCv71QG06kU56DRX1KEDeflpwLYI=; b=WfxRjy2RxFMFLYXrVCv9U6acbz18ykEl63r1MGqYj4hOmFDRXWvxBjz13fVYfAY20X m95x1s0n2mggFSirkHAhoGou4hUTR7cNEw3miEuDhC0j+Wapq0YSQAigsNuXLl3a/hdE ELwvjUB7/4TxhWAIiCCjak6yxTpPe7XpPCjfQKb+gmuiuVbn0PBQhgCetzT3glI9Yqxg N8r0Z99Ufe8o79jmt+XInOk0GFOFaioKfin8t8RcAYqqHeshSU/jJpE/6W1kO0wDOJKd oESt3JCcELHP2YZ3PhrVcAw2kLLwWoc+lE5qyxx7UdqPFfSLwvsegq+ZY6GSt+lwOb7g PtIw== X-Gm-Message-State: APjAAAVEBUswh8UgkRQL1kPife7Ph5pVSG7g12+W/On9BG6xMBUG6jqA yRzzTRos2cSinnBKXOC+dFI8FjX5oNfCw/fZBkA= X-Received: by 2002:ac8:2b90:: with SMTP id m16mr22999292qtm.384.1562036880016; Mon, 01 Jul 2019 20:08:00 -0700 (PDT) MIME-Version: 1.0 References: <000000000000106b11058ca6f7f2@google.com> <38d777292f5335b5ea5f8fd7c0b58c514dda525a.camel@kernel.crashing.org> In-Reply-To: <38d777292f5335b5ea5f8fd7c0b58c514dda525a.camel@kernel.crashing.org> From: Muchun Song Date: Tue, 2 Jul 2019 11:07:48 +0800 Message-ID: Subject: Re: WARNING: refcount bug in kobject_add_internal To: Benjamin Herrenschmidt Cc: Greg Kroah-Hartman , linux-kernel , "Rafael J. Wysocki" , syzkaller-bugs@googlegroups.com, torvalds@linux-foundation.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ben, Benjamin Herrenschmidt =E4=BA=8E2019=E5=B9=B47= =E6=9C=882=E6=97=A5=E5=91=A8=E4=BA=8C =E4=B8=8A=E5=8D=8810:44=E5=86=99=E9= =81=93=EF=BC=9A > > Munchun, is this what your patch fixes ? > Yes, this is what my patch fixes. The patchs can reference to: [PATCH v1 OPT1] driver core: Fix use-after-free and double free on glue directory [PATCH v4 OPT2] driver core: Fix use-after-free and double free on glue directory And waiting for Greg chose which solution he prefered. Yours, Muchun