linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ipmi: fix ipmi memleak and unload bug
@ 2022-10-09  9:18 Zhang Yuchen
  2022-10-09  9:18 ` [PATCH v2 1/3] ipmi: fix msg stack when IPMI is disconnected Zhang Yuchen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zhang Yuchen @ 2022-10-09  9:18 UTC (permalink / raw)
  To: minyard; +Cc: openipmi-developer, linux-kernel, qi.zheng, Zhang Yuchen

Our users have reported a memory leak. The IPMI driver consumes a lot of
memory.

We found this problem because IPMI was slow to release messages after
being disconnected, causing what appeared to be a memory leak.

Fix commit as:
  ipmi: fix msg stack when IPMI is disconnected

Two other issues were addressed in the process of solving this problem.

1. Unloading the driver takes a long time.

Fix commit as:
  ipmi: fix long wait in unload when IPMI disconnect

2. Memory leaks during driver unloading.

Fix commit as:
  ipmi: fix memleak when unload ipmi driver


v1: https://lore.kernel.org/lkml/20221007092617.87597-1-zhangyuchen.lcr@bytedance.com/

Changelog in v1 -> v2 (suggested by corey):
 - Change HOSED to the invalid state and not allowed to send.[TESTED]
 - Remove incorrect comment.

Zhang Yuchen (3):
  ipmi: fix msg stack when IPMI is disconnected
  ipmi: fix long wait in unload when IPMI disconnect
  ipmi: fix memleak when unload ipmi driver

 drivers/char/ipmi/ipmi_kcs_sm.c     | 16 +++++++++++-----
 drivers/char/ipmi/ipmi_msghandler.c |  5 ++++-
 drivers/char/ipmi/ipmi_si_intf.c    | 27 +++++++++++++++++++--------
 3 files changed, 34 insertions(+), 14 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-09 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-09  9:18 [PATCH v2 0/3] ipmi: fix ipmi memleak and unload bug Zhang Yuchen
2022-10-09  9:18 ` [PATCH v2 1/3] ipmi: fix msg stack when IPMI is disconnected Zhang Yuchen
2022-10-09 11:03   ` Corey Minyard
2022-10-09  9:18 ` [PATCH v2 2/3] ipmi: fix long wait in unload when IPMI disconnect Zhang Yuchen
2022-10-09  9:18 ` [PATCH v2 3/3] ipmi: fix memleak when unload ipmi driver Zhang Yuchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).