diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2019-05-30 22:49:32 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-06-18 20:45:33 +0200 |
commit | 6c5c3a2edccfeedffdbd2634895778685f17bd2e (patch) | |
tree | 3a7e0b242f085c44ffbf9efeb0b0670107b172f6 /package/kernel | |
parent | af50ce32c5ce41a357b3423d098a40360bfed25e (diff) | |
download | upstream-6c5c3a2edccfeedffdbd2634895778685f17bd2e.tar.gz upstream-6c5c3a2edccfeedffdbd2634895778685f17bd2e.tar.bz2 upstream-6c5c3a2edccfeedffdbd2634895778685f17bd2e.zip |
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 <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/patches/013-mm-backport-get_user_pages.patch | 65 |
1 files changed, 65 insertions, 0 deletions
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 |