]> granicus.if.org Git - procps-ng/commit
slabtop: Reset slab_list if get_slabinfo() fails.
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 21:32:21 +0000 (07:32 +1000)
commit5f3c071cd3119f3aaedb2de44ca360b48aa486fa
tree98cb43bc7cf20d58fd55f3c4a8d5a3691feb6daf
parent2fc42db322e64ba1c063b36cdbd29da4ce1c9f7a
slabtop: Reset slab_list if get_slabinfo() fails.

Otherwise "the state of 'list' and 'stats' are undefined" (as per
get_slabinfo()'s documentation) and free_slabinfo() crashes (a
use-after-free).
slabtop.c