From nobody Sat Feb 7 13:41:43 2026 Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) (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 04AEB27F4E7 for ; Sun, 18 Jan 2026 22:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.70 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768775933; cv=none; b=gse82Z1R1A1BUjQhtJdumYGm4YCjxOyeefmrOq32PefImCHVz+Wm6nFPJofO+P+T4khJx9pKU0uv8KcMFN+4r+HusXQ8Pvooshtp+F3oXM1Cs9LXpXDGoajL3bCeseVO51j2P552CxvuxfUgYv6wJgdZLyX142DO1gvUutQfHUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768775933; c=relaxed/simple; bh=xILO+HhcZCke9aAdz5Nn0CrFNm5ePPCmVd8xNMrToGI=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=YuDwuUOrbEkFPql/ZjPlPeMKAGwPV1xNJYucO0232tONV5OC2X0o5iaELdtxDXQxrs+phhVWWIN8lD1vH6AK0W+aR0Uy/MfpYCMzoy9JXRAz/SOJxrTeh/CGgIkiuXA1PF9qgc+rnXguHZgjeNZaY1R8LoGENUiKqbUV+C2loJY= 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.160.70 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-oa1-f70.google.com with SMTP id 586e51a60fabf-3ff2af9b23aso4415758fac.0 for ; Sun, 18 Jan 2026 14:38:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768775931; x=1769380731; 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=DuH8NCpJXvnw1EWDA+7hUBfrd2B8X00WmrIQCP69kgI=; b=e2w82rG40RfYLmO/fs030RceX3UwJ6jAkXKGfcGgUUIDZB6s5DZBsw5d+aw5ML7OgL e2tRz3bz320WnC3/DeKL0DdtKit1XqC1Ab3gfWYIEf8Gy1I5i8Nmm2pVsN44p8GObn/V eqUNCcYcAQNH20HMMmPLbNcnhPuMIpTgnQdu454ytKdpvXScxp0gID9t+RZ1eDeLnSHa qfrrlPxLnhPpvgqvudEDbj5H6FdkA1aQ0YYkASpSfCp9S/aCATbVjnthYxXQkD0Vx3Sf +lOlcX7RdZcWfuTkkmaOBlVDoS+lxpIkWorua5pIEi8snawjvGRrD4u6dtPb3vEkKDFY Uoow== X-Gm-Message-State: AOJu0YwPTTqajtjagaX4//YdHARvY3o5OJXFtVoa8wa6QGrtYU40UNPD qSqR9rsktYEk0zrWyrRUL8oGJPjWwnneweSzZ1rJ/GLx+LLo1zLwQKP4IvcJ9OXlWgzW9uXXWFz HykLT08ZP1FiB6bZzLrY3OkfnWlpyd3C6ruIMdd4g54hqiO9aW0UF4a8ax7s= 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:4b8b:b0:661:1188:4b99 with SMTP id 006d021491bc7-661188d56d8mr3899057eaf.3.1768775930879; Sun, 18 Jan 2026 14:38:50 -0800 (PST) Date: Sun, 18 Jan 2026 14:38:50 -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: <696d60fa.050a0220.3390f1.002c.GAE@google.com> Subject: 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: [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 --- 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 04:05:04 UTC+5:30 syzbot wrote: 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=3D13ff6b9a580000