Re: [PATCH 00/16] Fix SDMA/TID caching code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2016-07-28 at 15:21 -0400, ira.weiny@xxxxxxxxx wrote:
> From: Ira Weiny <ira.weiny@xxxxxxxxx>
> 
> This series fixes a number of bugs found while debugging the use of
> the
> mm_struct "current->mm".  When PSM jobs were stopped unexpectedly
> (for example
> control-c) it was possible for the wrong mm struct to be used in
> mmu_notifier_unregister.  This was causing memory corruption.  In
> addition, a
> number of might sleep conditions were found when mmap_sem needed to
> be taken
> while a spinlock was held.
> 
> The following are stand alone fixes which can probably be reordered
> if
> necessary:
> 
> 	IB/hfi1: Prevent null pointer dereference
> 	IB/hfi1: Use the same capability state for all shared contexts
> 	IB/hfi1: Validate SDMA user request index
> 	IB/hfi1: Validate SDMA user iovector count
> 	IB/hfi1: Release node on insert failure
> 	IB/hfi1: Fix error condition that needs to clean up
> 	IB/hfi1: Fix user SDMA racy user request claim
> 
> The use of mm and locking issues are fixed with the following commits
> (they
> depend on the previous commits and must be ordered among themselves):
> 
> 	IB/hfi1: Make use of mm consistent
> 	IB/hfi1: Make the cache handler own its rb tree root
> 	IB/hfi1: Fix TID caching actions
> 	IB/hfi1: Add evict operation to the mmu rb handler
> 	IB/hfi1: Use evict mmu rb operation
> 	IB/hfi1: Consistently call ops->remove outside spinlock
> 	IB/hfi1: Remove unneeded mm argument in remove function
> 	IB/hfi1: Fix memory leak during unexpected shutdown
> 	IB/hfi1: Add cache evict LRU list
> 
> Special thanks to Jim Foraker <foraker1@xxxxxxxx> for suggestions on
> how to fix
> the main issues.
> 
> This series requires the clean up patch series sent previously.

Thanks Ira, series applied.

-- 
Doug Ledford <dledford@xxxxxxxxxx>
              GPG KeyID: 0E572FDD

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux