Re: [syzbot] KASAN: null-ptr-deref Read in __free_pages

From: David Howells
Date: Mon Mar 21 2022 - 04:24:36 EST


It should be possible to just test for the pointer being NULL in the loop
before calling __free_pages() since the list was allocated with kcalloc().

David

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git 6d39b096627f0a1eb6e14f049d8ae3c93e0290f2