From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 760A920896F for ; Mon, 2 Dec 2024 14:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733150777; cv=none; b=dO/xsZzFkkV/V4M8iwxHL8FlGTc82V0TUV78Fs5PtfcQX1XcvWg67WXU0+vl36hHI8baYXd+PiCmU72qJqwigmAFKfT4QyZ7zm/SAIGbzBzS24Jlcj9Hj83Ig9SqoXcX9acy8yprPdQuQNxdr+iMcp3+0uzZqNThksvLVtNI5Yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733150777; c=relaxed/simple; bh=iKl4ZZTxTItyR+ijhPG6Nd6Nb2U05AAUvoQZti77rnU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ic8SDw5CuXz1NVXUCnHyzylfCzBcaWrj3IE7mQ9gs66UkHC4tZcgvnz0PtH/tAFqxA5odN5x/pKB/jtBhdWIKMypocJJX97TCO57Jyel5tjwPHkiB2CMG81QDlgPShf1HSJ0ttWPHBwBVGgZ0nTTpDhL7YUbl1YAC2tsIkGYLec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=oMeZ9SGO; arc=none smtp.client-ip=209.85.160.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="oMeZ9SGO" Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-4668e48963eso33685851cf.1 for ; Mon, 02 Dec 2024 06:46:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1733150774; x=1733755574; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=iKl4ZZTxTItyR+ijhPG6Nd6Nb2U05AAUvoQZti77rnU=; b=oMeZ9SGOpho7Yc/q/bOnnTpdlZtktycloyGopd3BLn3kbXIFx/WBQYSJCtQFkxiL46 BxMhTxTYpPjJ+Rt/9zosLt3TGzipr0BOvOgj/w/M0X8phjkjl3WCfG5lMVw+oUn4PWw7 0DHmSi/EXEpPgii06LjmpZHdnezn/yrs2Cll6eIqyAUhPI0AEOyme7UybD5qKoIdO7mo 8z9TcaqToHv43HihbNlyAF7o/EnHeLu2w02oKjsi+TWh+EusoanJTpIDwXY5uL0NfLMr 1C9qMMP1uGBfYwRcYOAW0E+vMrU7Rokf8gGT1FcovzGoZqjrWi6ep1HROKvau+dXIqIR frjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733150774; x=1733755574; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iKl4ZZTxTItyR+ijhPG6Nd6Nb2U05AAUvoQZti77rnU=; b=W6FdyazUBNoR5x+/AW1byHQ74NE7iD9p0il+u7qgywA+2B3ZUxELfBlab0nQOb+9VY ZGL+ugnliWLStSX31e2iZAwyZq8H68d1WChPpfd4No8Ay4VZXw5CKUHVSzlpAwRnuS2l eGVmJ4YnEaET1zu9SDof956d8fRyA2M6fZEfkZlIgsxZ89SbzFeN6m05IS+MBGygykt4 94C3g6qNRfoOf7ZKxygP4KlZIJEbDNqFHz1DmRQbgOD9goY7gHO3qW7yVAqhxPW6oYuI cDWjjIiQa5EcduKe9lM0YPp7PTlyXnC6ugDuSS+j5vDp7Ul2Pyb7yTGJ8Oo1FyfoWXcw Mw4g== X-Forwarded-Encrypted: i=1; AJvYcCXo7lT4jtXvFg+YiCeOiAx3rmKBsebqIrw2hiSNK+LGlDRHEwt3DRMZyrzZdBNQGZpOSU7bJlxdoT8uSHs=@vger.kernel.org X-Gm-Message-State: AOJu0Yx6qmK7wVZyFQ8DfgFWacIQHEFod1IOUOpTo9s3554Vh9CR8yoU yKGj7Yg4tIkZHW3/5uAgRUCYc09wqcbrU7digoH61wk9VJEUT486Pa+9Q5GJsnY= X-Gm-Gg: ASbGnctGZfUDFa2lm/bvcOrNK+Gz4yw+s71WRmbRICzY6z5Nh0mRNvuoexd6zaIZaAo j82LqY+1QgznnCgJrsXzFLe4dG81hpaFB1XfityqyRLf3gw05g3at1lWL7HNRvAvkLRGspds3A+ Dt/rxVNH6/+LK4vhwshy83SwvkwnFla3s0P2OU4aCPoBnGSaG2HKAuckECt5sShbeYX9rNei0yR 6JzG2FeZmPXjQVFPjxVDLvd/XdCG3ptPBpHMHcgNwFYD2S5hnL4PWM9YKmY0m+MmhY/JZUyZJud +aO7o9JtL2EDMpAy/vSrkQ8= X-Google-Smtp-Source: AGHT+IEuXOONcnxVlr1zPCd80wZ0Z7aTwqF/Kslui/E/Z0xyTI3miI7kqgDU/U2h29/UE6B6MUQmBQ== X-Received: by 2002:ac8:5a49:0:b0:466:a9c2:640 with SMTP id d75a77b69052e-466b3656462mr355695531cf.44.1733150774181; Mon, 02 Dec 2024 06:46:14 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-128-5.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.128.5]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-466c4067277sm49044111cf.29.2024.12.02.06.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 06:46:12 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1tI7gi-00000007E6x-16B1; Mon, 02 Dec 2024 10:46:12 -0400 Date: Mon, 2 Dec 2024 10:46:12 -0400 From: Jason Gunthorpe To: Zhu Yanjun Cc: syzbot , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] Monthly rdma report (Nov 2024) Message-ID: <20241202144612.GE773835@ziepe.ca> References: <67498180.050a0220.253251.00a9.GAE@google.com> <4b5cbf38-ce6b-48ee-aa50-e23a64ba7279@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b5cbf38-ce6b-48ee-aa50-e23a64ba7279@linux.dev> On Fri, Nov 29, 2024 at 12:30:37PM +0100, Zhu Yanjun wrote: > When pd pool is not empty, it seems that at least one pd is not removed when > rdma link is removed. The caller should check the application to remove this > pd before a rdma link is removed. The bug is that this somehow happened, I think. There should be refcounts preventing removal of an ib device while a client is attached Or, perhaps more likely, it is a pd leak on an error path. Jason