[PATCH 5.7 307/477] drm/nouveau/disp/gm200-: fix NV_PDISP_SOR_HDMI2_CTRL(n) selection

2020-06-23 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit a1ef8bad506e4ffa0c57ac5f8cb99ab5cbc3b1fc ] This is a SOR register, and not indexed by the bound head. Fixes display not coming up on high-bandwidth HDMI displays under a number of configurations. Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin ---

[PATCH 5.7 346/477] NTB: ntb_test: Fix bug when counting remote files

2020-06-23 Thread Greg Kroah-Hartman
From: Logan Gunthorpe [ Upstream commit 2130c0ba69d69bb21f5c52787f2587db00d13d8a ] When remote files are counted in get_files_count, without using SSH, the code returns 0 because there is a colon prepended to $LOC. $VPATH should have been used instead of $LOC. Fixes: 06bd0407d06c ("NTB:

[PATCH 5.7 336/477] net: dp83867: Fix OF_MDIO config check

2020-06-23 Thread Greg Kroah-Hartman
From: Dan Murphy [ Upstream commit 506de00677b84dfc6718cbbd3495b1d90df5d098 ] When CONFIG_OF_MDIO is set to be a module the code block is not compiled. Use the IS_ENABLED macro that checks for both built in as well as module. Fixes: 2a10154abcb75 ("net: phy: dp83867: Add TI dp83867 phy")

[PATCH 5.7 306/477] openrisc: Fix issue with argument clobbering for clone/fork

2020-06-23 Thread Greg Kroah-Hartman
From: Stafford Horne [ Upstream commit 6bd140e14d9aaa734ec37985b8b20a96c0ece948 ] Working on the OpenRISC glibc port I found that sometimes clone was working strange. That the tls data argument sent in r7 was always wrong. Further investigation revealed that the arguments were getting

[PATCH 5.7 355/477] ASoC: core: only convert non DPCM link to DPCM link

2020-06-23 Thread Greg Kroah-Hartman
From: Bard Liao [ Upstream commit 607fa205a7e4dfad28b8a67ab1c985756ddbccb0 ] Additional checks for valid DAIs expose a corner case, where existing BE dailinks get modified, e.g. HDMI links are tagged with dpcm_capture=1 even if the DAIs are for playback. This patch makes those changes

[PATCH 5.7 300/477] ASoC: SOF: Intel: hda: fix generic hda codec support

2020-06-23 Thread Greg Kroah-Hartman
From: Kai Vehmanen [ Upstream commit 89d73ccab20a684d8446cea4d8ac6a2608c8d390 ] Add support for using generic codec driver with SOF. Generic driver is used if: - snd_sof_intel_hda_common.hda_model="generic" is set, or - fallback if no other codec driver is found The implementation is aligned

[PATCH 5.7 357/477] ASoC: Intel: bytcr_rt5640: Add quirk for Toshiba Encore WT10-A tablet

2020-06-23 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 199a5e8fda54ab3c8c6f6bf980c004e97ebf5ccb ] The Toshiba Encore WT10-A tablet almost fully works with the default settings for Bay Trail CR devices. The only issue is that it uses a digital mic. connected the the DMIC1 input instead of an analog mic. Add a

[PATCH 5.7 309/477] nfsd4: make drc_slab global, not per-net

2020-06-23 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 027690c75e8fd91b60a634d31c4891a6e39d45bd ] I made every global per-network-namespace instead. But perhaps doing that to this slab was a step too far. The kmem_cache_create call in our net init method also seems to be responsible for this lockdep

[PATCH 5.7 356/477] ASoC: SOF: nocodec: conditionally set dpcm_capture/dpcm_playback flags

2020-06-23 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit ba4e5abc6c4e173af7c941c03c067263b686665d ] With additional checks on dailinks, we see errors such as [ 3.000418] sof-nocodec sof-nocodec: CPU DAI DMIC01 Pin for rtd NoCodec-6 does not support playback It's not clear why we set the dpcm_playback and

[PATCH 5.7 362/477] drm/sun4i: hdmi ddc clk: Fix size of m divider

2020-06-23 Thread Greg Kroah-Hartman
From: Jernej Skrabec [ Upstream commit 54e1e06bcf1cf6e7ac3f86daa5f7454add24b494 ] m divider in DDC clock register is 4 bits wide. Fix that. Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support") Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard Link:

[PATCH 5.7 363/477] libbpf: Handle GCC noreturn-turned-volatile quirk

2020-06-23 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit 32022fd97ed34f6812802bf1288db27c313576f4 ] Handle a GCC quirk of emitting extra volatile modifier in DWARF (and subsequently preserved in BTF by pahole) for function pointers marked as __attribute__((noreturn)). This was the way to mark such functions

[PATCH 5.7 366/477] x86/idt: Keep spurious entries unset in system_vectors

2020-06-23 Thread Greg Kroah-Hartman
From: Vitaly Kuznetsov [ Upstream commit 1f1fbc70c10e81f70e9fbe2102d439c883269811 ] With commit dc20b2d52653 ("x86/idt: Move interrupt gate initialization to IDT code") non assigned system vectors are also marked as used in 'used_vectors' (now 'system_vectors') bitmap. This makes checks in

[PATCH 5.7 342/477] NTB: Revert the change to use the NTB device dev for DMA allocations

2020-06-23 Thread Greg Kroah-Hartman
From: Logan Gunthorpe [ Upstream commit 40da7d9a93c8941737ef4a1208d32c13ce017fe1 ] Commit 417cf39cfea9 ("NTB: Set dma mask and dma coherent mask to NTB devices") started using the NTB device for DMA allocations which was turns out was wrong. If the IOMMU is enabled, such alloctanions will

[PATCH 5.7 382/477] usb/ehci-platform: Set PM runtime as active on resume

2020-06-23 Thread Greg Kroah-Hartman
From: Qais Yousef [ Upstream commit 16bdc04cc98ab0c74392ceef2475ecc5e73fcf49 ] Follow suit of ohci-platform.c and perform pm_runtime_set_active() on resume. ohci-platform.c had a warning reported due to the missing pm_runtime_set_active() [1]. [1]

[PATCH 5.7 359/477] bpf/sockmap: Fix kernel panic at __tcp_bpf_recvmsg

2020-06-23 Thread Greg Kroah-Hartman
From: dihu [ Upstream commit 487082fb7bd2a32b66927d2b22e3a81b072b44f0 ] When user application calls read() with MSG_PEEK flag to read data of bpf sockmap socket, kernel panic happens at __tcp_bpf_recvmsg+0x12c/0x350. sk_msg is not removed from ingress_msg queue after read out under MSG_PEEK

[PATCH 5.7 368/477] net/filter: Permit reading NET in load_bytes_relative when MAC not set

2020-06-23 Thread Greg Kroah-Hartman
From: YiFei Zhu [ Upstream commit 0f5d82f187e1beda3fe7295dfc500af266a5bd80 ] Added a check in the switch case on start_header that checks for the existence of the header, and in the case that MAC is not set and the caller requests for MAC, -EFAULT. If the caller requests for NET then MAC's

[PATCH 5.7 343/477] NTB: perf: Dont require one more memory window than number of peers

2020-06-23 Thread Greg Kroah-Hartman
From: Logan Gunthorpe [ Upstream commit a9c4211ac918ade1522aced6b5acfbe824722f7d ] ntb_perf should not require more than one memory window per peer. This was probably an off-by-one error. Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Logan Gunthorpe

[PATCH 5.7 380/477] bpf: Undo internal BPF_PROBE_MEM in BPF insns dump

2020-06-23 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit 29fcb05bbf1a7008900bb9bee347bdbfc7171036 ] BPF_PROBE_MEM is kernel-internal implmementation details. When dumping BPF instructions to user-space, it needs to be replaced back with BPF_MEM mode. Fixes: 2a02759ef5f8 ("bpf: Add support for BTF pointers to

[PATCH 5.7 388/477] bcache: fix potential deadlock problem in btree_gc_coalesce

2020-06-23 Thread Greg Kroah-Hartman
From: Zhiqiang Liu [ Upstream commit be23e837333a914df3f24bf0b32e87b0331ab8d1 ] coccicheck reports: drivers/md//bcache/btree.c:1538:1-7: preceding lock on line 1417 In btree_gc_coalesce func, if the coalescing process fails, we will goto to out_nocoalesce tag directly without releasing

[PATCH 5.7 377/477] bpf: sockmap: Dont attach programs to UDP sockets

2020-06-23 Thread Greg Kroah-Hartman
From: Lorenz Bauer [ Upstream commit f6fede8569689dd31e7b0ed15024b25e5ce2e2e5 ] The stream parser infrastructure isn't set up to deal with UDP sockets, so we mustn't try to attach programs to them. I remember making this change at some point, but I must have lost it while rebasing or something

[PATCH 5.7 391/477] powerpc: Fix kernel crash in show_instructions() w/DEBUG_VIRTUAL

2020-06-23 Thread Greg Kroah-Hartman
From: Aneesh Kumar K.V [ Upstream commit a6e2c226c3d51fd93636320e47cabc8a8f0824c5 ] With CONFIG_DEBUG_VIRTUAL=y, we can hit a BUG() if we take a hard lockup watchdog interrupt when in OPAL mode. This happens in show_instructions() if the kernel takes the watchdog NMI IPI, or any other

[PATCH 5.7 369/477] tools, bpftool: Fix memory leak in codegen error cases

2020-06-23 Thread Greg Kroah-Hartman
From: Tobias Klauser [ Upstream commit d4060ac969563113101c79433f2ae005feca1c29 ] Free the memory allocated for the template on error paths in function codegen. Signed-off-by: Tobias Klauser Signed-off-by: Daniel Borkmann Acked-by: Andrii Nakryiko Link:

Re: xilinx_axienet_main.c:undefined reference to `devm_ioremap_resource'

2020-06-23 Thread Brendan Higgins
On Sat, Jun 20, 2020 at 1:59 AM kernel test robot wrote: > > Hi Brendan, > > It's probably a bug fix that unveils the link errors. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 4333a9b0b67bb4e8bcd91bdd80da80b0ec151162 > commit:

[PATCH 5.7 396/477] afs: Set error flag rather than return error from file status decode

2020-06-23 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 38355eec6a7d2b8f2f313f9174736dc877744e59 ] Set a flag in the call struct to indicate an unmarshalling error rather than return and handle an error from the decoding of file statuses. This flag is checked on a successful return from the delivery function.

[PATCH 5.7 373/477] NFS: Fix direct WRITE throughput regression

2020-06-23 Thread Greg Kroah-Hartman
From: Chuck Lever [ Upstream commit ba838a75e73f55a780f1ee896b8e3ecb032dba0f ] I measured a 50% throughput regression for large direct writes. The observed on-the-wire behavior is that the client sends every NFS WRITE twice: once as an UNSTABLE WRITE plus a COMMIT, and once as a FILE_SYNC

[PATCH 5.7 401/477] bnxt_en: Fix AER reset logic on 57500 chips.

2020-06-23 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit 6e2f83884c099de0e87b15a820736e522755d074 ] AER reset should follow the same steps as suspend/resume. We need to free context memory during AER reset and allocate new context memory during recovery by calling bnxt_hwrm_func_qcaps(). We also need to call

[PATCH 5.7 372/477] nfs: set invalid blocks after NFSv4 writes

2020-06-23 Thread Greg Kroah-Hartman
From: Zheng Bin [ Upstream commit 3a39e778690500066b31fe982d18e2e394d3bce2 ] Use the following command to test nfsv4(size of file1M is 1MB): mount -t nfs -o vers=4.0,actimeo=60 127.0.0.1/dir1 /mnt cp file1M /mnt du -h /mnt/file1M -->0 within 60s, then 1M When write is done(cp file1M /mnt),

[PATCH 5.7 399/477] bnxt_en: Simplify bnxt_resume().

2020-06-23 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit 2084ccf6259cc95e0575f0fafc93595d0219a9f6 ] The separate steps we do in bnxt_resume() can be done more simply by calling bnxt_hwrm_func_qcaps(). This change will add an extra __bnxt_hwrm_func_qcaps() call which is needed anyway on older firmware. Fixes:

[PATCH 5.7 397/477] afs: Remove the error argument from afs_protocol_error()

2020-06-23 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 7126ead910aa9fcc9e16e9e7a8c9179658261f1d ] Remove the error argument from afs_protocol_error() as it's always -EBADMSG. Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/afs/cmservice.c | 9 +++-- fs/afs/fsclient.c |

[PATCH 5.7 394/477] afs: Fix EOF corruption

2020-06-23 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 3f4aa981816368fe6b1d13c2bfbe76df9687e787 ] When doing a partial writeback, afs_write_back_from_locked_page() may generate an FS.StoreData RPC request that writes out part of a file when a file has been constructed from pieces by doing seek, write, seek,

[PATCH 5.7 385/477] perf probe: Fix user attribute access in kprobes

2020-06-23 Thread Greg Kroah-Hartman
From: Sumanth Korikkar [ Upstream commit 9256c3031eb9beafa3957c61093104c3c75a6148 ] Issue: # perf probe -a 'do_sched_setscheduler pid policy param->sched_priority@user' did not work before. Fix: Make: # perf probe -a 'do_sched_setscheduler pid policy param->sched_priority@user' output

[PATCH 5.7 375/477] iavf: fix speed reporting over virtchnl

2020-06-23 Thread Greg Kroah-Hartman
From: Brett Creeley [ Upstream commit e0ef26fbe2b0c62f42ba7667076dc38b693b6fb8 ] Link speeds are communicated over virtchnl using an enum virtchnl_link_speed. Currently, the highest link speed is 40Gbps which leaves us unable to reflect some speeds that an ice VF is capable of. This causes link

[PATCH 5.7 371/477] nvme-pci: use simple suspend when a HMB is enabled

2020-06-23 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit b97120b15ebd3de51325084136d3b9c3cce656d6 ] While the NVMe specification allows the device to access the host memory buffer in host DRAM from all power states, hosts will fail access to DRAM during S3 and similar power states. Fixes: d916b1be94b6

[PATCH 5.7 370/477] nvme-fc: dont call nvme_cleanup_cmd() for AENs

2020-06-23 Thread Greg Kroah-Hartman
From: Daniel Wagner [ Upstream commit c9c12e51b82b2bd0c59ac4e27ee5427f382a503f ] Asynchronous event notifications do not have an associated request. When fcp_io() fails we unconditionally call nvme_cleanup_cmd() which leads to a crash. Fixes: 16686f3a6c3c ("nvme: move common call to

[PATCH 5.7 420/477] sh: Convert iounmap() macros to inline functions

2020-06-23 Thread Greg Kroah-Hartman
From: Kuninori Morimoto commit 4580ba4ad2e6b8ddaada3db61d179d4dfac12047 upstream. Macro iounmap() do nothing, but that results in unused variable warnings all over the place. This patch convert it to inline to avoid warning We will get this warning without this patch

[PATCH 5.7 416/477] ext4: avoid utf8_strncasecmp() with unstable name

2020-06-23 Thread Greg Kroah-Hartman
From: Eric Biggers commit 2ce3ee931a097e9720310db3f09c01c825a4580c upstream. If the dentry name passed to ->d_compare() fits in dentry::d_iname, then it may be concurrently modified by a rename. This can cause undefined behavior (possibly out-of-bounds memory accesses or crashes) in

[PATCH 5.7 415/477] ext4: fix partial cluster initialization when splitting extent

2020-06-23 Thread Greg Kroah-Hartman
From: Jeffle Xu commit cfb3c85a600c6aa25a2581b3c1c4db3460f14e46 upstream. Fix the bug when calculating the physical block number of the first block in the split extent. This bug will cause xfstests shared/298 failure on ext4 with bigalloc enabled occasionally. Ext4 error messages indicate that

[PATCH 5.7 424/477] drm/amdgpu/display: use blanked rather than plane state for sync groups

2020-06-23 Thread Greg Kroah-Hartman
From: Alex Deucher commit b7f839d292948142eaab77cedd031aad0bfec872 upstream. We may end up with no planes set yet, depending on the ordering, but we should have the proper blanking state which is either handled by either DPG or TG depending on the hardware generation. Check both to determine

[PATCH 5.7 423/477] drm/qxl: Use correct notify port address when creating cursor ring

2020-06-23 Thread Greg Kroah-Hartman
From: Huacai Chen commit 80e5f89da3ab949fbbf1cae01dfaea29f5483a75 upstream. The command ring and cursor ring use different notify port addresses definition: QXL_IO_NOTIFY_CMD and QXL_IO_NOTIFY_CURSOR. However, in qxl_device_init() we use QXL_IO_NOTIFY_CMD to create both command ring and cursor

[PATCH 5.7 430/477] io_uring: fix io_kiocb.flags modification race in IOPOLL mode

2020-06-23 Thread Greg Kroah-Hartman
From: Xiaoguang Wang [ Upstream commit 65a6543da386838f935d2f03f452c5c0acff2a68 ] While testing io_uring in arm, we found sometimes io_sq_thread() keeps polling io requests even though there are not inflight io requests in block layer. After some investigations, found a possible race about

[PATCH 5.7 402/477] bnxt_en: Return from timer if interface is not in open state.

2020-06-23 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit e000940473d1423a42ef9c823fb23ccffe3f07ea ] This will avoid many uneccessary error logs when driver or firmware is in reset. Fixes: 230d1f0de754 ("bnxt_en: Handle firmware reset.") Signed-off-by: Vasundhara Volam Signed-off-by: Michael Chan

[PATCH 5.7 414/477] pinctrl: qcom: ipq6018 Add missing pins in qpic pin group

2020-06-23 Thread Greg Kroah-Hartman
From: Sivaprakash Murugesan [ Upstream commit 7f5f4de83ca30a4922bb178b80144e2778faad01 ] The patch adds missing qpic data pins to qpic pingroup. These pins are necessary for the qpic nand to work. Fixes: ef1ea54eab0e ("pinctrl: qcom: Add ipq6018 pinctrl driver") Signed-off-by: Sivaprakash

[PATCH 5.7 411/477] arm64: hw_breakpoint: Dont invoke overflow handler on uaccess watchpoints

2020-06-23 Thread Greg Kroah-Hartman
From: Will Deacon [ Upstream commit 24ebec25fb270100e252b19c288e21bd7d8cc7f7 ] Unprivileged memory accesses generated by the so-called "translated" instructions (e.g. STTR) at EL1 can cause EL0 watchpoints to fire unexpectedly if kernel debugging is enabled. In such cases, the hw_breakpoint

[PATCH 5.7 460/477] crypto: algif_skcipher - Cap recv SG list at ctx->used

2020-06-23 Thread Greg Kroah-Hartman
From: Herbert Xu commit 7cf81954705b7e5b057f7dc39a7ded54422ab6e1 upstream. Somewhere along the line the cap on the SG list length for receive was lost. This patch restores it and removes the subsequent test which is now redundant. Fixes: 2d97591ef43d ("crypto: af_alg - consolidation of...")

[PATCH 5.7 456/477] drm/i915/gt: Move vlv GT workarounds from init_clock_gating to workarounds

2020-06-23 Thread Greg Kroah-Hartman
From: Chris Wilson commit 695a2b11649e99bbf15d278042247042c42b8728 upstream. Rescue the GT workarounds from being buried inside init_clock_gating so that we remember to apply them after a GT reset, and that they are included in our verification that the workarounds are applied. Signed-off-by:

[PATCH 5.7 459/477] drm/i915/tgl: Make Wa_14010229206 permanent

2020-06-23 Thread Greg Kroah-Hartman
From: Swathi Dhanavanthri commit 63d0f3ea8ebb67160eca281320d255c72b0cb51a upstream. This workaround now applies to all steppings, not just A0. Wa_1409085225 is a temporary A0-only W/A however it is identical to Wa_14010229206 and hence the combined workaround is made permanent. Bspec: 52890

[PATCH 5.7 400/477] bnxt_en: Re-enable SRIOV during resume.

2020-06-23 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit 59ae210173ff86256fa0cdba4ea4d608c61e123d ] If VFs are enabled, we need to re-configure them during resume because firmware has been reset while resuming. Otherwise, the VFs won't work after resume. Fixes: c16d4ee0e397 ("bnxt_en: Refactor logic to re-enable

[PATCH 5.7 455/477] drm/i915/gt: Move ilk GT workarounds from init_clock_gating to workarounds

2020-06-23 Thread Greg Kroah-Hartman
From: Chris Wilson commit eacf21040aa97fd1b3c6bb201bfd43820e1c49be upstream. Rescue the GT workarounds from being buried inside init_clock_gating so that we remember to apply them after a GT reset, and that they are included in our verification that the workarounds are applied. Signed-off-by:

[PATCH 5.7 441/477] s390: fix syscall_get_error for compat processes

2020-06-23 Thread Greg Kroah-Hartman
From: Dmitry V. Levin commit b3583fca5fb654af2cfc1c08259abb9728272538 upstream. If both the tracer and the tracee are compat processes, and gprs[2] is assigned a value by __poke_user_compat, then the higher 32 bits of gprs[2] are cleared, IS_ERR_VALUE() always returns false, and

[PATCH 5.7 444/477] drm/i915/gem: Avoid iterating an empty list

2020-06-23 Thread Greg Kroah-Hartman
From: Chris Wilson commit 757a9395f33c51c4e6eff2c7c0fbd50226a58224 upstream. Our __sgt_iter assumes that the scattergather list has at least one element. But during construction we may fail in allocating the first page, and so mark the first element as the terminator. This is unexpected!

[PATCH 5.7 463/477] tracing/probe: Fix memleak in fetch_op_data operations

2020-06-23 Thread Greg Kroah-Hartman
From: Vamshi K Sthambamkadi commit 3aa8fdc37d16735e8891035becf25b3857d3efe0 upstream. kmemleak report: [<57dcc2ca>] __kmalloc_track_caller+0x139/0x2b0 [] kstrndup+0x37/0x80 [] parse_probe_arg.isra.7+0x3cc/0x630 [<055bf2ba>] traceprobe_parse_probe_arg+0x2f5/0x810 [<655a7766>]

[PATCH 5.7 471/477] kprobes: Fix to protect kick_kprobe_optimizer() by kprobe_mutex

2020-06-23 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 1a0aa991a6274161c95a844c58cfb801d681eb59 upstream. In kprobe_optimizer() kick_kprobe_optimizer() is called without kprobe_mutex, but this can race with other caller which is protected by kprobe_mutex. To fix that, expand kprobe_mutex protected area to protect

[PATCH 5.7 439/477] f2fs: split f2fs_d_compare() from f2fs_match_name()

2020-06-23 Thread Greg Kroah-Hartman
From: Eric Biggers [ Upstream commit f874fa1c7c7905c1744a2037a11516558ed00a81 ] Sharing f2fs_ci_compare() between comparing cached dentries (f2fs_d_compare()) and comparing on-disk dentries (f2fs_match_name()) doesn't work as well as intended, as these actions fundamentally differ in several

[PATCH 5.7 454/477] drm/i915/gt: Move snb GT workarounds from init_clock_gating to workarounds

2020-06-23 Thread Greg Kroah-Hartman
From: Chris Wilson commit fd2599bda5a989c3332f4956fd7760ec32bd51ee upstream. Rescue the GT workarounds from being buried inside init_clock_gating so that we remember to apply them after a GT reset, and that they are included in our verification that the workarounds are applied. Signed-off-by:

[PATCH 5.7 447/477] drm/amdkfd: Use correct major in devcgroup check

2020-06-23 Thread Greg Kroah-Hartman
From: Lorenz Brun commit 99c7b309472787026ce52fd2bc5d00630567a872 upstream. The existing code used the major version number of the DRM driver instead of the device major number of the DRM subsystem for validating access for a devices cgroup. This meant that accesses allowed by the devices

Re: Strange problem with SCTP+IPv6

2020-06-23 Thread Michael Tuexen
> On 23. Jun 2020, at 23:21, Marcelo Ricardo Leitner > wrote: > > On Tue, Jun 23, 2020 at 11:17:56AM -0500, Corey Minyard wrote: >> On Tue, Jun 23, 2020 at 01:17:28PM +, David Laight wrote: >>> From: Marcelo Ricardo Leitner Sent: 22 June 2020 19:33 On Mon, Jun 22, 2020 at

[PATCH 5.7 477/477] iommu/vt-d: Remove real DMA lookup in find_domain

2020-06-23 Thread Greg Kroah-Hartman
From: Jon Derrick commit bba9cc2cf82840bd3c9b3f4f7edac2dc8329c241 upstream. By removing the real DMA indirection in find_domain(), we can allow sub-devices of a real DMA device to have their own valid device_domain_info. The dmar lookup and context entry removal paths have been fixed to account

[PATCH 5.7 469/477] netfilter: nft_set_rbtree: Dont account for expired elements on insertion

2020-06-23 Thread Greg Kroah-Hartman
From: Stefano Brivio commit 33d077996a87175b155fe88030e8fec7ca76327e upstream. While checking the validity of insertion in __nft_rbtree_insert(), we currently ignore conflicting elements and intervals only if they are not active within the next generation. However, if we consider expired

[PATCH 5.7 406/477] block: Fix use-after-free in blkdev_get()

2020-06-23 Thread Greg Kroah-Hartman
From: Jason Yan [ Upstream commit 2d3a8e2deddea6c89961c422ec0c5b851e648c14 ] In blkdev_get() we call __blkdev_get() to do some internal jobs and if there is some errors in __blkdev_get(), the bdput() is called which means we have released the refcount of the bdev (actually the refcount of the

[PATCH 5.7 462/477] tracing: Make ftrace packed events have align of 1

2020-06-23 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit 4649079b9de1ad86be9f4c989373adb8235a8485 upstream. When using trace-cmd on 5.6-rt for the function graph tracer, the output was corrupted. It gave output like this: funcgraph_entry: func=0x depth=38982 funcgraph_entry: func=0x1

[PATCH 5.7 465/477] tools/bootconfig: Fix to use correct quotes for value

2020-06-23 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 272da3279df191f028fd63d1683e5ecd56fcb13b upstream. Fix bootconfig tool to select double or single quotes correctly according to the value. If a bootconfig value includes a double quote character, we must use single-quotes to quote that value. Link:

[PATCH 5.7 431/477] io_uring: dont fail links for EAGAIN error in IOPOLL mode

2020-06-23 Thread Greg Kroah-Hartman
From: Xiaoguang Wang [ Upstream commit 2d7d67920e5c8e0854df23ca77da2dd5880ce5dd ] In IOPOLL mode, for EAGAIN error, we'll try to submit io request again using io-wq, so don't fail rest of links if this io request has links. Cc: sta...@vger.kernel.org Signed-off-by: Xiaoguang Wang

[PATCH 5.7 438/477] net/mlx5: DR, Fix freeing in dr_create_rc_qp()

2020-06-23 Thread Greg Kroah-Hartman
From: Denis Efremov [ Upstream commit 47a357de2b6b706af3c9471d5042f9ba8907031e ] Variable "in" in dr_create_rc_qp() is allocated with kvzalloc() and should be freed with kvfree(). Fixes: 297cccebdc5a ("net/mlx5: DR, Expose an internal API to issue RDMA operations") Cc: sta...@vger.kernel.org

[PATCH 5.7 408/477] bareudp: Fixed configuration to avoid having garbage values

2020-06-23 Thread Greg Kroah-Hartman
From: Martin [ Upstream commit b15bb8817f991497d97ae55d8c0e349a9d1e1478 ] Code to initialize the conf structure while gathering the configuration of the device was missing. Fixes: 571912c69f0e ("net: UDP tunnel encapsulation module for tunnelling different protocols like MPLS, IP, NSH etc.")

[PATCH 5.7 442/477] drm/i915: Fix AUX power domain toggling across TypeC mode resets

2020-06-23 Thread Greg Kroah-Hartman
From: Imre Deak commit d96536f0fe699729a0974eb5b65eb0d87cc747e1 upstream. Make sure to select the port's AUX power domain while holding the TC port lock. The domain depends on the port's current TC mode, which may get changed under us if we're not holding the lock. This was left out from

[PATCH 5.4 011/314] ARM: dts: renesas: Fix IOMMU device node names

2020-06-23 Thread Greg Kroah-Hartman
From: Yoshihiro Shimoda [ Upstream commit ae990a1de014396ffc8d0fcc31b6888c9b0ce59a ] Fix IOMMU device node names as "iommu@". Fixes: bbb44da0b595 ("ARM: dts: r8a7743: Add IPMMU DT nodes") Fixes: 0dcba3de5835 ("ARM: dts: r8a7745: Add IPMMU DT nodes") Fixes: 350ae49b97c4 ("ARM: dts: r8a7744: Add

[PATCH 5.7 468/477] sample-trace-array: Fix sleeping function called from invalid context

2020-06-23 Thread Greg Kroah-Hartman
From: Kefeng Wang commit e9b7b1c0c103a623be1a65c39f98719803440871 upstream. BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/5 1 lock held by swapper/5/0: #0: 80001002bd90

[PATCH 5.4 014/314] ARM: dts: stm32: Add missing ethernet PHY reset on AV96

2020-06-23 Thread Greg Kroah-Hartman
From: Marek Vasut [ Upstream commit 010ca9fe500bfe365860b50220ff80541c18f0e1 ] Add PHY reset GPIO on AV96 ethernet PHY. Reviewed-by: Manivannan Sadhasivam Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: Manivannan Sadhasivam Cc: Maxime Coquelin Cc: Patrice Chotard Cc: Patrick

[PATCH 5.4 010/314] backlight: lp855x: Ensure regulators are disabled on probe failure

2020-06-23 Thread Greg Kroah-Hartman
From: Jon Hunter [ Upstream commit d8207c155a7c6015eb7f43739baa7dfb1fa638af ] If probing the LP885x backlight fails after the regulators have been enabled, then the following warning is seen when releasing the regulators ... WARNING: CPU: 1 PID: 289 at drivers/regulator/core.c:2051

[PATCH 5.7 473/477] powerpc/64s: Fix KVM interrupt using wrong save area

2020-06-23 Thread Greg Kroah-Hartman
From: Nicholas Piggin commit 0bdcfa182506526fbe4e088ff9ca86a31b81828d upstream. The CTR register reload in the KVM interrupt path used the wrong save area for SLB (and NMI) interrupts. Fixes: 9600f261acaa ("powerpc/64s/exception: Move KVM test to common code") Cc: sta...@vger.kernel.org #

[PATCH 5.4 001/314] power: supply: bq24257_charger: Replace depends on REGMAP_I2C with select

2020-06-23 Thread Greg Kroah-Hartman
From: Enric Balletbo i Serra [ Upstream commit 87c3d579c8ed0eaea6b1567d529a8daa85a2bc6c ] regmap is a library function that gets selected by drivers that need it. No driver modules should depend on it. Depending on REGMAP_I2C makes this driver only build if another driver already selected

[PATCH 5.4 020/314] PCI: Allow pci_resize_resource() for devices on root bus

2020-06-23 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit d09ddd8190fbdc07696bf34b548ae15aa1816714 ] When resizing a BAR, pci_reassign_bridge_resources() is invoked to bring the bridge windows of parent bridges in line with the new BAR assignment. This assumes the device whose BAR is being resized lives on a

Re: process '/usr/bin/rsync' started with executable stack

2020-06-23 Thread Alexey Dobriyan
On Wed, Jun 24, 2020 at 12:12:18AM +0300, Alexey Dobriyan wrote: > On Tue, Jun 23, 2020 at 10:39:26AM -0700, Christian Kujau wrote: > > Hi, > > > > exactly this[0] happened today, on a 5.6.5 kernel: > > > > process '/usr/bin/rsync' started with executable stack > > > > But I can't reproduce

[PATCH] MIPS: ingenic: gcw0: Fix HP detection GPIO.

2020-06-23 Thread João H . Spies
Previously marked as active high, but is in reality active low. Cc: sta...@vger.kernel.org Fixes: b1bfdb660516 ("MIPS: ingenic: DTS: Update GCW0 support") Signed-off-by: João H. Spies --- arch/mips/boot/dts/ingenic/gcw0.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 5.4 041/314] arm64: dts: fvp: Fix GIC child nodes

2020-06-23 Thread Greg Kroah-Hartman
From: Andre Przywara [ Upstream commit 78631aecc52c4b2adcf611769df2ff9c67ac16d0 ] The GIC DT nodes for the fastmodels were not fully compliant with the DT binding, which has certain expectations about child nodes and their size and address cells values. Use smaller #address-cells and

[PATCH 5.4 003/314] ASoC: tegra: tegra_wm8903: Support nvidia, headset property

2020-06-23 Thread Greg Kroah-Hartman
From: Dmitry Osipenko [ Upstream commit 3ef9d5073b552d56bd6daf2af1e89b7e8d4df183 ] The microphone-jack state needs to be masked in a case of a 4-pin jack when microphone and ground pins are shorted. Presence of nvidia,headset tells that WM8903 CODEC driver should mask microphone's status if

[PATCH 5.4 008/314] clk: qcom: msm8916: Fix the address location of pll->config_reg

2020-06-23 Thread Greg Kroah-Hartman
From: Bryan O'Donoghue [ Upstream commit f47ab3c2f5338828a67e89d5f688d2cef9605245 ] During the process of debugging a processor derived from the msm8916 which we found the new processor was not starting one of its PLLs. After tracing the addresses and writes that downstream was doing and

[PATCH 5.4 042/314] PCI: aardvark: Dont blindly enable ASPM L0s and dont write to read-only register

2020-06-23 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit 90c6cb4a355e7befcb557d217d1d8b8bd5875a05 ] Trying to change Link Status register does not have any effect as this is a read-only register. Trying to overwrite bits for Negotiated Link Width does not make sense. In future proper change of link width can be

[PATCH 5.4 000/314] 5.4.49-rc1 review

2020-06-23 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.49 release. There are 314 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu, 25 Jun 2020 19:52:30 +. Anything

Re: Strange problem with SCTP+IPv6

2020-06-23 Thread 'Marcelo Ricardo Leitner'
On Tue, Jun 23, 2020 at 11:17:56AM -0500, Corey Minyard wrote: > On Tue, Jun 23, 2020 at 01:17:28PM +, David Laight wrote: > > From: Marcelo Ricardo Leitner > > > Sent: 22 June 2020 19:33 > > > On Mon, Jun 22, 2020 at 08:01:24PM +0200, Michael Tuexen wrote: > > > > > On 22. Jun 2020, at 18:57,

[PATCH 5.4 022/314] Input: edt-ft5x06 - fix get_default register write access

2020-06-23 Thread Greg Kroah-Hartman
From: Marco Felsch [ Upstream commit 255cdaf73412de13608fb776101402dca68bed2b ] Since commit b6eba86030bf ("Input: edt-ft5x06 - add offset support for ev-ft5726") offset-x and offset-y is supported. Devices using those offset parameters don't support the offset parameter so we need to add the

[PATCH 5.4 016/314] scsi: qedi: Check for buffer overflow in qedi_set_path()

2020-06-23 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 4a4c0cfb4be74e216dd4446b254594707455bfc6 ] Smatch complains that the "path_data->handle" variable is user controlled. It comes from iscsi_set_path() so that seems possible. It's harmless to add a limit check. The qedi->ep_tbl[] array has

[PATCH 5.4 017/314] arm64: dts: meson: fixup SCP sram nodes

2020-06-23 Thread Greg Kroah-Hartman
From: Neil Armstrong [ Upstream commit 9ecded10b4b6af238da0c86197b0418912e7513e ] The GX and AXG SCP sram nodes were using invalid compatible and node names for the sram entries. Fixup the sram entries node names, and use proper compatible for them. It notably fixes: sram@c800:

[PATCH 5.4 030/314] usblp: poison URBs upon disconnect

2020-06-23 Thread Greg Kroah-Hartman
From: Oliver Neukum [ Upstream commit 296a193b06120aa6ae7cf5c0d7b5e5b55968026e ] syzkaller reported an URB that should have been killed to be active. We do not understand it, but this should fix the issue if it is real. Signed-off-by: Oliver Neukum Reported-by:

[PATCH 5.4 082/314] apparmor: fix nnp subset test for unconfined

2020-06-23 Thread Greg Kroah-Hartman
From: John Johansen [ Upstream commit 3ed4aaa94fc07db3cd0c91be95e3e1b9782a2710 ] The subset test is not taking into account the unconfined exception which will cause profile transitions in the stacked confinement case to fail when no_new_privs is applied. This fixes a regression introduced in

Re: [PATCH v2 2/2] arm64/build: Warn on orphan section placement

2020-06-23 Thread Ard Biesheuvel
On Tue, 23 Jun 2020 at 23:06, Kees Cook wrote: > > On Tue, Jun 23, 2020 at 04:59:39PM +0200, Ard Biesheuvel wrote: > > On Tue, 23 Jun 2020 at 16:52, Will Deacon wrote: > > > > > > On Mon, Jun 22, 2020 at 01:58:15PM -0700, Kees Cook wrote: > > > > We don't want to depend on the linker's orphan

[PATCH 5.4 043/314] ps3disk: use the default segment boundary

2020-06-23 Thread Greg Kroah-Hartman
From: Emmanuel Nicolet [ Upstream commit 720bc316690bd27dea9d71510b50f0cd698ffc32 ] Since commit dcebd755926b ("block: use bio_for_each_bvec() to compute multi-page bvec count"), the kernel will bug_on on the PS3 because bio_split() is called with sectors == 0: kernel BUG at

[PATCH 5.4 055/314] scsi: cxgb3i: Fix some leaks in init_act_open()

2020-06-23 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit b6170a49c59c27a10efed26c5a2969403e69aaba ] There wasn't any clean up done if cxgb3_alloc_atid() failed and also the original code didn't release "csk->l2t". Link: https://lore.kernel.org/r/20200521121221.GA247492@mwanda Fixes: 6f7efaabefeb ("[SCSI] cxgb3i:

Re: [PATCH] scsi: lpfc: Avoid another null dereference in lpfc_sli4_hba_unset()

2020-06-23 Thread James Smart
On 6/23/2020 1:41 AM, SeongJae Park wrote: From: SeongJae Park Commit cdb42becdd40 ("scsi: lpfc: Replace io_channels for nvme and fcp with general hdw_queues per cpu") has introduced static checker warnings for potential null dereferences in 'lpfc_sli4_hba_unset()' and commit 1ffdd2c0440d

[PATCH 5.4 079/314] bpf, sockhash: Fix memory leak when unlinking sockets in sock_hash_free

2020-06-23 Thread Greg Kroah-Hartman
From: Jakub Sitnicki [ Upstream commit 33a7c831565c43a7ee2f38c7df4c4a40e1dfdfed ] When sockhash gets destroyed while sockets are still linked to it, we will walk the bucket lists and delete the links. However, we are not freeing the list elements after processing them, leaking the memory. The

[PATCH 5.4 049/314] PCI: pci-bridge-emul: Fix PCIe bit conflicts

2020-06-23 Thread Greg Kroah-Hartman
From: Jon Derrick [ Upstream commit c88d19181771bd189147681ef38fc1533ebeff4c ] This patch fixes two bit conflicts in the pci-bridge-emul driver: 1. Bit 3 of Device Status (19 of Device Control) is marked as both Write-1-to-Clear and Read-Only. It should be Write-1-to-Clear. The Read-Only

[PATCH 5.4 048/314] scsi: hisi_sas: Do not reset phy timer to wait for stray phy up

2020-06-23 Thread Greg Kroah-Hartman
From: Luo Jiaxing [ Upstream commit e16b9ed61e078d836a0f24a82080cf29d7539c7e ] We found out that after phy up, the hardware reports another oob interrupt but did not follow a phy up interrupt: oob ready -> phy up -> DEV found -> oob read -> wait phy up -> timeout We run link reset when wait

[PATCH 5.4 031/314] serial: 8250: Fix max baud limit in generic 8250 port

2020-06-23 Thread Greg Kroah-Hartman
From: Serge Semin [ Upstream commit 7b668c064ec33f3d687c3a413d05e355172e6c92 ] Standard 8250 UART ports are designed in a way so they can communicate with baud rates up to 1/16 of a reference frequency. It's expected from most of the currently supported UART controllers. That's why the former

[PATCH 5.4 052/314] usb: gadget: core: sync interrupt before unbind the udc

2020-06-23 Thread Greg Kroah-Hartman
From: Peter Chen [ Upstream commit 3c73bc52195def14165c3a7d91bdbb33b51725f5 ] The threaded interrupt handler may still be called after the usb_gadget_disconnect is called, it causes the structures used at interrupt handler was freed before it uses, eg the usb_request. This issue usually occurs

[PATCH 5.4 045/314] vfio/pci: fix memory leaks in alloc_perm_bits()

2020-06-23 Thread Greg Kroah-Hartman
From: Qian Cai [ Upstream commit 3e63b94b6274324ff2e7d8615df31586de827c4e ] vfio_pci_disable() calls vfio_config_free() but forgets to call free_perm_bits() resulting in memory leaks, unreferenced object 0xc00c4db2dee0 (size 16): comm "qemu-kvm", pid 4305, jiffies 4295020272 (age

[PATCH 5.4 047/314] RDMA/mlx5: Add init2init as a modify command

2020-06-23 Thread Greg Kroah-Hartman
From: Aharon Landau [ Upstream commit 819f7427bafd494ef7ca4942ec6322db20722d7b ] Missing INIT2INIT entry in the list of modify commands caused DEVX applications to be unable to modify_qp for this transition state. Add the MLX5_CMD_OP_INIT2INIT_QP opcode to the list of allowed DEVX opcodes.

[PATCH 5.4 044/314] arm64: dts: fvp/juno: Fix node address fields

2020-06-23 Thread Greg Kroah-Hartman
From: Andre Przywara [ Upstream commit bb5cce12ac717c7462217cd493ed701d12d6dbce ] The Arm Ltd. boards were using an outdated address convention in the DT node names, by separating the high from the low 32-bits of an address by a comma. Remove the comma from the node name suffix to be DT spec

[PATCH 5.4 053/314] powerpc/ptdump: Add _PAGE_COHERENT flag

2020-06-23 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 3af4786eb429b2df76cbd7ce3bae21467ac3e4fb ] For platforms using shared.c (4xx, Book3e, Book3s/32), also handle the _PAGE_COHERENT flag which corresponds to the M bit of the WIMG flags. Signed-off-by: Christophe Leroy [mpe: Make it more verbose, use

[PATCH 5.4 062/314] nfsd: Fix svc_xprt refcnt leak when setup callback client failed

2020-06-23 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit a4abc6b12eb1f7a533c2e7484cfa555454ff0977 ] nfsd4_process_cb_update() invokes svc_xprt_get(), which increases the refcount of the "c->cn_xprt". The reference counting issue happens in one exception handling path of nfsd4_process_cb_update(). When setup callback

[PATCH 5.4 074/314] apparmor: fix introspection of of task mode for unconfined tasks

2020-06-23 Thread Greg Kroah-Hartman
From: John Johansen [ Upstream commit dd2569fbb053719f7df7ef8fdbb45cf47156a701 ] Fix two issues with introspecting the task mode. 1. If a task is attached to a unconfined profile that is not the ns->unconfined profile then. Mode the mode is always reported as - $ ps -Z LABEL

<    1   2   3   4   5   6   7   8   9   10   >