Re: [syzbot] [mm?] BUG: Bad page map (8)

From: Hillf Danton
Date: Fri Jul 19 2024 - 19:08:53 EST


On Thu, 18 Jul 2024 15:51:26 -0700
> syzbot found the following issue on:
>
> HEAD commit: 4d145e3f830b Merge tag 'i2c-for-6.10-rc8' of git://git.ker..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1366ab85980000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4d145e3f830b

--- x/mm/truncate.c
+++ y/mm/truncate.c
@@ -192,6 +192,7 @@ int truncate_inode_folio(struct address_
return -EIO;

truncate_cleanup_folio(folio);
+ BUG_ON(folio_mapped(folio));
filemap_remove_folio(folio);
return 0;
}
--