From: sashiko-bot@kernel.org
To: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>,
syzbot <syzbot+b6f8640465bdf47ca708@syzkaller.appspotmail.com>,
akpm@linux-foundation.org, andrii@kernel.org,
bpf@vger.kernel.org, brauner@kernel.org, daniel@iogearbox.net,
jack@suse.cz, jmorris@namei.org, linux-mm@kvack.org,
linux-security-module@vger.kernel.org, paul@paul-moore.com,
penguin-kernel@I-love.SAKURA.ne.jp, serge@hallyn.com,
syzkaller-bugs@googlegroups.com, takedakn@nttdata.co.jp,
jhs@mojatatu.com, viro@zeniv.linux.org.uk
Subject: Re: net: act_gate bug. was: [syzbot] [tomoyo?] [mm?] INFO: rcu detected stall in security_file_ioctl (9)
Date: Tue, 24 Nov 2026 06:11:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-230577@kernel.org> (raw)
In-Reply-To: <DN37NBGPJJG9.2DSVDCKS3UYTV@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] net/sched: act_gate: missing Signed-off-by trailer in commit
message
- [Low] net/sched: act_gate: missing Fixes trailer in commit message
--
commit 1dfca74c316eb54b3672929b3411874232eb4ee7
Author: Alexei Starovoitov <ast@kernel.org>
> net: act_gate bug. was: [syzbot] [tomoyo?] [mm?] INFO: rcu detected stall in security_file_ioctl (9)
>
> On Mon, Nov 23, 2026 at 08:45 PM syzbot <syzbot+b6f8640465bdf47ca708@syzkaller.appspotmail.com> wrote:
> > rcu: hardirqs softirqs csw/system
> > rcu: number: 5264 0 0
> > rcu: cputime: 138 52351 25 ==> 52490(ms)
>
> It's not tomoyo, mm or bpf. Looks like act_gate.
> Zero new softirqs in 52 sec, so one hrtimer_run_softirq() doesn't return.
>
> > RBP: ffff88807ed35538 R08: ffffffff91be1bbf R09: 1ffffffff237c377
> > R10: dffffc0000000000 R11: fffffbfff237c378 R12: ffff8880b8228600
> > R13: ffffffff89fd0480 R14: ffff8880b8228600 R15: 1ffff1101704514a
>
> The registers with lockdep struct sizes:
>
> reg value points to
> -------- ---------------- --------------------------------------
> R14 ffff8880b8228600 cpu_base
> R15 << 3 ffff8880b8228a50 clock_base[HRTIMER_BASE_TAI_SOFT].seq
> RBP ffff88807ed35538 kmalloc-512 + 0x138, tcf_gate->hitimer
>
> act_gate has the only soft hrtimer that can be on CLOCK_TAI.
> bpf_timer_init() rejects that clock.
>
> TCA_GATE_CYCLE_TIME is an unchecked u64. In gate_timer_func():
>
> n = div64_u64(ktime_sub_ns(now, base), cycle);
> close_time = ktime_add_ns(base, (n + 1) * cycle);
>
> With base = 0 and cycle = U64_MAX, n is 0 and close_time is -1.
> The timer restarts in the past and __hrtimer_run_queues() runs it again.
> It's there since
> commit a51c328df310 ("net: qos: introduce a gate control flow action").
>
> Jamal,
> taprio's INT_MAX limit doesn't fit. tdc uses cycle-time of 600 sec.
> The diff saturates the sum instead.
> Here is a potential fix:
[Severity: High]
The commit message is missing a Signed-off-by: trailer.
[Severity: Low]
Since this fixes an infinite softirq loop when TCA_GATE_CYCLE_TIME overflows
the timer expiration timestamp, should this include a Fixes: trailer?
Fixes: a51c328df310 ("net: qos: introduce a gate control flow action")
--
Sashiko AI review · https://sashiko.dev/#/patchset/DN37NBGPJJG9.2DSVDCKS3UYTV@gmail.com?part=1
prev parent reply other threads:[~2026-11-24 6:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 1:19 [syzbot] [bpf?] INFO: rcu detected stall in security_file_ioctl (9) syzbot
2025-08-19 12:35 ` [syzbot] [mm?] " syzbot
2026-11-24 4:45 ` [syzbot] [tomoyo?] " syzbot
2026-11-24 6:00 ` net: act_gate bug. was: " Alexei Starovoitov
2026-11-24 6:11 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-230577@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=brauner@kernel.org \
--cc=daniel@iogearbox.net \
--cc=jack@suse.cz \
--cc=jhs@mojatatu.com \
--cc=jmorris@namei.org \
--cc=linux-mm@kvack.org \
--cc=linux-security-module@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=sashiko-reviews@lists.linux.dev \
--cc=serge@hallyn.com \
--cc=syzbot+b6f8640465bdf47ca708@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=takedakn@nttdata.co.jp \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox