History

mm/vmstat.c: fix outdated vmstat_text

7a9cdebdcc17 ("mm: get rid of vmacache_flush_all() entirely") removed the VMACACHE_FULL_FLUSHES statistics, but didn't remove the corresponding entry in vmstat_text. This causes an out-of-bounds access in vmstat_show(). Luckily this only affects kernels with CONFIG_DEBUG_VM_VMACACHE=y, which is probably very rare.

Jann Horn committed 8 years ago

Commit 28e2c4b1 parent f8a00ce1 file · +0 −1Browse files

Unified · Split

mm/vmstat.c+0−1
@@ -1283,7 +1283,6 @@ const char * const vmstat_text[] = { · 1282 unmodified lines
12831283 #ifdef CONFIG_DEBUG_VM_VMACACHE
12841284 "vmacache_find_calls",
12851285 "vmacache_find_hits",
1286− "vmacache_full_flushes",
12871286 #endif
12881287 #ifdef CONFIG_SWAP
12891288 "swap_ra",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t