[PATCH 5.7 093/112] cifs: Fix the target file was deleted when rename failed.

2020-07-07 Thread Greg Kroah-Hartman
From: Zhang Xiaoxu commit 9ffad9263b467efd8f8dc7ae1941a0a655a2bab2 upstream. When xfstest generic/035, we found the target file was deleted if the rename return -EACESS. In cifs_rename2, we unlink the positive target dentry if rename failed with EACESS or EEXIST, even if the target dentry is po

[PATCH 5.7 063/112] security: Fix hook iteration and default value for inode_copy_up_xattr

2020-07-07 Thread Greg Kroah-Hartman
From: KP Singh [ Upstream commit 23e390cdbe6f85827a43d38f9288dcd3066fa376 ] inode_copy_up_xattr returns 0 to indicate the acceptance of the xattr and 1 to reject it. If the LSM does not know about the xattr, it's expected to return -EOPNOTSUPP, which is the correct default value for this hook. B

[PATCH 5.7 023/112] powerpc/book3s64/kvm: Fix secondary page table walk warning during migration

2020-07-07 Thread Greg Kroah-Hartman
From: Aneesh Kumar K.V [ Upstream commit bf8036a4098d1548cdccf9ed5c523ef4e83e3c68 ] This patch fixes the below warning reported during migration: find_kvm_secondary_pte called with kvm mmu_lock not held CPU: 23 PID: 5341 Comm: qemu-system-ppc Tainted: GW 5.7.0-rc5-kvm-00211

[PATCH 5.7 084/112] io_uring: fix regression with always ignoring signals in io_cqring_wait()

2020-07-07 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit b7db41c9e03b5189bc94993bd50e4506ac9e34c1 ] When switching to TWA_SIGNAL for task_work notifications, we also made any signal based condition in io_cqring_wait() return -ERESTARTSYS. This breaks applications that rely on using signals to abort someone waiting fo

Re: [PATCH 1/2] mm/slub: Introduce two counters for the partial objects

2020-07-07 Thread Pekka Enberg
Hi! (Sorry for the delay, I missed your response.) On Fri, Jul 3, 2020 at 12:38 PM xunlei wrote: > > On 2020/7/2 PM 7:59, Pekka Enberg wrote: > > On Thu, Jul 2, 2020 at 11:32 AM Xunlei Pang > > wrote: > >> The node list_lock in count_partial() spend long time iterating > >> in case of large am

[PATCH 5.7 061/112] cxgb4: use correct type for all-mask IP address comparison

2020-07-07 Thread Greg Kroah-Hartman
From: Rahul Lakkireddy [ Upstream commit f286dd8eaad5a2758750f407ab079298e0bcc8a5 ] Use correct type to check for all-mask exact match IP addresses. Fixes following sparse warnings due to big endian value checks against 0x in is_addr_all_mask(): cxgb4_filter.c:977:25: warning: restricte

[PATCH 5.7 058/112] cxgb4: use unaligned conversion for fetching timestamp

2020-07-07 Thread Greg Kroah-Hartman
From: Rahul Lakkireddy [ Upstream commit 589b1c9c166dce120e27b32a83a78f55464a7ef9 ] Use get_unaligned_be64() to fetch the timestamp needed for ns_to_ktime() conversion. Fixes following sparse warning: sge.c:3282:43: warning: cast to restricted __be64 Fixes: a456950445a0 ("cxgb4: time stamping

[PATCH 5.7 060/112] cxgb4: fix endian conversions for L4 ports in filters

2020-07-07 Thread Greg Kroah-Hartman
From: Rahul Lakkireddy [ Upstream commit 63b53b0b99cd5f2d9754a21eda2ed8e706646cc9 ] The source and destination L4 ports in filter offload need to be in CPU endian. They will finally be converted to Big Endian after all operations are done and before giving them to hardware. The L4 ports for NAT

[PATCH 5.7 088/112] padata: upgrade smp_mb__after_atomic to smp_mb in padata_do_serial

2020-07-07 Thread Greg Kroah-Hartman
From: Daniel Jordan commit e04ec0de61c1eb9693179093e83ab8ca68a30d08 upstream. A 5.7 kernel hangs during a tcrypt test of padata that waits for an AEAD request to finish. This is only seen on large machines running many concurrent requests. The issue is that padata never serializes the request.

[PATCH 5.7 100/112] MIPS: lantiq: xway: sysctrl: fix the GPHY clock alias names

2020-07-07 Thread Greg Kroah-Hartman
From: Martin Blumenstingl commit 03e62fd67d3ab33f39573fc8787d89dc9b4d7255 upstream. The dt-bindings for the GSWIP describe that the node should be named "switch". Use the same name in sysctrl.c so the GSWIP driver can actually find the "gphy0" and "gphy1" clocks. Fixes: 14fceff4771e51 ("net: ds

[PATCH 5.7 092/112] SMB3: Honor handletimeout flag for multiuser mounts

2020-07-07 Thread Greg Kroah-Hartman
From: Paul Aurich commit 6b356f6cf941d5054d7fab072cae4a5f8658e3db upstream. Fixes: ca567eb2b3f0 ("SMB3: Allow persistent handle timeout to be configurable on mount") Signed-off-by: Paul Aurich CC: Stable Signed-off-by: Steve French Reviewed-by: Aurelien Aptel Signed-off-by: Greg Kroah-Hartm

[PATCH 5.7 039/112] io_uring: fix current->mm NULL dereference on exit

2020-07-07 Thread Greg Kroah-Hartman
From: Pavel Begunkov [ Upstream commit d60b5fbc1ce8210759b568da49d149b868e7c6d3 ] Don't reissue requests from io_iopoll_reap_events(), the task may not have mm, which ends up with NULL. It's better to kill everything off on exit anyway. [ 677.734670] RIP: 0010:io_iopoll_complete+0x27e/0x630 ..

[PATCH 5.7 070/112] kthread: save thread function

2020-07-07 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 52782c92ac85c4e393eb4a903a62e6c24afa633f ] It's handy to keep the kthread_fn just as a unique cookie to identify classes of kthreads. E.g. if you can verify that a given task is running your thread_fn, then you may know what sort of type kthread_data poin

[PATCH 5.7 076/112] SMB3: Honor posix flag for multiuser mounts

2020-07-07 Thread Greg Kroah-Hartman
From: Paul Aurich [ Upstream commit 5391b8e1b7b7e5cfa2dd4ffdc4b8c6b64dfd1866 ] The flag from the primary tcon needs to be copied into the volume info so that cifs_get_tcon will try to enable extensions on the per-user tcon. At that point, since posix extensions must have already been enabled on

[PATCH 5.7 087/112] Revert "ALSA: usb-audio: Improve frames size computation"

2020-07-07 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit d288dc74f8cf95cb7ae0aaf245b7128627a49bf3 which is commit f0bd62b64016508938df9babe47f65c2c727d25c upstream. It causes a number of reported issues and a fix for it has not hit Linus's tree yet. Revert this to resolve those problems. Cc: Alexander Tso

[PATCH 5.7 072/112] nfsd4: fix nfsdfs reference count loop

2020-07-07 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 681370f4b00af0fcc65bbfb9f82de526ab7ceb0a ] We don't drop the reference on the nfsdfs filesystem with mntput(nn->nfsd_mnt) until nfsd_exit_net(), but that won't be called until the nfsd module's unloaded, and we can't unload the module as long as there's a

[PATCH 5.7 111/112] dm zoned: assign max_io_len correctly

2020-07-07 Thread Greg Kroah-Hartman
From: Hou Tao commit 7b2377486767503d47265e4d487a63c651f6b55d upstream. The unit of max_io_len is sector instead of byte (spotted through code review), so fix it. Fixes: 3b1a94c88b79 ("dm zoned: drive-managed zoned block device target") Cc: sta...@vger.kernel.org Signed-off-by: Hou Tao Reviewe

[PATCH 5.7 112/112] efi: Make it possible to disable efivar_ssdt entirely

2020-07-07 Thread Greg Kroah-Hartman
From: Peter Jones commit 435d1a471598752446a72ad1201b3c980526d869 upstream. In most cases, such as CONFIG_ACPI_CUSTOM_DSDT and CONFIG_ACPI_TABLE_UPGRADE, boot-time modifications to firmware tables are tied to specific Kconfig options. Currently this is not the case for modifying the ACPI SSDT v

[PATCH 5.7 097/112] ACPI: fan: Fix Tiger Lake ACPI device ID

2020-07-07 Thread Greg Kroah-Hartman
From: Sumeet Pawnikar commit 0318e8374e87b32def1d5c279013ca7730a74982 upstream. Tiger Lake's new unique ACPI device ID for Fan is not valid because of missing 'C' in the ID. Use correct fan device ID. Fixes: c248dfe7e0ca ("ACPI: fan: Add Tiger Lake ACPI device ID") Signed-off-by: Sumeet Pawnik

[PATCH 5.7 094/112] Drivers: hv: Change flag to write log level in panic msg to false

2020-07-07 Thread Greg Kroah-Hartman
From: Joseph Salisbury commit 77b48bea2fee47c15a835f6725dd8df0bc38375a upstream. When the kernel panics, one page of kmsg data may be collected and sent to Hyper-V to aid in diagnosing the failure. The collected kmsg data typically contains 50 to 100 lines, each of which has a log level prefix

[PATCH 5.7 096/112] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-07 Thread Greg Kroah-Hartman
From: Finley Xiao commit 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb upstream. The function cpu_power_to_freq is used to find a frequency and set the cooling device to consume at most the power to be converted. For example, if the power to be converted is 80mW, and the em table is as follow. struct

[PATCH 5.7 059/112] cxgb4: parse TC-U32 key values and masks natively

2020-07-07 Thread Greg Kroah-Hartman
From: Rahul Lakkireddy [ Upstream commit 27f78cb245abdb86735529c13b0a579f57829e71 ] TC-U32 passes all keys values and masks in __be32 format. The parser already expects this and hence pass the value and masks in __be32 natively to the parser. Fixes following sparse warnings in several places: c

[PATCH 5.7 103/112] drm/amd/powerplay: Fix NULL dereference in lock_bus() on Vega20 w/o RAS

2020-07-07 Thread Greg Kroah-Hartman
From: Ivan Mironov commit 7e89e4aaa9ae83107d059c186955484b3aa6eb23 upstream. I updated my system with Radeon VII from kernel 5.6 to kernel 5.7, and following started to happen on each boot: ... BUG: kernel NULL pointer dereference, address: 0128 ... C

[PATCH 5.7 108/112] irqchip/gic: Atomically update affinity

2020-07-07 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 005c34ae4b44f085120d7f371121ec7ded677761 upstream. The GIC driver uses a RMW sequence to update the affinity, and relies on the gic_lock_irqsave/gic_unlock_irqrestore sequences to update it atomically. But these sequences only expand into anything meaningful if the BL_

[PATCH 5.7 102/112] drm/i915: Include asm sources for {ivb, hsw}_clear_kernel.c

2020-07-07 Thread Greg Kroah-Hartman
From: Rodrigo Vivi commit 55fd7e0222ea01246ef3e6aae28b5721fdfb790f upstream. Alexandre Oliva has recently removed these files from Linux Libre with concerns that the sources weren't available. The sources are available on IGT repository, and only open source tools are used to generate the {ivb,

arch/mips/boot/compressed/../../../../lib/xz/xz_crc32.c:54: undefined reference to `__ubsan_handle_type_mismatch_v1'

2020-07-07 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bfe91da29bfad9941d5d703d45e29f0812a20724 commit: 8d58f222e85f01da0c0e1fc1e77986c86de889e2 ubsan: disable UBSAN_ALIGNMENT under COMPILE_TEST date: 9 weeks ago config: mips-randconfig-r034-20200707

[PATCH 5.7 089/112] SMB3: Honor seal flag for multiuser mounts

2020-07-07 Thread Greg Kroah-Hartman
From: Paul Aurich commit cc15461c73d7d044d56c47e869a215e49bd429c8 upstream. Ensure multiuser SMB3 mounts use encryption for all users' tcons if the mount options are configured to require encryption. Without this, only the primary tcon and IPC tcons are guaranteed to be encrypted. Per-user tcons

[PATCH 5.7 086/112] nfsd: apply umask on fs without ACL support

2020-07-07 Thread Greg Kroah-Hartman
From: J. Bruce Fields commit 22cf8419f1319ff87ec759d0ebdff4cbafaee832 upstream. The server is failing to apply the umask when creating new objects on filesystems without ACL support. To reproduce this, you need to use NFSv4.2 and a client and server recent enough to support umask, and you need

[PATCH 5.7 099/112] x86/split_lock: Dont write MSR_TEST_CTRL on CPUs that arent whitelisted

2020-07-07 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 009bce1df0bb5eb970b9eb98d963861f7fe353c7 upstream. Choo! Choo! All aboard the Split Lock Express, with direct service to Wreckage! Skip split_lock_verify_msr() if the CPU isn't whitelisted as a possible SLD-enabled CPU model to avoid writing MSR_TEST_CTRL. MSR

[PATCH 5.7 083/112] i2c: mlxcpld: check correct size of maximum RECV_LEN packet

2020-07-07 Thread Greg Kroah-Hartman
From: Wolfram Sang [ Upstream commit 597911287fcd13c3a4b4aa3e0a52b33d431e0a8e ] I2C_SMBUS_BLOCK_MAX defines already the maximum number as defined in the SMBus 2.0 specs. I don't see a reason to add 1 here. Also, fix the errno to what is suggested for this error. Fixes: c9bfdc7c16cb ("i2c: mlxcp

[PATCH 5.7 109/112] mm/hugetlb.c: fix pages per hugetlb calculation

2020-07-07 Thread Greg Kroah-Hartman
From: Mike Kravetz commit 1139d336fff425f9a20374945cdd28eb44d09fa8 upstream. The routine hpage_nr_pages() was incorrectly used to calculate the number of base pages in a hugetlb page. hpage_nr_pages is designed to be called for THP pages and will return HPAGE_PMD_NR for hugetlb pages of any siz

[PATCH 5.7 081/112] i2c: algo-pca: Add 0x78 as SCL stuck low status for PCA9665

2020-07-07 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit cd217f2300793a106b49c7dfcbfb26e348bc7593 ] The PCA9665 datasheet says that I2CSTA = 78h indicates that SCL is stuck low, this differs to the PCA9564 which uses 90h for this indication. Treat either 0x78 or 0x90 as an indication that the SCL line is stuck. B

[PATCH 5.7 101/112] MIPS: Add missing EHB in mtc0 -> mfc0 sequence for DSPen

2020-07-07 Thread Greg Kroah-Hartman
From: Hauke Mehrtens commit fcec538ef8cca0ad0b84432235dccd9059c8e6f8 upstream. This resolves the hazard between the mtc0 in the change_c0_status() and the mfc0 in configure_exception_vector(). Without resolving this hazard configure_exception_vector() could read an old value and would restore th

[PATCH 5.7 075/112] virtio-blk: free vblk-vqs in error path of virtblk_probe()

2020-07-07 Thread Greg Kroah-Hartman
From: Hou Tao [ Upstream commit e7eea44eefbdd5f0345a0a8b80a3ca1c21030d06 ] Else there will be memory leak if alloc_disk() fails. Fixes: 6a27b656fc02 ("block: virtio-blk: support multi virt queues per virtio-blk device") Signed-off-by: Hou Tao Reviewed-by: Stefano Garzarella Reviewed-by: Ming

[PATCH 5.7 057/112] hsr: avoid to create proc file after unregister

2020-07-07 Thread Greg Kroah-Hartman
From: Taehee Yoo [ Upstream commit de0083c7ed7dba036d1ed6e012157649d45313c8 ] When an interface is being deleted, "/proc/net/dev_snmp6/" is deleted. The function for this is addrconf_ifdown() in the addrconf_notify() and it is called by notification, which is NETDEV_UNREGISTER. But, if NETDEV_CH

[PATCH 5.4 01/65] io_uring: make sure async workqueue is canceled on exit

2020-07-07 Thread Greg Kroah-Hartman
From: Jens Axboe Track async work items that we queue, so we can safely cancel them if the ring is closed or the process exits. Newer kernels handle this automatically with io-wq, but the old workqueue based setup needs a bit of special help to get there. There's no upstream variant of this, as

[PATCH 5.7 069/112] thermal/drivers/rcar_gen3: Fix undefined temperature if negative

2020-07-07 Thread Greg Kroah-Hartman
From: Dien Pham [ Upstream commit 5f8f06425a0dcdad7bedbb77e67f5c65ab4dacfc ] As description for DIV_ROUND_CLOSEST in file include/linux/kernel.h. "Result is undefined for negative divisors if the dividend variable type is unsigned and for negative dividends if the divisor variable type i

[PATCH 5.7 029/112] usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect

2020-07-07 Thread Greg Kroah-Hartman
From: Zqiang [ Upstream commit 28ebeb8db77035e058a510ce9bd17c2b9a009dba ] BUG: memory leak unreferenced object 0x888055046e00 (size 256): comm "kworker/2:9", pid 2570, jiffies 4294942129 (age 1095.500s) hex dump (first 32 bytes): 00 70 04 55 80 88 ff ff 18 bb 5a 81 ff ff ff ff .p.U.

[PATCH 5.7 066/112] scsi: qla2xxx: Fix a condition in qla2x00_find_all_fabric_devs()

2020-07-07 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 1fc98aaf7f85fadcca57c4a86ef17e1940cad2d3 ] This code doesn't make sense unless the correct "fcport" was found. Link: https://lore.kernel.org/r/20200619143041.GD267142@mwanda Fixes: 9dd9686b1419 ("scsi: qla2xxx: Add changes for devloss timeout in driver") Re

[PATCH 5.7 031/112] tools lib traceevent: Handle __attribute__((user)) in field names

2020-07-07 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) [ Upstream commit 74621d929d944529a5e2878a84f48bfa6fb69a66 ] Commit c61f13eaa1ee1 ("gcc-plugins: Add structleak for more stack initialization") added "__attribute__((user))" to the user when stackleak detector is enabled. This now appears in the field format of syst

[PATCH 5.7 065/112] hwmon: (acpi_power_meter) Fix potential memory leak in acpi_power_meter_add()

2020-07-07 Thread Greg Kroah-Hartman
From: Misono Tomohiro [ Upstream commit 8b97f9922211c44a739c5cbd9502ecbb9f17f6d1 ] Although it rarely happens, we should call free_capabilities() if error happens after read_capabilities() to free allocated strings. Fixes: de584afa5e188 ("hwmon driver for ACPI 4.0 power meters") Signed-off-by:

[PATCH 5.7 030/112] tools lib traceevent: Add append() function helper for appending strings

2020-07-07 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) [ Upstream commit 27d4d336f2872193e90ee5450559e1699fae0f6d ] There's several locations that open code realloc and strcat() to append text to strings. Add an append() function that takes a delimiter and a string to append to another string. Signed-off-by: Steven Ros

Re: [PATCH 1/5] net: fec: properly support external PTP PHY for hardware time stamping

2020-07-07 Thread Sergey Organov
Vladimir Oltean writes: > On Mon, Jul 06, 2020 at 09:33:30PM +0300, Sergey Organov wrote: [...] > >> I'll then make these 2 changes separate in v2 indeed, though I'm not >> aware about Fixes: tag and if I should do something about it. Any clues? >> > > Add these 2 lines to your .gitconfig file

[PATCH 5.7 053/112] irqchip/gic-v4.1: Use readx_poll_timeout_atomic() to fix sleep in atomic

2020-07-07 Thread Greg Kroah-Hartman
From: Zenghui Yu [ Upstream commit 31dbb6b1d025506b3b8b8b74e9b697df47b9f696 ] readx_poll_timeout() can sleep if @sleep_us is specified by the caller, and is therefore unsafe to be used inside the atomic context, which is this case when we use it to poll the GICR_VPENDBASER.Dirty bit in irq_set_v

[PATCH 2/2] selftest/cpuidle: Add support for cpuidle latency measurement

2020-07-07 Thread Pratik Rajesh Sampat
This patch adds support to trace IPI based and timer based wakeup latency from idle states Latches onto the test-cpuidle_latency kernel module using the debugfs interface to send IPIs or schedule a timer based event, which in-turn populates the debugfs with the latency measurements. Currently for

[PATCH 5.7 051/112] net: enetc: add hw tc hw offload features for PSPF capability

2020-07-07 Thread Greg Kroah-Hartman
From: Po Liu [ Upstream commit 79e499829f3ff5b8f70c87baf1b03ebb3401a3e4 ] This patch is to let ethtool enable/disable the tc flower offload features. Hardware ENETC has the feature of PSFP which is for per-stream policing. When enable the tc hw offloading feature, driver would enable the IEEE 80

[PATCH 0/2] Selftest for cpuidle latency measurement

2020-07-07 Thread Pratik Rajesh Sampat
The patch series introduces a mechanism to measure wakeup latency for IPI and timer based interrupts The motivation behind this series is to find significant deviations behind advertised latency and resisdency values To achieve this, we introduce a kernel module and expose its control knobs throug

[PATCH 5.7 041/112] Revert "tpm: selftest: cleanup after unseal with wrong auth/policy test"

2020-07-07 Thread Greg Kroah-Hartman
From: Jarkko Sakkinen commit 5be206eaac9a68992fc3b06fb5dd5634e323de86 upstream. The reverted commit illegitly uses tpm2-tools. External dependencies are absolutely forbidden from these tests. There is also the problem that clearing is not necessarily wanted behavior if the test/target computer i

[PATCH 5.7 037/112] nvme-multipath: fix deadlock due to head->lock

2020-07-07 Thread Greg Kroah-Hartman
From: Anton Eidelman [ Upstream commit d8a22f85609fadb46ba699e0136cc3ebdeebff79 ] In the following scenario scan_work and ana_work will deadlock: When scan_work calls nvme_mpath_add_disk() this holds ana_lock and invokes nvme_parse_ana_log(), which may issue IO in device_add_disk() and hang wai

Re: [PATCH v2 05/15] tools lib traceevent: Introduced new traceevent API, for adding new plugins directories.

2020-07-07 Thread Steven Rostedt
On Wed, 8 Jul 2020 00:06:38 +0900 Namhyung Kim wrote: > > > > +/** > > + * tep_add_plugin_path - Add a new plugin directory. > > + * @tep: Trace event handler. > > + * @path: Path to a directory. All files with extension .so in that > > Is the extension (".so") fixed? I think a new API has the

[PATCH 5.7 046/112] io_uring: use signal based task_work running

2020-07-07 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit ce593a6c480a22acba08795be313c0c6d49dd35d ] Since 5.7, we've been using task_work to trigger async running of requests in the context of the original task. This generally works great, but there's a case where if the task is currently blocked in the kernel waitin

general protection fault in batadv_iv_ogm_schedule_buff (2)

2020-07-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=130b828f10 kernel config: https://syzkaller.appspot.com/x/.config?x=7be693511b29b338 das

[PATCH 5.7 050/112] mptcp: drop MP_JOIN request sock on syn cookies

2020-07-07 Thread Greg Kroah-Hartman
From: Paolo Abeni [ Upstream commit 9e365ff576b7c1623bbc5ef31ec652c533e2f65e ] Currently any MPTCP socket using syn cookies will fallback to TCP at 3rd ack time. In case of MP_JOIN requests, the RFC mandate closing the child and sockets, but the existing error paths do not handle the syncookie s

[PATCH 5.7 000/112] 5.7.8-rc1 review

2020-07-07 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.7.8 release. There are 112 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, 09 Jul 2020 14:57:34 +. Anything rece

[PATCH 5.7 047/112] drm/msm/dpu: fix error return code in dpu_encoder_init

2020-07-07 Thread Greg Kroah-Hartman
From: Chen Tao [ Upstream commit aa472721c8dbe1713cf510f56ffbc56ae9e14247 ] Fix to return negative error code -ENOMEM with the use of ERR_PTR from dpu_encoder_init. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Chen Tao Signed-off-by: Rob Clark Signed-off-by: Sasha Le

[PATCH 5.7 045/112] task_work: teach task_work_add() to do signal_wake_up()

2020-07-07 Thread Greg Kroah-Hartman
From: Oleg Nesterov [ Upstream commit e91b48162332480f5840902268108bb7fb7a44c7 ] So that the target task will exit the wait_event_interruptible-like loop and call task_work_run() asap. The patch turns "bool notify" into 0,TWA_RESUME,TWA_SIGNAL enum, the new TWA_SIGNAL flag implies signal_wake_u

[PATCH 5.7 042/112] selftests: tpm: Use /bin/sh instead of /bin/bash

2020-07-07 Thread Greg Kroah-Hartman
From: Jarkko Sakkinen commit 377ff83083c953dd58c5a030b3c9b5b85d8cc727 upstream. It's better to use /bin/sh instead of /bin/bash in order to run the tests in the BusyBox shell. Fixes: 6ea3dfe1e073 ("selftests: add TPM 2.0 tests") Cc: sta...@vger.kernel.org Cc: linux-integr...@vger.kernel.org Cc:

[PATCH 5.7 044/112] crypto: af_alg - fix use-after-free in af_alg_accept() due to bh_lock_sock()

2020-07-07 Thread Greg Kroah-Hartman
From: Herbert Xu commit 34c86f4c4a7be3b3e35aa48bd18299d4c756064d upstream. The locking in af_alg_release_parent is broken as the BH socket lock can only be taken if there is a code-path to handle the case where the lock is owned by process-context. Instead of adding such handling, we can fix th

Re: [PATCH v3 1/2] selftests: pidfd: do not use ksft_exit_skip after ksft_set_plan

2020-07-07 Thread Shuah Khan
On 7/7/20 4:19 AM, Paolo Bonzini wrote: Calling ksft_exit_skip after ksft_set_plan results in executing fewer tests than planned. Use ksft_test_result_skip instead. The plan passed to ksft_set_plan was wrong, too, so fix it while at it. Signed-off-by: Paolo Bonzini Message-Id: <20200623001547

[PATCH 5.7 043/112] tpm: Fix TIS locality timeout problems

2020-07-07 Thread Greg Kroah-Hartman
From: James Bottomley commit 7862840219058436b80029a0263fd1ef065fb1b3 upstream. It has been reported that some TIS based TPMs are giving unexpected errors when using the O_NONBLOCK path of the TPM device. The problem is that some TPMs don't like it when you get and then relinquish a locality (as

[PATCH 1/2] cpuidle: Trace IPI based and timer based wakeup latency from idle states

2020-07-07 Thread Pratik Rajesh Sampat
Fire directed smp_call_function_single IPIs from a specified source CPU to the specified target CPU to reduce the noise we have to wade through in the trace log. The module is based on the idea written by Srivatsa Bhat and maintained by Vaidyanathan Srinivasan internally. Queue HR timer and measur

Re: [PATCH v2 1/1] power: Emit changed uevent on wakeup_sysfs_add/remove

2020-07-07 Thread Abhishek Pandit-Subedi
Hi Greg, On Tue, Jul 7, 2020 at 7:29 AM Greg Kroah-Hartman wrote: > > On Mon, Jul 06, 2020 at 02:07:17PM -0700, Abhishek Pandit-Subedi wrote: > > Udev rules that depend on the power/wakeup attribute don't get triggered > > correctly if device_set_wakeup_capable is called after the device is > >

Re: [PATCH v2 07/15] tools lib traceevent: Optimize pretty_print() function

2020-07-07 Thread Steven Rostedt
On Wed, 8 Jul 2020 00:11:10 +0900 Namhyung Kim wrote: > > --- a/tools/lib/traceevent/event-parse-local.h > > +++ b/tools/lib/traceevent/event-parse-local.h > > @@ -85,6 +85,23 @@ struct tep_handle { > > struct tep_plugins_dir *plugins_dir; > > }; > > > > +enum tep_print_parse_type { > >

[PATCH 5.7 001/112] exfat: Set the unused characters of FileName field to the value 0000h

2020-07-07 Thread Greg Kroah-Hartman
From: Hyeongseok.Kim [ Upstream commit 4ba6ccd695f5ed3ae851e59b443b757bbe4557fe ] Some fsck tool complain that padding part of the FileName field is not set to the value h. So let's maintain filesystem cleaner, as exfat's spec. recommendation. Signed-off-by: Hyeongseok.Kim Reviewed-by: Sun

[PATCH 5.7 005/112] exfat: flush dirty metadata in fsync

2020-07-07 Thread Greg Kroah-Hartman
From: Sungjong Seo [ Upstream commit 5267456e953fd8c5abd8e278b1cc6a9f9027ac0a ] generic_file_fsync() exfat used could not guarantee the consistency of a file because it has flushed not dirty metadata but only dirty data pages for a file. Instead of that, use exfat_file_fsync() for files and dir

[PATCH 5.7 034/112] nvme-multipath: set bdi capabilities once

2020-07-07 Thread Greg Kroah-Hartman
From: Keith Busch [ Upstream commit b2ce4d90690bd29ce5b554e203cd03682dd59697 ] The queues' backing device info capabilities don't change with each namespace revalidation. Set it only when each path's request_queue is initially added to a multipath queue. Signed-off-by: Keith Busch Reviewed-by:

[PATCH 5.7 002/112] exfat: add missing brelse() calls on error paths

2020-07-07 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit e8dd3cda8667118b70d9fe527f61fe22623de04d ] If the second exfat_get_dentry() call fails then we need to release "old_bh" before returning. There is a similar bug in exfat_move_file(). Fixes: 5f2aa075070c ("exfat: add inode operations") Reported-by: Markus E

Re: [PATCH 5.4 35/65] nfsd: clients dont need to break their own delegations

2020-07-07 Thread J. Bruce Fields
NACK. (How did this one even end up headed for stable? It wasn't cc'd to stable, it's not a bugfix, and it's not a small patch.) --b. On Tue, Jul 07, 2020 at 05:17:14PM +0200, Greg Kroah-Hartman wrote: > From: J. Bruce Fields > > [ Upstream commit 28df3d1539de5090f7916f6fff03891b67f366f4 ] >

[PATCH 5.7 003/112] exfat: call sync_filesystem for read-only remount

2020-07-07 Thread Greg Kroah-Hartman
From: Hyunchul Lee [ Upstream commit a0271a15cf2cf907ea5b0f2ba611123f1b7935ec ] We need to commit dirty metadata and pages to disk before remounting exfat as read-only. This fixes a failure in xfstests generic/452 generic/452 does the following: cp something / mount -o remount,ro the /someth

[PATCH 5.7 012/112] tipc: add test for Nagle algorithm effectiveness

2020-07-07 Thread Greg Kroah-Hartman
From: Tuong Lien [ Upstream commit 0a3e060f340dbe232ffa290c40f879b7f7db595b ] When streaming in Nagle mode, we try to bundle small messages from user as many as possible if there is one outstanding buffer, i.e. not ACK-ed by the receiving side, which helps boost up the overall throughput. So, th

[PATCH 5.7 035/112] nvme: fix possible deadlock when I/O is blocked

2020-07-07 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit 3b4b19721ec652ad2c4fe51dfbe5124212b5f581 ] Revert fab7772bfbcf ("nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns") When adding a new namespace to the head disk (via nvme_mpath_set_live) we will see partition scan which triggers I/O on th

[PATCH 5.7 019/112] drm/amdgpu: fix kernel page fault issue by ras recovery on sGPU

2020-07-07 Thread Greg Kroah-Hartman
From: Guchun Chen [ Upstream commit 12c17b9d62663c14a5343d6742682b3e67280754 ] When running ras uncorrectable error injection and triggering GPU reset on sGPU, below issue is observed. It's caused by the list uninitialized when accessing. [ 80.047227] BUG: unable to handle page fault for addr

[PATCH] af_packet: TPACKET_V3: replace busy-wait loop

2020-07-07 Thread John Ogness
A busy-wait loop is used to implement waiting for bits to be copied from the skb to the kernel buffer before retiring a block. This is a problem on PREEMPT_RT because the copying task could be preempted by the busy-waiting task and thus live lock in the busy-wait loop. Replace the busy-wait logic

[PATCH 5.4 62/65] mm, compaction: make capture control handling safe wrt interrupts

2020-07-07 Thread Greg Kroah-Hartman
From: Vlastimil Babka commit b9e20f0da1f5c9c68689450a8cb436c9486434c8 upstream. Hugh reports: "While stressing compaction, one run oopsed on NULL capc->cc in __free_one_page()'s task_capc(zone): compact_zone_order() had been interrupted, and a page was being freed in the return from interr

[PATCH 5.4 32/65] thermal/drivers/mediatek: Fix bank number settings on mt8183

2020-07-07 Thread Greg Kroah-Hartman
From: Michael Kao [ Upstream commit 14533a5a6c12e8d7de79d309d4085bf186058fe1 ] MT8183_NUM_ZONES should be set to 1 because MT8183 doesn't have multiple banks. Fixes: a4ffe6b52d27 ("thermal: mediatek: add support for MT8183") Signed-off-by: Michael Kao Signed-off-by: Hsin-Yi Wang Signed-off-by

Re: [PATCH 5.4 34/65] kthread: save thread function

2020-07-07 Thread J. Bruce Fields
NACK.--b. On Tue, Jul 07, 2020 at 05:17:13PM +0200, Greg Kroah-Hartman wrote: > From: J. Bruce Fields > > [ Upstream commit 52782c92ac85c4e393eb4a903a62e6c24afa633f ] > > It's handy to keep the kthread_fn just as a unique cookie to identify > classes of kthreads. E.g. if you can verify that a

[PATCH 5.7 010/112] drm/amd/display: Fix ineffective setting of max bpc property

2020-07-07 Thread Greg Kroah-Hartman
From: Stylon Wang [ Upstream commit fa7041d9d2fc7401cece43f305eb5b87b7017fc4 ] [Why] Regression was introduced where setting max bpc property has no effect on the atomic check and final commit. It has the same effect as max bpc being stuck at 8. [How] Correctly propagate max bpc with the new co

[PATCH 5.4 40/65] SMB3: Honor posix flag for multiuser mounts

2020-07-07 Thread Greg Kroah-Hartman
From: Paul Aurich [ Upstream commit 5391b8e1b7b7e5cfa2dd4ffdc4b8c6b64dfd1866 ] The flag from the primary tcon needs to be copied into the volume info so that cifs_get_tcon will try to enable extensions on the per-user tcon. At that point, since posix extensions must have already been enabled on

[PATCH 5.7 011/112] seg6: fix seg6_validate_srh() to avoid slab-out-of-bounds

2020-07-07 Thread Greg Kroah-Hartman
From: Ahmed Abdelsalam [ Upstream commit bb986a50421a11bf31a81afb15b9b8f45a4a3a11 ] The seg6_validate_srh() is used to validate SRH for three cases: case1: SRH of data-plane SRv6 packets to be processed by the Linux kernel. Case2: SRH of the netlink message received from user-space (iproute2)

[PATCH 5.4 38/65] drm: sun4i: hdmi: Remove extra HPD polling

2020-07-07 Thread Greg Kroah-Hartman
From: Chen-Yu Tsai [ Upstream commit bda8eaa6dee7525f4dac950810a85a88bf6c2ba0 ] The HPD sense mechanism in Allwinner's old HDMI encoder hardware is more or less an input-only GPIO. Other GPIO-based HPD implementations directly return the current state, instead of polling for a specific state and

Re: [PATCH 5.7 070/112] kthread: save thread function

2020-07-07 Thread J. Bruce Fields
NACK to this and following patch.--b. On Tue, Jul 07, 2020 at 05:17:15PM +0200, Greg Kroah-Hartman wrote: > From: J. Bruce Fields > > [ Upstream commit 52782c92ac85c4e393eb4a903a62e6c24afa633f ] > > It's handy to keep the kthread_fn just as a unique cookie to identify > classes of kthreads. E.

[PATCH 5.4 09/65] usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect

2020-07-07 Thread Greg Kroah-Hartman
From: Zqiang [ Upstream commit 28ebeb8db77035e058a510ce9bd17c2b9a009dba ] BUG: memory leak unreferenced object 0x888055046e00 (size 256): comm "kworker/2:9", pid 2570, jiffies 4294942129 (age 1095.500s) hex dump (first 32 bytes): 00 70 04 55 80 88 ff ff 18 bb 5a 81 ff ff ff ff .p.U.

[PATCH 5.4 05/65] sched/debug: Make sd->flags sysctl read-only

2020-07-07 Thread Greg Kroah-Hartman
From: Valentin Schneider [ Upstream commit 9818427c6270a9ce8c52c8621026fe9cebae0f92 ] Writing to the sysctl of a sched_domain->flags directly updates the value of the field, and goes nowhere near update_top_cache_domain(). This means that the cached domain pointers can end up containing stale da

[PATCH 5.4 26/65] cxgb4: parse TC-U32 key values and masks natively

2020-07-07 Thread Greg Kroah-Hartman
From: Rahul Lakkireddy [ Upstream commit 27f78cb245abdb86735529c13b0a579f57829e71 ] TC-U32 passes all keys values and masks in __be32 format. The parser already expects this and hence pass the value and masks in __be32 natively to the parser. Fixes following sparse warnings in several places: c

[PATCH 5.4 35/65] nfsd: clients dont need to break their own delegations

2020-07-07 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 28df3d1539de5090f7916f6fff03891b67f366f4 ] We currently revoke read delegations on any write open or any operation that modifies file data or metadata (including rename, link, and unlink). But if the delegation in question is the only read delegation and

Re: [EXT] Re: [PATCH v5 3/3] ARM: imx6plus: optionally enable internal routing of clk_enet_ref

2020-07-07 Thread Sven Van Asbroeck
Andy, Fabio, Sounds like we now have a solution which makes logical sense, although it requires changes and additions to drivers/clk/imx/. Before I create a patch, can you read the plan below and check that it makes sense, please? Problem === On the imx6q plus, the NXP hw designers introduced

[PATCH 5.4 57/65] drm/amdgpu: use %u rather than %d for sclk/mclk

2020-07-07 Thread Greg Kroah-Hartman
From: Alex Deucher commit beaf10efca64ac824240838ab1f054dfbefab5e6 upstream. Large clock values may overflow and show up as negative. Reported by prOMiNd on IRC. Acked-by: Nirmoy Das Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/d

[PATCH 5.4 44/65] i2c: algo-pca: Add 0x78 as SCL stuck low status for PCA9665

2020-07-07 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit cd217f2300793a106b49c7dfcbfb26e348bc7593 ] The PCA9665 datasheet says that I2CSTA = 78h indicates that SCL is stuck low, this differs to the PCA9564 which uses 90h for this indication. Treat either 0x78 or 0x90 as an indication that the SCL line is stuck. B

[PATCH 5.4 56/65] drm/amd/display: Only revalidate bandwidth on medium and fast updates

2020-07-07 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit 6eb3cf2e06d22b2b08e6b0ab48cb9c05a8e1a107 upstream. [Why] Changes that are fast don't require updating DLG parameters making this call unnecessary. Considering this is an expensive call it should not be done on every flip. DML touches clocks, p-state support, DLG

Re: [PATCH v6 4/8] init: add support for zstd compressed kernel

2020-07-07 Thread Nick Terrell
> On Jul 7, 2020, at 3:19 AM, Norbert Lange wrote: > > Thanks for the respin. > > Am Di., 7. Juli 2020 um 05:51 Uhr schrieb Nick Terrell > : >> >> From: Nick Terrell >> >> * Adds the zstd cmd to scripts/Makefile.lib >> * Adds the HAVE_KERNEL_ZSTD and KERNEL_ZSTD options >> >> Architecture

[PATCH 5.4 53/65] cifs: Fix the target file was deleted when rename failed.

2020-07-07 Thread Greg Kroah-Hartman
From: Zhang Xiaoxu commit 9ffad9263b467efd8f8dc7ae1941a0a655a2bab2 upstream. When xfstest generic/035, we found the target file was deleted if the rename return -EACESS. In cifs_rename2, we unlink the positive target dentry if rename failed with EACESS or EEXIST, even if the target dentry is po

[PATCH 4.19 29/36] SMB3: Honor seal flag for multiuser mounts

2020-07-07 Thread Greg Kroah-Hartman
From: Paul Aurich commit cc15461c73d7d044d56c47e869a215e49bd429c8 upstream. Ensure multiuser SMB3 mounts use encryption for all users' tcons if the mount options are configured to require encryption. Without this, only the primary tcon and IPC tcons are guaranteed to be encrypted. Per-user tcons

[PATCH 4.19 01/36] btrfs: fix a block group ref counter leak after failure to remove block group

2020-07-07 Thread Greg Kroah-Hartman
From: Filipe Manana [ Upstream commit 9fecd13202f520f3f25d5b1c313adb740fe19773 ] When removing a block group, if we fail to delete the block group's item from the extent tree, we jump to the 'out' label and end up decrementing the block group's reference count once only (by 1), resulting in a co

[PATCH 4.19 23/36] SMB3: Honor posix flag for multiuser mounts

2020-07-07 Thread Greg Kroah-Hartman
From: Paul Aurich [ Upstream commit 5391b8e1b7b7e5cfa2dd4ffdc4b8c6b64dfd1866 ] The flag from the primary tcon needs to be copied into the volume info so that cifs_get_tcon will try to enable extensions on the per-user tcon. At that point, since posix extensions must have already been enabled on

[PATCH 5.4 15/65] nvme-multipath: fix deadlock between ana_work and scan_work

2020-07-07 Thread Greg Kroah-Hartman
From: Anton Eidelman [ Upstream commit 489dd102a2c7c94d783a35f9412eb085b8da1aa4 ] When scan_work calls nvme_mpath_add_disk() this holds ana_lock and invokes nvme_parse_ana_log(), which may issue IO in device_add_disk() and hang waiting for an accessible path. While nvme_mpath_set_live() only cal

[PATCH 4.19 05/36] mm/slub.c: fix corrupted freechain in deactivate_slab()

2020-07-07 Thread Greg Kroah-Hartman
From: Dongli Zhang [ Upstream commit 52f23478081ae0dcdb95d1650ea1e7d52d586829 ] The slub_debug is able to fix the corrupted slab freelist/page. However, alloc_debug_processing() only checks the validity of current and next freepointer during allocation path. As a result, once some objects have

Re: [Ksummit-discuss] [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-07 Thread Randy Dunlap
On 7/7/20 8:24 AM, Bird, Tim wrote: > > >> -Original Message- >> From: Steven Rostedt >> >> On Tue, 7 Jul 2020 09:49:21 +0300 >> Mike Rapoport wrote: >> But that's all fine. The change is easy to do and is more descriptive even if I can't find terms that don't collide with my i

[PATCH 4.19 34/36] irqchip/gic: Atomically update affinity

2020-07-07 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 005c34ae4b44f085120d7f371121ec7ded677761 upstream. The GIC driver uses a RMW sequence to update the affinity, and relies on the gic_lock_irqsave/gic_unlock_irqrestore sequences to update it atomically. But these sequences only expand into anything meaningful if the BL_

[PATCH 5.4 27/65] cxgb4: fix endian conversions for L4 ports in filters

2020-07-07 Thread Greg Kroah-Hartman
From: Rahul Lakkireddy [ Upstream commit 63b53b0b99cd5f2d9754a21eda2ed8e706646cc9 ] The source and destination L4 ports in filter offload need to be in CPU endian. They will finally be converted to Big Endian after all operations are done and before giving them to hardware. The L4 ports for NAT

[PATCH 5.4 03/65] EDAC/amd64: Read back the scrub rate PCI register on F15h

2020-07-07 Thread Greg Kroah-Hartman
From: Borislav Petkov [ Upstream commit ee470bb25d0dcdf126f586ec0ae6dca66cb340a4 ] Commit: da92110dfdfa ("EDAC, amd64_edac: Extend scrub rate support to F15hM60h") added support for F15h, model 0x60 CPUs but in doing so, missed to read back SCRCTRL PCI config register on F15h CPUs which are

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