CPU Hotplug Splat
Hi!
While toying around with CPU affinities I noticed that offlining a CPU triggers reliable a crash. Is this known?
[ 32.812858] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 32.812879] #PF: supervisor read access in kernel mode [ 32.812881] #PF: error_code(0x0000) - not-present page [ 32.812883] PGD 0 P4D 0 [ 32.812886] Oops: Oops: 0000 [#1] SMP PTI IRQ_PIPELINE [ 32.812892] CPU: 4 UID: 0 PID: 36 Comm: migration/4 Not tainted 6.17.0-g970519241701-dirty #38 PREEMPT(voluntary) [ 32.812896] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014 [ 32.812898] IRQ stage: Linux [ 32.812899] Stopper: multi_cpu_stop+0x0/0x110 <- __stop_cpus.constprop.0+0x79/0xc0 [ 32.812909] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 32.812914] Code: 9d 5b e9 00 11 ee 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 6c 96 41 02 48 8b bf [ 32.812917] RSP: 0018:ffff9dcf0018cfd0 EFLAGS: 00010287 [ 32.812920] RAX: ffff8fdea8989000 RBX: 0000000000000000 RCX: ffff8fde00e64108 [ 32.812922] RDX: ffff8fde00e64000 RSI: ffff8fde3bd1dac0 RDI: 0000000000000000 [ 32.812923] RBP: ffff8fde00ea6200 R08: ffff8fde00e64100 R09: 0000000000000000 [ 32.812938] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8fde00fad600 [ 32.812940] R13: 000000000000001b R14: ffff9dcf0005bd00 R15: 0000000000000004 [ 32.812947] FS: 0000000000000000(0000) GS:ffff8fdea8989000(0000) knlGS:0000000000000000 [ 32.812950] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.812952] CR2: 0000000000000000 CR3: 0000000058a30000 CR4: 00000000000006f0 [ 32.812954] Call Trace: [ 32.812976] <IRQ> [ 32.812978] handle_synthetic_irq+0x9b/0x1b0 [ 32.812988] arch_do_IRQ_pipelined+0x85/0x460 [ 32.812995] </IRQ> [ 32.812996] <TASK> [ 32.812999] sync_current_irq_stage+0x159/0x160 [ 32.813003] inband_irq_restore+0x5d/0x80 [ 32.813008] multi_cpu_stop+0xdd/0x110 [ 32.813012] ? __pfx_multi_cpu_stop+0x10/0x10 [ 32.813016] cpu_stopper_thread+0x85/0x130 [ 32.813020] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 32.813027] smpboot_thread_fn+0xee/0x220 [ 32.813031] kthread+0xf9/0x1e0 [ 32.813037] ? __pfx_kthread+0x10/0x10 [ 32.813042] ret_from_fork+0x15a/0x170 [ 32.813049] ? __pfx_kthread+0x10/0x10 [ 32.813053] ret_from_fork_asm+0x1a/0x30 [ 32.813064] </TASK> [ 32.813064] Modules linked in: [ 32.813069] CR2: 0000000000000000 [ 32.813072] ---[ end trace 0000000000000000 ]--- [ 32.813074] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 32.813078] Code: 9d 5b e9 00 11 ee 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 6c 96 41 02 48 8b bf [ 32.813081] RSP: 0018:ffff9dcf0018cfd0 EFLAGS: 00010287 [ 32.813084] RAX: ffff8fdea8989000 RBX: 0000000000000000 RCX: ffff8fde00e64108 [ 32.813085] RDX: ffff8fde00e64000 RSI: ffff8fde3bd1dac0 RDI: 0000000000000000 [ 32.813087] RBP: ffff8fde00ea6200 R08: ffff8fde00e64100 R09: 0000000000000000 [ 32.813089] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8fde00fad600 [ 32.813091] R13: 000000000000001b R14: ffff9dcf0005bd00 R15: 0000000000000004 [ 32.813097] FS: 0000000000000000(0000) GS:ffff8fdea8989000(0000) knlGS:0000000000000000 [ 32.813099] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.813101] CR2: 0000000000000000 CR3: 0000000058a30000 CR4: 00000000000006f0 [ 32.813104] Kernel panic - not syncing: Fatal exception in interrupt [ 32.870451] Kernel Offset: 0xfc00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Thanks,
//richard
Quoted 11 lines · Richard Weinberger
Hi!
While toying around with CPU affinities I noticed that offlining a CPU triggers reliable a crash. Is this known?
[ 32.812858] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 32.812879] #PF: supervisor read access in kernel mode [ 32.812881] #PF: error_code(0x0000) - not-present page [ 32.812883] PGD 0 P4D 0 [ 32.812886] Oops: Oops: 0000 [#1] SMP PTI IRQ_PIPELINE [ 32.812892] CPU: 4 UID: 0 PID: 36 Comm: migration/4 Not tainted 6.17.0-g970519241701-dirty #38 PREEMPT(voluntary)
I thinks 6.17 (which is retired BTW) never received this:
https://gitlab.com/Xenomai/linux-dovetail/-/commit/65f59eefa1043e9414b37312826de2a0fa07624e
Jan
Quoted 53 lines
[ 32.812896] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014 [ 32.812898] IRQ stage: Linux [ 32.812899] Stopper: multi_cpu_stop+0x0/0x110 <- __stop_cpus.constprop.0+0x79/0xc0 [ 32.812909] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 32.812914] Code: 9d 5b e9 00 11 ee 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 6c 96 41 02 48 8b bf [ 32.812917] RSP: 0018:ffff9dcf0018cfd0 EFLAGS: 00010287 [ 32.812920] RAX: ffff8fdea8989000 RBX: 0000000000000000 RCX: ffff8fde00e64108 [ 32.812922] RDX: ffff8fde00e64000 RSI: ffff8fde3bd1dac0 RDI: 0000000000000000 [ 32.812923] RBP: ffff8fde00ea6200 R08: ffff8fde00e64100 R09: 0000000000000000 [ 32.812938] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8fde00fad600 [ 32.812940] R13: 000000000000001b R14: ffff9dcf0005bd00 R15: 0000000000000004 [ 32.812947] FS: 0000000000000000(0000) GS:ffff8fdea8989000(0000) knlGS:0000000000000000 [ 32.812950] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.812952] CR2: 0000000000000000 CR3: 0000000058a30000 CR4: 00000000000006f0 [ 32.812954] Call Trace: [ 32.812976] <IRQ> [ 32.812978] handle_synthetic_irq+0x9b/0x1b0 [ 32.812988] arch_do_IRQ_pipelined+0x85/0x460 [ 32.812995] </IRQ> [ 32.812996] <TASK> [ 32.812999] sync_current_irq_stage+0x159/0x160 [ 32.813003] inband_irq_restore+0x5d/0x80 [ 32.813008] multi_cpu_stop+0xdd/0x110 [ 32.813012] ? __pfx_multi_cpu_stop+0x10/0x10 [ 32.813016] cpu_stopper_thread+0x85/0x130 [ 32.813020] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 32.813027] smpboot_thread_fn+0xee/0x220 [ 32.813031] kthread+0xf9/0x1e0 [ 32.813037] ? __pfx_kthread+0x10/0x10 [ 32.813042] ret_from_fork+0x15a/0x170 [ 32.813049] ? __pfx_kthread+0x10/0x10 [ 32.813053] ret_from_fork_asm+0x1a/0x30 [ 32.813064] </TASK> [ 32.813064] Modules linked in: [ 32.813069] CR2: 0000000000000000 [ 32.813072] ---[ end trace 0000000000000000 ]--- [ 32.813074] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 32.813078] Code: 9d 5b e9 00 11 ee 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 6c 96 41 02 48 8b bf [ 32.813081] RSP: 0018:ffff9dcf0018cfd0 EFLAGS: 00010287 [ 32.813084] RAX: ffff8fdea8989000 RBX: 0000000000000000 RCX: ffff8fde00e64108 [ 32.813085] RDX: ffff8fde00e64000 RSI: ffff8fde3bd1dac0 RDI: 0000000000000000 [ 32.813087] RBP: ffff8fde00ea6200 R08: ffff8fde00e64100 R09: 0000000000000000 [ 32.813089] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8fde00fad600 [ 32.813091] R13: 000000000000001b R14: ffff9dcf0005bd00 R15: 0000000000000004 [ 32.813097] FS: 0000000000000000(0000) GS:ffff8fdea8989000(0000) knlGS:0000000000000000 [ 32.813099] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.813101] CR2: 0000000000000000 CR3: 0000000058a30000 CR4: 00000000000006f0 [ 32.813104] Kernel panic - not syncing: Fatal exception in interrupt [ 32.870451] Kernel Offset: 0xfc00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)Thanks,
//richard
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
----- Ursprüngliche Mail -----
Quoted 4 lines
Von: "Jan Kiszka" <[email protected]>
Quoted 1 line
6.17.0-g970519241701-dirty #38 PREEMPT(voluntary)
I thinks 6.17 (which is retired BTW) never received this:
Hm, xenomai.org still lists v6.17-dovetail2 as latest. I'll try a more recent branch.
Quoted 1 line
https://gitlab.com/Xenomai/linux-dovetail/-/commit/65f59eefa1043e9414b37312826de2a0fa07624e
Thanks,
//richard
Quoted 7 lines · Richard Weinberger
----- Ursprüngliche Mail -----
Quoted 4 lines
Von: "Jan Kiszka" <[email protected]>
Quoted 1 line
6.17.0-g970519241701-dirty #38 PREEMPT(voluntary)
I thinks 6.17 (which is retired BTW) never received this:
Hm, xenomai.org still lists v6.17-dovetail2 as latest.
Yeah, "latest" with a tag - hope we get the one for 6.18.y very soon now.
Jan
Quoted 6 lines
I'll try a more recent branch.
Quoted 1 line
https://gitlab.com/Xenomai/linux-dovetail/-/commit/65f59eefa1043e9414b37312826de2a0fa07624e
Thanks,
//richard
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
----- Ursprüngliche Mail -----
Quoted 4 lines
Von: "Jan Kiszka" <[email protected]>
Quoted 3 lines
I'll try a more recent branch.
v6.18.y-dovetail-rebase contains this fix but the crash still happens.
[ 7299.180846] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 7299.180859] #PF: supervisor read access in kernel mode [ 7299.180861] #PF: error_code(0x0000) - not-present page [ 7299.180862] PGD 0 P4D 0 [ 7299.180865] Oops: Oops: 0000 [#1] SMP PTI IRQ_PIPELINE [ 7299.180869] CPU: 6 UID: 0 PID: 46 Comm: migration/6 Not tainted 6.18.2-g768d3d5bf800-dirty #41 PREEMPT(voluntary) [ 7299.180873] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014 [ 7299.180874] IRQ stage: Linux [ 7299.180875] Stopper: multi_cpu_stop+0x0/0x110 <- __stop_cpus.constprop.0+0x79/0xc0 [ 7299.180885] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 7299.180889] Code: 9d 5b e9 00 fa ed 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 ac 99 41 02 48 8b bf [ 7299.180891] RSP: 0018:ffffa861c01e4fd0 EFLAGS: 00010287 [ 7299.180893] RAX: ffff8979e6006000 RBX: 0000000000000000 RCX: ffff89794023ea08 [ 7299.180895] RDX: ffff89794023e800 RSI: ffff89797bd9dac0 RDI: 0000000000000000 [ 7299.180896] RBP: ffff897940f0cc00 R08: ffff89794023ea00 R09: 0000000000000000 [ 7299.180897] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8979408b0c80 [ 7299.180898] R13: 000000000000001b R14: ffffa861c005bd00 R15: 0000000000000004 [ 7299.180903] FS: 0000000000000000(0000) GS:ffff8979e6006000(0000) knlGS:0000000000000000 [ 7299.180905] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7299.180907] CR2: 0000000000000000 CR3: 0000000028630000 CR4: 00000000000006f0 [ 7299.180908] Call Trace: [ 7299.180940] <IRQ> [ 7299.180941] handle_synthetic_irq+0x9b/0x1b0 [ 7299.180948] arch_do_IRQ_pipelined+0x85/0x460 [ 7299.180952] </IRQ> [ 7299.180953] <TASK> [ 7299.180954] sync_current_irq_stage+0x159/0x160 [ 7299.180957] inband_irq_restore+0x5d/0x80 [ 7299.180961] multi_cpu_stop+0xdd/0x110 [ 7299.180964] ? __pfx_multi_cpu_stop+0x10/0x10 [ 7299.180966] cpu_stopper_thread+0x85/0x130 [ 7299.180970] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 7299.180974] smpboot_thread_fn+0xee/0x220 [ 7299.180976] kthread+0xf9/0x1e0 [ 7299.180980] ? __pfx_kthread+0x10/0x10 [ 7299.180983] ret_from_fork+0x15e/0x1a0 [ 7299.180988] ? __pfx_kthread+0x10/0x10 [ 7299.180990] ret_from_fork_asm+0x1a/0x30 [ 7299.180996] </TASK> [ 7299.180997] Modules linked in: [ 7299.180999] CR2: 0000000000000000 [ 7299.181001] ---[ end trace 0000000000000000 ]--- [ 7299.181002] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 7299.181005] Code: 9d 5b e9 00 fa ed 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 ac 99 41 02 48 8b bf [ 7299.181007] RSP: 0018:ffffa861c01e4fd0 EFLAGS: 00010287 [ 7299.181009] RAX: ffff8979e6006000 RBX: 0000000000000000 RCX: ffff89794023ea08 [ 7299.181010] RDX: ffff89794023e800 RSI: ffff89797bd9dac0 RDI: 0000000000000000 [ 7299.181011] RBP: ffff897940f0cc00 R08: ffff89794023ea00 R09: 0000000000000000 [ 7299.181013] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8979408b0c80 [ 7299.181013] R13: 000000000000001b R14: ffffa861c005bd00 R15: 0000000000000004 [ 7299.181016] FS: 0000000000000000(0000) GS:ffff8979e6006000(0000) knlGS:0000000000000000 [ 7299.181018] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7299.181019] CR2: 0000000000000000 CR3: 0000000028630000 CR4: 00000000000006f0 [ 7299.181020] Kernel panic - not syncing: Fatal exception in interrupt [ 7299.227448] Kernel Offset: 0x12600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Thanks,
//richard
Quoted 55 lines · Richard Weinberger
----- Ursprüngliche Mail -----
Quoted 4 lines
Von: "Jan Kiszka" <[email protected]>
Quoted 3 lines
I'll try a more recent branch.
v6.18.y-dovetail-rebase contains this fix but the crash still happens.
[ 7299.180846] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 7299.180859] #PF: supervisor read access in kernel mode [ 7299.180861] #PF: error_code(0x0000) - not-present page [ 7299.180862] PGD 0 P4D 0 [ 7299.180865] Oops: Oops: 0000 [#1] SMP PTI IRQ_PIPELINE [ 7299.180869] CPU: 6 UID: 0 PID: 46 Comm: migration/6 Not tainted 6.18.2-g768d3d5bf800-dirty #41 PREEMPT(voluntary) [ 7299.180873] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014 [ 7299.180874] IRQ stage: Linux [ 7299.180875] Stopper: multi_cpu_stop+0x0/0x110 <- __stop_cpus.constprop.0+0x79/0xc0 [ 7299.180885] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 7299.180889] Code: 9d 5b e9 00 fa ed 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 ac 99 41 02 48 8b bf [ 7299.180891] RSP: 0018:ffffa861c01e4fd0 EFLAGS: 00010287 [ 7299.180893] RAX: ffff8979e6006000 RBX: 0000000000000000 RCX: ffff89794023ea08 [ 7299.180895] RDX: ffff89794023e800 RSI: ffff89797bd9dac0 RDI: 0000000000000000 [ 7299.180896] RBP: ffff897940f0cc00 R08: ffff89794023ea00 R09: 0000000000000000 [ 7299.180897] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8979408b0c80 [ 7299.180898] R13: 000000000000001b R14: ffffa861c005bd00 R15: 0000000000000004 [ 7299.180903] FS: 0000000000000000(0000) GS:ffff8979e6006000(0000) knlGS:0000000000000000 [ 7299.180905] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7299.180907] CR2: 0000000000000000 CR3: 0000000028630000 CR4: 00000000000006f0 [ 7299.180908] Call Trace: [ 7299.180940] <IRQ> [ 7299.180941] handle_synthetic_irq+0x9b/0x1b0 [ 7299.180948] arch_do_IRQ_pipelined+0x85/0x460 [ 7299.180952] </IRQ> [ 7299.180953] <TASK> [ 7299.180954] sync_current_irq_stage+0x159/0x160 [ 7299.180957] inband_irq_restore+0x5d/0x80 [ 7299.180961] multi_cpu_stop+0xdd/0x110 [ 7299.180964] ? __pfx_multi_cpu_stop+0x10/0x10 [ 7299.180966] cpu_stopper_thread+0x85/0x130 [ 7299.180970] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 7299.180974] smpboot_thread_fn+0xee/0x220 [ 7299.180976] kthread+0xf9/0x1e0 [ 7299.180980] ? __pfx_kthread+0x10/0x10 [ 7299.180983] ret_from_fork+0x15e/0x1a0 [ 7299.180988] ? __pfx_kthread+0x10/0x10 [ 7299.180990] ret_from_fork_asm+0x1a/0x30 [ 7299.180996] </TASK> [ 7299.180997] Modules linked in: [ 7299.180999] CR2: 0000000000000000 [ 7299.181001] ---[ end trace 0000000000000000 ]--- [ 7299.181002] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 7299.181005] Code: 9d 5b e9 00 fa ed 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 ac 99 41 02 48 8b bf [ 7299.181007] RSP: 0018:ffffa861c01e4fd0 EFLAGS: 00010287 [ 7299.181009] RAX: ffff8979e6006000 RBX: 0000000000000000 RCX: ffff89794023ea08 [ 7299.181010] RDX: ffff89794023e800 RSI: ffff89797bd9dac0 RDI: 0000000000000000
Quoted 9 lines
[ 7299.181011] RBP: ffff897940f0cc00 R08: ffff89794023ea00 R09: 0000000000000000 [ 7299.181013] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8979408b0c80 [ 7299.181013] R13: 000000000000001b R14: ffffa861c005bd00 R15: 0000000000000004 [ 7299.181016] FS: 0000000000000000(0000) GS:ffff8979e6006000(0000) knlGS:0000000000000000 [ 7299.181018] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7299.181019] CR2: 0000000000000000 CR3: 0000000028630000 CR4: 00000000000006f0 [ 7299.181020] Kernel panic - not syncing: Fatal exception in interrupt [ 7299.227448] Kernel Offset: 0x12600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Regression, i.e. was 6.12 fine? And all it takes is some "echo 0 > /sys/devices/system/cpu/cpu1/online"?
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
Quoted 26 lines · Richard Weinberger
Hi!
While toying around with CPU affinities I noticed that offlining a CPU triggers reliable a crash. Is this known?
[ 32.812858] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 32.812879] #PF: supervisor read access in kernel mode [ 32.812881] #PF: error_code(0x0000) - not-present page [ 32.812883] PGD 0 P4D 0 [ 32.812886] Oops: Oops: 0000 [#1] SMP PTI IRQ_PIPELINE [ 32.812892] CPU: 4 UID: 0 PID: 36 Comm: migration/4 Not tainted 6.17.0-g970519241701-dirty #38 PREEMPT(voluntary) [ 32.812896] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014 [ 32.812898] IRQ stage: Linux [ 32.812899] Stopper: multi_cpu_stop+0x0/0x110 <- __stop_cpus.constprop.0+0x79/0xc0 [ 32.812909] RIP: 0010:proxy_irq_handler+0x13/0x30 [ 32.812914] Code: 9d 5b e9 00 11 ee 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 05 6c 96 41 02 48 8b bf [ 32.812917] RSP: 0018:ffff9dcf0018cfd0 EFLAGS: 00010287 [ 32.812920] RAX: ffff8fdea8989000 RBX: 0000000000000000 RCX: ffff8fde00e64108 [ 32.812922] RDX: ffff8fde00e64000 RSI: ffff8fde3bd1dac0 RDI: 0000000000000000 [ 32.812923] RBP: ffff8fde00ea6200 R08: ffff8fde00e64100 R09: 0000000000000000 [ 32.812938] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8fde00fad600 [ 32.812940] R13: 000000000000001b R14: ffff9dcf0005bd00 R15: 0000000000000004 [ 32.812947] FS: 0000000000000000(0000) GS:ffff8fdea8989000(0000) knlGS:0000000000000000 [ 32.812950] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.812952] CR2: 0000000000000000 CR3: 0000000058a30000 CR4: 00000000000006f0 [ 32.812954] Call Trace:
Quoted 8 lines
[ 32.812976] <IRQ> [ 32.812978] handle_synthetic_irq+0x9b/0x1b0 [ 32.812988] arch_do_IRQ_pipelined+0x85/0x460 [ 32.812995] </IRQ> [ 32.812996] <TASK> [ 32.812999] sync_current_irq_stage+0x159/0x160 [ 32.813003] inband_irq_restore+0x5d/0x80 [ 32.813008] multi_cpu_stop+0xdd/0x110
The crash above is a timer event still pending in the inband IRQ log after the tick proxy was dismantled on that CPU, bad.
Signature · 1 line
Philippe.
----- Ursprüngliche Mail -----
Quoted 3 lines
Von: "Jan Kiszka" <[email protected]>
Regression, i.e. was 6.12 fine? And all it takes is some "echo 0 >/sys/devices/system/cpu/cpu1/online"?
I have v6.12 a try, seems to work. So it's a regression.
Yes, echo 0 > /sys/devices/system/cpu/cpu1/online is enough to trigger it.
Thanks,
//richard
----- Ursprüngliche Mail -----
Quoted 3 lines
Von: "richard" <[email protected]>
I have v6.12 a try, seems to work. So it's a regression.
Yes, echo 0 >/sys/devices/system/cpu/cpu1/onlineis enough to trigger it.
There is more fishy. While setting a CPU offline works fine on v6.12, it seems to confuse the Xenomai CPU scheduler.
If an RT task sleeps, e.g. in rt_task_sleep(), and it's current CPU is set offline it will never again wake up nor is killable.
It seems to hang indefinite in dovetail_context_switch():
[<0>] dovetail_context_switch+0x8a/0x1b0 [<0>] ___xnsched_run+0x238/0x3d0 [<0>] run_oob_call+0x77/0x120 [<0>] xnthread_suspend+0x342/0x420 [<0>] __cobalt_clock_nanosleep+0x118/0x480 [<0>] CoBaLt_clock_nanosleep+0x90/0x110 [<0>] handle_root_syscall+0x132/0x2e0 [<0>] __pipeline_syscall+0x87/0x1e0 [<0>] pipeline_syscall+0x63/0xf0 [<0>] do_syscall_64+0x92/0x220 [<0>] entry_SYSCALL_64_after_hwframe+0x77/0x7f
Thanks,
//richard