[PATCH 4.19 13/99] USB: yurex: Fix protection fault after device removal

2019-05-06 Thread Greg Kroah-Hartman
From: Alan Stern commit ef61eb43ada6c1d6b94668f0f514e4c268093ff3 upstream. The syzkaller USB fuzzer found a general-protection-fault bug in the yurex driver. The fault occurs when a device has been unplugged; the driver's interrupt-URB handler logs an error message referring to the device by

[PATCH 5.0 105/122] platform/x86: intel_pmc_core: Handle CFL regmap properly

2019-05-06 Thread Greg Kroah-Hartman
From: Rajneesh Bhardwaj commit e50af8332785355de3cb40d9f5e8c45dbfc86f53 upstream. Only Coffeelake should use Cannonlake regmap other than Cannonlake platform. This allows Coffeelake special handling only when there is no matching PCI device and default reg map selected as per CPUID is for

[PATCH 5.0 118/122] x86/mm/KASLR: Fix the size of the direct mapping section

2019-05-06 Thread Greg Kroah-Hartman
From: Baoquan He commit ec3937107ab43f3e8b2bc9dad95710043c462ff7 upstream. kernel_randomize_memory() uses __PHYSICAL_MASK_SHIFT to calculate the maximum amount of system RAM supported. The size of the direct mapping section is obtained from the smaller one of the below two values: (actual

[PATCH 5.0 120/122] x86/mm/tlb: Revert "x86/mm: Align TLB invalidation info"

2019-05-06 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit 780e0106d468a2962b16b52fdf42898f2639e0a0 upstream. Revert the following commit: 515ab7c41306: ("x86/mm: Align TLB invalidation info") I found out (the hard way) that under some .config options (notably L1_CACHE_SHIFT=7) and compiler combinations this on-stack

[PATCH 5.0 117/122] clk: x86: Add system specific quirk to mark clocks as critical

2019-05-06 Thread Greg Kroah-Hartman
From: David Müller commit 7c2e07130090ae001a97a6b65597830d6815e93e upstream. Since commit 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL"), the pmc_plt_clocks of the Bay Trail SoC are unconditionally gated off. Unfortunately this will break systems where these clocks are used

[PATCH 5.0 122/122] media: v4l2: i2c: ov7670: Fix PLL bypass register values

2019-05-06 Thread Greg Kroah-Hartman
From: Jacopo Mondi commit 61da76beef1e4f0b6ba7be4f8d0cf0dac7ce1f55 upstream. The following commits: commit f6dd927f34d6 ("[media] media: ov7670: calculate framerate properly for ov7675") commit 04ee6d92047e ("[media] media: ov7670: add possibility to bypass pll for ov7675") introduced the

[PATCH 5.0 119/122] x86/mm: Fix a crash with kmemleak_scan()

2019-05-06 Thread Greg Kroah-Hartman
From: Qian Cai commit 0d02113b31b2017dd349ec9df2314e798a90fa6e upstream. The first kmemleak_scan() call after boot would trigger the crash below because this callpath: kernel_init free_initmem mem_encrypt_free_decrypted_mem free_init_pages unmaps memory inside the .bss

[PATCH 5.0 102/122] kvm: vmx: Fix typos in vmentry/vmexit control setting

2019-05-06 Thread Greg Kroah-Hartman
From: Yu Zhang commit d92935979adba274b1099e67b7f713f6d8413121 upstream. Previously, 'commit f99e3daf94ff ("KVM: x86: Add Intel PT virtualization work mode")' work mode' offered framework to support Intel PT virtualization. However, the patch has some typos in vmx_vmentry_ctrl() and

Re: [PATCH v6] ARM: dts: aspeed: Adding Lenovo Hr630 BMC

2019-05-06 Thread Patrick Venture
On Sun, May 5, 2019 at 8:17 PM Andrew Jeffery wrote: > > > > On Sun, 5 May 2019, at 15:38, Andrew Peng wrote: > > Initial introduction of Lenovo Hr630 family equipped with > > Aspeed 2500 BMC SoC. Hr630 is a x86 server development kit > > with a ASPEED ast2500 BMC manufactured by Lenovo. > >

[PATCH 5.0 116/122] x86/mce: Improve error message when kernel cannot recover, p2

2019-05-06 Thread Greg Kroah-Hartman
From: Tony Luck commit 41f035a86b5b72a4f947c38e94239d20d595352a upstream. In c7d606f560e4 ("x86/mce: Improve error message when kernel cannot recover") a case was added for a machine check caused by a DATA access to poison memory from the kernel. A case should have been added also for an

[PATCH 5.0 115/122] powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area topdown search

2019-05-06 Thread Greg Kroah-Hartman
From: Aneesh Kumar K.V commit 3b4d07d2674f6b4a9281031f99d1f7efd325b16d upstream. When doing top-down search the low_limit is not PAGE_SIZE but rather max(PAGE_SIZE, mmap_min_addr). This handle cases in which mmap_min_addr > PAGE_SIZE. Fixes: fba2369e6ceb ("mm: use vm_unmapped_area() on powerpc

[PATCH 5.0 109/122] Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ

2019-05-06 Thread Greg Kroah-Hartman
From: Anson Huang commit bf2a7ca39fd3ab47ef71c621a7ee69d1813b1f97 upstream. SNVS IRQ is requested before necessary driver data initialized, if there is a pending IRQ during driver probe phase, kernel NULL pointer panic will occur in IRQ handler. To avoid such scenario, just initialize necessary

[PATCH 5.0 100/122] KVM: VMX: Save RSI to an unused output in the vCPU-run asm blob

2019-05-06 Thread Greg Kroah-Hartman
From: Sean Christopherson commit f3689e3f17f064fd4cd5f0cb01ae2395c94f39d9 upstream. RSI is clobbered by the vCPU-run asm blob, but it's not marked as such, probably because GCC doesn't let you mark inputs as clobbered. "Save" RSI to a dummy output so that GCC recognizes it as being clobbered.

[PATCH 5.0 083/122] perf/x86/amd: Update generic hardware cache events for Family 17h

2019-05-06 Thread Greg Kroah-Hartman
From: Kim Phillips commit 0e3b74e26280f2cf8753717a950b97d424da6046 upstream. Add a new amd_hw_cache_event_ids_f17h assignment structure set for AMD families 17h and above, since a lot has changed. Specifically: L1 Data Cache The data cache access counter remains the same on Family 17h. For

[PATCH 5.0 075/122] kmemleak: powerpc: skip scanning holes in the .bss section

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 298a32b132087550d3fa80641ca58323c5dfd4d9 ] Commit 2d4f567103ff ("KVM: PPC: Introduce kvm_tmp framework") adds kvm_tmp[] into the .bss section and then free the rest of unused spaces back to the page allocator. kernel_init kvm_guest_init kvm_free_tmp

[PATCH 5.0 079/122] xsysace: Fix error handling in ace_setup

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 47b16820c490149c2923e8474048f2c6e7557cab ] If xace hardware reports a bad version number, the error handling code in ace_setup() calls put_disk(), followed by queue cleanup. However, since the disk data structure has the queue pointer set, put_disk() also cleans and releases the

[PATCH 5.0 080/122] fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 10dce8af34226d90fa56746a934f8da5dcdba3df ] Commit 9c225f2655e3 ("vfs: atomic f_pos accesses as per POSIX") added locking for file.f_pos access and in particular made concurrent read and write not possible - now both those functions take f_pos lock for the whole run, and so if

[PATCH 5.0 094/122] ASoC: Intel: bytcr_rt5651: Revert "Fix DMIC map headsetmic mapping"

2019-05-06 Thread Greg Kroah-Hartman
From: Hans de Goede commit aee48a9ffa5a128bf4e433c57c39e015ea5b0208 upstream. Commit 37c7401e8c1f ("ASoC: Intel: bytcr_rt5651: Fix DMIC map headsetmic mapping"), changed the headsetmic mapping from IN3P to IN2P, this was based on the observation that all bytcr_rt5651 devices I have access to (7

[PATCH 5.0 096/122] ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator supply to cpvdd

2019-05-06 Thread Greg Kroah-Hartman
From: Chen-Yu Tsai commit 5fd812e6f5ae0376134234ceb70e8de541ccb10d upstream. The A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in

[PATCH 5.0 095/122] ASoC: rsnd: gen: fix SSI9 4/5/6/7 busif related register address

2019-05-06 Thread Greg Kroah-Hartman
From: Jiada Wang commit 8af6c521cc236534093f9e744cfa004314bfe5ae upstream. Currently each SSI unit 's busif mode/adinr/dalign address is registered by: (in busif4 case) RSND_GEN_M_REG(SSI_BUSIF4_MODE, 0x500, 0x80) RSND_GEN_M_REG(SSI_BUSIF4_ADINR,0x504, 0x80) RSND_GEN_M_REG(SSI_BUSIF4_DALIGN,

[PATCH 5.0 098/122] ASoC: dpcm: skip missing substream while applying symmetry

2019-05-06 Thread Greg Kroah-Hartman
From: Jerome Brunet commit 6246f283d5e02ac757bd8d9bacde8fdc54c4582d upstream. If for any reason, the backend does not have the requested substream (like capture on a playback only backend), the BE will be skipped in dpcm_be_dai_startup(). However, dpcm_apply_symmetry() does not skip those BE

[PATCH 5.0 078/122] null_blk: prevent crash from bad home_node value

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 7ff684a683d777c4956fce93e60accbab2bd7696 ] At module load, if the selected home_node value is greater than the available numa nodes, the system will crash in __alloc_pages_nodemask() due to a bad paging request. Prevent this user error crash by detecting the bad value, logging

[PATCH 5.0 087/122] usb: dwc3: Reset num_trbs after skipping

2019-05-06 Thread Greg Kroah-Hartman
From: Thinh Nguyen commit c7152763f02e05567da27462b2277a554e507c89 upstream. Currently req->num_trbs is not reset after the TRBs are skipped and processed from the cancelled list. The gadget driver may reuse the request with an invalid req->num_trbs, and DWC3 will incorrectly skip trbs. To fix

[PATCH 5.0 091/122] staging: iio: adt7316: fix the dac write calculation

2019-05-06 Thread Greg Kroah-Hartman
From: Jeremy Fertic commit 78accaea117c1ae878774974fab91ac4a0b0e2b0 upstream. The lsb calculation is not masking the correct bits from the user input. Subtract 1 from (1 << offset) to correctly set up the mask to be applied to user input. The lsb register stores its value starting at the bit 7

[PATCH 5.0 089/122] staging: iio: adt7316: fix the dac read calculation

2019-05-06 Thread Greg Kroah-Hartman
From: Jeremy Fertic commit 45130fb030aec26ac28b4bb23344901df3ec3b7f upstream. The calculation of the current dac value is using the wrong bits of the dac lsb register. Create two macros to shift the lsb register value into lsb position, depending on whether the dac is 10 or 12 bit. Initialize

[PATCH 5.0 092/122] scsi: hisi_sas: Fix to only call scsi_get_prot_op() for non-NULL scsi_cmnd

2019-05-06 Thread Greg Kroah-Hartman
From: John Garry commit e1ba0b0b44512c5a209526c09ea3eb7d256b6951 upstream. A NULL-pointer dereference was introduced for TMF SSP commands from the upstreaming reworking. Fix this by relocating the scsi_get_prot_op() callsite. Fixes: d6a9000b81be ("scsi: hisi_sas: Add support for DIF feature

[PATCH 5.0 093/122] scsi: RDMA/srpt: Fix a credit leak for aborted commands

2019-05-06 Thread Greg Kroah-Hartman
From: Bart Van Assche commit 40ca8757291ca7a8775498112d320205b2a2e571 upstream. Make sure that the next time a response is sent to the initiator that the credit it had allocated for the aborted request gets freed. Cc: Doug Ledford Cc: Jason Gunthorpe Cc: Nicholas Bellinger Cc: Mike Christie

[PATCH 5.0 085/122] Bluetooth: mediatek: fix up an error path to restore bdev->tx_state

2019-05-06 Thread Greg Kroah-Hartman
From: Sean Wang commit 77f328dbc6cf42f22c691a164958a5452142a542 upstream. Restore bdev->tx_state with clearing bit BTMTKUART_TX_WAIT_VND_EVT when there is an error on waiting for the corresponding event. Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial

[PATCH 5.0 042/122] i40e: fix WoL support check

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit f669d24f3dd00beab452c0fc9257f6a942ffca9b ] The current check for WoL on i40e is broken. Code comment says only magic packet is supported, so only check for that. Fixes: 540a152da762 (i40e/ixgbe/igb: fail on new WoL flag setting WAKE_MAGICSECURE) Signed-off-by: Stefan Assmann

[PATCH 5.0 050/122] net: stmmac: use correct DMA buffer size in the RX descriptor

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 583e6361414903c5206258a30e5bd88cb03c0254 ] We always program the maximum DMA buffer size into the receive descriptor, although the allocated size may be less. E.g. with the default MTU size we allocate only 1536 bytes. If somebody sends us a bigger frame, then memory may get

[PATCH 5.0 049/122] bonding: show full hw address in sysfs for slave entries

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 18bebc6dd3281955240062655a4df35eef2c46b3 ] Bond expects ethernet hwaddr for its slave, but it can be longer than 6 bytes - infiniband interface for example. # cat /sys/devices//net/ib0/address 80:00:02:08:fe:80:00:00:00:00:00:00:7c:fe:90:03:00:be:5d:e1 # cat

[PATCH 5.0 073/122] libcxgb: fix incorrect ppmax calculation

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit cc5a726c79158bd307150e8d4176ec79b52001ea ] BITS_TO_LONGS() uses DIV_ROUND_UP() because of this ppmax value can be greater than available per cpu page pods. This patch removes BITS_TO_LONGS() to fix this issue. Signed-off-by: Varun Prakash Signed-off-by: David S. Miller

[PATCH 5.0 047/122] net/mlx5: E-Switch, Protect from invalid memory access in offload fdb table

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 5c1d260ed10cf08dd7a0299c103ad0a3f9a9f7a1 ] The esw offloads structures share a union with the legacy mode structs. Reset the offloads struct to zero in init to protect from null assumptions made by the legacy mode code. Signed-off-by: Roi Dayan Reviewed-by: Or Gerlitz

[PATCH 5.0 046/122] xdp: fix cpumap redirect SKB creation bug

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 676e4a6fe703f2dae699ee9d56f14516f9ada4ea ] We want to avoid leaking pointer info from xdp_frame (that is placed in top of frame) like commit 6dfb970d3dbd ("xdp: avoid leaking info stored in frame data on page reuse"), and followup commit 97e19cce05e5 ("bpf: reserve xdp_frame

[PATCH 5.0 069/122] net: hns: Use NAPI_POLL_WEIGHT for hns driver

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit acb1ce15a61154aa501891d67ebf79bc9ea26818 ] When the HNS driver loaded, always have an error print: "netif_napi_add() called with weight 256" This is because the kernel checks the NAPI polling weights requested by drivers and it prints an error message if a driver requests a

[PATCH 5.0 045/122] net: hns3: fix compile error

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 669efc76b317b3aa550ffbf0b79d064cb00a5f96 ] Currently, the rules for configuring search paths in Kbuild have changed, this will lead some erros when compiling hns3 with the following command: make O=DIR M=drivers/net/ethernet/hisilicon/hns3

[PATCH 5.0 074/122] KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit b86bc2858b389255cd44555ce4b1e427b2b770c0 ] This ensures that the address and length provided to DBG_DECRYPT and DBG_ENCRYPT do not cause an overflow. At the same time, pass the actual number of pages pinned in memory to sev_unpin_memory() as a cleanup. Reported-by: Cfir Cohen

[PATCH 5.0 071/122] net: hns: fix ICMP6 neighbor solicitation messages discard problem

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit f058e46855dcbc28edb2ed4736f38a71fd19cadb ] ICMP6 neighbor solicitation messages will be discard by the Hip06 chips, because of not setting forwarding pool. Enable promisc mode has the same problem. This patch fix the wrong forwarding table configs for the multicast vague

[PATCH 5.0 066/122] blk-mq: do not reset plug->rq_count before the list is sorted

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit bcc816dfe51ab86ca94663c7b225f2d6eb0fddb9 ] We would never be able to sort the list if we first reset plug->rq_count which is used in conditional check later. Fixes: ce5b009cff19 ("block: improve logic around when to sort a plug list") Reviewed-by: Ming Lei Signed-off-by:

[PATCH 5.0 065/122] arm/mach-at91/pm : fix possible object reference leak

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit ba5e60c9b75dec92d4c695b928f69300b17d7686 ] of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Reviewed-by: Mukesh Ojha Signed-off-by: Peng Hao Signed-off-by: Ludovic Desroches

[PATCH 5.0 044/122] HID: quirks: Fix keyboard + touchpad on Lenovo Miix 630

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 2bafa1e9625400bec4c840a168d70ba52607a58d ] Similar to commit edfc3722cfef ("HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working"), the Lenovo Miix 630 has a combo keyboard/touchpad device with vid:pid of 04F3:0400, which is shared with Elan touchpads. The

[PATCH 5.0 059/122] block: use blk_free_flush_queue() to free hctx->fq in blk_mq_init_hctx

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit b9a1ff504b9492ad6beb7d5606e0e3365d4d8499 ] kfree() can leak the hctx->fq->flush_rq field. Reviewed-by: Ming Lei Signed-off-by: Shenghui Wang Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin (Microsoft) --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 5.0 061/122] HID: input: add mapping for Assistant key

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit ce856634af8cda3490947df8ac1ef5843e6356af ] According to HUTRR89 usage 0x1cb from the consumer page was assigned to allow launching desktop-aware assistant application, so let's add the mapping. Signed-off-by: Dmitry Torokhov Signed-off-by: Jiri Kosina Signed-off-by: Sasha

[PATCH 5.0 052/122] net: stmmac: dont stop NAPI processing when dropping a packet

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 07b3975352374c3f5ebb4a42ef0b253fe370542d ] Currently, if we drop a packet, we exit from NAPI loop before the budget is consumed. In some situations this will make the RX processing stall e.g. when flood pinging the system with oversized packets, as the errorneous packets are not

[PATCH 5.0 057/122] debugfs: fix use-after-free on symlink traversal

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 93b919da64c15b90953f96a536e5e61df896ca57 ] symlink body shouldn't be freed without an RCU delay. Switch debugfs to ->destroy_inode() and use of call_rcu(); free both the inode and symlink body in the callback. Similar to solution for bpf, only here it's even more obvious that

[PATCH 5.0 026/122] HID: Increase maximum report size allowed by hid_field_extract()

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 94a9992f7dbdfb28976b565af220e0c4a117144a ] Commit 71f6fa90a353 ("HID: increase maximum global item tag report size to 256") increases the max report size from 128 to 256. We also need to update the report size in hid_field_extract() otherwise it complains and truncates now

[PATCH 5.0 027/122] HID: logitech: check the return value of create_singlethread_workqueue

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 6c44b15e1c9076d925d5236ddadf1318b0a25ce2 ] create_singlethread_workqueue may fail and return NULL. The fix checks if it is NULL to avoid NULL pointer dereference. Also, the fix moves the call of create_singlethread_workqueue earlier to avoid resource-release issues.

[PATCH 5.0 043/122] riscv: fix accessing 8-byte variable from RV32

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit dbee9c9c45846f003ec2f819710c2f4835630a6a ] A memory save operation to 8-byte variable in RV32 is divided into two sw instructions in the put_user macro. The current fixup returns execution flow to the second sw instead of the one after it. This patch fixes this fixup code

[PATCH 5.0 056/122] jffs2: fix use-after-free on symlink traversal

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 4fdcfab5b5537c21891e22e65996d4d0dd8ab4ca ] free the symlink body after the same RCU delay we have for freeing the struct inode itself, so that traversal during RCU pathwalk wouldn't step into freed memory. Signed-off-by: Al Viro Signed-off-by: Sasha Levin (Microsoft) ---

[PATCH 5.0 022/122] KVM: lapic: Track lapic timer advance per vCPU

2019-05-06 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 39497d7660d9866a47a2dc9055672358da57ad3d upstream. Automatically adjusting the globally-shared timer advancement could corrupt the timer, e.g. if multiple vCPUs are concurrently adjusting the advancement value. That could be partially fixed by using a local

[PATCH 5.0 053/122] net: stmmac: dont overwrite discard_frame status

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 1b746ce8b397e58f9e40ce5c63b7198de6930482 ] If we have error bits set, the discard_frame status will get overwritten by checksum bit checks, which might set the status back to good one. Fix by checking the COE status only if the frame is good. Signed-off-by: Aaro Koskinen

[PATCH 5.0 023/122] KVM: lapic: Allow user to disable adaptive tuning of timer advancement

2019-05-06 Thread Greg Kroah-Hartman
From: Sean Christopherson commit c3941d9e0ccd48920e4811f133235b3597e5310b upstream. The introduction of adaptive tuning of lapic timer advancement did not allow for the scenario where userspace would want to disable adaptive tuning but still employ timer advancement, e.g. for testing purposes

[PATCH 5.0 025/122] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 924726888f660b2a86382a5dd051ec9ca1b18190 ] The rk3328-roc-cc board exhibits tx stability issues with large packets, as does the rock64 board, which was fixed with this patch https://patchwork.kernel.org/patch/10178969/ A similar patch was merged for the rk3328-roc-cc here

[PATCH 5.0 040/122] igb: Fix WARN_ONCE on runtime suspend

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit dabb8338be533c18f50255cf39ff4f66d4dabdbe ] The runtime_suspend device callbacks are not supposed to save configuration state or change the power state. Commit fb29f76cc566 ("igb: Fix an issue that PME is not enabled during runtime suspend") changed the driver to not save

[PATCH 5.0 039/122] i40e: fix i40e_ptp_adjtime when given a negative delta

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit b3ccbbce1e455b8454d3935eb9ae0a5f18939e24 ] Commit 0ac30ce43323 ("i40e: fix up 32 bit timespec references", 2017-07-26) claims to be cleaning up references to 32-bit timespecs. The actual contents of the commit make no sense, as it converts a call to timespec64_add into

[PATCH 5.0 021/122] KVM: x86: Consider LAPIC TSC-Deadline timer expired if deadline too short

2019-05-06 Thread Greg Kroah-Hartman
From: Liran Alon commit c09d65d9eab69985c75f98ed64541229f6fa9aa6 upstream. If guest sets MSR_IA32_TSCDEADLINE to value such that in host time-domain it's shorter than lapic_timer_advance_ns, we can reach a case that we call hrtimer_start() with expiration time set at the past. Because

[PATCH 5.0 037/122] reset: meson-audio-arb: Fix missing .owner setting of reset_controller_dev

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 13e8a05b922457761ddef39cfff6231bd4ed9eef ] Set .owner to prevent module unloading while being used. Signed-off-by: Axel Lin Fixes: d903779b58be ("reset: meson: add meson audio arb driver") Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin (Microsoft) ---

[PATCH 5.0 036/122] ARM: dts: rockchip: Fix gpu opp node names for rk3288

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit d040e4e8deeaa8257d6aa260e29ad69832b5d630 ] The device tree compiler yells like this: Warning (unit_address_vs_reg): /gpu-opp-table/opp@1: node has a unit name, but no reg property Let's match the cpu opp node names and use a dash. Signed-off-by: Douglas Anderson

[PATCH 5.0 041/122] ixgbe: fix mdio bus registration

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 7ec52b9df7d7472240fa96223185894b1897aeb0 ] The ixgbe ignores errors returned from mdiobus_register() and leaves adapter->mii_bus non-NULL and MDIO bus state as MDIOBUS_ALLOCATED. This triggers a BUG from mdiobus_unregister() during ixgbe_remove() call. Fixes: 8fa10ef01260

[PATCH 5.0 031/122] ARM: OMAP2+: add missing of_node_put after of_device_is_available

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 30645307e5d2c8a4caf978558c66121ac91ad17e ] Add an of_node_put when a tested device node is not available. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ identifier f; local idexpression e; expression x; @@ e = f(...); ... when !=

[PATCH 5.0 029/122] rtc: cros-ec: Fail suspend/resume if wake IRQ cant be configured

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit d6752e185c3168771787a02dc6a55f32260943cc ] If we encounter a failure during suspend where this RTC was programmed to wakeup the system from suspend, but that wakeup couldn't be configured because the system didn't support wakeup interrupts, we'll run into the following warning:

[PATCH 5.0 030/122] rtc: sh: Fix invalid alarm warning for non-enabled alarm

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 15d82d22498784966df8e4696174a16b02cc1052 ] When no alarm has been programmed on RSK-RZA1, an error message is printed during boot: rtc rtc0: invalid alarm value: 2019-03-14T255:255:255 sh_rtc_read_alarm_value() returns 0xff when querying a hardware alarm field that is not

[PATCH 5.0 032/122] batman-adv: Reduce claim hash refcnt only for removed entry

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit 4ba104f468bbfc27362c393815d03aa18fb7a20f ] The batadv_hash_remove is a function which searches the hashtable for an entry using a needle, a hashtable bucket selection function and a compare function. It will lock the bucket list and delete an entry when the compare function

[PATCH 5.0 034/122] batman-adv: Reduce tt_global hash refcnt only for removed entry

2019-05-06 Thread Greg Kroah-Hartman
[ Upstream commit f131a56880d10932931e74773fb8702894a94a75 ] The batadv_hash_remove is a function which searches the hashtable for an entry using a needle, a hashtable bucket selection function and a compare function. It will lock the bucket list and delete an entry when the compare function

[PATCH 5.0 008/122] i2c: synquacer: fix enumeration of slave devices

2019-05-06 Thread Greg Kroah-Hartman
From: Ard Biesheuvel commit 95e0cf3caeb11e1b0398c747b5cfa12828263824 upstream. The I2C host driver for SynQuacer fails to populate the of_node and ACPI companion fields of the struct i2c_adapter it instantiates, resulting in enumeration of the subordinate I2C bus to fail. Fixes: 0d676a6c4390

[PATCH 5.0 006/122] mtd: rawnand: marvell: Clean the controller state before each operation

2019-05-06 Thread Greg Kroah-Hartman
From: Miquel Raynal commit 9a8f612ca0d6a436e6471c9bed516d34a2cc626f upstream. Since the migration of the driver to stop using the legacy ->select_chip() hook, there is nothing deselecting the target anymore, thus the selection is not forced at the next access. Ensure the ND_RUN bit and the

[PATCH 5.0 004/122] iwlwifi: fix driver operation for 5350

2019-05-06 Thread Greg Kroah-Hartman
From: Emmanuel Grumbach commit 5c9adef9789148d382d7d1307c3d6bfaf51d143d upstream. We introduced a bug that prevented this old device from working. The driver would simply not be able to complete the INIT flow while spewing this warning: CSR addresses aren't configured WARNING: CPU: 0 PID:

[PATCH 5.0 017/122] usb: usbip: fix isoc packet num validation in get_pipe

2019-05-06 Thread Greg Kroah-Hartman
From: Malte Leip commit c409ca3be3c6ff3a1eeb303b191184e80d412862 upstream. Change the validation of number_of_packets in get_pipe to compare the number of packets to a fixed maximum number of packets allowed, set to be 1024. This number was chosen due to it being used by other drivers as well,

[PATCH 5.0 009/122] i2c: imx: correct the method of getting private data in notifier_call

2019-05-06 Thread Greg Kroah-Hartman
From: Anson Huang commit d386bb9042f4629bf62cdc5952ea8aab225f24a7 upstream. The way of getting private imx_i2c_struct in i2c_imx_clk_notifier_call() is incorrect, should use clk_change_nb element to get correct address and avoid below kernel dump during POST_RATE_CHANGE notify by clk framework:

[PATCH 5.0 003/122] ARC: memset: fix build with L1_CACHE_SHIFT != 6

2019-05-06 Thread Greg Kroah-Hartman
From: Eugeniy Paltsev commit 55c0c4c793b538fb438bcc72481b9dc2f79fe5a9 upstream. In case of 'L1_CACHE_SHIFT != 6' we define dummy assembly macroses PREALLOC_INSTR and PREFETCHW_INSTR without arguments. However we pass arguments to them in code which cause build errors. Fix that. Signed-off-by:

[PATCH 5.0 014/122] USB: yurex: Fix protection fault after device removal

2019-05-06 Thread Greg Kroah-Hartman
From: Alan Stern commit ef61eb43ada6c1d6b94668f0f514e4c268093ff3 upstream. The syzkaller USB fuzzer found a general-protection-fault bug in the yurex driver. The fault occurs when a device has been unplugged; the driver's interrupt-URB handler logs an error message referring to the device by

[PATCH 5.0 016/122] USB: dummy-hcd: Fix failure to give back unlinked URBs

2019-05-06 Thread Greg Kroah-Hartman
From: Alan Stern commit fc834e607ae3d18e1a20bca3f9a2d7f52ea7a2be upstream. The syzkaller USB fuzzer identified a failure mode in which dummy-hcd would never give back an unlinked URB. This causes usb_kill_urb() to hang, leading to WARNINGs and unkillable threads. In dummy-hcd, all URBs are

[PATCH 5.0 011/122] ALSA: hda/realtek - Add new Dell platform for headset mode

2019-05-06 Thread Greg Kroah-Hartman
From: Kailang Yang commit 0a29c57b76624723b6b00c027e0e992d130ace49 upstream. Add two Dell platform for headset mode. [ Note: this is a further correction / addition of the previous pin-based quirks for Dell machines; another entry for ALC236 with the d-mic pin 0x12 and an entry for ALC295

[PATCH 5.0 013/122] ALSA: hda/realtek - Apply the fixup for ASUS Q325UAR

2019-05-06 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 3887c26c0e24d50a4d0ce20cf4726737cee1a2fd upstream. Some ASUS models like Q325UAR with ALC295 codec requires the same fixup that has been applied to ALC294 codec. Just copy the entry with the pin matching to cover ALC295 too. BugLink:

[PATCH 5.0 010/122] i2c: Prevent runtime suspend of adapter when Host Notify is required

2019-05-06 Thread Greg Kroah-Hartman
From: Jarkko Nikula commit 72bfcee11cf89509795c56b0e40a3785ab00bbdd upstream. Multiple users have reported their Synaptics touchpad has stopped working between v4.20.1 and v4.20.2 when using SMBus interface. The culprit for this appeared to be commit c5eb1190074c ("PCI / PM: Allow runtime PM

[PATCH 5.0 001/122] selftests/seccomp: Prepare for exclusive seccomp flags

2019-05-06 Thread Greg Kroah-Hartman
From: Kees Cook commit 4ee0776760af03f181e6b80baf5fb1cc1a980f50 upstream. Some seccomp flags will become exclusive, so the selftest needs to be adjusted to mask those out and test them individually for the "all flags" tests. Cc: sta...@vger.kernel.org # v5.0+ Signed-off-by: Kees Cook

[GIT PULL] spi updates for v5.2

2019-05-06 Thread Mark Brown
The following changes since commit 37624b58542fb9f2d9a70e6ea006ef8a5f66c30b: Linux 5.1-rc7 (2019-04-28 17:04:13 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-v5.2 for you to fetch changes up to

Re: [PATCH 2/2] eeprom: ee1004: Deal with nack on page selection

2019-05-06 Thread Dreamcat4
Don't mind either way, please do as you see fit On Mon, May 6, 2019 at 3:04 PM Jarkko Nikula wrote: > > On 5/6/19 4:16 PM, Jean Delvare wrote: > > Some EE1004 implementations will not properly ack page selection > > commands. They still set the page correctly, so there is no actual > > error.

[GIT PULL] regulator updates for v5.2

2019-05-06 Thread Mark Brown
The following changes since commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd: Linux 5.1 (2019-05-05 17:42:58 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-v5.2 for you to fetch changes up to

Re: [RFC][PATCH 1/2] x86: Allow breakpoints to emulate call functions

2019-05-06 Thread Peter Zijlstra
On Mon, May 06, 2019 at 10:19:51AM +0200, Peter Zijlstra wrote: > +.Lfrom_usermode_no_fixup_\@: > +.endm > + > +.macro IRET_FRAME > + > + /* orig_eax is already POP'ed when we're here */ > + > + testl $CS_FROM_KERNEL, 1*4(%esp) > + jz .Lfinished_frame_\@ > + > + pushl %eax > +

Re: Fwd: linux-next: build failure after merge of the kbuild tree

2019-05-06 Thread Paul Gortmaker
[Re: Fwd: linux-next: build failure after merge of the kbuild tree] On 06/05/2019 (Mon 21:07) Masahiro Yamada wrote: > Hi Paul, > > > On Mon, May 6, 2019 at 12:34 PM Paul Gortmaker > wrote: > > > > [Fwd: linux-next: build failure after merge of the kbuild tree] On > > 06/05/2019 (Mon 11:19)

[RESEND PATCH 2/3] perf vendor events intel: Add JSON files for Icelake

2019-05-06 Thread kan . liang
From: Kan Liang Add V1 event list for Icelake. Signed-off-by: Kan Liang --- .../pmu-events/arch/x86/icelake/cache.json| 552 +++ .../arch/x86/icelake/floating-point.json | 90 ++ .../pmu-events/arch/x86/icelake/frontend.json | 424 +

[RESEND PATCH 1/3] perf, tools: Add support for recording and printing XMM registers

2019-05-06 Thread kan . liang
From: Andi Kleen Icelake and later platforms support collecting XMM registers with PEBS event. Add support for perf script to dump them, and support for the register parser in perf record -I ... to configure them. For now they are just printed in hex, could potentially add other formats too.

[RESEND PATCH 3/3] perf vendor events intel: Add JSON files for Tremontx

2019-05-06 Thread kan . liang
From: Kan Liang Add V1 event list. This is not a full event list yet, but a short list for now. Signed-off-by: Kan Liang --- tools/perf/pmu-events/arch/x86/mapfile.csv| 1 + .../pmu-events/arch/x86/tremontx/cache.json | 52 +++ .../pmu-events/arch/x86/tremontx/memory.json | 26

Re: [PATCH v2] mm/hugetlb: Don't put_page in lock of hugetlb_lock

2019-05-06 Thread Michal Hocko
On Mon 06-05-19 22:06:38, Zhiqiang Liu wrote: > From: Kai Shen > > spinlock recursion happened when do LTP test: > #!/bin/bash > ./runltp -p -f hugetlb & > ./runltp -p -f hugetlb & > ./runltp -p -f hugetlb & > ./runltp -p -f hugetlb & > ./runltp -p -f hugetlb & > > The dtor returned by

[GIT PULL] regmap updates for v5.2

2019-05-06 Thread Mark Brown
The following changes since commit 085b7755808aa11f78ab9377257e1dad2e6fa4bb: Linux 5.1-rc6 (2019-04-21 10:45:57 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-v5.2 for you to fetch changes up to

Re: [PATCH] kbuild: Fix cross compile link with ccache

2019-05-06 Thread Masahiro Yamada
Hi Krzysztof, On Mon, May 6, 2019 at 9:41 PM Krzysztof Kozlowski wrote: > > Fix calling objcopy in case of cross compile environments: > > ARCH="arm" CROSS_COMPILE="ccache arm-linux-gnueabi-" make > scripts/link-vmlinux.sh: line 211: ccache arm-linux-gnueabi-objcopy: > command

[PATCH v2] mm/hugetlb: Don't put_page in lock of hugetlb_lock

2019-05-06 Thread Zhiqiang Liu
From: Kai Shen spinlock recursion happened when do LTP test: #!/bin/bash ./runltp -p -f hugetlb & ./runltp -p -f hugetlb & ./runltp -p -f hugetlb & ./runltp -p -f hugetlb & ./runltp -p -f hugetlb & The dtor returned by get_compound_page_dtor in __put_compound_page may be the function of

Re: [PATCH] mm/hugetlb: Don't put_page in lock of hugetlb_lock

2019-05-06 Thread Zhiqiang Liu
> On Sat 04-05-19 20:28:24, Zhiqiang Liu wrote: >> From: Kai Shen >> >> spinlock recursion happened when do LTP test: >> #!/bin/bash >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> ./runltp -p -f hugetlb & >> >> Fixes: 9980d744a0

[GIT PULL] livepatching for 5.2

2019-05-06 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching.git for-linus to receive livepatching updates for 5.2 merge window. Highlights: = - livepatching kselftests improvements from Joe Lawrence and Miroslav Benes - making use of gcc's

[GIT PULL] HID for 5.2

2019-05-06 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus to receive 5.2 merge window updates for HID subsystem. Highlights: = - support for U2F Zero device, from Andrej Shadura - logitech-dj has historically been treating devices behind non-unifying

Re: [PATCH 2/2] eeprom: ee1004: Deal with nack on page selection

2019-05-06 Thread Jarkko Nikula
On 5/6/19 4:16 PM, Jean Delvare wrote: Some EE1004 implementations will not properly ack page selection commands. They still set the page correctly, so there is no actual error. Deal with this case gracefully by checking the currently selected page after we receive a nack. If the page is set

[for-next][PATCH 0/3] ktest: Updates for this merge window

2019-05-06 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git for-next Head SHA1: 37e1677330bdc2e96e70f18701e589876f054c67 Masayoshi Mizuma (2): ktest: Add support for meta characters in GRUB_MENU ktest: introduce REBOOT_RETURN_CODE to confirm the result of REBOOT Steven

[for-next][PATCH 2/3] ktest: Add support for meta characters in GRUB_MENU

2019-05-06 Thread Steven Rostedt
From: Masayoshi Mizuma ktest fails if meta characters are in GRUB_MENU, for example GRUB_MENU = 'Fedora (test)' The failure happens because the meta characters are not escaped, so the menu doesn't match in any entries in GRUB_FILE. Use quotemeta() to escape the meta characters. Link:

[for-next][PATCH 1/3] ktest: Show name and iteration on errors

2019-05-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If a test has an error, display not only the what type of test failed, but if the test was giving a name, display that too, as well as the current iteration of the tests. Each test has an iteration number associated to it. For error messages display that iteration

[for-next][PATCH 3/3] ktest: introduce REBOOT_RETURN_CODE to confirm the result of REBOOT

2019-05-06 Thread Steven Rostedt
From: Masayoshi Mizuma Unexpected power cycle occurs while the installation of the kernel. ssh root@Test sync ... [0 seconds] SUCCESS ssh root@Test reboot ... [1 second] FAILED! virsh destroy Test; sleep 5; virsh start Test ... [6 seconds] SUCCESS That is because REBOOT, the default

Re: [PATCH v2 1/4] ftrace: Implement fs notification for preempt/irqsoff tracers

2019-05-06 Thread Joel Fernandes
On Mon, May 06, 2019 at 01:54:04AM +0200, Viktor Rosendahl wrote: > On 5/6/19 1:01 AM, Steven Rostedt wrote: [snip] > > Hmm, what about adding a notifier to tracing_max_latency instead? And > > do it not as a config option, but have it always enabled. It would send a > > notification when it

Re: [RFC][PATCH 1/2] x86: Allow breakpoints to emulate call functions

2019-05-06 Thread Steven Rostedt
On Mon, 6 May 2019 10:19:51 +0200 Peter Zijlstra wrote: > On Fri, May 03, 2019 at 11:57:22AM -0700, Linus Torvalds wrote: > > On Fri, May 3, 2019 at 9:21 AM Andy Lutomirski wrote: > > > > > > > > So here’s a somewhat nutty suggestion: how about we tweak the 32-bit > > > entry code to emulate

Re: [PATCH 4/7] sched: Add sched_load_rq tracepoint

2019-05-06 Thread Steven Rostedt
On Mon, 6 May 2019 11:08:59 +0200 Peter Zijlstra wrote: > These functions really should be called trace_*() > > Also; I _really_ hate how fat they are. Why can't we do simple straight > forward things like: > > trace_pelt_cfq(cfq); > trace_pelt_rq(rq); > trace_pelt_se(se); >

Applied "ASoC: sprd: Add reserved DMA memory support" to the asoc tree

2019-05-06 Thread Mark Brown
The patch ASoC: sprd: Add reserved DMA memory support has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

<    5   6   7   8   9   10   11   12   13   >