[PATCH AUTOSEL 4.19 026/141] objtool: Don't use ignore flag for fake jumps

2019-06-01 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit e6da9567959e164f82bc81967e0d5b10dee870b4 ] The ignore flag is set on fake jumps in order to keep add_jump_destinations() from setting their jump_dest, since it already got set when the fake jump was created. But using the ignore flag is a bit of a hack. I

[PATCH AUTOSEL 4.19 024/141] drm/nouveau/kms/gf119-gp10x: push HeadSetControlOutputResource() mthd when encoders change

2019-06-01 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit a0b694d0af21c9993d1a39a75fd814bd48bf7eb4 ] HW has error checks in place which check that pixel depth is explicitly provided on DP, while HDMI has a "default" setting that we use. In multi-display configurations with identical modelines, but different protocols

[PATCH AUTOSEL 4.19 023/141] perf/x86/intel: Allow PEBS multi-entry in watermark mode

2019-06-01 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit c7a286577d7592720c2f179aadfb325a1ff48c95 ] This patch fixes a restriction/bug introduced by: 583feb08e7f7 ("perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS") The original patch prevented using multi-entry PEBS when wakeup_events !

[PATCH AUTOSEL 4.19 033/141] ntp: Allow TAI-UTC offset to be set to zero

2019-06-01 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit fdc6bae940ee9eb869e493990540098b8c0fd6ab ] The ADJ_TAI adjtimex mode sets the TAI-UTC offset of the system clock. It is typically set by NTP/PTP implementations and it is automatically updated by the kernel on leap seconds. The initial value is zero (whic

[PATCH AUTOSEL 4.19 021/141] drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration

2019-06-01 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 13d03e9daf70dab032c03dc172e75bb98ad899c4 ] Where possible, we want the failsafe link configuration (one which won't hang the OR during modeset because of not enough bandwidth for the mode) to also be supported by the sink. This prevents "link rate unsupported

[PATCH AUTOSEL 4.19 020/141] mfd: intel-lpss: Set the device in reset state when init

2019-06-01 Thread Sasha Levin
From: Binbin Wu [ Upstream commit dad06532292d77f37fbe831a02948a593500f682 ] In virtualized setup, when system reboots due to warm reset interrupt storm is seen. Call Trace: dump_stack+0x70/0xa5 __report_bad_irq+0x2e/0xc0 note_interrupt+0x248/0x290 ? add_interrupt_randomness+0x30/0x220 handle_

[PATCH AUTOSEL 4.19 028/141] bpf: fix undefined behavior in narrow load handling

2019-06-01 Thread Sasha Levin
From: Krzesimir Nowak [ Upstream commit e2f7fc0ac6957cabff4cecf6c721979b571af208 ] Commit 31fd85816dbe ("bpf: permits narrower load from bpf program context fields") made the verifier add AND instructions to clear the unwanted bits with a mask when doing a narrow load. The mask is computed with

[PATCH AUTOSEL 4.19 014/141] mm/cma_debug.c: fix the break condition in cma_maxchunk_get()

2019-06-01 Thread Sasha Levin
From: Yue Hu [ Upstream commit f0fd50504a54f5548eb666dc16ddf8394e44e4b7 ] If not find zero bit in find_next_zero_bit(), it will return the size parameter passed in, so the start bit should be compared with bitmap_maxno rather than cma->count. Although getting maxchunk is working fine due to zer

[PATCH AUTOSEL 4.19 008/141] hugetlbfs: on restore reserve error path retain subpool reservation

2019-06-01 Thread Sasha Levin
From: Mike Kravetz [ Upstream commit 0919e1b69ab459e06df45d3ba6658d281962db80 ] When a huge page is allocated, PagePrivate() is set if the allocation consumed a reservation. When freeing a huge page, PagePrivate is checked. If set, it indicates the reservation should be restored. PagePrivate b

[PATCH AUTOSEL 4.19 010/141] mm/cma.c: fix crash on CMA allocation if bitmap allocation fails

2019-06-01 Thread Sasha Levin
From: Yue Hu [ Upstream commit 1df3a339074e31db95c4790ea9236874b13ccd87 ] f022d8cb7ec7 ("mm: cma: Don't crash on allocation if CMA area can't be activated") fixes the crash issue when activation fails via setting cma->count as 0, same logic exists if bitmap allocation fails. Link: http://lkml.k

[PATCH AUTOSEL 4.19 012/141] mm/cma.c: fix the bitmap status to show failed allocation reason

2019-06-01 Thread Sasha Levin
From: Yue Hu [ Upstream commit 2b59e01a3aa665f751d1410b99fae9336bd424e1 ] Currently one bit in cma bitmap represents number of pages rather than one page, cma->count means cma size in pages. So to find available pages via find_next_zero_bit()/find_next_bit() we should use cma size not in pages b

[PATCH AUTOSEL 4.19 007/141] mm/hmm: select mmu notifier when selecting HMM

2019-06-01 Thread Sasha Levin
From: Jérôme Glisse [ Upstream commit 734fb89968900b5c5f8edd5038bd4cdeab8c61d2 ] To avoid random config build issue, select mmu notifier when HMM is selected. In any cases when HMM get selected it will be by users that will also wants the mmu notifier. Link: http://lkml.kernel.org/r/2019040319

[PATCH AUTOSEL 4.19 006/141] ARM: prevent tracing IPI_CPU_BACKTRACE

2019-06-01 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit be167862ae7dd85c56d385209a4890678e1b0488 ] Patch series "compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING", v3. This patch (of 11): When function tracing for IPIs is enabled, we get a warning for an overflow of the ipi_types array with the IPI

[PATCH AUTOSEL 5.0 058/173] uml: fix a boot splat wrt use of cpu_all_mask

2019-06-01 Thread Sasha Levin
From: Maciej Żenczykowski [ Upstream commit 689a58605b63173acb0a8cf954af6a8f60440c93 ] Memory: 509108K/542612K available (3835K kernel code, 919K rwdata, 1028K rodata, 129K init, 211K bss, 33504K reserved, 0K cma-reserved) NR_IRQS: 15 clocksource: timer: mask: 0x max_cycles: 0x1

[PATCH AUTOSEL 5.0 066/173] mips: Make sure dt memory regions are valid

2019-06-01 Thread Sasha Levin
From: Serge Semin [ Upstream commit 93fa5b280761a4dbb14c5330f260380385ab2b49 ] There are situations when memory regions coming from dts may be too big for the platform physical address space. This especially concerns XPA-capable systems. Bootloader may determine more than 4GB memory available an

[PATCH AUTOSEL 5.0 065/173] netfilter: nf_conntrack_h323: restore boundary check correctness

2019-06-01 Thread Sasha Levin
From: Jakub Jankowski [ Upstream commit f5e85ce8e733c2547827f6268136b70b802eabdb ] Since commit bc7d811ace4a ("netfilter: nf_ct_h323: Convert CHECK_BOUND macro to function"), NAT traversal for H.323 doesn't work, failing to parse H323-UserInformation. nf_h323_error_boundary() compares contents o

[PATCH AUTOSEL 5.0 056/173] tracing: Fix partial reading of trace event's id file

2019-06-01 Thread Sasha Levin
From: Elazar Leibovich [ Upstream commit cbe08bcbbe787315c425dde284dcb715cfbf3f39 ] When reading only part of the id file, the ppos isn't tracked correctly. This is taken care by simple_read_from_buffer. Reading a single byte, and then the next byte would result EOF. While this seems like not

[PATCH AUTOSEL 4.19 002/141] fs/fat/file.c: issue flush after the writeback of FAT

2019-06-01 Thread Sasha Levin
From: Hou Tao [ Upstream commit bd8309de0d60838eef6fb575b0c4c7e95841cf73 ] fsync() needs to make sure the data & meta-data of file are persistent after the return of fsync(), even when a power-failure occurs later. In the case of fat-fs, the FAT belongs to the meta-data of file, so we need to i

[PATCH AUTOSEL 4.19 001/141] rapidio: fix a NULL pointer dereference when create_workqueue() fails

2019-06-01 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit 23015b22e47c5409620b1726a677d69e5cd032ba ] In case create_workqueue fails, the fix releases resources and returns -ENOMEM to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Acked-by: Alexandre Bounine Cc: Matt Porter Signed-off-by: Andrew Morton

[PATCH AUTOSEL 5.0 057/173] configfs: fix possible use-after-free in configfs_register_group

2019-06-01 Thread Sasha Levin
From: YueHaibing [ Upstream commit 35399f87e271f7cf3048eab00a421a6519ac8441 ] In configfs_register_group(), if create_default_group() failed, we forget to unlink the group. It will left a invalid item in the parent list, which may trigger the use-after-free issue seen below: BUG: KASAN: use-aft

[PATCH AUTOSEL 5.0 069/173] watchdog: imx2_wdt: Fix set_timeout for big timeout values

2019-06-01 Thread Sasha Levin
From: Georg Hofmann [ Upstream commit b07e228eee69601addba98b47b1a3850569e5013 ] The documentated behavior is: if max_hw_heartbeat_ms is implemented, the minimum of the set_timeout argument and max_hw_heartbeat_ms should be used. This patch implements this behavior. Previously only the first 7bi

[PATCH AUTOSEL 5.0 047/173] f2fs: fix to use inline space only if inline_xattr is enable

2019-06-01 Thread Sasha Levin
From: Chao Yu [ Upstream commit 622927f3b8809206f6da54a6a7ed4df1a7770fce ] With below mkfs and mount option: MKFS_OPTIONS -- -O extra_attr -O project_quota -O inode_checksum -O flexible_inline_xattr -O inode_crtime -f MOUNT_OPTIONS -- -o noinline_xattr We may miss xattr data with below testc

[PATCH AUTOSEL 5.0 005/173] sysctl: return -EINVAL if val violates minmax

2019-06-01 Thread Sasha Levin
From: Christian Brauner [ Upstream commit e260ad01f0aa9e96b5386d5cd7184afd949dc457 ] Currently when userspace gives us a values that overflow e.g. file-max and other callers of __do_proc_doulongvec_minmax() we simply ignore the new value and leave the current value untouched. This can be probl

[PATCH AUTOSEL 5.0 014/173] mm/cma.c: fix crash on CMA allocation if bitmap allocation fails

2019-06-01 Thread Sasha Levin
From: Yue Hu [ Upstream commit 1df3a339074e31db95c4790ea9236874b13ccd87 ] f022d8cb7ec7 ("mm: cma: Don't crash on allocation if CMA area can't be activated") fixes the crash issue when activation fails via setting cma->count as 0, same logic exists if bitmap allocation fails. Link: http://lkml.k

[PATCH AUTOSEL 5.0 007/173] drm/msm: correct attempted NULL pointer dereference in debugfs

2019-06-01 Thread Sasha Levin
From: Brian Masney [ Upstream commit 90f94660e53189755676543954101de78c26253b ] msm_gem_describe() would attempt to dereference a NULL pointer via the address space pointer when no IOMMU is present. Correct this by adding the appropriate check. Signed-off-by: Brian Masney Fixes: 575f0485508b (

[PATCH AUTOSEL 5.0 028/173] perf/x86/intel: Allow PEBS multi-entry in watermark mode

2019-06-01 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit c7a286577d7592720c2f179aadfb325a1ff48c95 ] This patch fixes a restriction/bug introduced by: 583feb08e7f7 ("perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS") The original patch prevented using multi-entry PEBS when wakeup_events !

[PATCH AUTOSEL 5.1 073/186] watchdog: Use depends instead of select for pretimeout governors

2019-06-01 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit f627ac0e12cd2736e60b9f5782ecec1d97251f77 ] Watchdog pretimeout governors were enabled from the default governor selection using "select". As a result, the default governor was always built into the kernel, even if no watchdog driver was loaded. By using "dep

[PATCH AUTOSEL 5.0 010/173] mm/hmm: select mmu notifier when selecting HMM

2019-06-01 Thread Sasha Levin
From: Jérôme Glisse [ Upstream commit 734fb89968900b5c5f8edd5038bd4cdeab8c61d2 ] To avoid random config build issue, select mmu notifier when HMM is selected. In any cases when HMM get selected it will be by users that will also wants the mmu notifier. Link: http://lkml.kernel.org/r/2019040319

[PATCH AUTOSEL 5.0 013/173] mem-hotplug: fix node spanned pages when we have a node with only ZONE_MOVABLE

2019-06-01 Thread Sasha Levin
From: Linxu Fang [ Upstream commit 299c83dce9ea3a79bb4b5511d2cb996b6b8e5111 ] 342332e6a925 ("mm/page_alloc.c: introduce kernelcore=mirror option") and later patches rewrote the calculation of node spanned pages. e506b99696a2 ("mem-hotplug: fix node spanned pages when we have a movable node"), b

[PATCH AUTOSEL 5.0 016/173] mm/memory_hotplug.c: fix the wrong usage of N_HIGH_MEMORY

2019-06-01 Thread Sasha Levin
From: Baoquan He [ Upstream commit d3ba3ae19751e476b0840a0c9a673a5766fa3219 ] In node_states_check_changes_online(), N_HIGH_MEMORY is used to substitute ZONE_HIGHMEM directly. This is not right. N_HIGH_MEMORY is to mark the memory state of node. Here zone index is checked, which should be com

[PATCH AUTOSEL 5.0 002/173] media: rockchip/vpu: Add missing dont_use_autosuspend() calls

2019-06-01 Thread Sasha Levin
From: Jonas Karlman [ Upstream commit 5c5b90f5cbad77dc15d8b5582efdb2e362bcd710 ] Those calls are needed to restore a clean PM state when the probe fails or when the driver is unloaded such that future ->probe() calls can initialize runtime PM again. Signed-off-by: Jonas Karlman Signed-off-by:

[PATCH AUTOSEL 5.0 011/173] hugetlbfs: on restore reserve error path retain subpool reservation

2019-06-01 Thread Sasha Levin
From: Mike Kravetz [ Upstream commit 0919e1b69ab459e06df45d3ba6658d281962db80 ] When a huge page is allocated, PagePrivate() is set if the allocation consumed a reservation. When freeing a huge page, PagePrivate is checked. If set, it indicates the reservation should be restored. PagePrivate b

[PATCH AUTOSEL 5.0 001/173] media: rockchip/vpu: Fix/re-order probe-error/remove path

2019-06-01 Thread Sasha Levin
From: Jonas Karlman [ Upstream commit fc8670d1f72b746ff3a5fe441f1fca4c4dba0e6f ] media_device_cleanup() and v4l2_m2m_unregister_media_controller() were missing in the probe error path. While at it, re-order calls in the remove path to unregister/cleanup things in the reverse order they were init

[PATCH AUTOSEL 5.0 009/173] ARM: prevent tracing IPI_CPU_BACKTRACE

2019-06-01 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit be167862ae7dd85c56d385209a4890678e1b0488 ] Patch series "compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING", v3. This patch (of 11): When function tracing for IPIs is enabled, we get a warning for an overflow of the ipi_types array with the IPI

[PATCH AUTOSEL 5.0 031/173] objtool: Don't use ignore flag for fake jumps

2019-06-01 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit e6da9567959e164f82bc81967e0d5b10dee870b4 ] The ignore flag is set on fake jumps in order to keep add_jump_destinations() from setting their jump_dest, since it already got set when the fake jump was created. But using the ignore flag is a bit of a hack. I

[PATCH AUTOSEL 5.0 027/173] mfd: twl6040: Fix device init errors for ACCCTL register

2019-06-01 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 48171d0ea7caccf21c9ee3ae75eb370f2a756062 ] I noticed that we can get a -EREMOTEIO errors on at least omap4 duovero: twl6040 0-004b: Failed to write 2d = 19: -121 And then any following register access will produce errors. There 2d offset above is register

[PATCH AUTOSEL 5.0 006/173] ipc: prevent lockup on alloc_msg and free_msg

2019-06-01 Thread Sasha Levin
From: Li Rongqing [ Upstream commit d6a2946a88f524a47cc9b79279667137899db807 ] msgctl10 of ltp triggers the following lockup When CONFIG_KASAN is enabled on large memory SMP systems, the pages initialization can take a long time, if msgctl10 requests a huge block memory, and it will block rcu sc

[PATCH AUTOSEL 5.0 020/173] mm/slab.c: fix an infinite loop in leaks_show()

2019-06-01 Thread Sasha Levin
From: Qian Cai [ Upstream commit 745e10146c31b1c6ed3326286704ae251b17f663 ] "cat /proc/slab_allocators" could hang forever on SMP machines with kmemleak or object debugging enabled due to other CPUs running do_drain() will keep making kmemleak_object or debug_objects_cache dirty and unable to es

[PATCH AUTOSEL 5.1 074/186] watchdog: imx2_wdt: Fix set_timeout for big timeout values

2019-06-01 Thread Sasha Levin
From: Georg Hofmann [ Upstream commit b07e228eee69601addba98b47b1a3850569e5013 ] The documentated behavior is: if max_hw_heartbeat_ms is implemented, the minimum of the set_timeout argument and max_hw_heartbeat_ms should be used. This patch implements this behavior. Previously only the first 7bi

[PATCH AUTOSEL 5.1 036/186] bpf: fix undefined behavior in narrow load handling

2019-06-01 Thread Sasha Levin
From: Krzesimir Nowak [ Upstream commit e2f7fc0ac6957cabff4cecf6c721979b571af208 ] Commit 31fd85816dbe ("bpf: permits narrower load from bpf program context fields") made the verifier add AND instructions to clear the unwanted bits with a mask when doing a narrow load. The mask is computed with

[PATCH AUTOSEL 5.1 068/186] mmc: mmci: Prevent polling for busy detection in IRQ context

2019-06-01 Thread Sasha Levin
From: Ludovic Barre [ Upstream commit 8520ce1e17799b220ff421d4f39438c9c572ade3 ] The IRQ handler, mmci_irq(), loops until all status bits have been cleared. However, the status bit signaling busy in variant->busy_detect_flag, may be set even if busy detection isn't monitored for the current requ

[PATCH AUTOSEL 5.1 066/186] netfilter: ctnetlink: Resolve conntrack L3-protocol flush regression

2019-06-01 Thread Sasha Levin
From: Kristian Evensen [ Upstream commit f8e608982022fad035160870f5b06086d3cba54d ] Commit 59c08c69c278 ("netfilter: ctnetlink: Support L3 protocol-filter on flush") introduced a user-space regression when flushing connection track entries. Before this commit, the nfgen_family field was not used

[PATCH AUTOSEL 5.1 069/186] netfilter: nf_flow_table: fix missing error check for rhashtable_insert_fast

2019-06-01 Thread Sasha Levin
From: Taehee Yoo [ Upstream commit 43c8f131184faf20c07221f3e09724611c6525d8 ] rhashtable_insert_fast() may return an error value when memory allocation fails, but flow_offload_add() does not check for errors. This patch just adds missing error checking. Fixes: ac2a5e23 ("netfilter: add gene

[PATCH AUTOSEL 5.1 064/186] PCI: dwc: Free MSI IRQ page in dw_pcie_free_msi()

2019-06-01 Thread Sasha Levin
From: Jisheng Zhang [ Upstream commit dc69a3d567941784c3d00e1d0834582b42b0b3e7 ] To avoid a memory leak, free the page allocated for MSI IRQ in dw_pcie_free_msi(). Signed-off-by: Jisheng Zhang Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Acked-by: Gustavo Pimentel Signed-of

[PATCH AUTOSEL 5.1 046/186] f2fs: fix to avoid panic in f2fs_remove_inode_page()

2019-06-01 Thread Sasha Levin
From: Chao Yu [ Upstream commit 8b6810f8acfe429fde7c7dad4714692cc5f75651 ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203219 - Overview When mounting the attached crafted image and running program, I got this error. Additionally, it hangs on sync after runnin

[PATCH AUTOSEL 5.1 044/186] f2fs: fix to avoid panic in f2fs_inplace_write_data()

2019-06-01 Thread Sasha Levin
From: Chao Yu [ Upstream commit 05573d6ccf702df549a7bdeabef31e4753df1a90 ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203239 - Overview When mounting the attached crafted image and running program, following errors are reported. Additionally, it hangs on syn

[PATCH AUTOSEL 5.1 072/186] netfilter: nf_tables: fix base chain stat rcu_dereference usage

2019-06-01 Thread Sasha Levin
From: Florian Westphal [ Upstream commit edbd82c5fba009f68d20b5db585be1e667c605f6 ] Following splat gets triggered when nfnetlink monitor is running while xtables-nft selftests are running: net/netfilter/nf_tables_api.c:1272 suspicious rcu_dereference_check() usage! other info that might help u

[PATCH AUTOSEL 5.1 061/186] uml: fix a boot splat wrt use of cpu_all_mask

2019-06-01 Thread Sasha Levin
From: Maciej Żenczykowski [ Upstream commit 689a58605b63173acb0a8cf954af6a8f60440c93 ] Memory: 509108K/542612K available (3835K kernel code, 919K rwdata, 1028K rodata, 129K init, 211K bss, 33504K reserved, 0K cma-reserved) NR_IRQS: 15 clocksource: timer: mask: 0x max_cycles: 0x1

[PATCH AUTOSEL 5.1 071/186] mips: Make sure dt memory regions are valid

2019-06-01 Thread Sasha Levin
From: Serge Semin [ Upstream commit 93fa5b280761a4dbb14c5330f260380385ab2b49 ] There are situations when memory regions coming from dts may be too big for the platform physical address space. This especially concerns XPA-capable systems. Bootloader may determine more than 4GB memory available an

[PATCH AUTOSEL 5.1 053/186] f2fs: fix to avoid deadloop in foreground GC

2019-06-01 Thread Sasha Levin
From: Chao Yu [ Upstream commit 793ab1c8a792f8bccd7ae4c5be02bd275410b3af ] As Jungyeon reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203211 - Overview When mounting the attached crafted image and making a new file, I got this error and the error messages keep repeating. T

[PATCH AUTOSEL 5.1 057/186] percpu: remove spurious lock dependency between percpu and sched

2019-06-01 Thread Sasha Levin
From: John Sperbeck [ Upstream commit 198790d9a3aeaef5792d33a560020861126edc22 ] In free_percpu() we sometimes call pcpu_schedule_balance_work() to queue a work item (which does a wakeup) while holding pcpu_lock. This creates an unnecessary lock dependency between pcpu_lock and the scheduler's p

[PATCH AUTOSEL 5.1 040/186] pwm: meson: Use the spin-lock only to protect register modifications

2019-06-01 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit f173747fffdf037c791405ab4f1ec0eb392fc48e ] Holding the spin-lock for all of the code in meson_pwm_apply() can result in a "BUG: scheduling while atomic". This can happen because clk_get_rate() (which is called from meson_pwm_calc()) may sleep. Only hol

[PATCH AUTOSEL 5.1 031/186] drm/nouveau/kms/gf119-gp10x: push HeadSetControlOutputResource() mthd when encoders change

2019-06-01 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit a0b694d0af21c9993d1a39a75fd814bd48bf7eb4 ] HW has error checks in place which check that pixel depth is explicitly provided on DP, while HDMI has a "default" setting that we use. In multi-display configurations with identical modelines, but different protocols

[PATCH AUTOSEL 5.1 023/186] kernel/sys.c: prctl: fix false positive in validate_prctl_map()

2019-06-01 Thread Sasha Levin
From: Cyrill Gorcunov [ Upstream commit a9e73998f9d705c94a8dca9687633adc0f24a19a ] While validating new map we require the @start_data to be strictly less than @end_data, which is fine for regular applications (this is why this nit didn't trigger for that long). These members are set from execu

[PATCH AUTOSEL 5.1 032/186] drm/nouveau: fix duplication of nv50_head_atom struct

2019-06-01 Thread Sasha Levin
From: Peteris Rudzusiks [ Upstream commit c4a52d669690423ee3c99d8eda1e69cd0821fcad ] nv50_head_atomic_duplicate_state() makes a copy of nv50_head_atom struct. This patch adds copying of struct member named "or", which previously was left uninitialized in the duplicated structure. Due to this bu

[PATCH AUTOSEL 5.1 027/186] mfd: intel-lpss: Set the device in reset state when init

2019-06-01 Thread Sasha Levin
From: Binbin Wu [ Upstream commit dad06532292d77f37fbe831a02948a593500f682 ] In virtualized setup, when system reboots due to warm reset interrupt storm is seen. Call Trace: dump_stack+0x70/0xa5 __report_bad_irq+0x2e/0xc0 note_interrupt+0x248/0x290 ? add_interrupt_randomness+0x30/0x220 handle_

[PATCH AUTOSEL 5.1 020/186] mm: page_mkclean vs MADV_DONTNEED race

2019-06-01 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 024eee0e83f0df52317be607ca521e0fc572aa07 ] MADV_DONTNEED is handled with mmap_sem taken in read mode. We call page_mkclean without holding mmap_sem. MADV_DONTNEED implies that pages in the region are unmapped and subsequent access to the pages in that

[PATCH AUTOSEL 5.1 030/186] perf/x86/intel: Allow PEBS multi-entry in watermark mode

2019-06-01 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit c7a286577d7592720c2f179aadfb325a1ff48c95 ] This patch fixes a restriction/bug introduced by: 583feb08e7f7 ("perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS") The original patch prevented using multi-entry PEBS when wakeup_events !

[PATCH AUTOSEL 5.1 022/186] mm/slab.c: fix an infinite loop in leaks_show()

2019-06-01 Thread Sasha Levin
From: Qian Cai [ Upstream commit 745e10146c31b1c6ed3326286704ae251b17f663 ] "cat /proc/slab_allocators" could hang forever on SMP machines with kmemleak or object debugging enabled due to other CPUs running do_drain() will keep making kmemleak_object or debug_objects_cache dirty and unable to es

[PATCH AUTOSEL 5.1 033/186] drm/bridge: adv7511: Fix low refresh rate selection

2019-06-01 Thread Sasha Levin
From: Matt Redfearn [ Upstream commit 67793bd3b3948dc8c8384b6430e036a30a0ecb43 ] The driver currently sets register 0xfb (Low Refresh Rate) based on the value of mode->vrefresh. Firstly, this field is specified to be in Hz, but the magic numbers used by the code are Hz * 1000. This essentially l

[PATCH AUTOSEL 5.1 019/186] mm/cma.c: fix the bitmap status to show failed allocation reason

2019-06-01 Thread Sasha Levin
From: Yue Hu [ Upstream commit 2b59e01a3aa665f751d1410b99fae9336bd424e1 ] Currently one bit in cma bitmap represents number of pages rather than one page, cma->count means cma size in pages. So to find available pages via find_next_zero_bit()/find_next_bit() we should use cma size not in pages b

[PATCH AUTOSEL 5.1 028/186] drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration

2019-06-01 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 13d03e9daf70dab032c03dc172e75bb98ad899c4 ] Where possible, we want the failsafe link configuration (one which won't hang the OR during modeset because of not enough bandwidth for the mode) to also be supported by the sink. This prevents "link rate unsupported

[PATCH AUTOSEL 5.1 018/186] mm/memory_hotplug.c: fix the wrong usage of N_HIGH_MEMORY

2019-06-01 Thread Sasha Levin
From: Baoquan He [ Upstream commit d3ba3ae19751e476b0840a0c9a673a5766fa3219 ] In node_states_check_changes_online(), N_HIGH_MEMORY is used to substitute ZONE_HIGHMEM directly. This is not right. N_HIGH_MEMORY is to mark the memory state of node. Here zone index is checked, which should be com

[PATCH AUTOSEL 5.1 021/186] mm/cma_debug.c: fix the break condition in cma_maxchunk_get()

2019-06-01 Thread Sasha Levin
From: Yue Hu [ Upstream commit f0fd50504a54f5548eb666dc16ddf8394e44e4b7 ] If not find zero bit in find_next_zero_bit(), it will return the size parameter passed in, so the start bit should be compared with bitmap_maxno rather than cma->count. Although getting maxchunk is working fine due to zer

[PATCH AUTOSEL 5.1 029/186] mfd: twl6040: Fix device init errors for ACCCTL register

2019-06-01 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 48171d0ea7caccf21c9ee3ae75eb370f2a756062 ] I noticed that we can get a -EREMOTEIO errors on at least omap4 duovero: twl6040 0-004b: Failed to write 2d = 19: -121 And then any following register access will produce errors. There 2d offset above is register

[PATCH AUTOSEL 5.1 025/186] drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER

2019-06-01 Thread Sasha Levin
From: Amit Kucheria [ Upstream commit fc7d18cf6a923cde7f5e7ba2c1105bb106d3e29a ] We print a calibration failure message on -EPROBE_DEFER from nvmem/qfprom as follows: [3.003090] qcom-tsens 4a9000.thermal-sensor: version: 1.4 [3.005376] qcom-tsens 4a9000.thermal-sensor: tsens calibration

[PATCH AUTOSEL 5.1 015/186] mm/cma.c: fix crash on CMA allocation if bitmap allocation fails

2019-06-01 Thread Sasha Levin
From: Yue Hu [ Upstream commit 1df3a339074e31db95c4790ea9236874b13ccd87 ] f022d8cb7ec7 ("mm: cma: Don't crash on allocation if CMA area can't be activated") fixes the crash issue when activation fails via setting cma->count as 0, same logic exists if bitmap allocation fails. Link: http://lkml.k

[PATCH AUTOSEL 5.1 014/186] mem-hotplug: fix node spanned pages when we have a node with only ZONE_MOVABLE

2019-06-01 Thread Sasha Levin
From: Linxu Fang [ Upstream commit 299c83dce9ea3a79bb4b5511d2cb996b6b8e5111 ] 342332e6a925 ("mm/page_alloc.c: introduce kernelcore=mirror option") and later patches rewrote the calculation of node spanned pages. e506b99696a2 ("mem-hotplug: fix node spanned pages when we have a movable node"), b

[PATCH AUTOSEL 5.1 013/186] mm/memory_hotplug: release memory resource after arch_remove_memory()

2019-06-01 Thread Sasha Levin
From: David Hildenbrand [ Upstream commit d9eb1417c77df7ce19abd2e41619e9dceccbdf2a ] Patch series "mm/memory_hotplug: Better error handling when removing memory", v1. Error handling when removing memory is somewhat messed up right now. Some errors result in warnings, others are completely igno

[PATCH AUTOSEL 5.1 012/186] hugetlbfs: on restore reserve error path retain subpool reservation

2019-06-01 Thread Sasha Levin
From: Mike Kravetz [ Upstream commit 0919e1b69ab459e06df45d3ba6658d281962db80 ] When a huge page is allocated, PagePrivate() is set if the allocation consumed a reservation. When freeing a huge page, PagePrivate is checked. If set, it indicates the reservation should be restored. PagePrivate b

[PATCH AUTOSEL 5.1 011/186] mm/hmm: select mmu notifier when selecting HMM

2019-06-01 Thread Sasha Levin
From: Jérôme Glisse [ Upstream commit 734fb89968900b5c5f8edd5038bd4cdeab8c61d2 ] To avoid random config build issue, select mmu notifier when HMM is selected. In any cases when HMM get selected it will be by users that will also wants the mmu notifier. Link: http://lkml.kernel.org/r/2019040319

[PATCH AUTOSEL 5.1 009/186] mm/mprotect.c: fix compilation warning because of unused 'mm' variable

2019-06-01 Thread Sasha Levin
From: Mike Rapoport [ Upstream commit 94393c78964c432917014e3a456fa15c3e78f741 ] Since 0cbe3e26abe0 ("mm: update ptep_modify_prot_start/commit to take vm_area_struct as arg") the only place that uses the local 'mm' variable in change_pte_range() is the call to set_pte_at(). Many architectures d

[PATCH AUTOSEL 5.1 006/186] ipc: prevent lockup on alloc_msg and free_msg

2019-06-01 Thread Sasha Levin
From: Li Rongqing [ Upstream commit d6a2946a88f524a47cc9b79279667137899db807 ] msgctl10 of ltp triggers the following lockup When CONFIG_KASAN is enabled on large memory SMP systems, the pages initialization can take a long time, if msgctl10 requests a huge block memory, and it will block rcu sc

[PATCH AUTOSEL 5.1 004/186] fs/fat/file.c: issue flush after the writeback of FAT

2019-06-01 Thread Sasha Levin
From: Hou Tao [ Upstream commit bd8309de0d60838eef6fb575b0c4c7e95841cf73 ] fsync() needs to make sure the data & meta-data of file are persistent after the return of fsync(), even when a power-failure occurs later. In the case of fat-fs, the FAT belongs to the meta-data of file, so we need to i

[PATCH AUTOSEL 5.1 003/186] rapidio: fix a NULL pointer dereference when create_workqueue() fails

2019-06-01 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit 23015b22e47c5409620b1726a677d69e5cd032ba ] In case create_workqueue fails, the fix releases resources and returns -ENOMEM to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Acked-by: Alexandre Bounine Cc: Matt Porter Signed-off-by: Andrew Morton

[PATCH AUTOSEL 5.1 002/186] media: rockchip/vpu: Add missing dont_use_autosuspend() calls

2019-06-01 Thread Sasha Levin
From: Jonas Karlman [ Upstream commit 5c5b90f5cbad77dc15d8b5582efdb2e362bcd710 ] Those calls are needed to restore a clean PM state when the probe fails or when the driver is unloaded such that future ->probe() calls can initialize runtime PM again. Signed-off-by: Jonas Karlman Signed-off-by:

[PATCH AUTOSEL 5.1 001/186] media: rockchip/vpu: Fix/re-order probe-error/remove path

2019-06-01 Thread Sasha Levin
From: Jonas Karlman [ Upstream commit fc8670d1f72b746ff3a5fe441f1fca4c4dba0e6f ] media_device_cleanup() and v4l2_m2m_unregister_media_controller() were missing in the probe error path. While at it, re-order calls in the remove path to unregister/cleanup things in the reverse order they were init

[PATCH AUTOSEL 5.1 005/186] sysctl: return -EINVAL if val violates minmax

2019-06-01 Thread Sasha Levin
From: Christian Brauner [ Upstream commit e260ad01f0aa9e96b5386d5cd7184afd949dc457 ] Currently when userspace gives us a values that overflow e.g. file-max and other callers of __do_proc_doulongvec_minmax() we simply ignore the new value and leave the current value untouched. This can be probl

Re: [PATCH -next] pwm: pca9685: Remove set but not used variable 'pwm'

2019-06-01 Thread Sven Van Asbroeck
Hi YueHaibing, On Fri, May 31, 2019 at 11:49 PM YueHaibing wrote: > > mutex_lock(&pca->lock); > - pwm = &pca->chip.pwms[offset]; > mutex_unlock(&pca->lock); Thanks for noticing this issue. However it should be fixed differently. This was introduced by Uwe's clean-up patch:

Re: [PATCH v3 0/8] NVIDIA Tegra clocksource driver improvements

2019-06-01 Thread Dmitry Osipenko
31.05.2019 23:31, Daniel Lezcano пишет: > On 31/05/2019 14:33, Dmitry Osipenko wrote: >> 31.05.2019 11:26, Peter De Schrijver пишет: >>> On Fri, May 24, 2019 at 06:32:45PM +0300, Dmitry Osipenko wrote: Hello, This series primarily unifies the driver code across all Tegra SoC gen

Re: [net-next,v4 0/2] Enable SFP on ACPI based systems

2019-06-01 Thread Wolfram Sang
> I already put other changes into net-next and also just merged 'net' > into 'net-next' and pushed that out to git.kernel.org, so I don't know > how I can still do that for you. Okay, it is just one patch. I will apply it to my tree as well. Should be good enough. signature.asc Description: P

Re: [PATCH net-next 0/5] PTP support for the SJA1105 DSA driver

2019-06-01 Thread Vladimir Oltean
On Sat, 1 Jun 2019 at 13:31, Vladimir Oltean wrote: > > On Sat, 1 Jun 2019 at 08:07, Richard Cochran wrote: > > > > On Fri, May 31, 2019 at 09:12:03PM +0300, Vladimir Oltean wrote: > > > It won't work unless I make changes to dsa_switch_rcv. > > > > Or to the tagging code. > > > > > Right now tag

[GIT PULL] SCSI fixes for 5.2-rc1

2019-06-01 Thread James Bottomley
Six minor fixes to device drivers and one to the multipath alua handler. The most extensive fix is the zfcp port remove prevention one, but it's impact is only s390. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Jaso

Re: [PATCH v4] page cache: Store only head pages in i_pages

2019-06-01 Thread Chris Wilson
Quoting Chris Wilson (2019-06-01 10:26:21) > Quoting Matthew Wilcox (2019-03-07 15:30:51) > > Transparent Huge Pages are currently stored in i_pages as pointers to > > consecutive subpages. This patch changes that to storing consecutive > > pointers to the head page in preparation for storing huge

[PATCH] kernel/isolation: Asset that a housekeeping CPU comes up at boot time

2019-06-01 Thread Nicholas Piggin
With the change to allow the boot CPU0 to be isolated, it is possible to specify command line options that result in no housekeeping CPU online at boot. An 8 CPU system booted with "nohz_full=0-6 maxcpus=4", for example. It is not easily possible at housekeeping init time to know all the various

Good day

2019-06-01 Thread Lucas Rudenson
Good day, My name is Lucas Rudenson, 50 years of age a Briton, the purpose of this email is to briefly introduce myself as the Accounting and Finance Manager of a crude Oil and Gas company here in United Kingdom. I wish to establish aprivate business partnership that is of utmost importance with

Re: [PATCH] Revert "usb: core: remove local_irq_save() around ->complete() handler"

2019-06-01 Thread Sebastian Andrzej Siewior
On 2019-06-01 12:50:08 [+0200], To Soeren Moch wrote: > I will look into this. nothing obvious. If there is really blocken lock, could you please enable lockdep |CONFIG_LOCK_DEBUGGING_SUPPORT=y |CONFIG_PROVE_LOCKING=y |# CONFIG_LOCK_STAT is not set |CONFIG_DEBUG_RT_MUTEXES=y |CONFIG_DEBUG_SPINLOC

Re: [PATCH] s390: Kconfig: pedantic cleanups

2019-06-01 Thread Heiko Carstens
On Wed, Mar 06, 2019 at 09:32:01PM +0100, Enrico Weigelt, metux IT consult wrote: > Formatting of Kconfig files doesn't look so pretty, so just > take damp cloth and clean it up. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > arch/s390/Kconfig | 2 +- > drivers/s390/block

Re: [PATCH] s390: mmap base does not depend on ADDR_NO_RANDOMIZE personality

2019-06-01 Thread Heiko Carstens
On Thu, Apr 04, 2019 at 02:19:56AM -0400, Alexandre Ghiti wrote: > randomize_stack_top() checks for current task flag PF_RANDOMIZE in order > to use stack randomization and PF_RANDOMIZE is set when > ADDR_NO_RANDOMIZE is unset, so no need to check for ADDR_NO_RANDOMIZE > in stack_maxrandom_size. >

Re: [PATCH v2 net-next 4/7] net: ethernet: ti: cpsw_ethtool: simplify slave loops

2019-06-01 Thread grygorii
On 30/05/2019 21:20, Ivan Khoronzhuk wrote: Only for consistency reasons, do it like in main cpsw.c module and use ndev reference but not by means of slave. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw_ethtool.c | 40 ++ 1 file changed, 21 insert

Re: [PATCH] Revert "usb: core: remove local_irq_save() around ->complete() handler"

2019-06-01 Thread Sebastian Andrzej Siewior
On 2019-06-01 01:02:37 [+0200], Soeren Moch wrote: > > Why not just fix that driver? Wouldn't that be easier? > > > I suspect there are more drivers to fix. I only tested WIFI sticks so > far, RTL8188 drivers also seem to suffer from this. I'm not sure how to > fix all this properly, maybe Sebasti

Re: [PATCH v2 net-next 3/7] net: ethernet: ti: cpsw: use cpsw as drv data

2019-06-01 Thread grygorii
On 30/05/2019 21:20, Ivan Khoronzhuk wrote: No need to set ndev for drvdata when mainly cpsw reference is needed, so correct this legacy decision. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) Th

Re: [PATCH v1] KVM: x86: PMU Whitelist

2019-06-01 Thread Wei Wang
On 06/01/2019 03:59 AM, Eric Hankland wrote: With anythread=0, I'm not aware of any events that directly give info about other VMs, but monitoring events related to shared resources (e.g. LLC References and LLC Misses) could indirectly give you info about how heavily other users are using that r

[PATCH net-next 08/10] ARM: dts: k2hk-netcp: add cpts refclk_mux node

2019-06-01 Thread Grygorii Strashko
KeyStone 66AK2H/K 1G Ethernet Switch Subsystems, can control an external multiplexer that selects one of up to 32 clocks for time sync reference (RFTCLK) clock. This feature can be configured through CPTS_RFTCLK_SEL register (offset: x08) in CPTS module and modelled as multiplexer clock. Hence, ad

[PATCH net-next 09/10] ARM: dts: k2l-netcp: add cpts refclk_mux node

2019-06-01 Thread Grygorii Strashko
KeyStone 66AK2L 1G Ethernet Switch Subsystems, can control an external multiplexer that selects one of up to 32 clocks for time sync reference (RFTCLK) clock. This feature can be configured through CPTS_RFTCLK_SEL register (offset: x08) in CPTS module and modelled as multiplexer clock. Hence, add

[PATCH net-next 04/10] net: ethernet: ti: cpts: add support for rftclk selection

2019-06-01 Thread Grygorii Strashko
Some CPTS instances, which can be found on KeyStone 2 1G Ethernet Switch Subsystems, can control an external multiplexer that selects one of up to 32 clocks as time sync reference (RFTCLK) clock. This feature can be configured through CPTS_RFTCLK_SEL register (offset: x08) in CPTS module and can be

[PATCH net-next 10/10] ARM: configs: keystone: enable cpts

2019-06-01 Thread Grygorii Strashko
Enable CPTS support which is present in Network Coprocessor Gigabit Ethernet (GbE) Switch Subsystem. Signed-off-by: Grygorii Strashko --- arch/arm/configs/keystone_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defco

[PATCH net-next 07/10] ARM: dts: k2e-netcp: add cpts refclk_mux node

2019-06-01 Thread Grygorii Strashko
KeyStone 66AK2E 1G Ethernet Switch Subsystems, can control an external multiplexer that selects one of up to 32 clocks for time sync reference (RFTCLK) clock. This feature can be configured through CPTS_RFTCLK_SEL register (offset: x08) in CPTS module and modelled as multiplexer clock. Hence, add

[PATCH net-next 05/10] ARM: dts: keystone-clocks: add input fixed clocks

2019-06-01 Thread Grygorii Strashko
Add set of fixed, external input clocks definitions for TIMI0, TIMI1, TSREFCLK clocks. Such clocks can be used as reference clocks for some HW modules (as cpts, for example) by configuring corresponding clock muxes. For these clocks real frequencies have to be defined in board files. Signed-off-by

[PATCH net-next 06/10] ARM: dts: k2e-clocks: add input ext. fixed clocks tsipclka/b

2019-06-01 Thread Grygorii Strashko
Add set of fixed, external input clocks definitions for TSIPCLKA, TSIPCLKB clocks. Such clocks can be used as reference clocks for some HW modules (as cpts, for example) by configuring corresponding clock muxes. For these clocks real frequencies have to be defined in board files. Signed-off-by: Gr

<    1   2   3   4   5   >