From 6c5c3a2edccfeedffdbd2634895778685f17bd2e Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 30 May 2019 22:49:32 +0200 Subject: kernel: Update to version 4.4.182 Fixes: - CVE-2019-11479 - CVE-2019-11478 - CVE-2019-11477 - CVE-2019-11833 - CVE-2019-11091 - CVE-2018-12126 - CVE-2018-12130 - CVE-2018-12127 - CVE-2019-3882 - CVE-2019-6974 - CVE-2019-3819 - CVE-2019-7221 - CVE-2019-7222 - CVE-2019-3701 - CVE-2018-19985 - CVE-2018-1120 And probably more Signed-off-by: Hauke Mehrtens --- .../patches/013-mm-backport-get_user_pages.patch | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 package/kernel/mac80211/patches/013-mm-backport-get_user_pages.patch (limited to 'package/kernel') diff --git a/package/kernel/mac80211/patches/013-mm-backport-get_user_pages.patch b/package/kernel/mac80211/patches/013-mm-backport-get_user_pages.patch new file mode 100644 index 0000000000..f7e5c85d1c --- /dev/null +++ b/package/kernel/mac80211/patches/013-mm-backport-get_user_pages.patch @@ -0,0 +1,65 @@ +--- a/backport-include/linux/mm.h ++++ b/backport-include/linux/mm.h +@@ -39,8 +39,20 @@ static inline + long backport_get_user_pages_locked(unsigned long start, unsigned long nr_pages, + int write, int force, struct page **pages, int *locked) + { ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,4,168)) + return get_user_pages_locked(current, current->mm, start, nr_pages, + write, force, pages, locked); ++#else ++ int flags = 0; ++ ++ if (write) ++ flags |= FOLL_WRITE; ++ if (force) ++ flags |= FOLL_FORCE; ++ ++ return get_user_pages_locked(current, current->mm, start, nr_pages, ++ flags, pages, locked); ++#endif + } + #define get_user_pages_locked LINUX_BACKPORT(get_user_pages_locked) + +@@ -48,8 +60,20 @@ static inline + long backport_get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, + int write, int force, struct page **pages) + { ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,4,168)) + return get_user_pages_unlocked(current, current->mm, start, nr_pages, + write, force, pages); ++#else ++ int flags = 0; ++ ++ if (write) ++ flags |= FOLL_WRITE; ++ if (force) ++ flags |= FOLL_FORCE; ++ ++ return get_user_pages_unlocked(current, current->mm, start, nr_pages, ++ pages, flags); ++#endif + } + #define get_user_pages_unlocked LINUX_BACKPORT(get_user_pages_unlocked) + #endif +@@ -60,8 +84,20 @@ long backport_get_user_pages(unsigned lo + int write, int force, struct page **pages, + struct vm_area_struct **vmas) + { ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,4,168)) + return get_user_pages(current, current->mm, start, nr_pages, + write, force, pages, vmas); ++#else ++ int flags = 0; ++ ++ if (write) ++ flags |= FOLL_WRITE; ++ if (force) ++ flags |= FOLL_FORCE; ++ ++ return get_user_pages(current, current->mm, start, nr_pages, ++ flags, pages, vmas); ++#endif + } + #define get_user_pages LINUX_BACKPORT(get_user_pages) + #endif -- cgit v1.2.3