1. 03 Nov, 2019 1 commit
    • Matthew Wilcox (Oracle)'s avatar
      idr: Fix integer overflow in idr_for_each_entry · f6341c5a
      Matthew Wilcox (Oracle) authored
      If there is an entry at INT_MAX then idr_for_each_entry() will increment
      id after handling it.  This is undefined behaviour, and is caught by
      UBSAN.  Adding 1U to id forces the operation to be carried out as an
      unsigned addition which (when assigned to id) will result in INT_MIN.
      Since there is never an entry stored at INT_MIN, idr_get_next() will
      return NULL, ending the loop as expected.
      Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
      f6341c5a
  2. 02 Nov, 2019 2 commits
  3. 01 Jul, 2019 1 commit
  4. 30 Jun, 2019 3 commits
  5. 29 Jun, 2019 29 commits
  6. 28 Jun, 2019 4 commits