Wen Yang
5fdf01181c
ipmi: fix hung processes in __get_guid()
commit 32830a0534700f86366f371b150b17f0f0d140d7 upstream.
The wait_event() function is used to detect command completion.
When send_guid_cmd() returns an error, smi_send() has not been
called to send data. Therefore, wait_event() should not be used
on the error path, otherwise it will cause the following warning:
[ 1361.588808] systemd-udevd D 0 1501 1436 0x00000004
[ 1361.588813] ffff883f4b1298c0 0000000000000000 ffff883f4b188000 ffff887f7e3d9f40
[ 1361.677952] ffff887f64bd4280 ffffc90037297a68 ffffffff8173ca3b ffffc90000000010
[ 1361.767077] 00ffc90037297ad0 ffff887f7e3d9f40 0000000000000286 ffff883f4b188000
[ 1361.856199] Call Trace:
[ 1361.885578] [<ffffffff8173ca3b>] ? __schedule+0x23b/0x780
[ 1361.951406] [<ffffffff8173cfb6>] schedule+0x36/0x80
[ 1362.010979] [<ffffffffa071f178>] get_guid+0x118/0x150 [ipmi_msghandler]
[ 1362.091281] [<ffffffff810d5350>] ? prepare_to_wait_event+0x100/0x100
[ 1362.168533] [<ffffffffa071f755>] ipmi_register_smi+0x405/0x940 [ipmi_msghandler]
[ 1362.258337] [<ffffffffa0230ae9>] try_smi_init+0x529/0x950 [ipmi_si]
[ 1362.334521] [<ffffffffa022f350>] ? std_irq_setup+0xd0/0xd0 [ipmi_si]
[ 1362.411701] [<ffffffffa0232bd2>] init_ipmi_si+0x492/0x9e0 [ipmi_si]
[ 1362.487917] [<ffffffffa0232740>] ? ipmi_pci_probe+0x280/0x280 [ipmi_si]
[ 1362.568219] [<ffffffff810021a0>] do_one_initcall+0x50/0x180
[ 1362.636109] [<ffffffff812231b2>] ? kmem_cache_alloc_trace+0x142/0x190
[ 1362.714330] [<ffffffff811b2ae1>] do_init_module+0x5f/0x200
[ 1362.781208] [<ffffffff81123ca8>] load_module+0x1898/0x1de0
[ 1362.848069] [<ffffffff811202e0>] ? __symbol_put+0x60/0x60
[ 1362.913886] [<ffffffff8130696b>] ? security_kernel_post_read_file+0x6b/0x80
[ 1362.998514] [<ffffffff81124465>] SYSC_finit_module+0xe5/0x120
[ 1363.068463] [<ffffffff81124465>] ? SYSC_finit_module+0xe5/0x120
[ 1363.140513] [<ffffffff811244be>] SyS_finit_module+0xe/0x10
[ 1363.207364] [<ffffffff81003c04>] do_syscall_64+0x74/0x180
Fixes: 50c812b2b9 ("[PATCH] ipmi: add full sysfs support")
Signed-off-by: Wen Yang <[email protected]>
Cc: Corey Minyard <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected] # 2.6.17-
Message-Id: <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
|
2020-04-17 10:50:22 +02:00 |
| .. |
|
agp
|
ia64: remove support for machvecs
|
2019-08-16 14:32:26 -07:00 |
|
hw_random
|
hwrng: imx-rngc - fix an error path
|
2020-04-13 10:48:08 +02:00 |
|
ipmi
|
ipmi: fix hung processes in __get_guid()
|
2020-04-17 10:50:22 +02:00 |
|
mwave
|
treewide: Add SPDX license identifier - Makefile/Kconfig
|
2019-05-21 10:50:46 +02:00 |
|
pcmcia
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 18
|
2019-05-21 11:28:46 +02:00 |
|
tpm
|
tpm: tpm2_bios_measurements_next should increase position index
|
2020-04-17 10:50:11 +02:00 |
|
xilinx_hwicap
|
treewide: Add SPDX license identifier - Makefile/Kconfig
|
2019-05-21 10:50:46 +02:00 |
|
xillybus
|
PCI: Move ASPM declarations to linux/pci.h
|
2019-08-28 08:28:39 -05:00 |
|
adi.c
|
|
|
|
apm-emulation.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
applicom.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
applicom.h
|
|
|
|
bsr.c
|
Merge 5.2-rc4 into char-misc-next
|
2019-06-09 09:11:21 +02:00 |
|
ds1620.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
dsp56k.c
|
|
|
|
dtlk.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
efirtc.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
hangcheck-timer.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 405
|
2019-06-05 17:37:13 +02:00 |
|
hpet.c
|
char: hpet: Fix out-of-bounds read bug
|
2020-02-24 08:36:59 +01:00 |
|
Kconfig
|
ia64 for v5.4 - big change here is removal of support for SGI Altix
|
2019-09-16 15:32:01 -07:00 |
|
lp.c
|
lp: fix sparc64 LPSETTIMEOUT ioctl
|
2019-12-13 08:42:17 +01:00 |
|
Makefile
|
char: remove the SGI tiocx/mbcs driver
|
2019-08-16 11:33:56 -07:00 |
|
mem.c
|
Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
|
2019-09-28 08:14:15 -07:00 |
|
misc.c
|
char: misc: Move EXPORT_SYMBOL immediately next to the functions/varibles
|
2019-05-24 18:00:41 +02:00 |
|
mspec.c
|
char/mspec: remove SGI SN2 support
|
2019-08-16 11:33:56 -07:00 |
|
nsc_gpio.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
nvram.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
nwbutton.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
nwbutton.h
|
|
|
|
nwflash.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
pc8736x_gpio.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
powernv-op-panel.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
ppdev.c
|
ppdev: fix PPGETTIME/PPSETTIME ioctls
|
2019-12-17 19:56:41 +01:00 |
|
ps3flash.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 164
|
2019-05-30 11:26:38 -07:00 |
|
random.c
|
random: always use batched entropy for get_random_u{32,64}
|
2020-04-13 10:48:06 +02:00 |
|
raw.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
rtc.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
|
2019-05-30 11:26:32 -07:00 |
|
scx200_gpio.c
|
treewide: Add SPDX license identifier for more missed files
|
2019-05-21 10:50:45 +02:00 |
|
sonypi.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61
|
2019-05-24 17:36:45 +02:00 |
|
tb0219.c
|
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
|
2019-05-30 11:26:35 -07:00 |
|
tlclk.c
|
|
|
|
toshiba.c
|
toshiba: Add correct printk log level while emitting error log
|
2019-09-04 13:42:43 +02:00 |
|
ttyprintk.c
|
ttyprintk: fix a potential deadlock in interrupt context issue
|
2020-02-05 21:22:41 +00:00 |
|
uv_mmtimer.c
|
|
|
|
virtio_console.c
|
virtio_console: allocate inbufs in add_port() only if it is needed
|
2019-11-19 05:13:49 -05:00 |