Kernel panics when task running with a SCHED_DEADLINE scheduling policy.

Solution Verified - Updated -

Issue

  • Kernel panics with when an attempt is made to enable cpuset in cgroup V2 with a task running with deadline scheduling policy.
[80468.182258] BUG: unable to handle page fault for address: ffffffff8b6648b0
[80468.183798] #PF: supervisor read access in kernel mode
[80468.185011] #PF: error_code(0x0000) - not-present page
[80468.186214] PGD 1a215067 P4D 1a215067 PUD 1a216063 PMD 1b5ff063 PTE 800fffffe539b060
[80468.187418] Oops: 0000 [#1] PREEMPT SMP PTI
[80468.188594] CPU: 1 PID: 9812 Comm: bash Kdump: loaded Not tainted 5.14.0-124.el9.x86_64 #1
[80468.189806] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 04/05/2016
[80468.191019] RIP: 0010:dl_cpu_busy+0x30/0x2b0
[80468.192196] Code: 57 41 56 41 55 41 54 55 53 48 83 ec 18 48 89 34 24 65 ff 05 12 e8 cc 76 4c 63 f7 48 c7 c0 80 8e 02 00 4a 8b 14 f5 e0 0a 61 8a <4c> 8b bc 02 30 0a 00 00 49 8d 47 40 48 89 c7 48 89 44 24 08 e8 37
[80468.194585] RSP: 0018:ffffa1be80d07b50 EFLAGS: 00010282
[80468.195762] RAX: 0000000000028e80 RBX: ffffa1be80d07c50 RCX: 0000000000000040
[80468.196928] RDX: ffffffff8b63b000 RSI: ffff895cb5a38000 RDI: 0000000000000002
[80468.198091] RBP: ffff895cb5a38000 R08: 0000000000000000 R09: 0000000000000000
[80468.199237] R10: 0000000000000002 R11: 0000000000000001 R12: ffff895c86036c00
[80468.200356] R13: 0000000000000000 R14: 0000000000000002 R15: ffff895c830b2000
[80468.201464] FS:  00007f49a3230740(0000) GS:ffff895cffd00000(0000) knlGS:0000000000000000
[80468.202572] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[80468.203676] CR2: ffffffff8b6648b0 CR3: 000000001cdac002 CR4: 00000000007706e0
[80468.204789] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[80468.205874] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[80468.206919] PKRU: 55555554
[80468.207946] Call Trace:
[80468.208947]  cpuset_can_attach+0xa0/0x140
[80468.209953]  cgroup_migrate_execute+0x8c/0x490
[80468.210931]  cgroup_update_dfl_csses+0x254/0x270
[80468.211898]  cgroup_subtree_control_write+0x322/0x400
[80468.212854]  kernfs_fop_write_iter+0x11c/0x1b0
[80468.213777]  new_sync_write+0x11f/0x1b0
[80468.214689]  vfs_write+0x1eb/0x280
[80468.215592]  ksys_write+0x5f/0xe0
[80468.216463]  do_syscall_64+0x5c/0x80
[80468.217332]  ? filp_close+0x59/0x70
[80468.218176]  ? syscall_exit_work+0x112/0x150
[80468.219000]  ? syscall_exit_to_user_mode+0x12/0x30
[80468.219814]  ? do_syscall_64+0x69/0x80
[80468.220597]  ? syscall_exit_work+0x112/0x150
[80468.221366]  ? syscall_exit_to_user_mode+0x12/0x30
[80468.222134]  ? do_syscall_64+0x69/0x80
[80468.222875]  ? do_syscall_64+0x69/0x80
[80468.223589]  ? asm_exc_page_fault+0x8/0x30
[80468.224287]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[80468.224965] RIP: 0033:0x7f49a3371d67
[80468.225644] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
[80468.227030] RSP: 002b:00007ffea545f588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[80468.227720] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f49a3371d67
[80468.228402] RDX: 0000000000000008 RSI: 00005592a56c5810 RDI: 0000000000000001
[80468.229066] RBP: 00005592a56c5810 R08: 0000000000000000 R09: 00007f49a33e34e0
[80468.229722] R10: 00007f49a33e33e0 R11: 0000000000000246 R12: 0000000000000008
[80468.230378] R13: 00007f49a342c780 R14: 0000000000000008 R15: 00007f49a34279e0

Environment

  • Red Hat Enterprise Linux 9
  • Cgroup v2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content