pagevec: Initialise folio_batch->percpu_pvec_drained

When UBSAN is enabled, it reports an invalid value in __pagevec_release()
when accessing pvec->percpu_pvec_drained, which is simply whatever
garbage was on the stack. Initialise it when initialising the rest of
the folio_batch.

Fixes: 10331795fb79 ("pagevec: Add folio_batch")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

+1
+1
include/linux/pagevec.h
··· 111 111 static inline void folio_batch_init(struct folio_batch *fbatch) 112 112 { 113 113 fbatch->nr = 0; 114 + fbatch->percpu_pvec_drained = false; 114 115 } 115 116 116 117 static inline unsigned int folio_batch_count(struct folio_batch *fbatch)