[PATCH AUTOSEL 4.9 04/12] ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized

2019-03-11 Thread Sasha Levin
From: Yizhuo [ Upstream commit dc30e70391376ba3987aeb856ae6d9c0706534f1 ] In function omap4_dsi_mux_pads(), local variable "reg" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used directly in the later context, which is potentially unsafe. Signed-off-by:

Re: [PATCH v8 0/6] Add Fieldbus subsystem + support HMS Profinet card

2019-03-11 Thread Sven Van Asbroeck
Hi Andreas, On Mon, Mar 11, 2019 at 1:25 PM Andreas Färber wrote: > > I have two unfinished drivers that might benefit, for Hilscher netX 52 > (multi-protocol) and Microchip LAN9252 (EtherCAT), as well as a Linux > port for Infineon XMC4500 that might be expanded to XMC4800 (EtherCAT). > > But cu

[PATCH AUTOSEL 4.9 03/12] s390/dasd: fix using offset into zero size array error

2019-03-11 Thread Sasha Levin
From: Stefan Haberland [ Upstream commit 4a8ef6999bce998fa5813023a9a6b56eea329dba ] Dan Carpenter reported the following: The patch 52898025cf7d: "[S390] dasd: security and PSF update patch for EMC CKD ioctl" from Mar 8, 2010, leads to the following static checker warning: drivers/s390

[PATCH AUTOSEL 4.14 25/27] i2c: bcm2835: Clear current buffer pointers and counts after a transfer

2019-03-11 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit f275a4659484716259cc46268d9043424e51cf0f ] The driver's interrupt handler checks whether a message is currently being handled with the curr_msg pointer. When it is NULL, the interrupt is considered to be unexpected. Similarly, the i2c_start_transfer rout

[PATCH AUTOSEL 4.14 18/27] floppy: check_events callback should not return a negative number

2019-03-11 Thread Sasha Levin
From: Yufen Yu [ Upstream commit 96d7cb932e826219ec41ac02e5af037ffae6098c ] floppy_check_events() is supposed to return bit flags to say which events occured. We should return zero to say that no event flags are set. Only BIT(0) and BIT(1) are used in the caller. And .check_events interface als

[PATCH AUTOSEL 4.14 22/27] mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs

2019-03-11 Thread Sasha Levin
From: Jann Horn [ Upstream commit 2c2ade81741c66082f8211f0b96cf509cc4c0218 ] The basic idea behind ->pagecnt_bias is: If we pre-allocate the maximum number of references that we might need to create in the fastpath later, the bump-allocation fastpath only has to modify the non-atomic bias value

[PATCH AUTOSEL 4.14 21/27] Revert "mm: use early_pfn_to_nid in page_ext_init"

2019-03-11 Thread Sasha Levin
From: Qian Cai [ Upstream commit 2f1ee0913ce58efe7f18fbd518bd54c598559b89 ] This reverts commit fe53ca54270a ("mm: use early_pfn_to_nid in page_ext_init"). When booting a system with "page_owner=on", start_kernel page_ext_init invoke_init_callbacks init_section_page_ext ini

[PATCH AUTOSEL 4.14 24/27] i2c: cadence: Fix the hold bit setting

2019-03-11 Thread Sasha Levin
From: Shubhrajyoti Datta [ Upstream commit d358def706880defa4c9e87381c5bf086a97d5f9 ] In case the hold bit is not needed we are carrying the old values. Fix the same by resetting the bit when not needed. Fixes the sporadic i2c bus lockups on National Instruments Zynq-based devices. Fixes: df8e

[PATCH AUTOSEL 4.14 20/27] mm/gup: fix gup_pmd_range() for dax

2019-03-11 Thread Sasha Levin
From: Yu Zhao [ Upstream commit 414fd080d125408cb15d04ff4907e1dd8145c8c7 ] For dax pmd, pmd_trans_huge() returns false but pmd_huge() returns true on x86. So the function works as long as hugetlb is configured. However, dax doesn't depend on hugetlb. Link: http://lkml.kernel.org/r/201901110340

[PATCH AUTOSEL 4.14 10/27] ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check

2019-03-11 Thread Sasha Levin
From: Kuninori Morimoto [ Upstream commit d9111d36024de07784f2e1ba2ccf70b16035f378 ] commit 4d230d1271064 ("ASoC: rsnd: fixup not to call clk_get/set under non-atomic") added new rsnd_ssi_prepare() and moved rsnd_ssi_master_clk_start() to .prepare. But, ssi user count (= ssi->usrcnt) is incremen

[PATCH AUTOSEL 4.14 19/27] NFS: Don't use page_file_mapping after removing the page

2019-03-11 Thread Sasha Levin
From: Benjamin Coddington [ Upstream commit d2ceb7e57086750ea6198a31fd942d98099a0786 ] If nfs_page_async_flush() removes the page from the mapping, then we can't use page_file_mapping() on it as nfs_updatepate() is wont to do when receiving an error. Instead, push the mapping to the stack befor

[PATCH AUTOSEL 4.14 15/27] Input: matrix_keypad - use flush_delayed_work()

2019-03-11 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit a342083abe576db43594a32d458a61fa81f7cb32 ] We should be using flush_delayed_work() instead of flush_work() in matrix_keypad_stop() to ensure that we are not missing work that is scheduled but not yet put in the workqueue (i.e. its delay timer has not expir

[PATCH AUTOSEL 4.14 14/27] Input: ps2-gpio - flush TX work when closing port

2019-03-11 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 33a841ce5cef4ca6c18ad333248b6d273f54c839 ] To ensure that TX work is not running after serio port has been torn down, let's flush it when closing the port. Reported-by: Sven Van Asbroeck Acked-by: Danilo Krummrich Reviewed-by: Sven Van Asbroeck Signed-

Re: [PATCH v8 0/6] Add Fieldbus subsystem + support HMS Profinet card

2019-03-11 Thread Sven Van Asbroeck
On Mon, Mar 11, 2019 at 3:13 PM Greg KH wrote: > > That sounds like a good plan, I'll take that. Want to respin the > patches with the code in drivers/staging/ and I'll be glad to queue them > up after 5.1-rc1 is out. Awesome ! You can expect it in the next few days. I'll also incorporate the la

[PATCH AUTOSEL 4.14 08/27] ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized

2019-03-11 Thread Sasha Levin
From: Yizhuo [ Upstream commit dc30e70391376ba3987aeb856ae6d9c0706534f1 ] In function omap4_dsi_mux_pads(), local variable "reg" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used directly in the later context, which is potentially unsafe. Signed-off-by:

[PATCH AUTOSEL 4.14 13/27] Input: cap11xx - switch to using set_brightness_blocking()

2019-03-11 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 628442880af8c201d307a45f3862a7a17df8a189 ] Updating LED state requires access to regmap and therefore we may sleep, so we could not do that directly form set_brightness() method. Historically we used private work to adjust the brightness, but with the intr

[PATCH AUTOSEL 4.14 12/27] ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug

2019-03-11 Thread Sasha Levin
From: Russell King [ Upstream commit 50d6b3cf9403879911e06d69c7ef41e43f8f7b4b ] If we have a kernel configured for periodic timer interrupts, and we have cpuidle enabled, then we end up with CPU1 losing timer interupts after a hotplug. This can manifest itself in RCU stall warnings, or userspac

[PATCH AUTOSEL 4.19 43/44] auxdisplay: ht16k33: fix potential user-after-free on module unload

2019-03-11 Thread Sasha Levin
From: Miguel Ojeda [ Upstream commit 69ef9bc54715fb1cb7786ada15774e469e822209 ] On module unload/remove, we need to ensure that work does not run after we have freed resources. Concretely, cancel_delayed_work() may return while the callback function is still running. >From kernel/workqueue.c:

[PATCH AUTOSEL 4.14 04/27] gpu: ipu-v3: Fix CSI offsets for imx53

2019-03-11 Thread Sasha Levin
From: Steve Longerbeam [ Upstream commit bb867d219fda7fbaabea3314702474c4eac2b91d ] The CSI offsets are wrong for both CSI0 and CSI1. They are at physical address 0x1e03 and 0x1e038000 respectively. Fixes: 2ffd48f2e7 ("gpu: ipu-v3: Add Camera Sensor Interface unit") Signed-off-by: Steve Lo

[PATCH AUTOSEL 4.19 41/44] i2c: cadence: Fix the hold bit setting

2019-03-11 Thread Sasha Levin
From: Shubhrajyoti Datta [ Upstream commit d358def706880defa4c9e87381c5bf086a97d5f9 ] In case the hold bit is not needed we are carrying the old values. Fix the same by resetting the bit when not needed. Fixes the sporadic i2c bus lockups on National Instruments Zynq-based devices. Fixes: df8e

[PATCH AUTOSEL 4.14 06/27] Input: pwm-vibra - prevent unbalanced regulator

2019-03-11 Thread Sasha Levin
From: Jonathan Bakker [ Upstream commit 3ca232df9921f083c3b37ba5fbc76f4d9046268b ] pwm_vibrator_stop disables the regulator, but it can be called from multiple places, even when the regulator is already disabled. Fix this by using regulator_is_enabled check when starting and stopping device. Si

[PATCH AUTOSEL 4.14 09/27] ASoC: dapm: fix out-of-bounds accesses to DAPM lookup tables

2019-03-11 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit c16e12010060c6c7a31f08b4a99513064cb53b7d ] KASAN reports and additional traces point to out-of-bounds accesses to the dapm_up_seq and dapm_down_seq lookup tables. The indices used are larger than the array definition. Fix by adding missing entries fo

[PATCH AUTOSEL 4.14 05/27] s390/dasd: fix using offset into zero size array error

2019-03-11 Thread Sasha Levin
From: Stefan Haberland [ Upstream commit 4a8ef6999bce998fa5813023a9a6b56eea329dba ] Dan Carpenter reported the following: The patch 52898025cf7d: "[S390] dasd: security and PSF update patch for EMC CKD ioctl" from Mar 8, 2010, leads to the following static checker warning: drivers/s390

[PATCH AUTOSEL 4.14 02/27] gpu: ipu-v3: Fix i.MX51 CSI control registers offset

2019-03-11 Thread Sasha Levin
From: Alexander Shiyan [ Upstream commit 2c0408dd0d8906b26fe8023889af7adf5e68b2c2 ] The CSI0/CSI1 registers offset is at +0xe03/+0xe038000 relative to the control module registers on IPUv3EX. This patch fixes wrong values for i.MX51 CSI0/CSI1. Fixes: 2ffd48f2e7 ("gpu: ipu-v3: Add Camera Sen

[PATCH AUTOSEL 4.19 38/44] x86/CPU: Add Icelake model number

2019-03-11 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 8cd8f0ce0d6aafe661cb3d6781c8b82bc696c04d ] Add the CPUID model number of Icelake (ICL) mobile processors to the Intel family list. Icelake U/Y series uses model number 0x7E. Signed-off-by: Rajneesh Bhardwaj Signed-off-by: Borislav Petkov Cc: Andy Shev

[PATCH AUTOSEL 4.19 39/44] mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs

2019-03-11 Thread Sasha Levin
From: Jann Horn [ Upstream commit 2c2ade81741c66082f8211f0b96cf509cc4c0218 ] The basic idea behind ->pagecnt_bias is: If we pre-allocate the maximum number of references that we might need to create in the fastpath later, the bump-allocation fastpath only has to modify the non-atomic bias value

[PATCH AUTOSEL 4.19 36/44] scsi: qla2xxx: Fix panic from use after free in qla2x00_async_tm_cmd

2019-03-11 Thread Sasha Levin
From: Bill Kuzeja [ Upstream commit 388a49959ee4e4e99f160241d9599efa62cd4299 ] In qla2x00_async_tm_cmd, we reference off sp after it has been freed. This caused a panic on a system running a slub debug kernel. Since fcport is passed in anyways, just use that instead. Signed-off-by: Bill Kuzeja

[PATCH AUTOSEL 4.19 33/44] NFS: Don't use page_file_mapping after removing the page

2019-03-11 Thread Sasha Levin
From: Benjamin Coddington [ Upstream commit d2ceb7e57086750ea6198a31fd942d98099a0786 ] If nfs_page_async_flush() removes the page from the mapping, then we can't use page_file_mapping() on it as nfs_updatepate() is wont to do when receiving an error. Instead, push the mapping to the stack befor

[PATCH AUTOSEL 4.19 23/44] Input: cap11xx - switch to using set_brightness_blocking()

2019-03-11 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 628442880af8c201d307a45f3862a7a17df8a189 ] Updating LED state requires access to regmap and therefore we may sleep, so we could not do that directly form set_brightness() method. Historically we used private work to adjust the brightness, but with the intr

Re: [PATCH v2 5/9] mfd: Add support for the MediaTek MT6358 PMIC

2019-03-11 Thread Sean Wang
Hi, On Sun, Mar 10, 2019 at 8:50 PM Hsin-Hsiung Wang wrote: > > This adds support for the MediaTek MT6358 PMIC. This is a > multifunction device with the following sub modules: > > - Regulator > - RTC > - Codec > - Interrupt > > It is interfaced to the host controller using SPI interface > by a p

[PATCH AUTOSEL 4.19 25/44] Input: matrix_keypad - use flush_delayed_work()

2019-03-11 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit a342083abe576db43594a32d458a61fa81f7cb32 ] We should be using flush_delayed_work() instead of flush_work() in matrix_keypad_stop() to ensure that we are not missing work that is scheduled but not yet put in the workqueue (i.e. its delay timer has not expir

[PATCH AUTOSEL 4.19 22/44] ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug

2019-03-11 Thread Sasha Levin
From: Russell King [ Upstream commit 50d6b3cf9403879911e06d69c7ef41e43f8f7b4b ] If we have a kernel configured for periodic timer interrupts, and we have cpuidle enabled, then we end up with CPU1 losing timer interupts after a hotplug. This can manifest itself in RCU stall warnings, or userspac

[PATCH AUTOSEL 4.19 24/44] Input: ps2-gpio - flush TX work when closing port

2019-03-11 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 33a841ce5cef4ca6c18ad333248b6d273f54c839 ] To ensure that TX work is not running after serio port has been torn down, let's flush it when closing the port. Reported-by: Sven Van Asbroeck Acked-by: Danilo Krummrich Reviewed-by: Sven Van Asbroeck Signed-

[PATCH AUTOSEL 4.19 21/44] ASoC: samsung: Prevent clk_get_rate() calls in atomic context

2019-03-11 Thread Sasha Levin
From: Sylwester Nawrocki [ Upstream commit 860b454c2c0cbda6892954f5cdbbb48931b3c8db ] This patch moves clk_get_rate() call from trigger() to hw_params() callback to avoid calling sleeping clk API from atomic context and prevent deadlock as indicated below. Before this change clk_get_rate() was

[PATCH AUTOSEL 4.19 12/44] ARM: dts: Configure clock parent for pwm vibra

2019-03-11 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 0840242e887586268f665bf58d5e1a7d6ebf35ed ] Commit 84badc5ec5fc ("ARM: dts: omap4: Move l4 child devices to probe them with ti-sysc") moved some omap4 timers to probe with ti-sysc interconnect target module. Turns out this broke pwm-omap-dmtimer for reparenti

[PATCH AUTOSEL 4.19 13/44] ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized

2019-03-11 Thread Sasha Levin
From: Yizhuo [ Upstream commit dc30e70391376ba3987aeb856ae6d9c0706534f1 ] In function omap4_dsi_mux_pads(), local variable "reg" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used directly in the later context, which is potentially unsafe. Signed-off-by:

[PATCH AUTOSEL 4.19 10/44] Input: pwm-vibra - prevent unbalanced regulator

2019-03-11 Thread Sasha Levin
From: Jonathan Bakker [ Upstream commit 3ca232df9921f083c3b37ba5fbc76f4d9046268b ] pwm_vibrator_stop disables the regulator, but it can be called from multiple places, even when the regulator is already disabled. Fix this by using regulator_is_enabled check when starting and stopping device. Si

[PATCH AUTOSEL 4.19 09/44] s390/dasd: fix using offset into zero size array error

2019-03-11 Thread Sasha Levin
From: Stefan Haberland [ Upstream commit 4a8ef6999bce998fa5813023a9a6b56eea329dba ] Dan Carpenter reported the following: The patch 52898025cf7d: "[S390] dasd: security and PSF update patch for EMC CKD ioctl" from Mar 8, 2010, leads to the following static checker warning: drivers/s390

[PATCH AUTOSEL 4.19 08/44] arm64: dts: rockchip: fix graph_port warning on rk3399 bob kevin and excavator

2019-03-11 Thread Sasha Levin
From: Enric Balletbo i Serra [ Upstream commit 26cd8657c7e745686a4c54a5cccf721ede208a25 ] Ports are described by child 'port' nodes contained in the device node. 'ports' is optional and is used to group all 'port' nodes which is not the case here. This patch fixes the following warnings: arch/

[PATCH AUTOSEL 4.19 05/44] ASoC: rt5682: Correct the setting while select ASRC clk for AD/DA filter

2019-03-11 Thread Sasha Levin
From: Shuming Fan [ Upstream commit 8077ec011b1ea26abb7ca786f28ecccfb352717f ] AD/DA ASRC function control two ASRC clock sources separately. Whether AD/DA filter select which clock source, we enable AD/DA ASRC function for all cases. Signed-off-by: Shuming Fan Signed-off-by: Mark Brown Signe

[PATCH v8 perf,bpf 09/15] perf, bpf: save btf information as headers to perf.data

2019-03-11 Thread Song Liu
This patch enables perf-record to save btf information as headers to perf.data A new header type HEADER_BPF_BTF is introduced for this data. Signed-off-by: Song Liu --- tools/perf/util/header.c | 101 ++- tools/perf/util/header.h | 1 + 2 files changed, 101

[PATCH AUTOSEL 4.19 06/44] clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparenting

2019-03-11 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 983a5a43ec254cd5ddf3254db80ca96e8f8bb2a4 ] Commit 84badc5ec5fc ("ARM: dts: omap4: Move l4 child devices to probe them with ti-sysc") moved some omap4 timers to probe with ti-sysc interconnect target module. Turns out this broke pwm-omap-dmtimer where we now

[PATCH AUTOSEL 4.20 51/52] lib/crc32.c: mark crc32_le_base/__crc32c_le_base aliases as __pure

2019-03-11 Thread Sasha Levin
From: Miguel Ojeda [ Upstream commit ff98e20ef2081b8620dada28fc2d4fb24ca0abf2 ] The upcoming GCC 9 release extends the -Wmissing-attributes warnings (enabled by -Wall) to C and aliases: it warns when particular function attributes are missing in the aliases but not in their target. In particula

[PATCH AUTOSEL 4.20 50/52] auxdisplay: ht16k33: fix potential user-after-free on module unload

2019-03-11 Thread Sasha Levin
From: Miguel Ojeda [ Upstream commit 69ef9bc54715fb1cb7786ada15774e469e822209 ] On module unload/remove, we need to ensure that work does not run after we have freed resources. Concretely, cancel_delayed_work() may return while the callback function is still running. >From kernel/workqueue.c:

[PATCH AUTOSEL 4.20 48/52] i2c: cadence: Fix the hold bit setting

2019-03-11 Thread Sasha Levin
From: Shubhrajyoti Datta [ Upstream commit d358def706880defa4c9e87381c5bf086a97d5f9 ] In case the hold bit is not needed we are carrying the old values. Fix the same by resetting the bit when not needed. Fixes the sporadic i2c bus lockups on National Instruments Zynq-based devices. Fixes: df8e

[PATCH AUTOSEL 4.20 46/52] mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs

2019-03-11 Thread Sasha Levin
From: Jann Horn [ Upstream commit 2c2ade81741c66082f8211f0b96cf509cc4c0218 ] The basic idea behind ->pagecnt_bias is: If we pre-allocate the maximum number of references that we might need to create in the fastpath later, the bump-allocation fastpath only has to modify the non-atomic bias value

[PATCH v8 perf,bpf 12/15] perf, bpf: enable annotation of bpf program

2019-03-11 Thread Song Liu
This patch enables the annotation of bpf program. A new dso type DSO_BINARY_TYPE__BPF_PROG_INFO is introduced to for BPF programs. In symbol__disassemble(), DSO_BINARY_TYPE__BPF_PROG_INFO dso calls into a new function symbol__disassemble_bpf(), where annotation line information is filled based bpf

[PATCH AUTOSEL 4.20 44/52] net: dsa: bcm_sf2: potential array overflow in bcm_sf2_sw_suspend()

2019-03-11 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 8d6ea932856c7087ce8c3d0e79494b7d5386f962 ] The value of ->num_ports comes from bcm_sf2_sw_probe() and it is less than or equal to DSA_MAX_PORTS. The ds->ports[] array is used inside the dsa_is_user_port() and dsa_is_cpu_port() functions. The ds->ports[] ar

[PATCH v8 perf,bpf 07/15] perf, bpf: save bpf_prog_info information as headers to perf.data

2019-03-11 Thread Song Liu
This patch enables perf-record to save bpf_prog_info information as headers to perf.data. A new header type HEADER_BPF_PROG_INFO is introduced for this data. Signed-off-by: Song Liu --- tools/perf/util/header.c | 139 ++- tools/perf/util/header.h | 1 + 2 fi

[PATCH AUTOSEL 4.20 37/52] mm/gup: fix gup_pmd_range() for dax

2019-03-11 Thread Sasha Levin
From: Yu Zhao [ Upstream commit 414fd080d125408cb15d04ff4907e1dd8145c8c7 ] For dax pmd, pmd_trans_huge() returns false but pmd_huge() returns true on x86. So the function works as long as hugetlb is configured. However, dax doesn't depend on hugetlb. Link: http://lkml.kernel.org/r/201901110340

Re: [RFC] simple_lmk: Introduce Simple Low Memory Killer for Android

2019-03-11 Thread Suren Baghdasaryan
Hi Sultan, On Mon, Mar 11, 2019 at 10:58 AM Sultan Alsawaf wrote: > > On Mon, Mar 11, 2019 at 06:43:20PM +0100, Michal Hocko wrote: > > I am sorry but we are not going to maintain two different OOM > > implementations in the kernel. From a quick look the implementation is > > quite a hack which i

[PATCH AUTOSEL 4.20 39/52] csky: Fixup _PAGE_GLOBAL bit for 610 tlb entry

2019-03-11 Thread Sasha Levin
From: Guo Ren [ Upstream commit 62eebea655d4be5a20fd563abfd7656724cdcd00 ] C-SKY CPU 8xx's _PAGE_GLOBAL is BIT(0), but 610's _PAGE_GLOBAL is BIT(6). Use _PAGE_GLOBAL macro instead of bad magic number. Signed-off-by: Guo Ren Signed-off-by: Sasha Levin --- arch/csky/include/asm/pgtable.h | 4 +

[PATCH v8 perf,bpf 05/15] perf: change prototype of perf_event__synthesize_bpf_events()

2019-03-11 Thread Song Liu
This patch changes the arguments of perf_event__synthesize_bpf_events() to include perf_session* instead of perf_tool*. perf_session will be used in the next patch. Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 2 +- tools/perf/builtin-top.c| 2 +- tools/perf/util/bpf-event.c | 8

[PATCH AUTOSEL 4.20 41/52] csky: Fixup io-range page attribute for mmap("/dev/mem")

2019-03-11 Thread Sasha Levin
From: Guo Ren [ Upstream commit 76d21d186a65523b08ea5f70302e2c29ee8f6a8d ] Some user space drivers need accessing IO address and IO remap need SO(strong order) page-attribute to make IO operation correct. So we need add SO-page-attr for all non-memory address. Signed-off-by: Guo Ren Reported-b

[PATCH v8 perf,bpf 04/15] perf, bpf: synthesize bpf events with bpf_program__get_prog_info_linear()

2019-03-11 Thread Song Liu
With bpf_program__get_prog_info_linear, we can simplify the logic that synthesizes bpf events. This patch doesn't change the behavior of the code. Signed-off-by: Song Liu --- tools/perf/util/bpf-event.c | 118 1 file changed, 40 insertions(+), 78 deletions(-

[PATCH AUTOSEL 4.20 38/52] Revert "mm: use early_pfn_to_nid in page_ext_init"

2019-03-11 Thread Sasha Levin
From: Qian Cai [ Upstream commit 2f1ee0913ce58efe7f18fbd518bd54c598559b89 ] This reverts commit fe53ca54270a ("mm: use early_pfn_to_nid in page_ext_init"). When booting a system with "page_owner=on", start_kernel page_ext_init invoke_init_callbacks init_section_page_ext ini

[PATCH AUTOSEL 4.20 24/52] ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug

2019-03-11 Thread Sasha Levin
From: Russell King [ Upstream commit 50d6b3cf9403879911e06d69c7ef41e43f8f7b4b ] If we have a kernel configured for periodic timer interrupts, and we have cpuidle enabled, then we end up with CPU1 losing timer interupts after a hotplug. This can manifest itself in RCU stall warnings, or userspac

[PATCH AUTOSEL 4.20 23/52] ASoC: samsung: Prevent clk_get_rate() calls in atomic context

2019-03-11 Thread Sasha Levin
From: Sylwester Nawrocki [ Upstream commit 860b454c2c0cbda6892954f5cdbbb48931b3c8db ] This patch moves clk_get_rate() call from trigger() to hw_params() callback to avoid calling sleeping clk API from atomic context and prevent deadlock as indicated below. Before this change clk_get_rate() was

[PATCH AUTOSEL 4.20 31/52] netfilter: compat: initialize all fields in xt_init

2019-03-11 Thread Sasha Levin
From: Francesco Ruggeri [ Upstream commit 8d29d16d21342a0c86405d46de0c4ac5daf1760f ] If a non zero value happens to be in xt[NFPROTO_BRIDGE].cur at init time, the following panic can be caused by running % ebtables -t broute -F BROUTING from a 32-bit user level on a 64-bit kernel. This patch r

[PATCH AUTOSEL 4.20 28/52] mac80211: call drv_ibss_join() on restart

2019-03-11 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 4926b51bfaa6d36bd6f398fb7698679d3962e19d ] If a driver does any significant activity in its ibss_join method, then it will very well expect that to be called during restart, before any stations are added. Do that. Signed-off-by: Johannes Berg Signed-off-by

[PATCH AUTOSEL 4.20 25/52] Input: cap11xx - switch to using set_brightness_blocking()

2019-03-11 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 628442880af8c201d307a45f3862a7a17df8a189 ] Updating LED state requires access to regmap and therefore we may sleep, so we could not do that directly form set_brightness() method. Historically we used private work to adjust the brightness, but with the intr

[PATCH AUTOSEL 4.20 20/52] arm/arm64: KVM: Don't panic on failure to properly reset system registers

2019-03-11 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 20589c8cc47dce5854c8bf1b44a9fc63d798d26d ] Failing to properly reset system registers is pretty bad. But not quite as bad as bringing the whole machine down... So warn loudly, but slightly more gracefully. Signed-off-by: Marc Zyngier Acked-by: Christoffer D

[PATCH AUTOSEL 4.20 14/52] ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized

2019-03-11 Thread Sasha Levin
From: Yizhuo [ Upstream commit dc30e70391376ba3987aeb856ae6d9c0706534f1 ] In function omap4_dsi_mux_pads(), local variable "reg" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used directly in the later context, which is potentially unsafe. Signed-off-by:

[PATCH AUTOSEL 4.20 15/52] ASoC: topology: fix oops/use-after-free case with dai driver

2019-03-11 Thread Sasha Levin
From: Guennadi Liakhovetski [ Upstream commit 52abe6cc1866ac3d54612f5d80563e6608c0ddfc ] rmmod/modprobe tests expose a kernel oops when accessing the dai driver pointer. This comes from the topology design which operates in multiple passes. Each object removal happens at a specific iteration, an

[PATCH AUTOSEL 4.20 16/52] ASoC: dapm: fix out-of-bounds accesses to DAPM lookup tables

2019-03-11 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit c16e12010060c6c7a31f08b4a99513064cb53b7d ] KASAN reports and additional traces point to out-of-bounds accesses to the dapm_up_seq and dapm_down_seq lookup tables. The indices used are larger than the array definition. Fix by adding missing entries fo

[PATCH AUTOSEL 4.20 11/52] Input: pwm-vibra - prevent unbalanced regulator

2019-03-11 Thread Sasha Levin
From: Jonathan Bakker [ Upstream commit 3ca232df9921f083c3b37ba5fbc76f4d9046268b ] pwm_vibrator_stop disables the regulator, but it can be called from multiple places, even when the regulator is already disabled. Fix this by using regulator_is_enabled check when starting and stopping device. Si

[PATCH AUTOSEL 4.20 12/52] Input: pwm-vibra - stop regulator after disabling pwm, not before

2019-03-11 Thread Sasha Levin
From: Paweł Chmiel [ Upstream commit 94803aef3533676194c772383472636c453e3147 ] This patch fixes order of disable calls in pwm_vibrator_stop. Currently when starting device, we first enable vcc regulator and then setup and enable pwm. When stopping, we should do this in oposite order, so first d

[PATCH AUTOSEL 4.20 08/52] arm64: dts: rockchip: fix graph_port warning on rk3399 bob kevin and excavator

2019-03-11 Thread Sasha Levin
From: Enric Balletbo i Serra [ Upstream commit 26cd8657c7e745686a4c54a5cccf721ede208a25 ] Ports are described by child 'port' nodes contained in the device node. 'ports' is optional and is used to group all 'port' nodes which is not the case here. This patch fixes the following warnings: arch/

[PATCH AUTOSEL 4.20 02/52] gpu: ipu-v3: Fix i.MX51 CSI control registers offset

2019-03-11 Thread Sasha Levin
From: Alexander Shiyan [ Upstream commit 2c0408dd0d8906b26fe8023889af7adf5e68b2c2 ] The CSI0/CSI1 registers offset is at +0xe03/+0xe038000 relative to the control module registers on IPUv3EX. This patch fixes wrong values for i.MX51 CSI0/CSI1. Fixes: 2ffd48f2e7 ("gpu: ipu-v3: Add Camera Sen

Re: [PATCHv7 10/10] doc/mm: New documentation for memory performance

2019-03-11 Thread Keith Busch
On Mon, Mar 11, 2019 at 04:38:43AM -0700, Jonathan Cameron wrote: > On Wed, 27 Feb 2019 15:50:38 -0700 > Keith Busch wrote: > > > Platforms may provide system memory where some physical address ranges > > perform differently than others, or is side cached by the system. > The magic 'side cached'

Re: [PATCH v2 7/9] arm64: dts: mt6358: add PMIC MT6358 related nodes

2019-03-11 Thread Sean Wang
Hi, On Sun, Mar 10, 2019 at 8:49 PM Hsin-Hsiung Wang wrote: > > add PMIC MT6358 related nodes which is for mt8183 platform > s/MT8183/mt8183/ > Signed-off-by: Hsin-Hsiung Wang > --- > arch/arm64/boot/dts/mediatek/mt6358.dtsi | 318 > +++ > 1 file changed, 318 inse

[PATCH v1 10/10] perf, tools, stat: Improve scaling

2019-03-11 Thread Andi Kleen
From: Andi Kleen The multiplexing scaling in perf stat mysteriously adds 0.5 to the value. This dates back to the original perf tool. Other scaling code doesn't use that strange convention. Remove the extra 0.5. Before: $ perf stat -e 'cycles,cycles,cycles,cycles,cycles,cycles' grep -rq foo P

[PATCH v1 06/10] perf, tools, report: Print better message for JITed code

2019-03-11 Thread Andi Kleen
From: Andi Kleen The message about missing /tmp/perf-* for JITed code is quite confusing to users. Add a better error message, but only print it once. Signed-off-by: Andi Kleen --- tools/perf/util/map.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/perf/util/map.c b/tools/

[PATCH v1 03/10] perf, tools, record: Allow to limit number of reported perf.data files

2019-03-11 Thread Andi Kleen
From: Andi Kleen When doing long term recording and waiting for some event to snapshot on, we often only care about the last minute or so. --switch-output supports rotating the perf.data file when the size exceeds a threshold. But the disk would still be filled with unnecessary old files. Add a

[PATCH v1 07/10] perf, tools, report: Indicate JITed code better in report

2019-03-11 Thread Andi Kleen
From: Andi Kleen Print [TID] tid %d instead of the crypted /tmp/perf-%d.map default. % cat >loop.java public class loop { public static void main(String[] args) { for (;;); } } ^D % javac loop.java % perf record java loop ^C Before: % perf report --stdio

[PATCH v1 04/10] perf, tools, record: Clarify help for --switch-output

2019-03-11 Thread Andi Kleen
From: Andi Kleen The help description for --switch-output looks like there are multiple comma separated fields. But it's actually a choice of different options. Make it clear and less confusing. Before: % perf report -h ... --switch-output[=] Switch output when

[PATCH v1 01/10] perf, tools, list: Filter metrics too

2019-03-11 Thread Andi Kleen
From: Andi Kleen When a filter is specified on the command line, filter the metrics too. Before: % perf list foo List of pre-defined events (to be used in -e): Metric Groups: DSB: DSB_Coverage [Fraction of Uops delivered by the DSB (aka Decoded Icache; or Uop Cache)] ... more metric

Re: [PATCH v8 perf,bpf 00/15] perf annotation of BPF programs

2019-03-11 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 11, 2019 at 12:55:40PM -0700, Song Liu escreveu: > = Note on patch dependency > This set has dependency in both bpf-next tree and tip/perf/core. Current > version is developed on bpf-next tree with the following commits > cherry-picked from

[PATCH v1 09/10] perf, tools, stat: Fix --no-scale

2019-03-11 Thread Andi Kleen
From: Andi Kleen The -c option to enable multiplex scaling has been useless for quite some time because scaling is default. It's only useful as --no-scale to disable scaling. But the non scaling code path has bitrotted and doesn't print anything because perf output code relies on value run/ena in

[PATCH v1 05/10] perf, report: Show all sort keys in help output

2019-03-11 Thread Andi Kleen
From: Andi Kleen Show all the supported sort keys in the command line help output, so that it's not needed to refer to the manpage. The output is not line wrapped, so it can be fairly long. Before: % perf report -h ... -s, --sort sort by key(s): pid, comm, dso,

RE: [PATCH] x86, mce: Fix machine_check_poll() tests for which errors to log

2019-03-11 Thread Ghannam, Yazen
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org > On Behalf Of Tony Luck > Sent: Monday, March 11, 2019 1:51 PM > To: Borislav Petkov > Cc: Tony Luck ; x...@kernel.org; > linux-kernel@vger.kernel.org; Ashok Raj > Subject: [PATCH] x86, mce: Fix machine_check_poll() tests

[PATCH v1 02/10] perf, tools, stat: Avoid memory overrun with -r

2019-03-11 Thread Andi Kleen
From: Andi Kleen When -r is used memory would get corrupted because the evsel->id array would get overrun. evsel->ids is a running counter of the last id. Normally this works fine, but with -r the same event is initialized multiple times, but not this counter, so it would keep growing beyond the

[PATCH v1 08/10] perf, tools, script: Support relative time

2019-03-11 Thread Andi Kleen
From: Andi Kleen When comparing time stamps in perf script traces it can be annoying to work with the full perf time stamps. Add a --reltime option that displays time stamps relative to the trace start to make it easier to read the traces. Note: not currently supported for --time. Report an erro

Misc improvements and bug fixes for perf

2019-03-11 Thread Andi Kleen
Mostly unrelated to each other, so can be picked'n'chosed. - Fix perf stat --no-scale - Support --reltime in perf script - Fix crashes with stat -r - Handle JITed code better in perf report - Allow to limit rotated perf.data files - Filter metrics in perf list - Show all sort keys in perf report h

Re: [RFC] sched/fair: hard lockup in sched_cfs_period_timer

2019-03-11 Thread Phil Auld
On Mon, Mar 11, 2019 at 10:44:25AM -0700 bseg...@google.com wrote: > Phil Auld writes: > > > On Wed, Mar 06, 2019 at 11:25:02AM -0800 bseg...@google.com wrote: > >> Phil Auld writes: > >> > >> > On Tue, Mar 05, 2019 at 12:45:34PM -0800 bseg...@google.com wrote: > >> >> Phil Auld writes: > >> >

Re: [PATCH v1 02/10] perf, tools, stat: Avoid memory overrun with -r

2019-03-11 Thread Andi Kleen
On Mon, Mar 11, 2019 at 01:24:38PM -0700, Andi Kleen wrote: > From: Andi Kleen > > When -r is used memory would get corrupted because the evsel->id array > would get overrun. evsel->ids is a running counter of the last id. > Normally this works fine, but with -r the same event is initialized > mu

Re: [PATCH v1 06/10] perf, tools, report: Print better message for JITed code

2019-03-11 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 11, 2019 at 01:24:42PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > The message about missing /tmp/perf-* for JITed code is quite confusing > to users. Add a better error message, but only print it once. > > Signed-off-by: Andi Kleen > --- > tools/perf/util/map.c | 9

Re: [GIT pull] x86/asm for 5.1

2019-03-11 Thread Kees Cook
On Mon, Mar 11, 2019 at 12:23 PM Linus Torvalds wrote: > On Mon, Mar 11, 2019, 12:14 Kees Cook wrote: >> >> > >> > this_cpu_write(cpu_tlbstate.cr4, __read_cr4() | cr4_pin); >> > >> .. >> >> The protection needs to be around the actual "mov %rdi, %cr4" that >> native_write_cr4() exposes, >

WARNING: bad usercopy in fanotify_read

2019-03-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:12ad143e Merge branch 'perf-urgent-for-linus' of git://git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12776f5720 kernel config: https://syzkaller.appspot.com/x/.config?x=e9d91b7192a5e96e da

Re: [PATCH] x86, mce: Fix machine_check_poll() tests for which errors to log

2019-03-11 Thread Luck, Tony
On Mon, Mar 11, 2019 at 08:25:53PM +, Ghannam, Yazen wrote: > > + if (!(m.status & MCI_STATUS_PCC) && !(m.status & MCI_STATUS_S)) > > + goto log_it; > > + > > Can you please include a vendor check with this? MCi_STATUS[56] is > not defined the same way on AMD system

Re: [RFC] simple_lmk: Introduce Simple Low Memory Killer for Android

2019-03-11 Thread Sultan Alsawaf
On Mon, Mar 11, 2019 at 01:10:36PM -0700, Suren Baghdasaryan wrote: > The idea seems interesting although I need to think about this a bit > more. Killing processes based on failed page allocation might backfire > during transient spikes in memory usage. This issue could be alleviated if tasks cou

Re: [V2 1/2] clk: imx6q: remove unsupported pll4_audio_div

2019-03-11 Thread Eric Nelson
> On March 11, 2019, 6:35 p.m. UTC, Stephen Boyd wrote: > Quoting Eric Nelson (2019-03-11 08:59:56) diff --git a/include/dt-bindings/clock/imx6qdl-clock.h b/include/dt-bindings/clock/imx6qdl-clock.h index b3cef29..34bb14d 100644 --- a/include/dt-bindings/clock/imx6qdl-clock.h +++ b/include/dt-b

Re: [PATCH v1 06/10] perf, tools, report: Print better message for JITed code

2019-03-11 Thread Andi Kleen
On Mon, Mar 11, 2019 at 05:33:02PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Mar 11, 2019 at 01:24:42PM -0700, Andi Kleen escreveu: > > From: Andi Kleen > > > > The message about missing /tmp/perf-* for JITed code is quite confusing > > to users. Add a better error message, but only print

Re: [PATCH 0/4] mm: Use slab_list list_head instead of lru

2019-03-11 Thread Roman Gushchin
On Mon, Mar 11, 2019 at 12:07:40PM +1100, Tobin C. Harding wrote: > Currently the slab allocators (ab)use the struct page 'lru' list_head. > We have a list head for slab allocators to use, 'slab_list'. > > Clean up all three allocators by using the 'slab_list' list_head instead > of overloading th

Re: [PATCH v2 8/9] rtc: mt6397: fix alarm register overwrite

2019-03-11 Thread Sean Wang
Hi, On Sun, Mar 10, 2019 at 8:49 PM Hsin-Hsiung Wang wrote: > > From: Ran Bi > > Alarm registers high byte was reserved for other functions. > This add mask in alarm registers operation functions. > This also fix error condition in interrupt handler. > > Fixes: fc2979118f3f ("rtc: mediatek: Add

[PATCH 0/1] sound/hda/hdac_stream: Avoid NULL pointer dereference

2019-03-11 Thread Mariusz Ceier
Seems like commit 9b6f7e7a296e17990aae298c809b001e99ddd151 introduced NULL pointer dereference for ca0132 codec. When ca0132 loads firmware, snd_hdac_stream_start is called with azx_dev->substream being NULL. This patch calls snd_hdac_get_stream_stripe_ctl only when azx_dev->substream is not NULL

[PATCH 1/1] sound/hda/hdac_stream: Avoid NULL pointer dereference

2019-03-11 Thread Mariusz Ceier
For ca0132 codec, azx_dev->stream is NULL during firmware loading. Calling snd_hdac_get_stream_stripe_ctl unconditionally causes NULL pointer dereference in that function. Signed-off-by: Mariusz Ceier --- sound/hda/hdac_stream.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --g

[PATCHv8 01/10] acpi: Create subtable parsing infrastructure

2019-03-11 Thread Keith Busch
Parsing entries in an ACPI table had assumed a generic header structure. There is no standard ACPI header, though, so less common layouts with different field sizes required custom parsers to go through their subtable entry list. Create the infrastructure for adding different table types so parsin

[PATCHv8 10/10] doc/mm: New documentation for memory performance

2019-03-11 Thread Keith Busch
Platforms may provide system memory where some physical address ranges perform differently than others, or is cached by the system on the memory side. Add documentation describing a high level overview of such systems and the perforamnce and caching attributes the kernel provides for applications

[PATCHv8 04/10] node: Link memory nodes to their compute nodes

2019-03-11 Thread Keith Busch
Systems may be constructed with various specialized nodes. Some nodes may provide memory, some provide compute devices that access and use that memory, and others may provide both. Nodes that provide memory are referred to as memory targets, and nodes that can initiate memory access are referred to

<    3   4   5   6   7   8   9   10   11   >