Re: [PATCH] pstore: fix warning in pstore_kill_sb()

2021-02-23 Thread Kees Cook
On Sun, 14 Feb 2021 12:13:07 +0900, Tetsuo Handa wrote: > syzbot is hitting WARN_ON(pstore_sb != sb) at pstore_kill_sb() [1], for the > assumption that pstore_sb != NULL is wrong because pstore_fill_super() will > not assign pstore_sb = sb when new_inode() for d_make_root() returned NULL > (due to

[PATCH] pstore: fix warning in pstore_kill_sb()

2021-02-13 Thread Tetsuo Handa
syzbot is hitting WARN_ON(pstore_sb != sb) at pstore_kill_sb() [1], for the assumption that pstore_sb != NULL is wrong because pstore_fill_super() will not assign pstore_sb = sb when new_inode() for d_make_root() returned NULL (due to memory allocation fault injection). Since mount_single() calls