]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Linux 4.4.198 v4.4.198
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:14:11 +0000 (09:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:14:11 +0000 (09:14 +0100)
42 files changed:
queue-5.3/mm-memory_hotplug-don-t-access-uninitialized-memmaps-in-shrink_pgdat_span.patch [deleted file]
queue-5.3/series
releases/4.4.198/arm-dts-am4372-set-memory-bandwidth-limit-for-dispc.patch [moved from queue-4.4/arm-dts-am4372-set-memory-bandwidth-limit-for-dispc.patch with 100% similarity]
releases/4.4.198/arm-omap2-fix-missing-reset-done-flag-for-am3-and-am.patch [moved from queue-4.4/arm-omap2-fix-missing-reset-done-flag-for-am3-and-am.patch with 100% similarity]
releases/4.4.198/asoc-rsnd-reinitialize-bit-clock-inversion-flag-for-every-format-setting.patch [moved from queue-4.4/asoc-rsnd-reinitialize-bit-clock-inversion-flag-for-every-format-setting.patch with 100% similarity]
releases/4.4.198/btrfs-block-group-fix-a-memory-leak-due-to-missing-btrfs_put_block_group.patch [moved from queue-4.4/btrfs-block-group-fix-a-memory-leak-due-to-missing-btrfs_put_block_group.patch with 100% similarity]
releases/4.4.198/cfg80211-wext-avoid-copying-malformed-ssids.patch [moved from queue-4.4/cfg80211-wext-avoid-copying-malformed-ssids.patch with 100% similarity]
releases/4.4.198/cifs-avoid-using-mid-0xffff.patch [moved from queue-4.4/cifs-avoid-using-mid-0xffff.patch with 100% similarity]
releases/4.4.198/cpufreq-avoid-cpufreq_suspend-deadlock-on-system-shutdown.patch [moved from queue-4.4/cpufreq-avoid-cpufreq_suspend-deadlock-on-system-shutdown.patch with 100% similarity]
releases/4.4.198/drm-edid-add-6-bpc-quirk-for-sdc-panel-in-lenovo-g50.patch [moved from queue-4.4/drm-edid-add-6-bpc-quirk-for-sdc-panel-in-lenovo-g50.patch with 100% similarity]
releases/4.4.198/ipv4-return-enetunreach-if-we-can-t-create-route-but-saddr-is-valid.patch [moved from queue-4.4/ipv4-return-enetunreach-if-we-can-t-create-route-but-saddr-is-valid.patch with 100% similarity]
releases/4.4.198/loop-add-loop_set_direct_io-to-compat-ioctl.patch [moved from queue-4.4/loop-add-loop_set_direct_io-to-compat-ioctl.patch with 100% similarity]
releases/4.4.198/mac80211-reject-malformed-ssid-elements.patch [moved from queue-4.4/mac80211-reject-malformed-ssid-elements.patch with 100% similarity]
releases/4.4.198/memfd-fix-locking-when-tagging-pins.patch [moved from queue-4.4/memfd-fix-locking-when-tagging-pins.patch with 100% similarity]
releases/4.4.198/memstick-jmb38x_ms-fix-an-error-handling-path-in-jmb38x_ms_probe.patch [moved from queue-4.4/memstick-jmb38x_ms-fix-an-error-handling-path-in-jmb38x_ms_probe.patch with 100% similarity]
releases/4.4.198/mips-loongson-fix-the-link-time-qualifier-of-serial_.patch [moved from queue-4.4/mips-loongson-fix-the-link-time-qualifier-of-serial_.patch with 100% similarity]
releases/4.4.198/mm-slub-fix-a-deadlock-in-show_slab_objects.patch [moved from queue-4.4/mm-slub-fix-a-deadlock-in-show_slab_objects.patch with 100% similarity]
releases/4.4.198/namespace-fix-namespace.pl-script-to-support-relativ.patch [moved from queue-4.4/namespace-fix-namespace.pl-script-to-support-relativ.patch with 100% similarity]
releases/4.4.198/net-avoid-potential-infinite-loop-in-tc_ctl_action.patch [moved from queue-4.4/net-avoid-potential-infinite-loop-in-tc_ctl_action.patch with 100% similarity]
releases/4.4.198/net-bcmgenet-fix-rgmii_mode_en-value-for-genet-v1-2-3.patch [moved from queue-4.4/net-bcmgenet-fix-rgmii_mode_en-value-for-genet-v1-2-3.patch with 100% similarity]
releases/4.4.198/net-bcmgenet-set-phydev-dev_flags-only-for-internal-phys.patch [moved from queue-4.4/net-bcmgenet-set-phydev-dev_flags-only-for-internal-phys.patch with 100% similarity]
releases/4.4.198/net-hisilicon-fix-usage-of-uninitialized-variable-in.patch [moved from queue-4.4/net-hisilicon-fix-usage-of-uninitialized-variable-in.patch with 100% similarity]
releases/4.4.198/net-sched-fix-memory-exposure-from-short-tca_u32_sel.patch [moved from queue-4.4/net-sched-fix-memory-exposure-from-short-tca_u32_sel.patch with 100% similarity]
releases/4.4.198/nl80211-fix-null-pointer-dereference.patch [moved from queue-4.4/nl80211-fix-null-pointer-dereference.patch with 100% similarity]
releases/4.4.198/parisc-fix-vmap-memory-leak-in-ioremap-iounmap.patch [moved from queue-4.4/parisc-fix-vmap-memory-leak-in-ioremap-iounmap.patch with 100% similarity]
releases/4.4.198/pci-pm-fix-pci_power_up.patch [moved from queue-4.4/pci-pm-fix-pci_power_up.patch with 100% similarity]
releases/4.4.198/rdma-cxgb4-do-not-dma-memory-off-of-the-stack.patch [moved from queue-4.4/rdma-cxgb4-do-not-dma-memory-off-of-the-stack.patch with 100% similarity]
releases/4.4.198/scsi-core-try-to-get-module-before-removing-device.patch [moved from queue-4.4/scsi-core-try-to-get-module-before-removing-device.patch with 100% similarity]
releases/4.4.198/scsi-megaraid-disable-device-when-probe-failed-after.patch [moved from queue-4.4/scsi-megaraid-disable-device-when-probe-failed-after.patch with 100% similarity]
releases/4.4.198/scsi-qla2xxx-fix-unbound-sleep-in-fcport-delete-path.patch [moved from queue-4.4/scsi-qla2xxx-fix-unbound-sleep-in-fcport-delete-path.patch with 100% similarity]
releases/4.4.198/scsi-ufs-skip-shutdown-if-hba-is-not-powered.patch [moved from queue-4.4/scsi-ufs-skip-shutdown-if-hba-is-not-powered.patch with 100% similarity]
releases/4.4.198/scsi-zfcp-fix-reaction-on-bit-error-threshold-notifi.patch [moved from queue-4.4/scsi-zfcp-fix-reaction-on-bit-error-threshold-notifi.patch with 100% similarity]
releases/4.4.198/sctp-change-sctp_prot-.no_autobind-with-true.patch [moved from queue-4.4/sctp-change-sctp_prot-.no_autobind-with-true.patch with 100% similarity]
releases/4.4.198/series [moved from queue-4.4/series with 100% similarity]
releases/4.4.198/usb-ldusb-fix-memleak-on-disconnect.patch [moved from queue-4.4/usb-ldusb-fix-memleak-on-disconnect.patch with 100% similarity]
releases/4.4.198/usb-ldusb-fix-read-info-leaks.patch [moved from queue-4.4/usb-ldusb-fix-read-info-leaks.patch with 100% similarity]
releases/4.4.198/usb-legousbtower-fix-memleak-on-disconnect.patch [moved from queue-4.4/usb-legousbtower-fix-memleak-on-disconnect.patch with 100% similarity]
releases/4.4.198/usb-serial-ti_usb_3410_5052-fix-port-close-races.patch [moved from queue-4.4/usb-serial-ti_usb_3410_5052-fix-port-close-races.patch with 100% similarity]
releases/4.4.198/usb-udc-lpc32xx-fix-bad-bit-shift-operation.patch [moved from queue-4.4/usb-udc-lpc32xx-fix-bad-bit-shift-operation.patch with 100% similarity]
releases/4.4.198/usb-usblp-fix-use-after-free-on-disconnect.patch [moved from queue-4.4/usb-usblp-fix-use-after-free-on-disconnect.patch with 100% similarity]
releases/4.4.198/xen-netback-fix-error-path-of-xenvif_connect_data.patch [moved from queue-4.4/xen-netback-fix-error-path-of-xenvif_connect_data.patch with 100% similarity]
releases/4.4.198/xtensa-drop-export_symbol-for-outs-ins.patch [moved from queue-4.4/xtensa-drop-export_symbol-for-outs-ins.patch with 100% similarity]

diff --git a/queue-5.3/mm-memory_hotplug-don-t-access-uninitialized-memmaps-in-shrink_pgdat_span.patch b/queue-5.3/mm-memory_hotplug-don-t-access-uninitialized-memmaps-in-shrink_pgdat_span.patch
deleted file mode 100644 (file)
index fbaf167..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-From 00d6c019b5bc175cee3770e0e659f2b5f4804ea5 Mon Sep 17 00:00:00 2001
-From: David Hildenbrand <david@redhat.com>
-Date: Fri, 18 Oct 2019 20:19:33 -0700
-Subject: mm/memory_hotplug: don't access uninitialized memmaps in shrink_pgdat_span()
-
-From: David Hildenbrand <david@redhat.com>
-
-commit 00d6c019b5bc175cee3770e0e659f2b5f4804ea5 upstream.
-
-We might use the nid of memmaps that were never initialized.  For
-example, if the memmap was poisoned, we will crash the kernel in
-pfn_to_nid() right now.  Let's use the calculated boundaries of the
-separate zones instead.  This now also avoids having to iterate over a
-whole bunch of subsections again, after shrinking one zone.
-
-Before commit d0dc12e86b31 ("mm/memory_hotplug: optimize memory
-hotplug"), the memmap was initialized to 0 and the node was set to the
-right value.  After that commit, the node might be garbage.
-
-We'll have to fix shrink_zone_span() next.
-
-Link: http://lkml.kernel.org/r/20191006085646.5768-4-david@redhat.com
-Fixes: f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded memory to zones until online")     [d0dc12e86b319]
-Signed-off-by: David Hildenbrand <david@redhat.com>
-Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
-Cc: Oscar Salvador <osalvador@suse.de>
-Cc: David Hildenbrand <david@redhat.com>
-Cc: Michal Hocko <mhocko@suse.com>
-Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
-Cc: Dan Williams <dan.j.williams@intel.com>
-Cc: Wei Yang <richardw.yang@linux.intel.com>
-Cc: Alexander Duyck <alexander.h.duyck@linux.intel.com>
-Cc: Alexander Potapenko <glider@google.com>
-Cc: Andy Lutomirski <luto@kernel.org>
-Cc: Anshuman Khandual <anshuman.khandual@arm.com>
-Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-Cc: Borislav Petkov <bp@alien8.de>
-Cc: Catalin Marinas <catalin.marinas@arm.com>
-Cc: Christian Borntraeger <borntraeger@de.ibm.com>
-Cc: Christophe Leroy <christophe.leroy@c-s.fr>
-Cc: Damian Tometzki <damian.tometzki@gmail.com>
-Cc: Dave Hansen <dave.hansen@linux.intel.com>
-Cc: Fenghua Yu <fenghua.yu@intel.com>
-Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
-Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-Cc: Halil Pasic <pasic@linux.ibm.com>
-Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
-Cc: "H. Peter Anvin" <hpa@zytor.com>
-Cc: Ingo Molnar <mingo@redhat.com>
-Cc: Ira Weiny <ira.weiny@intel.com>
-Cc: Jason Gunthorpe <jgg@ziepe.ca>
-Cc: Jun Yao <yaojun8558363@gmail.com>
-Cc: Logan Gunthorpe <logang@deltatee.com>
-Cc: Mark Rutland <mark.rutland@arm.com>
-Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
-Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
-Cc: Mel Gorman <mgorman@techsingularity.net>
-Cc: Michael Ellerman <mpe@ellerman.id.au>
-Cc: Mike Rapoport <rppt@linux.ibm.com>
-Cc: Pankaj Gupta <pagupta@redhat.com>
-Cc: Paul Mackerras <paulus@samba.org>
-Cc: Pavel Tatashin <pavel.tatashin@microsoft.com>
-Cc: Peter Zijlstra <peterz@infradead.org>
-Cc: Qian Cai <cai@lca.pw>
-Cc: Rich Felker <dalias@libc.org>
-Cc: Robin Murphy <robin.murphy@arm.com>
-Cc: Steve Capper <steve.capper@arm.com>
-Cc: Thomas Gleixner <tglx@linutronix.de>
-Cc: Tom Lendacky <thomas.lendacky@amd.com>
-Cc: Tony Luck <tony.luck@intel.com>
-Cc: Vasily Gorbik <gor@linux.ibm.com>
-Cc: Vlastimil Babka <vbabka@suse.cz>
-Cc: Wei Yang <richard.weiyang@gmail.com>
-Cc: Will Deacon <will@kernel.org>
-Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
-Cc: Yu Zhao <yuzhao@google.com>
-Cc: <stable@vger.kernel.org>   [4.13+]
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- mm/memory_hotplug.c |   74 +++++++++++-----------------------------------------
- 1 file changed, 16 insertions(+), 58 deletions(-)
-
---- a/mm/memory_hotplug.c
-+++ b/mm/memory_hotplug.c
-@@ -436,67 +436,25 @@ static void shrink_zone_span(struct zone
-       zone_span_writeunlock(zone);
- }
--static void shrink_pgdat_span(struct pglist_data *pgdat,
--                            unsigned long start_pfn, unsigned long end_pfn)
-+static void update_pgdat_span(struct pglist_data *pgdat)
- {
--      unsigned long pgdat_start_pfn = pgdat->node_start_pfn;
--      unsigned long p = pgdat_end_pfn(pgdat); /* pgdat_end_pfn namespace clash */
--      unsigned long pgdat_end_pfn = p;
--      unsigned long pfn;
--      int nid = pgdat->node_id;
--
--      if (pgdat_start_pfn == start_pfn) {
--              /*
--               * If the section is smallest section in the pgdat, it need
--               * shrink pgdat->node_start_pfn and pgdat->node_spanned_pages.
--               * In this case, we find second smallest valid mem_section
--               * for shrinking zone.
--               */
--              pfn = find_smallest_section_pfn(nid, NULL, end_pfn,
--                                              pgdat_end_pfn);
--              if (pfn) {
--                      pgdat->node_start_pfn = pfn;
--                      pgdat->node_spanned_pages = pgdat_end_pfn - pfn;
--              }
--      } else if (pgdat_end_pfn == end_pfn) {
--              /*
--               * If the section is biggest section in the pgdat, it need
--               * shrink pgdat->node_spanned_pages.
--               * In this case, we find second biggest valid mem_section for
--               * shrinking zone.
--               */
--              pfn = find_biggest_section_pfn(nid, NULL, pgdat_start_pfn,
--                                             start_pfn);
--              if (pfn)
--                      pgdat->node_spanned_pages = pfn - pgdat_start_pfn + 1;
--      }
--
--      /*
--       * If the section is not biggest or smallest mem_section in the pgdat,
--       * it only creates a hole in the pgdat. So in this case, we need not
--       * change the pgdat.
--       * But perhaps, the pgdat has only hole data. Thus it check the pgdat
--       * has only hole or not.
--       */
--      pfn = pgdat_start_pfn;
--      for (; pfn < pgdat_end_pfn; pfn += PAGES_PER_SUBSECTION) {
--              if (unlikely(!pfn_valid(pfn)))
--                      continue;
--
--              if (pfn_to_nid(pfn) != nid)
--                      continue;
--
--              /* Skip range to be removed */
--              if (pfn >= start_pfn && pfn < end_pfn)
--                      continue;
-+      unsigned long node_start_pfn = 0, node_end_pfn = 0;
-+      struct zone *zone;
--              /* If we find valid section, we have nothing to do */
--              return;
-+      for (zone = pgdat->node_zones;
-+           zone < pgdat->node_zones + MAX_NR_ZONES; zone++) {
-+              unsigned long zone_end_pfn = zone->zone_start_pfn +
-+                                           zone->spanned_pages;
-+
-+              /* No need to lock the zones, they can't change. */
-+              if (zone_end_pfn > node_end_pfn)
-+                      node_end_pfn = zone_end_pfn;
-+              if (zone->zone_start_pfn < node_start_pfn)
-+                      node_start_pfn = zone->zone_start_pfn;
-       }
--      /* The pgdat has no valid section */
--      pgdat->node_start_pfn = 0;
--      pgdat->node_spanned_pages = 0;
-+      pgdat->node_start_pfn = node_start_pfn;
-+      pgdat->node_spanned_pages = node_end_pfn - node_start_pfn;
- }
- static void __remove_zone(struct zone *zone, unsigned long start_pfn,
-@@ -507,7 +465,7 @@ static void __remove_zone(struct zone *z
-       pgdat_resize_lock(zone->zone_pgdat, &flags);
-       shrink_zone_span(zone, start_pfn, start_pfn + nr_pages);
--      shrink_pgdat_span(pgdat, start_pfn, start_pfn + nr_pages);
-+      update_pgdat_span(pgdat);
-       pgdat_resize_unlock(zone->zone_pgdat, &flags);
- }
index 7fcb3610856f5f83d3f7267b23274f8cebf4dee0..aa6bc1b090926c68e3f3959bf50374be1c4d1af4 100644 (file)
@@ -144,7 +144,6 @@ mmc-sdhci-omap-fix-tuning-procedure-for-temperatures-20c.patch
 mm-memory-failure.c-don-t-access-uninitialized-memmaps-in-memory_failure.patch
 mm-slub-fix-a-deadlock-in-show_slab_objects.patch
 mm-page_owner-don-t-access-uninitialized-memmaps-when-reading-proc-pagetypeinfo.patch
-mm-memory_hotplug-don-t-access-uninitialized-memmaps-in-shrink_pgdat_span.patch
 mm-memunmap-don-t-access-uninitialized-memmap-in-memunmap_pages.patch
 mm-memcg-slab-fix-panic-in-__free_slab-caused-by-premature-memcg-pointer-release.patch
 mm-compaction-fix-wrong-pfn-handling-in-__reset_isolation_pfn.patch
similarity index 100%
rename from queue-4.4/series
rename to releases/4.4.198/series