[PATCH] maple_tree: Fix sparse reported issues

Liam Howlett liam.howlett at oracle.com
Fri Jul 15 12:53:10 PDT 2022


* Liam R. Howlett <Liam.Howlett at Oracle.com> [220713 13:50]:
> * Hugh Dickins <hughd at google.com> [220713 11:56]:
> > On Wed, 13 Jul 2022, Liam Howlett wrote:
> > > * David Hildenbrand <david at redhat.com> [220713 04:34]:
> > > > On 12.07.22 16:24, Liam Howlett wrote:
> > > > > When building with C=1, the maple tree had some rcu type mismatch &
> > > > > locking mismatches in the destroy functions.  There were cosmetic only
> > > > > since this happens after the nodes are removed from the tree.
> > > > > 
> > > > > Fixes: f8acc5e9581e (Maple Tree: add new data structure)
> > > > > Reported-by: kernel test robot <lkp at intel.com>
> > > > > Signed-off-by: Liam R. Howlett <Liam.Howlett at oracle.com>
> > > > 
> > > > Sorry to say, but the fixes become hard to follow (what/where/why). :)
> > > > 
> > > > I guess it's time for a new series soon. Eventually it makes sense to
> > > > send the fixes as reply to the individual problematic patches. (instead
> > > > of fixes to commit ids that are not upstream)
> > > > 
> > > > [yes, I'll do more review soon :) ]
> > > 
> > > I appreciate the feedback, it's much better than yelling into the void.
> > > I have one more fix in the works - for __vma_adjust() of all functions
> > > so that'll be impossible to follow anyways :)  I'll work on a v11 to
> > > include that last one.
> > 
> > Please do also post the incremental for that "one more fix" once it's
> > ready: I have been keeping up with what you've been posting so far,
> > folding them into my debugging here, and believe we have made some but
> > still not enough progress on the bugs I hit.  Folding in one more fix
> > will be easy for me, advancing to v11 of a 69-part patchset will be...
> > dispiriting.
> 
> 
> Okay, thanks.  I don't think it will fix your outstanding issues but it
> is necessary to fix case 6 of vma_merge() on memory allocation failure
> as reported by syzbot.

Hugh,

Please find attached the last outstanding fix for this series.  It
covers a rare failure scenario that one of the build bots reported.
Ironically, it changes __vma_adjust() more than the rest of the series,
but leaves the locking in the existing order.

Thanks,
Liam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mm-mmap-Fix-__vma_adjust-issue-on-memory-failure.patch
Type: text/x-diff
Size: 3449 bytes
Desc: 0001-mm-mmap-Fix-__vma_adjust-issue-on-memory-failure.patch
URL: <http://lists.infradead.org/pipermail/maple-tree/attachments/20220715/286b8bab/attachment-0001.bin>


More information about the maple-tree mailing list