Skip to contentSkip to conversation

selftests/sched_ext: reload_loop failed

BUG Cheng-Yang Chou 1 participant 2 messages Apr 19 – Apr 23 Scheduler - sched_ext

lore
Share & tools
lore
#0 lore raw

Hi all,

I am testing based on commit 5425abc222bc (tj/for-7.2 branch) using virtme-ng. The kernel config I'm using:
- https://github.com/sched-ext/scx/blob/main/kernel.config

While running ./runner -t reload_loop, I encountered the following error. I'll begin a bisect and provide more details once I have them, just wanted to bring this up now in case it looks familiar.

Full log below [1]:

root@virtme-ng:/home/eric-wcnlab/dev/sched_ext/tools/testing/selftests/sched_ext# sudo ./runner -t reload_loop
===== START =====
TEST: reload_loop
DESCRIPTION: Stress test loading and unloading schedulers repeatedly in a tight loop
OUTPUT:
[   32.195847] sched_ext: BPF scheduler "maximal" enabled
[   32.255630] sched_ext: BPF scheduler "maximal" disabled (unregistered from user space)

[snipped]

[   39.337182] sched_ext: BPF scheduler "maximal" enabled
[   39.401119] Oops: int3: 0000 [#1] SMP NOPTI
[   39.401785] CPU: 22 UID: 0 PID: 0 Comm: swapper/22 Not tainted 7.0.0-g5425abc222bc #4 PREEMPT(lazy)
[   39.402044] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   39.402275] RIP: 0010:put_prev_task_idle+0x13/0x40
[   39.402588] Code: 5b c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 53 48 89 fb e8 6e 56 ff ff 66 <90> 48 89 df 5b e9 23 e3 fb ff 48 89 df ba 01 00 00 00 31 f6 e8 f4
[   39.402654] RSP: 0018:ffffb3b680153dd8 EFLAGS: 00000082
[   39.402681] RAX: 0000000000000001 RBX: ffff9c8835d3d900 RCX: 0000000000000003
[   39.402692] RDX: 0000000000000000 RSI: 00000000022e6ac6 RDI: 0000000000000041
[   39.402702] RBP: ffffb3b680153ed8 R08: 0000000000000000 R09: 0000000000000001
[   39.402711] R10: 0000000000000001 R11: 0000000000000000 R12: ffff9c8640961b80
[   39.402721] R13: ffff9c8835d3d900 R14: 0000000000000000 R15: ffff9c8640a05280
[   39.402776] FS:  0000000000000000(0000) GS:ffff9c88aa133000(0000) knlGS:0000000000000000
[   39.402788] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   39.402798] CR2: 00007f56a6465280 CR3: 0000000102907000 CR4: 00000000000006f0
[   39.402892] Call Trace:
[   39.403013]  <TASK>
[   39.403108]  pick_next_task_fair+0x902/0x9d0
[   39.403196]  __schedule+0x375/0x1ed0
[   39.403216]  ? ct_kernel_enter.constprop.0+0x128/0x150
[   39.403227]  ? lockdep_hardirqs_on_prepare+0xdb/0x1a0
[   39.403235]  ? tick_nohz_idle_exit+0x6c/0x160
[   39.403246]  ? tick_nohz_idle_exit+0x6c/0x160
[   39.403263]  schedule_idle+0x23/0x40
[   39.403272]  cpu_startup_entry+0x29/0x30
[   39.403281]  start_secondary+0xf8/0x100
[   39.403290]  common_startup_64+0x13e/0x148
[   39.403336]  </TASK>
[   39.403514] Modules linked in:
[   39.403917] Oops: int3: 0000 [#2] SMP NOPTI
[   39.403928] ---[ end trace 0000000000000000 ]---
[   39.404022] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G      D             7.0.0-g5425abc222bc #4 PREEMPT(lazy)
[   39.404045] RIP: 0010:put_prev_task_idle+0x13/0x40
[   39.404057] Code: 5b c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 53 48 89 fb e8 6e 56 ff ff 66 <90> 48 89 df 5b e9 23 e3 fb ff 48 89 df ba 01 00 00 00 31 f6 e8 f4
[   39.404062] RSP: 0018:ffffb3b680153dd8 EFLAGS: 00000082
[   39.404067] RAX: 0000000000000001 RBX: ffff9c8835d3d900 RCX: 0000000000000003
[   39.404070] RDX: 0000000000000000 RSI: 00000000022e6ac6 RDI: 0000000000000041
[   39.404073] RBP: ffffb3b680153ed8 R08: 0000000000000000 R09: 0000000000000001
[   39.404075] Tainted: [D]=DIE
[   39.404075] R10: 0000000000000001 R11: 0000000000000000 R12: ffff9c8640961b80
[   39.404078] R13: ffff9c8835d3d900 R14: 0000000000000000 R15: ffff9c8640a05280
[   39.404081] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   39.404082] FS:  0000000000000000(0000) GS:ffff9c88aa133000(0000) knlGS:0000000000000000
[   39.404086] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   39.404090] CR2: 00007f56a6465280 CR3: 0000000102907000 CR4: 00000000000006f0
[   39.404087] RIP: 0010:put_prev_task_idle+0x13/0x40
[   39.404104] Code: 5b c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 53 48 89 fb e8 6e 56 ff ff 66 <90> 48 89 df 5b e9 23 e3 fb ff 48 89 df ba 01 00 00 00 31 f6 e8 f4
[   39.404109] RSP: 0018:ffffb3b6800b3dd8 EFLAGS: 00000082
[   39.404116] RAX: 0000000000000001 RBX: ffff9c883533d900 RCX: 0000000000000003
[   39.404119] RDX: 0000000000000000 RSI: 00000000000a8e06 RDI: 0000000000000041
[   39.404122] RBP: ffffb3b6800b3ed8 R08: 0000000000000000 R09: 0000000000000001
[   39.404125] R10: 0000000000000001 R11: 0000000000000000 R12: ffff9c86452ed280
[   39.404127] R13: ffff9c883533d900 R14: 0000000000000000 R15: ffff9c8640985280
[   39.404131] FS:  0000000000000000(0000) GS:ffff9c88a9733000(0000) knlGS:0000000000000000
[   39.404135] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   39.404138] CR2: 000055ddb6fded10 CR3: 0000000102907000 CR4: 00000000000006f0
[   39.404141] Call Trace:
[   39.404148]  <TASK>
[   39.404159]  pick_next_task_fair+0x902/0x9d0
[   39.404222] Kernel panic - not syncing: Fatal exception in interrupt
[   40.773443] Shutting down cpus with NMI
[   40.773924] Kernel Offset: 0x7400000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)

[1]: https://gist.github.com/EricccTaiwan/02375248d3d0f308a85a101e5319e852

Signature · 2 lines
Thanks,
Cheng-Yang
#1 lore raw
Quoted 7 lines · Cheng-Yang Chou

I am testing based on commit 5425abc222bc (tj/for-7.2 branch) using virtme-ng. The kernel config I'm using:
- https://github.com/sched-ext/scx/blob/main/kernel.config

While running ./runner -t reload_loop, I encountered the following error. I'll begin a bisect and provide more details once I have them, just wanted to bring this up now in case it looks familiar.

Since i'm testing scx-cid branch, same issue hit while testing NUMA with virtme-ng.

===== START =====
TEST: numa
DESCRIPTION: Verify NUMA-aware functionalities
OUTPUT:

[   42.567360] Oops: int3: 0000 [#1] SMP NOPTI
[   42.567780] CPU: 5 UID: 0 PID: 642 Comm: scx_enable_help Not tainted 7.0.0-g92f8cb8241dd-dirty #14 PREEMPT(lazy)
[   42.567949] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   42.568109] Sched_ext: numa (enabling+all)
[   42.568179] RIP: 0010:update_rq_clock+0x6c/0x280
[   42.568263] Code: 00 00 8b 83 20 0e 00 00 a8 02 0f 85 89 00 00 00 0f 1f 44 00 00 83 c8 04 8b bb a8 0e 00 00 89 83 20 0e 00 00 e8 d5 43 05 00 eb <75> 48 89 c5 48 2b ab 10 0e 00 00 78 62 48 89 83 10 0e 00 00 48 8b
[   42.568328] RSP: 0018:ffffa775c1547c80 EFLAGS: 00000007
[   42.568356] RAX: 00000009e92dde7d RBX: ffffa2efb533d900 RCX: 0000000000000000
[   42.568367] RDX: 00000009e92dde7d RSI: ffffffffd61bc543 RDI: 0000000000000002
[   42.568379] RBP: ffffa2efb533d900 R08: 0000000000000002 R09: 0000000000000001
[   42.568389] R10: 0000000000000001 R11: 0000000000000000 R12: 000000000000004e
[   42.568400] R13: ffffa2efb5498260 R14: ffffa2edca374000 R15: ffffa2f00ccb2000
[   42.568455] FS:  0000000000000000(0000) GS:ffffa2f00ccb2000(0000) knlGS:0000000000000000
[   42.568467] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   42.568477] CR2: 00007f2cde9cf680 CR3: 00000002d984c000 CR4: 00000000000006f0
[   42.568575] Call Trace:
[   42.568695]  <TASK>
[   42.568792]  sched_change_begin+0x1d1/0x2c0
[   42.568899]  scx_root_enable_workfn+0x871/0x9c0
[   42.569048]  ? kthread_worker_fn+0x50/0x3b0
[   42.569060]  ? __pfx_scx_root_enable_workfn+0x10/0x10
[   42.569069]  kthread_worker_fn+0xcb/0x3b0
[   42.569087]  ? __pfx_kthread_worker_fn+0x10/0x10
[   42.569098]  kthread+0xf4/0x120
[   42.569107]  ? __pfx_kthread+0x10/0x10
[   42.569126]  ret_from_fork+0x275/0x340
[   42.569134]  ? __pfx_kthread+0x10/0x10
[   42.569145]  ret_from_fork_asm+0x1a/0x30
[   42.569219]  </TASK>
[   42.569275] Modules linked in:
[   42.569686] Oops: int3: 0000 [#2] SMP NOPTI
[   42.569699] ---[ end trace 0000000000000000 ]---
[   42.569779] CPU: 9 UID: 0 PID: 0 Comm: swapper/9 Tainted: G      D             7.0.0-g92f8cb8241dd-dirty #14 PREEMPT(lazy)
[   42.569830] RIP: 0010:update_rq_clock+0x6c/0x280
[   42.569840] Code: 00 00 8b 83 20 0e 00 00 a8 02 0f 85 89 00 00 00 0f 1f 44 00 00 83 c8 04 8b bb a8 0e 00 00 89 83 20 0e 00 00 e8 d5 43 05 00 eb <75> 48 89 c5 48 2b ab 10 0e 00 00 78 62 48 89 83 10 0e 00 00 48 8b
[   42.569845] RSP: 0018:ffffa775c1547c80 EFLAGS: 00000007
[   42.569845] Tainted: [D]=DIE
[   42.569854] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   42.569860] RIP: 0010:update_rq_clock+0x6c/0x280
[   42.569876] Code: 00 00 8b 83 20 0e 00 00 a8 02 0f 85 89 00 00 00 0f 1f 44 00 00 83 c8 04 8b bb a8 0e 00 00 89 83 20 0e 00 00 e8 d5 43 05 00 eb <75> 48 89 c5 48 2b ab 10 0e 00 00 78 62 48 89 83 10 0e 00 00 48 8b
[   42.569881] RSP: 0018:ffffa775c02f0e90 EFLAGS: 00000003
[   42.569888] RAX: 00000009e93aba75 RBX: ffffa2efb56bd900 RCX: 0000000000000000
[   42.569891] RDX: 00000009e93aba75 RSI: ffffffffd61bc543 RDI: 0000000000000002
[   42.569894] RBP: ffffa775c02f0ed8 R08: 0000000000000002 R09: 0000000000000000
[   42.569897] R10: 0000000000003965 R11: 0000000000000000 R12: 0000000000000000
[   42.569900] R13: 0000000000000000 R14: ffffa2edc0988000 R15: 0000000000000009
[   42.569903] FS:  0000000000000000(0000) GS:ffffa2f00ceb2000(0000) knlGS:0000000000000000
[   42.569874]
[   42.569907] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   42.569909] RAX: 00000009e92dde7d RBX: ffffa2efb533d900 RCX: 0000000000000000
[   42.569910] CR2: 000055803f00a000 CR3: 00000002d984c000 CR4: 00000000000006f0
[   42.569913] RDX: 00000009e92dde7d RSI: ffffffffd61bc543 RDI: 0000000000000002
[   42.569914] Call Trace:
[   42.569916] RBP: ffffa2efb533d900 R08: 0000000000000002 R09: 0000000000000001
[   42.569919] R10: 0000000000000001 R11: 0000000000000000 R12: 000000000000004e
[   42.569921] R13: ffffa2efb5498260 R14: ffffa2edca374000 R15: ffffa2f00ccb2000
[   42.569925] FS:  0000000000000000(0000) GS:ffffa2f00ccb2000(0000) knlGS:0000000000000000
[   42.569927]  <IRQ>
[   42.569929] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   42.569932] CR2: 00007f2cde9cf680 CR3: 00000002d984c000 CR4: 00000000000006f0
[   42.569941]  sched_tick+0xa1/0x3a0
[   42.569956]  update_process_times+0xa4/0xf0
[   42.569967]  tick_nohz_handler+0x8d/0x160
[   42.569976]  ? __pfx_tick_nohz_handler+0x10/0x10
[   42.569983]  __hrtimer_run_queues+0x72/0x340
[   42.569999]  hrtimer_interrupt+0x114/0x250
[   42.570015]  __sysvec_apic_timer_interrupt+0x6a/0x1c0
[   42.570074] Kernel panic - not syncing: Fatal exception in interrupt
[   44.017037] Shutting down cpus with NMI
[   44.017495] Kernel Offset: 0x24000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[   44.022221] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

qemu-system-x86_64: terminating on signal 15 from pid 940918 (htop)

Signature · 2 lines
Cheers,
Cheng-Yang