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
1283#ifdef CONFIG_DEBUG_VM_VMACACHE1283#ifdef CONFIG_DEBUG_VM_VMACACHE
1284 "vmacache_find_calls",1284 "vmacache_find_calls",
1285 "vmacache_find_hits",1285 "vmacache_find_hits",
1286 "vmacache_full_flushes",
1287#endif1286#endif
1288#ifdef CONFIG_SWAP1287#ifdef CONFIG_SWAP
1289 "swap_ra",1288 "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