mm/debug: prefer VM_WARN_ON_VMG() to report VMG debug warnings
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Fri, 3 Jan 2025 19:35:36 +0000 (19:35 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:24 +0000 (20:22 -0800)
commitfe1679ed02bc24d88918c555dd9e5d95ddb03ab1
tree9fa39a70d4095b1c99daf5830e1285a6749ab910
parentb0d66d82fce60161de6f3d57f87016c3a6f7a121
mm/debug: prefer VM_WARN_ON_VMG() to report VMG debug warnings

Now we have VM_WARN_ON_VMG() to provide us with considerably more debug
output when a debug assert fails, utilise it everywhere we can.

This allows us to have considerably more information to go on when things
go wrong, especially when a non-repro issue occurs as reported by
syzkaller or the like.

Link: https://lkml.kernel.org/r/986e45e9549e71284ac7a7fa878688568a94d58b.1735932169.git.lorenzo.stoakes@oracle.com
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jann Horn <jannh@google.com>
Cc: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vma.c