From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) (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 D9D82367280 for ; Sun, 31 May 2026 11:05:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780225504; cv=none; b=psBcSeZWzibbE4L4XFtHYVoBy6vz3+7RMcNlEzHEhGRBKUAzGY8sxqWZc4B0v9Ojj9UWFYLluh5bA8yM1qJlSaERy/xD089shhvGyQlB0GZ8lo2NUeur0Z24eKRxFaOFWiR8iWpRVGlUXQrflIe3cjnuI+spjzlDtBiI/sOC5OY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780225504; c=relaxed/simple; bh=TWn16cFp8QT+yFGRHTEANh6qGU0TP8JSqT3Kx1CjQyg=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=oE8DkvQUelpMLICHEh2tZjQL5lfoU+utvojCW8ivfD+5R6ZNa72rRBKDpWSifkbA3lOn7G4cHmdRzujTNI4PVG8QQlKXARlmXutgN+3O/JCgq+0gxbTXKuH2NCOav1a2Sy6RBbi68jjG84ja6AjfXld5Jobc0g+3w+WPfJqMheU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.210.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f69.google.com with SMTP id 46e09a7af769-7e5fc2c387eso11354026a34.2 for ; Sun, 31 May 2026 04:05:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780225502; x=1780830302; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=46HRoo1sleHU1EMYySlDj/rCJN6ueg1VuzOnByiI9k8=; b=eskPnp+wBESIdesjCxrpBvktBi8Fl08DAxtgq6JgvAeyAJ0Vtag41i9CdFJX3GQWrl gKtetm9YKnVWOXndOmE/tH2DnA7KdDsxZNssHfxy1OqXAKKSDmESOy54TzEkq3rSTPGf cITLZLqFg753XSE/ThQpZ7a4V20Ea0b5GRte+FcPIsuMPMpSD1fC1hrtaToZya6kN0lo GZ54DUF4+WDy0gkPYbGSskTuwq3xw2Ida/rA5I/4XZUkK7fBa1O8zX8wBG5dRiIr/UJn RE08/fuVXwsL5nvL+s95UVyp97bGwDHCYMD36CgKBzxq1tH8MNZ5ggLJiUGVHSfiNavv YaPw== X-Forwarded-Encrypted: i=1; AFNElJ+MQqPG1/pZorgnkPe2dVLUEK0oFgdA88mkAWc0NsFkhX0e3k37w49/FdZ0pCrOlT9+W8Z/cmVVcBRxAe8=@vger.kernel.org X-Gm-Message-State: AOJu0YwndrRpahTCQjisq4Uvp0/mFONUhTLbUg5LM6b5/wODy87mFxD4 tZ1dOgbt6qSgOboM+DMge/cjQTuBe4vW1X297lD78f7tcI6TijLyT0d38duV1mLQLae72Ynj5Xz pTpgKFjHeYx1i2T0ihhx8pK4eYl/MbkTjgENx4mkQrlaj1ecVSOLW66e/PXk= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:2018:b0:69d:ff0f:bf00 with SMTP id 006d021491bc7-69e105abb6cmr3298915eaf.49.1780225501888; Sun, 31 May 2026 04:05:01 -0700 (PDT) Date: Sun, 31 May 2026 04:05:01 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a1c15dd.323e8352.141b09.0006.GAE@google.com> Subject: Re: Test patch for devlink warning From: syzbot To: kbreddy.rpbc@gmail.com Cc: kbreddy.rpbc@gmail.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git This crash does not have a reproducer. I cannot test it. > e7e28506af98 > > From e997d178d3a8d58d3d5fe9e837f2814bd2252e58 Mon Sep 17 00:00:00 2001 > From: Bharath Reddy > Date: Sun, 31 May 2026 16:16:30 +0530 > Subject: [PATCH] driver core: Fix unregistered class iterations in fw_devlink > > Add a check to verify devlink_class is registered before iterating over > its devices in both fw_devlink_drivers_done() and fw_devlink_probing_done(). > > This prevents a warning caused by deferred probing timeouts firing before > the class is fully initialized, and proactively protects the late initcall > probing path against class registration failures. > > Reported-by: syzbot+c750936fbcad82cf6da9@syzkaller.appspotmail.com > > Signed-off-by: Bharath Reddy > --- > drivers/base/core.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/drivers/base/core.c b/drivers/base/core.c > index 4d026682944f..7c7dfecc7a2b 100644 > --- a/drivers/base/core.c > +++ b/drivers/base/core.c > @@ -1834,8 +1834,10 @@ void fw_devlink_drivers_done(void) > { > fw_devlink_drv_reg_done = true; > device_links_write_lock(); > - class_for_each_device(&devlink_class, NULL, NULL, > - fw_devlink_no_driver); > + if (class_is_registered(&devlink_class)) { > + class_for_each_device(&devlink_class, NULL, NULL, > + fw_devlink_no_driver); > + } > device_links_write_unlock(); > } > > @@ -1871,8 +1873,10 @@ void fw_devlink_probing_done(void) > LIST_HEAD(sync_list); > > device_links_write_lock(); > - class_for_each_device(&devlink_class, NULL, &sync_list, > - fw_devlink_dev_sync_state); > + if (class_is_registered(&devlink_class)) { > + class_for_each_device(&devlink_class, NULL, &sync_list, > + fw_devlink_dev_sync_state); > + } > device_links_write_unlock(); > device_links_flush_sync_list(&sync_list, NULL); > } > -- > 2.34.1