1. 31 10月, 2013 3 次提交
  2. 30 10月, 2013 1 次提交
  3. 26 10月, 2013 7 次提交
  4. 18 10月, 2013 2 次提交
  5. 17 10月, 2013 25 次提交
  6. 16 10月, 2013 2 次提交
    • M
      dm snapshot: fix data corruption · e9c6a182
      Mikulas Patocka 提交于
      This patch fixes a particular type of data corruption that has been
      encountered when loading a snapshot's metadata from disk.
      
      When we allocate a new chunk in persistent_prepare, we increment
      ps->next_free and we make sure that it doesn't point to a metadata area
      by further incrementing it if necessary.
      
      When we load metadata from disk on device activation, ps->next_free is
      positioned after the last used data chunk. However, if this last used
      data chunk is followed by a metadata area, ps->next_free is positioned
      erroneously to the metadata area. A newly-allocated chunk is placed at
      the same location as the metadata area, resulting in data or metadata
      corruption.
      
      This patch changes the code so that ps->next_free skips the metadata
      area when metadata are loaded in function read_exceptions.
      
      The patch also moves a piece of code from persistent_prepare_exception
      to a separate function skip_metadata to avoid code duplication.
      
      CVE-2013-4299
      Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
      Cc: stable@vger.kernel.org
      Cc: Mike Snitzer <snitzer@redhat.com>
      Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
      e9c6a182
    • D
      cpufreq / intel_pstate: Fix max_perf_pct on resume · 52e0a509
      Dirk Brandewie 提交于
      If the system is suspended while max_perf_pct is less than 100 percent
      or no_turbo set policy->{min,max} will be set incorrectly with scaled
      values which turn the scaled values into hard limits.
      
      References: https://bugzilla.kernel.org/show_bug.cgi?id=61241Reported-by: NPatrick Bartels <petzicus@googlemail.com>
      Signed-off-by: NDirk Brandewie <dirk.j.brandewie@intel.com>
      Cc: 3.9+ <stable@vger.kernel.org> # 3.9+
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      52e0a509