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 087BA3570C5 for ; Mon, 19 Jan 2026 13:20:21 +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=1768828824; cv=none; b=I/t2BgM1DzFtgO/LW5wu4b471TPYMVDZvEuagRXYmHoCa0NApYcqR5N6GbaabY8XalwTOYi23ZvtgPvDBqPBUID3DGed1bQ+Jk7WiH9ny/jC5BAamXVKvsqIlipQ754WJnFEpyTEcqdAuQho/LRImKDBqD/zzeLW6g6wDBMifFU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768828824; c=relaxed/simple; bh=5bUGCWq+LnV/X27cmP/pjgH1GtLK6QHm3ALbW/6FBDU=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=idPtRHfy+lvC1GsEufFhZu2x24fYu0Y+AW+Vzog9Ma3asesF7LZuJXIATZBfVf8vvCHNQRbazwb2Ae5vHR+alSFLUOuXPzho1KwnScOXYrD2wqb/o8C6GzSRTtRvEWjgEGPK8Z8p7qwA9QY3jErtjVDjDBNrfBBdVOWkyd+bVN8= 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-7cfcc8890d2so11020146a34.0 for ; Mon, 19 Jan 2026 05:20:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768828821; x=1769433621; 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=SVNeYeJDjJjFou7aAMlRuPKSlq092RHQDhPaj02tUNw=; b=L5pUkjvFH2omZVYTxqhmiqTO/Jv9eIHgLZ8YbJ8l31QDK4RPHE/Q4zRGy/oYyRHd1z awpwY/pVYwE7nlCpRLcmA4teGrjBKSoSVUAir/8osbYOUVC/OqG0kAQbshab3BtxpqK6 U0q48Q932/3uEr0JB50huOQkgrp/5th85GqmZDTNRrfXWf4YsI4LzpaujpWmRBJ/8bOI VRNvIw2UahwSusHqvS4r6bdj4lvL36HvbaJADZJV0N+V6MiOoVLh+jxUD2cbrwWhB2eP FTOWnLw1LgeqclYeAVqjsDzMhkbPKU4fyDA0pUe4ZQtA9jaqCVNCd3LHf5uHktJaFgHd th5A== X-Forwarded-Encrypted: i=1; AJvYcCWlmIDexn85ySbEByGbSMYU7cQVieaD4SpchYOo863iE/wKQ43XgNgMEkpsF1L8rO6cVjIVrUSPUqTR6R4=@vger.kernel.org X-Gm-Message-State: AOJu0YzrguZBTxXSWSB4+jStnR2nolKq1y5uNNXtHXdlEQnKMAMeJt5w FZ1jfHiug6TKb3AYFSlrFrCfaF3yvSNmasoL/VWZ/AvO9wbMDQTbt84ATo6DGOGad384VTqVw2j ocucVMiz7iFzTFpqsGPlCRtk5VzlIE9ukea/wKhIDmSA+AWO/cEREN+bxrJY= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a4a:da12:0:b0:65b:5553:8e9b with SMTP id 006d021491bc7-6610e5c4c10mr5734346eaf.12.1768828821116; Mon, 19 Jan 2026 05:20:21 -0800 (PST) Date: Mon, 19 Jan 2026 05:20:21 -0800 In-Reply-To: <7d2a4fa708a6681fb5c17ae8420ccf762b3e83bb.camel@sipsolutions.net> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <696e2f95.050a0220.3390f1.004a.GAE@google.com> Subject: Re: [PATCH] mac80211: Fix WARNING in drv_get_tsf debugfs access From: syzbot To: johannes@sipsolutions.net Cc: arnavrawat2000@gmail.com, johannes@sipsolutions.net, kapoorarnav43@gmail.com, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" > On Mon, 2026-01-19 at 03:03 +0530, Arnav Kapoor wrote: >> The debugfs tsf read function was calling drv_get_tsf() even when the >> interface was not registered with the driver, causing a WARN_ON to be >> triggered. This is inappropriate for debugfs access. >> >> Fix this by checking the IEEE80211_SDATA_IN_DRIVER flag in the debugfs >> read function and returning -1ULL directly when the interface is not >> in the driver, avoiding the warning. >> >> Reported-by: syzbot+15f88dfa580000@syzkaller.appspotmail.com >> Signed-off-by: Arnav Rawat >> --- >> net/mac80211/debugfs_netdev.c | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c >> index 30a5a978a..669e7c519 100644 >> --- a/net/mac80211/debugfs_netdev.c >> +++ b/net/mac80211/debugfs_netdev.c >> @@ -656,7 +656,10 @@ static ssize_t ieee80211_if_fmt_tsf( >> struct ieee80211_local *local = sdata->local; >> u64 tsf; >> >> - tsf = drv_get_tsf(local, (struct ieee80211_sub_if_data *)sdata); >> + if (!(sdata->flags & IEEE80211_SDATA_IN_DRIVER)) >> + tsf = -1ULL; >> + else >> + tsf = drv_get_tsf(local, (struct ieee80211_sub_if_data *)sdata); > > > Seems like we could get rid of the pointless cast, while changing it > anyway. > > Also seems we should do it for all the debugfs files? > > johannes I see the command but can't find the corresponding bug. The email is sent to syzbot+HASH@syzkaller.appspotmail.com address but the HASH does not correspond to any known bug. Please double check the address.