general protection fault in unlink_file_vma
Quoted 8 lines · Hillf Danton
Quoted 6 lines · On Sun, 13 Sep 2020 09:17:26 +0000 linmiaohe wrote:
I reviewed the code carefully these days and I found
vma_merge()do onlyfput()thevm_fileof the linked vma inremove_nextcases. This gpf is much likely because the ->mmap() callback can changevma->vm_fileand fput the original file. But my previous commit failed to catch this case and alwaysfput()the original file, hence add an extrafput(). The below patch would make the things right:
Quoted 4 lines
Take another look at the Cc list and the link below.
Many thanks for your teach. I think I could send the proposed patch to the syzbot directly. Thanks again.:)