1. 22 Feb, 2021 2 commits
    • Yossi Gottlieb's avatar
      Fix integer overflow (CVE-2021-21309). (#8522) · 48f04a82
      Yossi Gottlieb authored
      On 32-bit systems, setting the proto-max-bulk-len config parameter to a high value may result with integer overflow and a subsequent heap overflow when parsing an input bulk (CVE-2021-21309).
      
      This fix has two parts:
      
      Set a reasonable limit to the config parameter.
      Add additional checks to prevent the problem in other potential but unknown code paths.
      
      (cherry picked from commit d32f2e99)
      
      Fix MSVR reported issue.
      48f04a82
    • George Prekas's avatar
      Add check for the MADV_FREE/fork arm64 Linux kernel bug (#8224) · ddf81e2f
      George Prekas authored
      
      
      Older arm64 Linux kernels have a bug that could lead to data corruption during
      background save under the following scenario:
      
      1) jemalloc uses MADV_FREE on a page,
      2) jemalloc reuses and writes the page,
      3) Redis forks the background save process, and
      4) Linux performs page reclamation.
      
      Under these conditions, Linux will reclaim the page wrongfully and the
      background save process will read zeros when it tries to read the page.
      
      The bug has been fixed in Linux with commit:
      ff1712f953e27f0b0718762ec17d0adb15c9fd0b ("arm64: pgtable: Ensure dirty bit is
      preserved across pte_wrprotect()")
      
      This Commit adds an ignore-warnings config, when not found, redis will
      print a warning and exit on startup (default behavior).
      Co-authored-by: default avatarOran Agra <oran@redislabs.com>
      (cherry picked from commit b02780c4)
      ddf81e2f
  2. 10 May, 2019 1 commit
  3. 14 Mar, 2019 1 commit
  4. 12 Dec, 2018 1 commit
  5. 07 Nov, 2018 1 commit
  6. 22 Oct, 2018 1 commit
  7. 14 Sep, 2018 3 commits
  8. 05 Sep, 2018 1 commit
  9. 29 Aug, 2018 2 commits
  10. 30 Jul, 2018 2 commits
  11. 23 Jul, 2018 1 commit
    • antirez's avatar
      Fix merge errors. · 49841a54
      antirez authored
      For some reason I made a merge fiasco between 5.0 and unstable.
      This fixes the error introduced by merging unstable.
      49841a54
  12. 13 Jul, 2018 1 commit
  13. 02 Jul, 2018 1 commit
  14. 27 Jun, 2018 1 commit
  15. 13 Jun, 2018 1 commit
  16. 12 Jun, 2018 4 commits
  17. 09 Jun, 2018 2 commits
  18. 07 Jun, 2018 2 commits
  19. 24 May, 2018 1 commit
  20. 15 Mar, 2018 1 commit
  21. 14 Mar, 2018 1 commit
    • antirez's avatar
      Cluster: ability to prevent slaves from failing over their masters. · 432bf477
      antirez authored
      This commit, in some parts derived from PR #3041 which is no longer
      possible to merge (because the user deleted the original branch),
      implements the ability of slaves to have a special configuration
      preventing that they try to start a failover when the master is failing.
      
      There are multiple reasons for wanting this, and the feautre was
      requested in issue #3021 time ago.
      
      The differences between this patch and the original PR are the
      following:
      
      1. The flag is saved/loaded on the nodes configuration.
      2. The 'myself' node is now flag-aware, the flag is updated as needed
         when the configuration is changed via CONFIG SET.
      3. The flag name uses NOFAILOVER instead of NO_FAILOVER to be consistent
         with existing NOADDR.
      4. The redis.conf documentation was rewritten.
      
      Thanks to @deep011 for the original patch.
      432bf477
  22. 12 Mar, 2018 1 commit
    • Oran Agra's avatar
      active defrag v2 · be1b4aa9
      Oran Agra authored
      - big keys are not defragged in one go from within the dict scan
        instead they are scanned in parts after the main dict hash bucket is done.
      - add latency monitor sample for defrag
      - change default active-defrag-cycle-min to induce lower latency
      - make active defrag start a new scan right away if needed, so it's easier
        (for the test suite) to detect when it's done
      - make active defrag quick the current cycle after each db / big key
      - defrag  some non key long term global allocations
      - some refactoring for smaller functions and more reusable code
      - during dict rehashing, one scan iteration of the dict, can end up scanning
        one bucket in the smaller dict and many many buckets in the larger dict.
        so waiting for 16 scan iterations before checking the time, may be much too long.
      be1b4aa9
  23. 26 Jan, 2018 1 commit
  24. 11 Jan, 2018 2 commits
  25. 29 Dec, 2017 1 commit
  26. 06 Dec, 2017 1 commit
    • antirez's avatar
      Change indentation and other minor details of PR #4489. · 522760fa
      antirez authored
      The main change introduced by this commit is pretending that help
      arrays are more text than code, thus indenting them at level 0. This
      improves readability, and is an old practice when defining arrays of
      C strings describing text.
      
      Additionally a few useless return statements are removed, and the HELP
      subcommand capitalized when printed to the user.
      522760fa
  27. 03 Dec, 2017 1 commit
  28. 27 Nov, 2017 1 commit
  29. 15 Jul, 2017 1 commit