Re: [PATCH v2 2/4] iio: adc: ad7606: Add software configuration

2019-06-08 Thread Jonathan Cameron
On Mon, 27 May 2019 15:56:48 +0300 Beniamin Bia wrote: > Because this driver will support multiple configurations for software, > the software configuration was made generic. > > Signed-off-by: Beniamin Bia > Acked-by: Jonathan Cameron Applied to the togreg branch of iio.git and pushed out as

Re: [PATCH v2 3/4] iio: adc: ad7606: Add support for software mode for ad7616

2019-06-08 Thread Jonathan Cameron
On Mon, 27 May 2019 15:56:49 +0300 Beniamin Bia wrote: > Support for ad7616 running in software was added. In order > to activate the software mode, HW_RNGSEL pins must be pulled low. > Oversampling and input ranges are now configured in corresponding > registers. Ad7616 has multiple scale option

Re: [PATCH v2 4/4] iio: adc: ad7606: Add debug mode for ad7616

2019-06-08 Thread Jonathan Cameron
On Mon, 27 May 2019 15:56:50 +0300 Beniamin Bia wrote: > Support for register access was added for spi devices. > > Signed-off-by: Beniamin Bia > Acked-by: Jonathan Cameron Applied. Thanks, Jonathan > --- > Changes in v2: > -nothing changed > > drivers/iio/adc/ad7606.c | 25 ++

Re: [PATCH 03/34] iio: light: bh1780: simplify getting the adapter of a client

2019-06-08 Thread Jonathan Cameron
On Sat, 8 Jun 2019 12:55:42 +0200 Wolfram Sang wrote: > We have a dedicated pointer for that, so use it. Much easier to read and > less computation involved. > > Signed-off-by: Wolfram Sang Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

[PATCH AUTOSEL 5.1 01/70] iio: adc: ads124: avoid buffer overflow

2019-06-08 Thread Sasha Levin
From: Vincent Stehlé [ Upstream commit 0db8aa49a97e7f40852a64fd35abcc1292a7c365 ] When initializing the priv->data array starting from index 1, there is one less element to consider than when initializing the full array. Fixes: e717f8c6dfec8f76 ("iio: adc: Add the TI ads124s08 ADC code") Signed

[PATCH AUTOSEL 5.1 02/70] iio: imu: mpu6050: Fix FIFO layout for ICM20602

2019-06-08 Thread Sasha Levin
From: Steve Moskovchenko [ Upstream commit 1615fe41a1959a2ee2814ba62736b2bb54e9802a ] The MPU6050 driver has recently gained support for the ICM20602 IMU, which is very similar to MPU6xxx. However, the ICM20602's FIFO data specifically includes temperature readings, which were not present on MPU

[PATCH AUTOSEL 5.1 06/70] Staging: vc04_services: Fix a couple error codes

2019-06-08 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ca4e4efbefbbdde0a7bb3023ea08d491f4daf9b9 ] These are accidentally returning positive EINVAL instead of negative -EINVAL. Some of the callers treat positive values as success. Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.

[PATCH AUTOSEL 5.1 13/70] ipvs: Fix use-after-free in ip_vs_in

2019-06-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 719c7d563c17b150877cee03a4b812a424989dfa ] BUG: KASAN: use-after-free in ip_vs_in.part.29+0xe8/0xd20 [ip_vs] Read of size 4 at addr 8881e9b26e2c by task sshd/5603 CPU: 0 PID: 5603 Comm: sshd Not tainted 4.19.39+ #30 Hardware name: Red Hat KVM, BIOS 0.5.1 0

[PATCH AUTOSEL 5.1 15/70] netfilter: nat: fix udp checksum corruption

2019-06-08 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 6bac76db1da3cb162c425d58ae421486f8e43955 ] Due to copy&paste error nf_nat_mangle_udp_packet passes IPPROTO_TCP, resulting in incorrect udp checksum when payload had to be mangled. Fixes: dac3fe72596f9 ("netfilter: nat: remove csum_recalc hook") Reported-

[PATCH AUTOSEL 5.1 36/70] drm/etnaviv: lock MMU while dumping core

2019-06-08 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 1396500d673bd027683a0609ff84dca7eb6ea2e7 ] The devcoredump needs to operate on a stable state of the MMU while it is writing the MMU state to the coredump. The missing lock allowed both the userspace submit, as well as the GPU job finish paths to mutate the MM

[PATCH AUTOSEL 5.1 05/70] staging: erofs: set sb->s_root to NULL when failing from __getname()

2019-06-08 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit f2dcb8841e6b155da098edae09125859ef7e853d ] Set sb->s_root to NULL when failing from __getname(), so that we can avoid double dput and unnecessary operations in generic_shutdown_super(). Signed-off-by: Chengguang Xu Reviewed-by: Chao Yu Reviewed-by: Gao Xi

[PATCH AUTOSEL 5.1 21/70] perf/ring_buffer: Fix exposing a temporarily decreased data_head

2019-06-08 Thread Sasha Levin
From: Yabin Cui [ Upstream commit 1b038c6e05ff70a1e66e3e571c2e6106bdb75f53 ] In perf_output_put_handle(), an IRQ/NMI can happen in below location and write records to the same ring buffer: ... local_dec_and_test(&rb->nest) ... <-- an IRQ/NMI can

[PATCH AUTOSEL 5.1 24/70] gpio: fix gpio-adp5588 build errors

2019-06-08 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit e9646f0f5bb62b7d43f0968f39d536cfe7123b53 ] The gpio-adp5588 driver uses interfaces that are provided by GPIOLIB_IRQCHIP, so select that symbol in its Kconfig entry. Fixes these build errors: ../drivers/gpio/gpio-adp5588.c: In function ‘adp5588_irq_handler’:

[PATCH AUTOSEL 5.1 37/70] net: aquantia: tx clean budget logic error

2019-06-08 Thread Sasha Levin
From: Igor Russkikh [ Upstream commit 31bafc49a7736989e4c2d9f7280002c66536e590 ] In case no other traffic happening on the ring, full tx cleanup may not be completed. That may cause socket buffer to overflow and tx traffic to stuck until next activity on the ring happens. This is due to logic e

[PATCH AUTOSEL 5.1 44/70] s390/zcrypt: Fix wrong dispatching for control domain CPRBs

2019-06-08 Thread Sasha Levin
From: Harald Freudenberger [ Upstream commit 7379e652797c0b9b5f6caea1576f2dff9ce6a708 ] The zcrypt device driver does not handle CPRBs which address a control domain correctly. This fix introduces a workaround: The domain field of the request CPRB is checked if there is a valid domain value in t

[PATCH AUTOSEL 5.1 27/70] net: stmmac: fix csr_clk can't be zero issue

2019-06-08 Thread Sasha Levin
From: Biao Huang [ Upstream commit 5e7f7fc538d894b2d9aa41876b8dcf35f5fe11e6 ] The specific clk_csr value can be zero, and stmmac_clk is necessary for MDC clock which can be set dynamically. So, change the condition from plat->clk_csr to plat->stmmac_clk to fix clk_csr can't be zero issue. Fixes

[PATCH AUTOSEL 5.1 49/70] xen/pvcalls: Remove set but not used variable

2019-06-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 41349672e3cbc2e8349831f21253509c3415aa2b ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/pvcalls-front.c: In function pvcalls_front_sendmsg: drivers/xen/pvcalls-front.c:543:25: warning: variable bedata set but not used [-Wunused-but-set-variable]

[PATCH AUTOSEL 5.1 32/70] net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE()

2019-06-08 Thread Sasha Levin
From: Kees Cook [ Upstream commit 3e66b7cc50ef921121babc91487e1fb98af1ba6e ] Building with Clang reports the redundant use of MODULE_DEVICE_TABLE(): drivers/net/ethernet/dec/tulip/de4x5.c:2110:1: error: redefinition of '__mod_eisa__de4x5_eisa_ids_device_table' MODULE_DEVICE_TABLE(eisa, de4x5_e

[PATCH AUTOSEL 5.1 52/70] KVM: PPC: Book3S HV: Use new mutex to synchronize MMU setup

2019-06-08 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 0d4ee88d92884c661fcafd5576da243aa943dc24 ] Currently the HV KVM code uses kvm->lock in conjunction with a flag, kvm->arch.mmu_ready, to synchronize MMU setup and hold off vcpu execution until the MMU-related data structures are ready. However, this means t

[PATCH AUTOSEL 5.1 45/70] perf namespace: Protect reading thread's namespace

2019-06-08 Thread Sasha Levin
From: Namhyung Kim [ Upstream commit 6584140ba9e6762dd7ec73795243289b914f31f9 ] It seems that the current code lacks holding the namespace lock in thread__namespaces(). Otherwise it can see inconsistent results. Signed-off-by: Namhyung Kim Cc: Hari Bathini Cc: Jiri Olsa Cc: Krister Johansen

[PATCH AUTOSEL 5.1 53/70] KVM: PPC: Book3S: Use new mutex to synchronize access to rtas token list

2019-06-08 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 1659e27d2bc1ef47b6d031abe01b467f18cb72d9 ] Currently the Book 3S KVM code uses kvm->lock to synchronize access to the kvm->arch.rtas_tokens list. Because this list is scanned inside kvmppc_rtas_hcall(), which is called with the vcpu mutex held, taking kvm-

[PATCH AUTOSEL 5.1 56/70] arm64: fix syscall_fn_t type

2019-06-08 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 8ef8f368ce72b5e17f7c1f1ef15c38dcfd0fef64 ] Syscall wrappers in use const struct pt_regs * as the argument type. Use const in syscall_fn_t as well to fix indirect call type mismatches with Control-Flow Integrity checking. Signed-off-by: Sami Tolvanen Revie

[PATCH AUTOSEL 5.1 55/70] ALSA: fireface: Use ULL suffixes for 64-bit constants

2019-06-08 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit 6954158a16404e7091cea494cd0a435ca2f90388 ] With gcc 4.1: sound/firewire/fireface/ff-protocol-latter.c: In function ‘latter_switch_fetching_mode’: sound/firewire/fireface/ff-protocol-latter.c:97: warning: integer constant is too large for ‘lon

[PATCH AUTOSEL 5.1 50/70] xenbus: Avoid deadlock during suspend due to open transactions

2019-06-08 Thread Sasha Levin
From: Ross Lagerwall [ Upstream commit d10e0cc113c9e1b64b5c6e3db37b5c839794f3df ] During a suspend/resume, the xenwatch thread waits for all outstanding xenstore requests and transactions to complete. This does not work correctly for transactions started by userspace because it waits for them to

[PATCH AUTOSEL 5.1 41/70] ALSA: hda - Force polling mode on CNL for fixing codec communication

2019-06-08 Thread Sasha Levin
From: Bard Liao [ Upstream commit fa763f1b2858752e615046886a1b7faffc82 ] We observed the same issue as reported by commit a8d7bde23e7130686b7662 ("ALSA: hda - Force polling mode on CFL for fixing codec communication") We don't have a better solution. So apply the same workaround to CNL. Sig

[PATCH AUTOSEL 5.1 46/70] perf record: Fix s390 missing module symbol and warning for non-root users

2019-06-08 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 6738028dd57df064b969d8392c943ef3b3ae705d ] Command 'perf record' and 'perf report' on a system without kernel debuginfo packages uses /proc/kallsyms and /proc/modules to find addresses for kernel and module symbols. On x86 this works for root and non-root u

[PATCH AUTOSEL 5.1 47/70] ia64: fix build errors by exporting paddr_to_nid()

2019-06-08 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 9a626c4a6326da4433a0d4d4a8a7d1571caf1ed3 ] Fix build errors on ia64 when DISCONTIGMEM=y and NUMA=y by exporting paddr_to_nid(). Fixes these build errors: ERROR: "paddr_to_nid" [sound/core/snd-pcm.ko] undefined! ERROR: "paddr_to_nid" [net/sunrpc/sunrpc.ko] u

[PATCH AUTOSEL 5.1 54/70] KVM: PPC: Book3S HV: Don't take kvm->lock around kvm_for_each_vcpu

2019-06-08 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 5a3f49364c3ffa1107bd88f8292406e98c5d206c ] Currently the HV KVM code takes the kvm->lock around calls to kvm_for_each_vcpu() and kvm_get_vcpu_by_id() (which can call kvm_for_each_vcpu() internally). However, that leads to a lock order inversion problem, be

[PATCH AUTOSEL 5.1 39/70] i2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr

2019-06-08 Thread Sasha Levin
From: Yingjoe Chen [ Upstream commit a0692f0eef91354b62c2b4c94954536536be5425 ] If I2C_M_RECV_LEN check failed, msgs[i].buf allocated by memdup_user will not be freed. Pump index up so it will be freed. Fixes: 838bfa6049fb ("i2c-dev: Add support for I2C_M_RECV_LEN") Signed-off-by: Yingjoe Chen

[PATCH AUTOSEL 5.1 61/70] net: phylink: ensure consistent phy interface mode

2019-06-08 Thread Sasha Levin
From: Russell King [ Upstream commit c678726305b9425454be7c8a7624290b602602fc ] Ensure that we supply the same phy interface mode to mac_link_down() as we did for the corresponding mac_link_up() call. This ensures that MAC drivers that use the phy interface mode in these methods can depend on m

[PATCH AUTOSEL 5.1 63/70] net: phy: dp83867: increase SGMII autoneg timer duration

2019-06-08 Thread Sasha Levin
From: Max Uvarov [ Upstream commit 1a97a477e666cbdededab93bd3754e508f0c09d7 ] After reset SGMII Autoneg timer is set to 2us (bits 6 and 5 are 01). That is not enough to finalize autonegatiation on some devices. Increase this timer duration to maximum supported 16ms. Signed-off-by: Max Uvarov C

[PATCH AUTOSEL 5.1 67/70] scsi: scsi_dh_alua: Fix possible null-ptr-deref

2019-06-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 12e750bc62044de096ab9a95201213fd912b9994 ] If alloc_workqueue fails in alua_init, it should return -ENOMEM, otherwise it will trigger null-ptr-deref while unloading module which calls destroy_workqueue dereference wq->lock like this: BUG: KASAN: null-ptr-deref

[PATCH AUTOSEL 5.1 65/70] scsi: libcxgbi: add a check for NULL pointer in cxgbi_check_route()

2019-06-08 Thread Sasha Levin
From: Varun Prakash [ Upstream commit cc555759117e8349088e0c5d19f2f2a500bafdbd ] ip_dev_find() can return NULL so add a check for NULL pointer. Signed-off-by: Varun Prakash Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/cxgbi/libcxgbi.c | 4 1 file change

[PATCH AUTOSEL 5.1 58/70] arm64: use the correct function type for __arm64_sys_ni_syscall

2019-06-08 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 1e29ab3186e33c77dbb2d7566172a205b59fa390 ] Calling sys_ni_syscall through a syscall_fn_t pointer trips indirect call Control-Flow Integrity checking due to a function type mismatch. Use SYSCALL_DEFINE0 for __arm64_sys_ni_syscall instead and remove the now un

[PATCH AUTOSEL 5.1 59/70] net: sh_eth: fix mdio access in sh_eth_close() for R-Car Gen2 and RZ/A1 SoCs

2019-06-08 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 315ca92dd863fecbffc0bb52ae0ac11e0398726a ] The sh_eth_close() resets the MAC and then calls phy_stop() so that mdio read access result is incorrect without any error according to kernel trace like below: ifconfig-216 [003] .n.. 109.133124: mdio_acce

[PATCH AUTOSEL 5.1 64/70] net: phy: dp83867: Set up RGMII TX delay

2019-06-08 Thread Sasha Levin
From: Max Uvarov [ Upstream commit 2b892649254fec01678c64f16427622b41fa27f4 ] PHY_INTERFACE_MODE_RGMII_RXID is less then TXID so code to set tx delay is never called. Fixes: 2a10154abcb75 ("net: phy: dp83867: Add TI dp83867 phy") Signed-off-by: Max Uvarov Cc: Florian Fainelli Reviewed-by: Flo

[PATCH AUTOSEL 4.19 06/49] ipvs: Fix use-after-free in ip_vs_in

2019-06-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 719c7d563c17b150877cee03a4b812a424989dfa ] BUG: KASAN: use-after-free in ip_vs_in.part.29+0xe8/0xd20 [ip_vs] Read of size 4 at addr 8881e9b26e2c by task sshd/5603 CPU: 0 PID: 5603 Comm: sshd Not tainted 4.19.39+ #30 Hardware name: Red Hat KVM, BIOS 0.5.1 0

[PATCH AUTOSEL 4.19 01/49] iio: dac: ds4422/ds4424 fix chip verification

2019-06-08 Thread Sasha Levin
From: Ruslan Babayev [ Upstream commit 60f2208699ec08ff9fdf1f97639a661a92a18f1c ] The ds4424_get_value function takes channel number as it's 3rd argument and translates it internally into I2C address using DS4424_DAC_ADDR macro. The caller ds4424_verify_chip was passing an already translated I2C

[PATCH AUTOSEL 5.1 70/70] ocfs2: fix error path kobject memory leak

2019-06-08 Thread Sasha Levin
From: "Tobin C. Harding" [ Upstream commit b9fba67b3806e21b98bd5a98dc3921a8e9b42d61 ] If a call to kobject_init_and_add() fails we should call kobject_put() otherwise we leak memory. Add call to kobject_put() in the error path of call to kobject_init_and_add(). Please note, this has the side e

[PATCH AUTOSEL 4.19 02/49] iio: adc: ti-ads8688: fix timestamp is not updated in buffer

2019-06-08 Thread Sasha Levin
From: Sean Nyekjaer [ Upstream commit e6d12298310fa1dc11f1d747e05b168016057fdd ] When using the hrtimer iio trigger timestamp isn't updated. If we use iio_get_time_ns it is updated correctly. Fixes: 2a86487786b5c ("iio: adc: ti-ads8688: add trigger and buffer support") Signed-off-by: Sean Nyekj

[PATCH AUTOSEL 5.1 48/70] dpaa_eth: use only online CPU portals

2019-06-08 Thread Sasha Levin
From: Madalin Bucur [ Upstream commit 7aae703f8096d21e34ce5f34f16715587bc30902 ] Make sure only the portals for the online CPUs are used. Without this change, there are issues when someone boots with maxcpus=n, with n < actual number of cores available as frames either received or corresponding

Re: [PATCH v2 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-08 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:14PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index 43623fa..d1641da 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -79,6 +79,9 @@ struct hist_entry_diff {

[PATCH AUTOSEL 5.1 51/70] dfs_cache: fix a wrong use of kfree in flush_cache_ent()

2019-06-08 Thread Sasha Levin
From: Gen Zhang [ Upstream commit 50fbc13dc12666f3604dc2555a47fc8c4e29162b ] In flush_cache_ent(), 'ce->ce_path' is allocated by kstrdup_const(). It should be freed by kfree_const(), rather than kfree(). Signed-off-by: Gen Zhang Reviewed-by: Paulo Alcantara Signed-off-by: Steve French Signed

[PATCH AUTOSEL 5.1 68/70] scsi: libsas: delete sas port if expander discover failed

2019-06-08 Thread Sasha Levin
From: Jason Yan [ Upstream commit 3b0541791453fbe7f42867e310e0c9eb6295364d ] The sas_port(phy->port) allocated in sas_ex_discover_expander() will not be deleted when the expander failed to discover. This will cause resource leak and a further issue of kernel BUG like below: [159785.843156] por

[PATCH AUTOSEL 5.1 57/70] arm64: use the correct function type in SYSCALL_DEFINE0

2019-06-08 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 0e358bd7b7ebd27e491dabed938eae254c17fe3b ] Although a syscall defined using SYSCALL_DEFINE0 doesn't accept parameters, use the correct function type to avoid indirect call type mismatches with Control-Flow Integrity checking. Signed-off-by: Sami Tolvanen S

[PATCH AUTOSEL 4.19 05/49] netfilter: nf_queue: fix reinject verdict handling

2019-06-08 Thread Sasha Levin
From: Jagdish Motwani [ Upstream commit 946c0d8e6ed43dae6527e878d0077c1e11015db0 ] This patch fixes netfilter hook traversal when there are more than 1 hooks returning NF_QUEUE verdict. When the first queue reinjects the packet, 'nf_reinject' starts traversing hooks with a proper hook_index. How

[PATCH AUTOSEL 4.19 03/49] Staging: vc04_services: Fix a couple error codes

2019-06-08 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ca4e4efbefbbdde0a7bb3023ea08d491f4daf9b9 ] These are accidentally returning positive EINVAL instead of negative -EINVAL. Some of the callers treat positive values as success. Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.

[PATCH AUTOSEL 4.19 08/49] clk: ti: clkctrl: Fix clkdm_clk handling

2019-06-08 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 1cc54078d104f5b4d7e9f8d55362efa5a8daffdb ] We need to always call clkdm_clk_enable() and clkdm_clk_disable() even the clkctrl clock(s) enabled for the domain do not have any gate register bits. Otherwise clockdomains may never get enabled except when devices

[PATCH AUTOSEL 4.19 10/49] usb: xhci: Fix a potential null pointer dereference in xhci_debugfs_create_endpoint()

2019-06-08 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 5bce256f0b528624a34fe907db385133bb7be33e ] In xhci_debugfs_create_slot(), kzalloc() can fail and dev->debugfs_private will be NULL. In xhci_debugfs_create_endpoint(), dev->debugfs_private is used without any null-pointer check, and can cause a null pointer dere

[PATCH AUTOSEL 4.19 04/49] perf/x86/intel/ds: Fix EVENT vs. UEVENT PEBS constraints

2019-06-08 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit 23e3983a466cd540ffdd2bbc6e0c51e31934f941 ] This patch fixes an bug revealed by the following commit: 6b89d4c1ae85 ("perf/x86/intel: Fix INTEL_FLAGS_EVENT_CONSTRAINT* masking") That patch modified INTEL_FLAGS_EVENT_CONSTRAINT() to only look at the even

[PATCH AUTOSEL 4.19 12/49] x86/CPU/AMD: Don't force the CPB cap when running under a hypervisor

2019-06-08 Thread Sasha Levin
From: Frank van der Linden [ Upstream commit 2ac44ab608705948564791ce1d15d43ba81a1e38 ] For F17h AMD CPUs, the CPB capability ('Core Performance Boost') is forcibly set, because some versions of that chip incorrectly report that they do not have it. However, a hypervisor may filter out the CPB

[PATCH AUTOSEL 4.19 13/49] perf/ring_buffer: Fix exposing a temporarily decreased data_head

2019-06-08 Thread Sasha Levin
From: Yabin Cui [ Upstream commit 1b038c6e05ff70a1e66e3e571c2e6106bdb75f53 ] In perf_output_put_handle(), an IRQ/NMI can happen in below location and write records to the same ring buffer: ... local_dec_and_test(&rb->nest) ... <-- an IRQ/NMI can

[PATCH AUTOSEL 4.19 07/49] selftests: netfilter: missing error check when setting up veth interface

2019-06-08 Thread Sasha Levin
From: Jeffrin Jose T [ Upstream commit 82ce6eb1dd13fd12e449b2ee2c2ec051e6f52c43 ] A test for the basic NAT functionality uses ip command which needs veth device. There is a condition where the kernel support for veth is not compiled into the kernel and the test script breaks. This patch contains

[PATCH AUTOSEL 4.19 18/49] net: stmmac: update rx tail pointer register to fix rx dma hang issue.

2019-06-08 Thread Sasha Levin
From: Biao Huang [ Upstream commit 4523a5611526709ec9b4e2574f1bb7818212651e ] Currently we will not update the receive descriptor tail pointer in stmmac_rx_refill. Rx dma will think no available descriptors and stop once received packets exceed DMA_RX_SIZE, so that the rx only test will fail. U

[PATCH AUTOSEL 4.19 14/49] perf/ring_buffer: Add ordering to rb->nest increment

2019-06-08 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 3f9fbe9bd86c534eba2faf5d840fd44c6049f50e ] Similar to how decrementing rb->next too early can cause data_head to (temporarily) be observed to go backward, so too can this happen when we increment too late. This barrier() ensures the rb->head load happens a

Re: [PATCH 09/34] media: i2c: mt9p031: simplify getting the adapter of a client

2019-06-08 Thread Laurent Pinchart
Hi Wolfram, Thank you for the patch. On Sat, Jun 08, 2019 at 12:55:48PM +0200, Wolfram Sang wrote: > We have a dedicated pointer for that, so use it. Much easier to read and > less computation involved. > > Signed-off-by: Wolfram Sang Reviewed-by: Laurent Pinchart and taken in my tree. > --

[PATCH AUTOSEL 4.19 24/49] net: aquantia: tx clean budget logic error

2019-06-08 Thread Sasha Levin
From: Igor Russkikh [ Upstream commit 31bafc49a7736989e4c2d9f7280002c66536e590 ] In case no other traffic happening on the ring, full tx cleanup may not be completed. That may cause socket buffer to overflow and tx traffic to stuck until next activity on the ring happens. This is due to logic e

[PATCH AUTOSEL 4.19 26/49] i2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr

2019-06-08 Thread Sasha Levin
From: Yingjoe Chen [ Upstream commit a0692f0eef91354b62c2b4c94954536536be5425 ] If I2C_M_RECV_LEN check failed, msgs[i].buf allocated by memdup_user will not be freed. Pump index up so it will be freed. Fixes: 838bfa6049fb ("i2c-dev: Add support for I2C_M_RECV_LEN") Signed-off-by: Yingjoe Chen

[PATCH AUTOSEL 4.19 28/49] ALSA: hda - Force polling mode on CNL for fixing codec communication

2019-06-08 Thread Sasha Levin
From: Bard Liao [ Upstream commit fa763f1b2858752e615046886a1b7faffc82 ] We observed the same issue as reported by commit a8d7bde23e7130686b7662 ("ALSA: hda - Force polling mode on CFL for fixing codec communication") We don't have a better solution. So apply the same workaround to CNL. Sig

[PATCH AUTOSEL 4.19 25/49] net: aquantia: fix LRO with FCS error

2019-06-08 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit eaeb3b7494ba9159323814a8ce8af06a9277d99b ] Driver stops producing skbs on ring if a packet with FCS error was coalesced into LRO session. Ring gets hang forever. Thats a logical error in driver processing descriptors: When rx_stat indicates MAC Error, nex

[PATCH AUTOSEL 4.19 31/49] perf namespace: Protect reading thread's namespace

2019-06-08 Thread Sasha Levin
From: Namhyung Kim [ Upstream commit 6584140ba9e6762dd7ec73795243289b914f31f9 ] It seems that the current code lacks holding the namespace lock in thread__namespaces(). Otherwise it can see inconsistent results. Signed-off-by: Namhyung Kim Cc: Hari Bathini Cc: Jiri Olsa Cc: Krister Johansen

[PATCH AUTOSEL 4.19 27/49] i2c: mlxcpld: Fix wrong initialization order in probe

2019-06-08 Thread Sasha Levin
From: Vadim Pasternak [ Upstream commit 13067ef73f337336e3149f5bb9f3fd05fe7f87a0 ] Fix wrong order in probing routine initialization - field `base_addr' is used before it's initialized. Move assignment of 'priv->base_addr` to the beginning, prior the call to mlxcpld_i2c_read_comm(). Wrong order

[PATCH AUTOSEL 4.19 30/49] perf data: Fix 'strncat may truncate' build failure with recent gcc

2019-06-08 Thread Sasha Levin
From: Shawn Landden [ Upstream commit 97acec7df172cd1e450f81f5e293c0aa145a2797 ] This strncat() is safe because the buffer was allocated with zalloc(), however gcc doesn't know that. Since the string always has 4 non-null bytes, just use memcpy() here. CC /home/shawn/linux/tools/perf/

[PATCH AUTOSEL 4.19 33/49] ia64: fix build errors by exporting paddr_to_nid()

2019-06-08 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 9a626c4a6326da4433a0d4d4a8a7d1571caf1ed3 ] Fix build errors on ia64 when DISCONTIGMEM=y and NUMA=y by exporting paddr_to_nid(). Fixes these build errors: ERROR: "paddr_to_nid" [sound/core/snd-pcm.ko] undefined! ERROR: "paddr_to_nid" [net/sunrpc/sunrpc.ko] u

[PATCH AUTOSEL 4.19 32/49] perf record: Fix s390 missing module symbol and warning for non-root users

2019-06-08 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 6738028dd57df064b969d8392c943ef3b3ae705d ] Command 'perf record' and 'perf report' on a system without kernel debuginfo packages uses /proc/kallsyms and /proc/modules to find addresses for kernel and module symbols. On x86 this works for root and non-root u

[PATCH AUTOSEL 4.19 21/49] PCI: PM: Avoid possible suspend-to-idle issue

2019-06-08 Thread Sasha Levin
From: "Rafael J. Wysocki" [ Upstream commit d491f2b75237ef37d8867830ab7fad8d9659e853 ] If a PCI driver leaves the device handled by it in D0 and calls pci_save_state() on the device in its ->suspend() or ->suspend_late() callback, it can expect the device to stay in D0 over the whole s2idle cycl

[PATCH AUTOSEL 4.19 34/49] xen/pvcalls: Remove set but not used variable

2019-06-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 41349672e3cbc2e8349831f21253509c3415aa2b ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/pvcalls-front.c: In function pvcalls_front_sendmsg: drivers/xen/pvcalls-front.c:543:25: warning: variable bedata set but not used [-Wunused-but-set-variable]

[PATCH AUTOSEL 4.19 29/49] configfs: Fix use-after-free when accessing sd->s_dentry

2019-06-08 Thread Sasha Levin
From: Sahitya Tummala [ Upstream commit f6122ed2a4f9c9c1c073ddf6308d1b2ac10e0781 ] In the vfs_statx() context, during path lookup, the dentry gets added to sd->s_dentry via configfs_attach_attr(). In the end, vfs_statx() kills the dentry by calling path_put(), which invokes configfs_d_iput(). Id

[GIT PULL] xen: fix for 5.2-rc4

2019-06-08 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.2b-rc4-tag xen: fix for 5.2-rc4 It contains just one fix for the Xen block frontend driver avoiding allocations with order > 0. Thanks. Juergen drivers/block/xen-blkfront.c | 38

[PATCH AUTOSEL 4.19 20/49] ACPI/PCI: PM: Add missing wakeup.flags.valid checks

2019-06-08 Thread Sasha Levin
From: "Rafael J. Wysocki" [ Upstream commit 9a51c6b1f9e0239a9435db036b212498a2a3b75c ] Both acpi_pci_need_resume() and acpi_dev_needs_resume() check if the current ACPI wakeup configuration of the device matches what is expected as far as system wakeup from sleep states is concerned, as reflecte

[PATCH AUTOSEL 4.19 15/49] perf/ring-buffer: Always use {READ,WRITE}_ONCE() for rb->user_page data

2019-06-08 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 4d839dd9e4356bbacf3eb0ab13a549b83b008c21 ] We must use {READ,WRITE}_ONCE() on rb->user_page data such that concurrent usage will see whole values. A few key sites were missing this. Suggested-by: Yabin Cui Signed-off-by: Peter Zijlstra (Intel) Cc: Alexan

[PATCH AUTOSEL 4.19 35/49] xenbus: Avoid deadlock during suspend due to open transactions

2019-06-08 Thread Sasha Levin
From: Ross Lagerwall [ Upstream commit d10e0cc113c9e1b64b5c6e3db37b5c839794f3df ] During a suspend/resume, the xenwatch thread waits for all outstanding xenstore requests and transactions to complete. This does not work correctly for transactions started by userspace because it waits for them to

[PATCH AUTOSEL 4.19 19/49] net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE()

2019-06-08 Thread Sasha Levin
From: Kees Cook [ Upstream commit 3e66b7cc50ef921121babc91487e1fb98af1ba6e ] Building with Clang reports the redundant use of MODULE_DEVICE_TABLE(): drivers/net/ethernet/dec/tulip/de4x5.c:2110:1: error: redefinition of '__mod_eisa__de4x5_eisa_ids_device_table' MODULE_DEVICE_TABLE(eisa, de4x5_e

[PATCH AUTOSEL 4.19 36/49] KVM: PPC: Book3S: Use new mutex to synchronize access to rtas token list

2019-06-08 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 1659e27d2bc1ef47b6d031abe01b467f18cb72d9 ] Currently the Book 3S KVM code uses kvm->lock to synchronize access to the kvm->arch.rtas_tokens list. Because this list is scanned inside kvmppc_rtas_hcall(), which is called with the vcpu mutex held, taking kvm-

[PATCH AUTOSEL 4.19 37/49] KVM: PPC: Book3S HV: Don't take kvm->lock around kvm_for_each_vcpu

2019-06-08 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 5a3f49364c3ffa1107bd88f8292406e98c5d206c ] Currently the HV KVM code takes the kvm->lock around calls to kvm_for_each_vcpu() and kvm_get_vcpu_by_id() (which can call kvm_for_each_vcpu() internally). However, that leads to a lock order inversion problem, be

[PATCH AUTOSEL 4.19 16/49] gpio: fix gpio-adp5588 build errors

2019-06-08 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit e9646f0f5bb62b7d43f0968f39d536cfe7123b53 ] The gpio-adp5588 driver uses interfaces that are provided by GPIOLIB_IRQCHIP, so select that symbol in its Kconfig entry. Fixes these build errors: ../drivers/gpio/gpio-adp5588.c: In function ‘adp5588_irq_handler’:

[PATCH AUTOSEL 4.19 17/49] efi/x86/Add missing error handling to old_memmap 1:1 mapping code

2019-06-08 Thread Sasha Levin
From: Gen Zhang [ Upstream commit 4e78921ba4dd0aca1cc89168f45039add4183f8e ] The old_memmap flow in efi_call_phys_prolog() performs numerous memory allocations, and either does not check for failure at all, or it does but fails to propagate it back to the caller, which may end up calling into th

[PATCH AUTOSEL 4.19 38/49] arm64: fix syscall_fn_t type

2019-06-08 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 8ef8f368ce72b5e17f7c1f1ef15c38dcfd0fef64 ] Syscall wrappers in use const struct pt_regs * as the argument type. Use const in syscall_fn_t as well to fix indirect call type mismatches with Control-Flow Integrity checking. Signed-off-by: Sami Tolvanen Revie

[PATCH AUTOSEL 5.1 69/70] mlxsw: spectrum: Prevent force of 56G

2019-06-08 Thread Sasha Levin
From: Amit Cohen [ Upstream commit 275e928f19117d22f6d26dee94548baf4041b773 ] Force of 56G is not supported by hardware in Ethernet devices. This configuration fails with a bad parameter error from firmware. Add check of this case. Instead of trying to set 56G with autoneg off, return a meaning

[PATCH AUTOSEL 4.19 11/49] mISDN: make sure device name is NUL terminated

2019-06-08 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ccfb62f27beb295103e9392462b20a6ed807d0ea ] The user can change the device_name with the IMSETDEVNAME ioctl, but we need to ensure that the user's name is NUL terminated. Otherwise it could result in a buffer overflow when we copy the name back to the user w

[PATCH AUTOSEL 4.19 09/49] powerpc/powernv: Return for invalid IMC domain

2019-06-08 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit b59bd3527fe3c1939340df558d7f9d568fc9f882 ] Currently init_imc_pmu() can fail either because we try to register an IMC unit with an invalid domain (i.e an IMC node not supported by the kernel) or something went wrong while registering a valid IMC unit. In b

[PATCH AUTOSEL 5.1 66/70] scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask

2019-06-08 Thread Sasha Levin
From: Lianbo Jiang [ Upstream commit 1d94f06e7f5df4064ef336b7b710f50143b64a53 ] When SME is enabled, the smartpqi driver won't work on the HP DL385 G10 machine, which causes the failure of kernel boot because it fails to allocate pqi error buffer. Please refer to the kernel log: [9.4317

[PATCH AUTOSEL 4.14 01/31] Staging: vc04_services: Fix a couple error codes

2019-06-08 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ca4e4efbefbbdde0a7bb3023ea08d491f4daf9b9 ] These are accidentally returning positive EINVAL instead of negative -EINVAL. Some of the callers treat positive values as success. Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.

[PATCH AUTOSEL 5.1 62/70] net: phy: dp83867: fix speed 10 in sgmii mode

2019-06-08 Thread Sasha Levin
From: Max Uvarov [ Upstream commit 333061b924539c0de081339643f45514f5f1c1e6 ] For supporting 10Mps speed in SGMII mode DP83867_10M_SGMII_RATE_ADAPT bit of DP83867_10M_SGMII_CFG register has to be cleared by software. That does not affect speeds 100 and 1000 so can be done on init. Signed-off-by

[PATCH AUTOSEL 4.14 10/31] perf/ring_buffer: Fix exposing a temporarily decreased data_head

2019-06-08 Thread Sasha Levin
From: Yabin Cui [ Upstream commit 1b038c6e05ff70a1e66e3e571c2e6106bdb75f53 ] In perf_output_put_handle(), an IRQ/NMI can happen in below location and write records to the same ring buffer: ... local_dec_and_test(&rb->nest) ... <-- an IRQ/NMI can

[PATCH AUTOSEL 4.14 04/31] ipvs: Fix use-after-free in ip_vs_in

2019-06-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 719c7d563c17b150877cee03a4b812a424989dfa ] BUG: KASAN: use-after-free in ip_vs_in.part.29+0xe8/0xd20 [ip_vs] Read of size 4 at addr 8881e9b26e2c by task sshd/5603 CPU: 0 PID: 5603 Comm: sshd Not tainted 4.19.39+ #30 Hardware name: Red Hat KVM, BIOS 0.5.1 0

[PATCH AUTOSEL 4.14 13/31] gpio: fix gpio-adp5588 build errors

2019-06-08 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit e9646f0f5bb62b7d43f0968f39d536cfe7123b53 ] The gpio-adp5588 driver uses interfaces that are provided by GPIOLIB_IRQCHIP, so select that symbol in its Kconfig entry. Fixes these build errors: ../drivers/gpio/gpio-adp5588.c: In function ‘adp5588_irq_handler’:

[PATCH AUTOSEL 4.14 21/31] perf record: Fix s390 missing module symbol and warning for non-root users

2019-06-08 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 6738028dd57df064b969d8392c943ef3b3ae705d ] Command 'perf record' and 'perf report' on a system without kernel debuginfo packages uses /proc/kallsyms and /proc/modules to find addresses for kernel and module symbols. On x86 this works for root and non-root u

[PATCH AUTOSEL 4.14 27/31] scsi: libcxgbi: add a check for NULL pointer in cxgbi_check_route()

2019-06-08 Thread Sasha Levin
From: Varun Prakash [ Upstream commit cc555759117e8349088e0c5d19f2f2a500bafdbd ] ip_dev_find() can return NULL so add a check for NULL pointer. Signed-off-by: Varun Prakash Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/cxgbi/libcxgbi.c | 4 1 file change

[PATCH AUTOSEL 4.14 22/31] ia64: fix build errors by exporting paddr_to_nid()

2019-06-08 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 9a626c4a6326da4433a0d4d4a8a7d1571caf1ed3 ] Fix build errors on ia64 when DISCONTIGMEM=y and NUMA=y by exporting paddr_to_nid(). Fixes these build errors: ERROR: "paddr_to_nid" [sound/core/snd-pcm.ko] undefined! ERROR: "paddr_to_nid" [net/sunrpc/sunrpc.ko] u

[PATCH AUTOSEL 4.14 08/31] mISDN: make sure device name is NUL terminated

2019-06-08 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit ccfb62f27beb295103e9392462b20a6ed807d0ea ] The user can change the device_name with the IMSETDEVNAME ioctl, but we need to ensure that the user's name is NUL terminated. Otherwise it could result in a buffer overflow when we copy the name back to the user w

[PATCH AUTOSEL 4.14 02/31] perf/x86/intel/ds: Fix EVENT vs. UEVENT PEBS constraints

2019-06-08 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit 23e3983a466cd540ffdd2bbc6e0c51e31934f941 ] This patch fixes an bug revealed by the following commit: 6b89d4c1ae85 ("perf/x86/intel: Fix INTEL_FLAGS_EVENT_CONSTRAINT* masking") That patch modified INTEL_FLAGS_EVENT_CONSTRAINT() to only look at the even

[PATCH AUTOSEL 4.14 07/31] powerpc/powernv: Return for invalid IMC domain

2019-06-08 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit b59bd3527fe3c1939340df558d7f9d568fc9f882 ] Currently init_imc_pmu() can fail either because we try to register an IMC unit with an invalid domain (i.e an IMC node not supported by the kernel) or something went wrong while registering a valid IMC unit. In b

[PATCH AUTOSEL 4.14 16/31] net: aquantia: fix LRO with FCS error

2019-06-08 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit eaeb3b7494ba9159323814a8ce8af06a9277d99b ] Driver stops producing skbs on ring if a packet with FCS error was coalesced into LRO session. Ring gets hang forever. Thats a logical error in driver processing descriptors: When rx_stat indicates MAC Error, nex

[PATCH AUTOSEL 4.14 31/31] mlxsw: spectrum: Prevent force of 56G

2019-06-08 Thread Sasha Levin
From: Amit Cohen [ Upstream commit 275e928f19117d22f6d26dee94548baf4041b773 ] Force of 56G is not supported by hardware in Ethernet devices. This configuration fails with a bad parameter error from firmware. Add check of this case. Instead of trying to set 56G with autoneg off, return a meaning

[PATCH AUTOSEL 4.9 01/20] perf/x86/intel/ds: Fix EVENT vs. UEVENT PEBS constraints

2019-06-08 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit 23e3983a466cd540ffdd2bbc6e0c51e31934f941 ] This patch fixes an bug revealed by the following commit: 6b89d4c1ae85 ("perf/x86/intel: Fix INTEL_FLAGS_EVENT_CONSTRAINT* masking") That patch modified INTEL_FLAGS_EVENT_CONSTRAINT() to only look at the even

[PATCH AUTOSEL 4.9 02/20] selftests: netfilter: missing error check when setting up veth interface

2019-06-08 Thread Sasha Levin
From: Jeffrin Jose T [ Upstream commit 82ce6eb1dd13fd12e449b2ee2c2ec051e6f52c43 ] A test for the basic NAT functionality uses ip command which needs veth device. There is a condition where the kernel support for veth is not compiled into the kernel and the test script breaks. This patch contains

[PATCH AUTOSEL 4.14 29/31] scsi: scsi_dh_alua: Fix possible null-ptr-deref

2019-06-08 Thread Sasha Levin
From: YueHaibing [ Upstream commit 12e750bc62044de096ab9a95201213fd912b9994 ] If alloc_workqueue fails in alua_init, it should return -ENOMEM, otherwise it will trigger null-ptr-deref while unloading module which calls destroy_workqueue dereference wq->lock like this: BUG: KASAN: null-ptr-deref

[PATCH AUTOSEL 4.14 30/31] scsi: libsas: delete sas port if expander discover failed

2019-06-08 Thread Sasha Levin
From: Jason Yan [ Upstream commit 3b0541791453fbe7f42867e310e0c9eb6295364d ] The sas_port(phy->port) allocated in sas_ex_discover_expander() will not be deleted when the expander failed to discover. This will cause resource leak and a further issue of kernel BUG like below: [159785.843156] por

[PATCH AUTOSEL 4.9 12/20] perf record: Fix s390 missing module symbol and warning for non-root users

2019-06-08 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 6738028dd57df064b969d8392c943ef3b3ae705d ] Command 'perf record' and 'perf report' on a system without kernel debuginfo packages uses /proc/kallsyms and /proc/modules to find addresses for kernel and module symbols. On x86 this works for root and non-root u

<    1   2   3   4   5   >