Skip to content
Commit 64b4c411 authored by Andrew Morton's avatar Andrew Morton
Browse files

ipc/msg.c: fix percpu_counter use after free

These percpu counters are referenced in free_ipcs->freeque, so destroy
them later.

Fixes: 72d1e611

 ("ipc/msg: mitigate the lock contention with percpu counter")
Reported-by: default avatar <syzbot+96e659d35b9d6b541152@syzkaller.appspotmail.com>
Tested-by: default avatarMark Rutland <mark.rutland@arm.com>
Cc: Jiebin Sun <jiebin.sun@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 27d676a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment