From nobody Sat Feb 7 15:11:56 2026 Received: from mail-ot1-f79.google.com (mail-ot1-f79.google.com [209.85.210.79]) (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 C5E263B2AA for ; Sun, 18 Jan 2026 23:55:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.79 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768780506; cv=none; b=pjX/KtMclauI3TscgenpFOAswBlqYCA6XKl2RJ0qePb1pNE9LfNSbv8EZQcmNY00+pYUvr8BdkuY8n4FpQGdN/vLmkIzrt5TO5DgHaHpj5wNig/pZsOiKwKCGCk02sbgonmt6cuS58vF5LQmbeJZOMf2I0z0a7XUbGOqI1a1dOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768780506; c=relaxed/simple; bh=kjLZnXkwTma9jrb1/hVEcbuDjgrPp285WbkeT2LPEdA=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Ed4PzoYsqqHbyeWf6fBRMMo27wHwcbobOmpiXDy17LAopSwEAoUpr9+D/hQDPUfRgbmB98zdg4BiiaID/AyfW4sAVUPh958baK4WtYpgWI0D6pLU7sqv+QnNffFnZffDaysGtMbb7f0ZzhJS9m4JG2aX1La790k9VgHGCWMn19s= 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.79 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-f79.google.com with SMTP id 46e09a7af769-7ce1dd077bdso8383482a34.1 for ; Sun, 18 Jan 2026 15:55:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768780503; x=1769385303; h=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=8WzYNh5XTLH0rnaP00hc/U4kQ6oTCERSDcCQQRRLdgY=; b=sdVfKw0Zc5gx01YA7E+3nCypP35QH7tMtNLfNJAT6qyVRnpPdI8gIMh2R73LDzlu0f 0QBllmP8UNERZDXDtoPjI5fGEzAyf/rWn/fD6f1pMWgE6zF7arxCyxk6QviG7wdDxZME AwhB/8hnrCskafqR9I84mn7k684vF4Bz2DZnuOYUXadNb0V9aImFGM8ar6pNl+NUPa6I cPYMh1/nwGVK6rJfZA06D//VSVL7AqRpz3Gi6rUShFih+htNSHo27MQOWRPed7Fktq75 SXms3kbWekNSrOcZO6G+xPirhWcunau5jw3Bs0UemVsz8OzUyTsqS6sX1sgSy4qp0r7G 8/UA== X-Gm-Message-State: AOJu0YxSHh5lYz12TzE6aWl/eERxjBhlBZlLfH+cA2Spvck7Q1K582d+ tkgonIkE2MCT5CB1BjGuuQZwEfzRt5P2sbrYQg0rh32vy+bk7V55SyQnNaPp4vv6KZCoHHQFrvi MzPzO1+//OTwUzVHWQRUYdWsT6q1g4hK7MABFo+GL42O7eHs84HzytPeYVyy4IQ== 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:190e:b0:65c:469d:33d9 with SMTP id 006d021491bc7-66117a0b095mr4899794eaf.69.1768780503691; Sun, 18 Jan 2026 15:55:03 -0800 (PST) Date: Sun, 18 Jan 2026 15:55:03 -0800 In-Reply-To: <696d4ffd.050a0220.3390f1.0024.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <696d72d7.050a0220.3390f1.0034.GAE@google.com> Subject: Forwarded: Private message regarding: Forwarded: Private message regarding: [syzbot] [wireless?] WARNING in drv_get_tsf (2) From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: Private message regarding: Forwarded: Private message regarding: [= syzbot] [wireless?] WARNING in drv_get_tsf (2) Author: kapoorarnav43@gmail.com #syz test From 0cd0a5cff75a12d3cf1fa0675950ef0dcc647799 Mon Sep 17 00:00:00 2001 From: Arnav Kapoor Date: Mon, 19 Jan 2026 03:03:18 +0530 Subject: [PATCH] mac80211: Fix WARNING in drv_get_tsf debugfs access 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 Reported-by: syzbot+15f...@syzkaller.appspotmail.com=20 --- 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 =3D sdata->local; u64 tsf; =20 - tsf =3D drv_get_tsf(local, (struct ieee80211_sub_if_data *)sdata); + if (!(sdata->flags & IEEE80211_SDATA_IN_DRIVER)) + tsf =3D -1ULL; + else + tsf =3D drv_get_tsf(local, (struct ieee80211_sub_if_data=20 *)sdata); =20 return scnprintf(buf, buflen, "0x%016llx\n", (unsigned long long)=20 tsf); } --=20 2.43.0 On Monday, 19 January 2026 at 05:21:22 UTC+5:30 syzbot wrote: For archival purposes, forwarding an incoming command email to=20 linux-...@vger.kernel.org, syzkall...@googlegroups.com.=20 ***=20 Subject: Private message regarding: [syzbot] [wireless?] WARNING in=20 drv_get_tsf (2)=20 Author: kapoor...@gmail.com=20 #syz test=20 From 0cd0a5cff75a12d3cf1fa0675950ef0dcc647799 Mon Sep 17 00:00:00 2001=20 From: Arnav Kapoor =20 Date: Mon, 19 Jan 2026 03:03:18 +0530=20 Subject: [PATCH] mac80211: Fix WARNING in drv_get_tsf debugfs access=20 The debugfs tsf read function was calling drv_get_tsf() even when the=20 interface was not registered with the driver, causing a WARN_ON to be=20 triggered. This is inappropriate for debugfs access.=20 Fix this by checking the IEEE80211_SDATA_IN_DRIVER flag in the debugfs=20 read function and returning -1ULL directly when the interface is not=20 in the driver, avoiding the warning.=20 Reported-by: syzbot+15f...@syzkaller.appspotmail.com=20 Signed-off-by: Arnav Rawat =20 ---=20 net/mac80211/debugfs_netdev.c | 5 ++++-=20 1 file changed, 4 insertions(+), 1 deletion(-)=20 diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c=20 index 30a5a978a..669e7c519 100644=20 --- a/net/mac80211/debugfs_netdev.c=20 +++ b/net/mac80211/debugfs_netdev.c=20 @@ -656,7 +656,10 @@ static ssize_t ieee80211_if_fmt_tsf(=20 struct ieee80211_local *local =3D sdata->local;=20 u64 tsf;=20 - tsf =3D drv_get_tsf(local, (struct ieee80211_sub_if_data *)sdata);=20 + if (!(sdata->flags & IEEE80211_SDATA_IN_DRIVER))=20 + tsf =3D -1ULL;=20 + else=20 + tsf =3D drv_get_tsf(local, (struct ieee80211_sub_if_data=20 *)sdata);=20 return scnprintf(buf, buflen, "0x%016llx\n", (unsigned long long)=20 tsf);=20 }=20 --=20 2.43.0=20 On Monday, 19 January 2026 at 05:09:05 UTC+5:30 syzbot wrote:=20 Hello,=20 syzbot tried to test the proposed patch but the build/boot failed:=20 net/mac80211/debugfs_netdev.c:662:70: error: expected ')' before 'return'=20 net/mac80211/debugfs_netdev.c:665:1: error: expected expression before '}'=20 token=20 net/mac80211/debugfs_netdev.c:664:80: error: expected ';' before '}' token=20 net/mac80211/debugfs_netdev.c:665:1: error: no return statement in function=20 returning non-void [-Werror=3Dreturn-type]=20 Tested on:=20 commit: e84d9601 Merge tag 'for-6.19-rc5-tag' of git://git.ker..=20 git tree: upstream=20 kernel config: https://syzkaller.appspot.com/x/.config?x=3Dae589cd0a6acd9be=20 dashboard link: https://syzkaller.appspot.com/bug?extid=3D2cecf0e829ae2219d= 419=20 compiler: gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for=20 Debian) 2.40=20 patch: https://syzkaller.appspot.com/x/patch.diff?x=3D17a44b9a580000