Commit b52da405 authored by Corey Minyard's avatar Corey Minyard
Browse files

ipmi: Rework user message limit handling



The limit on the number of user messages had a number of issues,
improper counting in some cases and a use after free.

Restructure how this is all done to handle more in the receive message
allocation routine, so all refcouting and user message limit counts
are done in that routine.  It's a lot cleaner and safer.

Reported-by: default avatarGilles BULOZ <gilles.buloz@kontron.com>
Closes: https://lore.kernel.org/lkml/aLsw6G0GyqfpKs2S@mail.minyard.net/


Fixes: 8e76741c ("ipmi: Add a limit on the number of users that may use IPMI")
Cc: <stable@vger.kernel.org> # 4.19
Signed-off-by: default avatarCorey Minyard <corey@minyard.net>
Tested-by: default avatarGilles BULOZ <gilles.buloz@kontron.com>
parent 5d09ee1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment