]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI
authorThomas Gleixner <tglx@linutronix.de>
Mon, 22 Jul 2019 18:47:06 +0000 (20:47 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit273ce7690ee65ee1718cb5971f0d0c173bdc2ae0
treeb63f4b2b664fc782e70f7bce02d03cd1e13a8946
parent082c68a8ddda36fa8267446e45436b6199eb33c2
x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 2591bc4e8d70b4e1330d327fb7e3921f4e070a51 ]

apic->send_IPI_allbutself() takes a vector number as argument.

APIC_DM_NMI is clearly not a vector number. It's defined to 0x400 which is
outside the vector space.

Use NMI_VECTOR instead as that's what it is intended to be.

Fixes: 82da3ff89dc2 ("x86: kgdb support")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20190722105218.855189979@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/kernel/kgdb.c