From: Daniel Wagner <dwagner@suse.de>
To: Juri Lelli <juri.lelli@redhat.com>
Cc: peterz@infradead.org, mingo@redhat.com,
vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
rostedt@goodmis.org, linux-kernel@vger.kernel.org,
luca.abeni@santannapisa.it, bristot@redhat.com,
syzbot+5ac8bac25f95e8b221e7@syzkaller.appspotmail.com
Subject: Re: [PATCH] sched/deadline: Initialize dl_boosted
Date: Wed, 17 Jun 2020 22:49:39 +0200 [thread overview]
Message-ID: <20200617204939.2k7scf422tx2xvhe@beryllium.lan> (raw)
In-Reply-To: <20200617072919.818409-1-juri.lelli@redhat.com>
Hi Juri,
On Wed, Jun 17, 2020 at 09:29:19AM +0200, Juri Lelli wrote:
> This happens because dl_boosted flag is currently not initialized by
> __dl_clear_params() (unlike the other flags) and setup_new_dl_entity()
> finds complains about it.
>
> Initialize dl_boosted to 0.
>
> Reported-by: syzbot+5ac8bac25f95e8b221e7@syzkaller.appspotmail.com
> Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
> Tested-by: Daniel Wagner <dwagner@suse.de>
Well, as it turns I can't trigger a warning on mainline but pretty simple on
RT (5.6.14-rt7-rt):
invalid opcode: 0000 [#1] PREEMPT_RT SMP NOPTI
CPU: 1 PID: 317 Comm: 0d19f76ecda7c30 Not tainted 5.6.14-rt7-rt #2
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.13.0-0-gf21b5a4-rebuilt.opensuse.org 04/01/2014
RIP: 0010:enqueue_task_dl+0x71/0x3b0
Code: 74 28 41 83 fc 20 75 22 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 4c 8d a8 b8 02 00 00 f6 c2 02 75 0c 8b 45 74 85 c0 78 2
RSP: 0018:ffffc90000673ba8 EFLAGS: 00010002
RAX: ffff88807e87a700 RBX: 00000000ffffffff RCX: 0000000000000078
RDX: 0000000000000002 RSI: 0000000000000078 RDI: ffff88807c52bb80
RBP: ffff88800feda700 R08: ffff88807e87a700 R09: ffffffff81e43ea0
R10: 0000000000000000 R11: 000000000000006d R12: 000000000000002e
R13: 0000000000000078 R14: ffff88807c52bb80 R15: ffff88800feda9b8
FS: 000000000175c880(0000) GS:ffff88807c500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff9cbfa000 CR3: 000000007c4b2000 CR4: 00000000000006e0
Call Trace:
? dequeue_task_fair+0x67/0x2b0
rt_mutex_setprio+0x39f/0x510
? __switch_to_asm+0x34/0x70
task_blocks_on_rt_mutex+0x2a4/0x390
? __switch_to_asm+0x40/0x70
? __switch_to_asm+0x34/0x70
rt_spin_lock_slowlock_locked+0xb2/0x2c0
? _raw_spin_unlock_irq+0x1d/0x50
? finish_task_switch+0xa0/0x2e0
rt_spin_lock_slowlock+0x51/0x80
__local_bh_disable_ip+0x7f/0xa0
hrtimer_cancel_wait_running+0x31/0x70
hrtimer_cancel+0x1f/0x30
futex_wait+0x1e9/0x240
? __hrtimer_init+0xe0/0xe0
do_futex+0x10a/0x1d0
__x64_sys_futex+0x134/0x162
do_syscall_64+0x69/0x110
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x445b89
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 8
RSP: 002b:00007fff9cbe2498 EFLAGS: 00000206
ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00000000004004e8 RCX: 0000000000445b89
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000004ca3ec
RBP: 00007fff9cbe24e0 R08: 0000000000003fdc R09: 000000000000002d
R10: 00007fff9cbe24b0 R11: 0000000000000206 R12: 0000000000408bb0
R13: 0000000000000000 R14: 00000000004c8018 R15: 00000000004004e8
Modules linked in:
This looks similar to the one reported here:
[PATCH 0/2] Fix SCHED_DEADLINE nested priority inheritance
https://lore.kernel.org/lkml/20191112075056.19971-1-juri.lelli@redhat.com/
Thanks,
Daniel
next prev parent reply other threads:[~2020-06-17 20:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-17 7:29 Juri Lelli
2020-06-17 20:49 ` Daniel Wagner [this message]
2020-06-22 7:07 ` Juri Lelli
2020-06-23 7:19 ` [tip: sched/urgent] " tip-bot2 for Juri Lelli
2020-06-23 8:48 ` [tip: sched/urgent] sched/deadline: Initialize ->dl_boosted tip-bot2 for Juri Lelli
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=20200617204939.2k7scf422tx2xvhe@beryllium.lan \
--to=dwagner@suse.de \
--cc=bristot@redhat.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.abeni@santannapisa.it \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=syzbot+5ac8bac25f95e8b221e7@syzkaller.appspotmail.com \
--cc=vincent.guittot@linaro.org \
/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
all inboxes | Powered by JetHome®