summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorOscar Salvador <osalvador@suse.de>2024-04-04 10:07:02 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-04-17 01:39:49 +0300
commit74017458017127ca6bf14b1f9fda69e03f43389b (patch)
tree182e37b765f508c6139e64c48699e6601ca923e7 /virt/kvm
parent718b1f3373a7999f77e617c17abdcb98a3c001ea (diff)
downloadlinux-74017458017127ca6bf14b1f9fda69e03f43389b.tar.xz
mm,page_owner: fix printing of stack records
When seq_* code sees that its buffer overflowed, it re-allocates a bigger onecand calls seq_operations->start() callback again. stack_start() naively though that if it got called again, it meant that the old record got already printed so it returned the next object, but that is not true. The consequence of that is that every time stack_stop() -> stack_start() get called because we needed a bigger buffer, stack_start() will skip entries, and those will not be printed. Fix it by not advancing to the next object in stack_start(). Link: https://lkml.kernel.org/r/20240404070702.2744-5-osalvador@suse.de Fixes: 765973a09803 ("mm,page_owner: display all stacks and their count") Signed-off-by: Oscar Salvador <osalvador@suse.de> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Cc: Alexander Potapenko <glider@google.com> Cc: Alexandre Ghiti <alexghiti@rivosinc.com> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Marco Elver <elver@google.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions