From: patchwork-bot+netdevbpf@kernel.org
To: Davide Caratti <dcaratti@redhat.com>
Cc: jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
horms@kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH net v2] net/sched: dualpi2: initialize timer earlier in dualpi2_init()
Date: Tue, 12 May 2026 01:19:33 +0000 [thread overview]
Message-ID: <177854877304.2528168.12550829856617698082.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <1faca91179702b31da5d87653e1e036543e32722.1778259798.git.dcaratti@redhat.com>
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 8 May 2026 19:05:10 +0200 you wrote:
> 'pi2_timer' needs to be initialized in all error paths of dualpi2_init():
> otherwise, a failure in qdisc_create_dflt() causes the following crash in
> dualpi2_destroy():
>
> # tc qdisc add dev crash0 handle 1: root dualpi2
> BUG: kernel NULL pointer dereference, address: 0000000000000010
> #PF: supervisor read access in kernel mode
> #PF: error_code(0x0000) - not-present page
> PGD 0 P4D 0
> Oops: Oops: 0000 [#1] SMP PTI
> CPU: 4 UID: 0 PID: 471 Comm: tc Tainted: G E 7.1.0-rc1-virtme #2 PREEMPT(full)
> Tainted: [E]=UNSIGNED_MODULE
> Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
> RIP: 0010:hrtimer_active+0x39/0x60
> Code: f9 eb 23 0f b6 41 38 3c 01 0f 87 87 64 c0 ff 83 e0 01 75 33 48 39 4a 50 74 28 44 3b 42 10 75 06 48 3b 51 30 74 21 48 8b 51 30 <44> 8b 42 10 41 f6 c0 01 74 cf f3 90 44 8b 42 10 41 f6 c0 01 74 c3
> RSP: 0018:ffffd0db80b93620 EFLAGS: 00010282
> RAX: ffffffffc0400320 RBX: ffff8cf24a4c86b8 RCX: ffff8cf24a4c86b8
> RDX: 0000000000000000 RSI: ffff8cf2429c2ab0 RDI: ffff8cf24a4c86b8
> RBP: 00000000fffffff4 R08: 0000000000000003 R09: 0000000000000000
> R10: 0000000000000001 R11: ffff8cf24a39c500 R12: ffff8cf24822c000
> R13: ffffd0db80b936c0 R14: ffffffffc02cf360 R15: 00000000ffffffff
> FS: 00007fbc01706580(0000) GS:ffff8cf2dc759000(0000) knlGS:0000000000000000
> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000000000010 CR3: 0000000008e02003 CR4: 0000000000172ef0
> Call Trace:
> <TASK>
> hrtimer_cancel+0x15/0x40
> dualpi2_destroy+0x20/0x40 [sch_dualpi2]
> qdisc_create+0x230/0x570
> tc_modify_qdisc+0x716/0xc10
> rtnetlink_rcv_msg+0x188/0x780
> netlink_rcv_skb+0xcd/0x150
> netlink_unicast+0x1ba/0x290
> netlink_sendmsg+0x242/0x4d0
> ____sys_sendmsg+0x39e/0x3e0
> ___sys_sendmsg+0xe1/0x130
> __sys_sendmsg+0xad/0x110
> do_syscall_64+0x14f/0xf80
> entry_SYSCALL_64_after_hwframe+0x77/0x7f
> RIP: 0033:0x7fbc0188b08e
> Code: 4d 89 d8 e8 94 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 <c9> c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa
> RSP: 002b:00007fff593260e0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e
> RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fbc0188b08e
> RDX: 0000000000000000 RSI: 00007fff59326190 RDI: 0000000000000003
> RBP: 00007fff593260f0 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000202 R12: 000055f06124f260
> R13: 0000000069fca043 R14: 000055f061255640 R15: 000055f06124d3f8
> </TASK>
> Modules linked in: sch_dualpi2(E)
> CR2: 0000000000000010
>
> [...]
Here is the summary with links:
- [net,v2] net/sched: dualpi2: initialize timer earlier in dualpi2_init()
https://git.kernel.org/netdev/net/c/f8e64e956a63
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-05-12 1:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-08 17:05 [PATCH net v2] net/sched: dualpi2: initialize timer earlier in dualpi2_init() Davide Caratti
2026-05-11 10:49 ` Eric Dumazet
2026-05-12 1:19 ` patchwork-bot+netdevbpf [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=177854877304.2528168.12550829856617698082.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=davem@davemloft.net \
--cc=dcaratti@redhat.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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