[PATCH v2] exfat: retain 'VolumeFlags' properly

2020-07-30 Thread Tetsuhiro Kohada
Retain ActiveFat, MediaFailure and ClearToZero fields. And, never clear VolumeDirty, if it is dirty at mount. In '3.1.13.3 Media Failure Field' of exfat specification says ... If, upon mounting a volume, the value of this field is 1, implementations which scan the entire volume for media

linux-next: build failure after merge of the tip tree

2020-07-30 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from include/asm-generic/getorder.h:8, from arch/arm/include/asm/page.h:166, from arch/arm/include/asm/thread_info.h:14,

Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init

2020-07-30 Thread Bjorn Andersson
On Wed 22 Jul 13:11 PDT 2020, Konrad Dybcio wrote: > >Is the problem on SDM630 that when you write to SMR/S2CR the device > >reboots? Or that when you start writing out the context bank > >configuration that trips the display and the device reboots? > > I added some debug prints and the phone

Re: [PATCH] lib: Convert test_uuid.c to KUnit

2020-07-30 Thread Brendan Higgins
On Thu, Jul 30, 2020 at 5:18 AM Arpitha Raghunandan <98.a...@gmail.com> wrote: > > Converts test lib/test_uuid.c to KUnit Can you add some more detail to the commit message? Maybe link to KUnit and say something about why this change is beneficial. > Signed-off-by: Arpitha Raghunandan

Re: [PATCH v3 2/4] iommu: Add iommu_aux_at(de)tach_group()

2020-07-30 Thread Lu Baolu
Hi Alex, On 2020/7/31 3:46, Alex Williamson wrote: On Wed, 29 Jul 2020 23:34:40 + "Tian, Kevin" wrote: From: Alex Williamson Sent: Thursday, July 30, 2020 4:04 AM On Thu, 16 Jul 2020 09:07:46 +0800 Lu Baolu wrote: Hi Jacob, On 7/16/20 12:01 AM, Jacob Pan wrote: On Wed, 15 Jul

Re: arm64: pointer_auth.h:40:3: error: implicit declaration of function 'get_random_bytes'; did you mean 'get_random_once'?

2020-07-30 Thread Willy Tarreau
On Thu, Jul 30, 2020 at 10:25:41PM -0700, Linus Torvalds wrote: > On Thu, Jul 30, 2020 at 7:16 PM Willy Tarreau wrote: > > > > Don't you want to take Mark's patch anyway in addition to all this ? In > > case anyone meets yet another build issue, they'd have more luck trying > > to revert any

Re: [PATCH v5 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-07-30 Thread Marco Felsch
Hi Ondrej, On 20-07-30 15:24, Ondrej Jirman wrote: > The board has a vibrator motor. Hook it to the input subsystem. > > According to the PMIC specification, LDO needs to be enabled (value 0b11) > to achieve the specified max driving current of 150mA. We can't drive > the motor with just GPIO

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-07-30 Thread Greg Kroah-Hartman
On Fri, Jul 31, 2020 at 07:53:01AM +0300, Leon Romanovsky wrote: > On Thu, Jul 30, 2020 at 03:20:26PM -0400, Peilin Ye wrote: > > rds_notify_queue_get() is potentially copying uninitialized kernel stack > > memory to userspace since the compiler may leave a 4-byte hole at the end > > of `cmsg`. >

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-07-30 Thread Greg Kroah-Hartman
On Fri, Jul 31, 2020 at 07:33:06AM +0200, Greg Kroah-Hartman wrote: > On Fri, Jul 31, 2020 at 07:53:01AM +0300, Leon Romanovsky wrote: > > On Thu, Jul 30, 2020 at 03:20:26PM -0400, Peilin Ye wrote: > > > rds_notify_queue_get() is potentially copying uninitialized kernel stack > > > memory to

Re: arm64: pointer_auth.h:40:3: error: implicit declaration of function 'get_random_bytes'; did you mean 'get_random_once'?

2020-07-30 Thread Linus Torvalds
On Thu, Jul 30, 2020 at 7:16 PM Willy Tarreau wrote: > > Don't you want to take Mark's patch anyway in addition to all this ? In > case anyone meets yet another build issue, they'd have more luck trying > to revert any other patch. Right now if they revert one, it breaks the > build in a

Re: [PATCH -next] 9p: Remove unneeded cast from memory allocation

2020-07-30 Thread Dominique Martinet
Li Heng wrote on Wed, Jul 29, 2020: > Remove casting the values returned by memory allocation function. > > Coccinelle emits WARNING: > > ./fs/9p/vfs_inode.c:226:12-29: WARNING: casting value returned by memory > allocation function to (struct v9fs_inode *) is useless. > > Signed-off-by: Li

Re: [PATCH] vgacon: fix out of bounds write to the scrollback buffer

2020-07-30 Thread 张云海
Remove whitespace at EOL On 2020/7/30 18:39, 张云海 wrote: > Update the patch, add CC list, sample output, and Jiri's PoC. > > On 2020/7/30 14:46, Jiri Slaby wrote: >> Hi, OTOH, you should have CCed all the (public) lists. > >From ad143ede24ff4e61292cc9c96000100aacd97259 Mon Sep 17 00:00:00 2001

[PATCH] USB: quirks: Add no-lpm quirk for another Raydium touchscreen

2020-07-30 Thread Kai-Heng Feng
There's another Raydium touchscreen needs the no-lpm quirk: [1.339149] usb 1-9: New USB device found, idVendor=2386, idProduct=350e, bcdDevice= 0.00 [1.339150] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [1.339151] usb 1-9: Product: Raydium Touch System [

Re: linux-next: build warnings after merge of the mac80211-next tree

2020-07-30 Thread Thomas Pedersen
On 2020-07-30 20:28, Stephen Rothwell wrote: Hi all, After merging the mac80211-next tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: Thanks Stephen. I'll send a fix against mac80211-next to linux-wireless. -- thomas

Re: issue with uninitialized value used in a comparison in gbcodec_mixer_dapm_ctl_put

2020-07-30 Thread Vaibhav Agarwal
On Thu, Jul 30, 2020 at 05:02:22PM +0100, Colin Ian King wrote: > Hi, > > Static analysis with Coverity has detected an uninitialized value being > used in a comparison. The error was detected on a recent change to > drivers/staging/greybus/audio_topology.c however the issue actually > dates

[PATCH] [net/ethtool] ethnl_set_linkmodes: remove redundant null check

2020-07-30 Thread Gaurav Singh
info cannot be NULL here since its being accessed earlier in the function: nlmsg_parse(info->nlhdr...). Remove this redundant NULL check. Signed-off-by: Gaurav Singh --- net/ethtool/linkmodes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ethtool/linkmodes.c

[PATCH 2/3] phy: qcom-qmp: Register as a typec switch for orientation detection

2020-07-30 Thread Wesley Cheng
The lane select switch for USB typec orientation is within the USB QMP PHY. the current device. It could be connected through an endpoint, to an independent device handling the typec detection, ie the QCOM SPMI typec driver. Signed-off-by: Wesley Cheng --- drivers/phy/qualcomm/Kconfig|

[PATCH 0/3] Enable USB type C support on SM8150

2020-07-30 Thread Wesley Cheng
This series adds support for setting of the orientation multiplexor within the QMP PHY based on the detection output from the PM8150B. It will also introduce a role switch in DWC3 QCOM, which is used so that the DWC3 QCOM glue can receive role switch change events, and set the vbus override

[PATCH 3/3] usb: dwc3: dwc3-qcom: Find USB connector and register role switch

2020-07-30 Thread Wesley Cheng
If registering a USB typeC connector, the connector node may not be a child of the DWC3 QCOM device. Utilize devcon graph search to lookup if any remote endpoints contain the connector. If a connector is present, the DWC3 QCOM will register a USB role switch to receive role change events, as

[PATCH 1/3] arm64: boot: dts: qcom: sm8150: Add nodes for PMIC based typec detection

2020-07-30 Thread Wesley Cheng
Introduce required child nodes to enable the PMIC based USB type C driver. This consits of connector and endpoint nodes to drivers, which manage the type C mux and the USB role switch. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 37 - 1 file

Re: [PATCH] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-07-30 Thread Jiri Slaby
Hi, On 31. 07. 20, 5:23, Yang Yingliang wrote: > void execute_one(void) > { > intptr_t res = 0; > res = syz_open_dev(0xc, 4, 1); open(/dev/tty1) > if (res != -1) > r[0] = res; > *(uint16_t*)0x2000 = 0xc; > *(uint16_t*)0x2002 = 0x373; >

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-07-30 Thread Leon Romanovsky
On Thu, Jul 30, 2020 at 03:20:26PM -0400, Peilin Ye wrote: > rds_notify_queue_get() is potentially copying uninitialized kernel stack > memory to userspace since the compiler may leave a 4-byte hole at the end > of `cmsg`. > > In 2016 we tried to fix this issue by doing `= { 0 };` on `cmsg`, which

[Linux-kernel-mentees] [PATCH net] openvswitch: Prevent kernel-infoleak in ovs_ct_put_key()

2020-07-30 Thread Peilin Ye
ovs_ct_put_key() is potentially copying uninitialized kernel stack memory into socket buffers, since the compiler may leave a 3-byte hole at the end of `struct ovs_key_ct_tuple_ipv4` and `struct ovs_key_ct_tuple_ipv6`. Fix it by initializing `orig` with memset(). Cc: sta...@vger.kernel.org Fixes:

[PATCH v9 5/5] mm: kasan: Do not panic if both panic_on_warn and kasan_multishot set

2020-07-30 Thread David Gow
KASAN errors will currently trigger a panic when panic_on_warn is set. This renders kasan_multishot useless, as further KASAN errors won't be reported if the kernel has already paniced. By making kasan_multishot disable this behaviour for KASAN errors, we can still have the benefits of

[PATCH v9 4/5] KASAN: Testing Documentation

2020-07-30 Thread David Gow
From: Patricia Alfonso Include documentation on how to test KASAN using CONFIG_TEST_KASAN_KUNIT and CONFIG_TEST_KASAN_MODULE. Signed-off-by: Patricia Alfonso Signed-off-by: David Gow Reviewed-by: Andrey Konovalov Reviewed-by: Dmitry Vyukov Acked-by: Brendan Higgins ---

[PATCH v9 3/5] KASAN: Port KASAN Tests to KUnit

2020-07-30 Thread David Gow
From: Patricia Alfonso Transfer all previous tests for KASAN to KUnit so they can be run more easily. Using kunit_tool, developers can run these tests with their other KUnit tests and see "pass" or "fail" with the appropriate KASAN report instead of needing to parse each KASAN report to test

[PATCH v9 1/5] Add KUnit Struct to Current Task

2020-07-30 Thread David Gow
From: Patricia Alfonso In order to integrate debugging tools like KASAN into the KUnit framework, add KUnit struct to the current task to keep track of the current KUnit test. Signed-off-by: Patricia Alfonso Reviewed-by: Brendan Higgins Signed-off-by: David Gow --- include/linux/sched.h | 4

[PATCH v9 2/5] KUnit: KASAN Integration

2020-07-30 Thread David Gow
From: Patricia Alfonso Integrate KASAN into KUnit testing framework. - Fail tests when KASAN reports an error that is not expected - Use KUNIT_EXPECT_KASAN_FAIL to expect a KASAN error in KASAN tests - Expected KASAN reports pass tests and are still printed when

[PATCH v9 0/5] KASAN-KUnit Integration

2020-07-30 Thread David Gow
This patchset contains everything needed to integrate KASAN and KUnit. KUnit will be able to: (1) Fail tests when an unexpected KASAN error occurs (2) Pass tests when an expected KASAN error occurs Convert KASAN tests to KUnit with the exception of copy_user_test because KUnit is unable to test

Re: [git pull] drm fixes for 5.8-rc8 (part 2)

2020-07-30 Thread pr-tracker-bot
The pull request you sent on Fri, 31 Jul 2020 13:44:54 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-31 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d8b9faec54ae4bc2fff68bcd0befa93ace8256ce Thank you! -- Deet-doot-dot, I am a bot.

[PATCH] MIPS: BMIPS: Disable pref 30 for buggy CPUs

2020-07-30 Thread Florian Fainelli
Disable pref 30 by utilizing the standard quirk method and matching the affected SoCs: 7344, 7346, 7425. Signed-off-by: Florian Fainelli --- arch/mips/bmips/setup.c | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/mips/bmips/setup.c b/arch/mips/bmips/setup.c index

[PATCH net-next] tun: add missing rcu annotation in tun_set_ebpf()

2020-07-30 Thread Jason Wang
We expecte prog_p to be protected by rcu, so adding the rcu annotation to fix the following sparse warning: drivers/net/tun.c:3003:36: warning: incorrect type in argument 2 (different address spaces) drivers/net/tun.c:3003:36:expected struct tun_prog [noderef] __rcu **prog_p

Re: [PATCH 1/2] kbuild: move shared library build rules to scripts/gcc-plugins/Makefile

2020-07-30 Thread Masahiro Yamada
On Thu, Jul 30, 2020 at 6:18 AM Kees Cook wrote: > > On Wed, Jul 29, 2020 at 12:15:36PM +0900, Masahiro Yamada wrote: > > The shared library build rules are currently implemented in > > scripts/Makefile.host, but actually GCC-plugin is the only user of > > them. Hence, they do not need to be

[PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode

2020-07-30 Thread Jiaxun Yang
Requested by downstream distros, a Kconfig option for default IEEE754 conformance mode allows them to set their mode to relaxed by default. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 21 + arch/mips/kernel/cpu-probe.c | 12 +++- 2 files changed, 32

[PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode

2020-07-30 Thread Jiaxun Yang
Requested by downstream distros, a Kconfig option for default IEEE754 conformance mode allows them to set their mode to relaxed by default. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 21 + arch/mips/kernel/cpu-probe.c | 12 +++- 2 files changed, 32

Re: linux-next: Tree for Jul 30 [build failure on arm64]

2020-07-30 Thread Stephen Rothwell
Hi all, On Fri, 31 Jul 2020 10:46:52 +0800 Shaokun Zhang wrote: > > There's a build failure on arm64: > > In file included from ./include/linux/compat.h:17:0, > from ./arch/arm64/include/asm/stat.h:13, > from ./include/linux/stat.h:6, > from

Re: [PATCH v2] mm: vmstat: fix /proc/sys/vm/stat_refresh generating false warnings

2020-07-30 Thread Hugh Dickins
On Thu, 30 Jul 2020, Roman Gushchin wrote: > On Wed, Jul 29, 2020 at 08:45:47PM -0700, Hugh Dickins wrote: > > > > But a better idea is perhaps to redefine the behavior of > > "echo >/proc/sys/vm/stat_refresh". What if > > "echo someparticularstring >/proc/sys/vm/stat_refresh" were to > >

Re: [PATCH v4] scsi: ufs: Cleanup completed request without interrupt notification

2020-07-30 Thread Bart Van Assche
On 2020-07-30 18:30, Stanley Chu wrote: > On Mon, 2020-07-27 at 11:18 +, Avri Altman wrote: >> Looks good to me. >> But better wait and see if Bart have any further reservations. > > Would you have any further suggestions? Today is the first time that I took a look at ufshcd_abort(). The

Re: [External] Re: [PATCH 1/2] ftrace: clear module from hash of all ftrace ops

2020-07-30 Thread Chengming Zhou
在 2020/7/29 上午1:26, Steven Rostedt 写道: > On Wed, 29 Jul 2020 00:59:33 +0800 > Chengming Zhou wrote: > > >>> i.e. >>> >>> # echo some_module_function > set_ftrace_filter >>> # rmmod module_with_that_function >>> # insmod module_with_same_address_of_function >>> # echo function >

Re: linux-next: manual merge of the devfreq tree with the arm-soc tree

2020-07-30 Thread Stephen Rothwell
Hi all, On Mon, 27 Jul 2020 20:16:00 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the devfreq tree got a conflict in: > > MAINTAINERS > > between commit: > > 8a9ff8758159 ("MAINTAINERS: Add Krzysztof Kozlowski as maintainer of memory > controllers") > > from the

Re: [PATCH] erofs: fold in used-once helper erofs_workgroup_unfreeze_final()

2020-07-30 Thread Gao Xiang
On Fri, Jul 31, 2020 at 11:49:04AM +0800, Chao Yu wrote: > On 2020/7/30 2:02, Gao Xiang wrote: > > It's expected that erofs_workgroup_unfreeze_final() won't > > be used in other places. Let's fold it to simplify the code. > > > > Signed-off-by: Gao Xiang > > Reviewed-by: Chao Yu Thanks for

drivers/vfio/pci/vfio_pci_nvlink2.c:100:9: error: implicit declaration of function 'mm_iommu_put'; did you mean

2020-07-30 Thread kernel test robot
Hi Chen, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 417385c47ef7ee0d4f48f63f70cca6c1ed6355f4 commit: ee8642162a9edd40daafd3fb894e3fd3f909e361 drm/nouveau: fix build error without CONFIG_IOMMU_API date: 6

Re: [PATCH v2] clk: bcm2835: Do not use prediv with bcm2711's PLLs

2020-07-30 Thread Florian Fainelli
On 7/30/2020 11:26 AM, Nicolas Saenz Julienne wrote: > Contrary to previous SoCs, bcm2711 doesn't have a prescaler in the PLL > feedback loop. Bypass it by zeroing fb_prediv_mask when running on > bcm2711. > > Note that, since the prediv configuration bits were re-purposed, this > was

Re: [PATCH] erofs: fold in used-once helper erofs_workgroup_unfreeze_final()

2020-07-30 Thread Chao Yu
On 2020/7/30 2:02, Gao Xiang wrote: It's expected that erofs_workgroup_unfreeze_final() won't be used in other places. Let's fold it to simplify the code. Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,

Re: [PATCH] erofs: remove WQ_CPU_INTENSIVE flag from unbound wq's

2020-07-30 Thread Chao Yu
On 2020/7/31 10:40, Gao Xiang via Linux-erofs wrote: From: Gao Xiang The documentation [1] says that WQ_CPU_INTENSIVE is "meaningless" for unbound wq. I remove this flag from places where unbound queue is allocated. This is supposed to improve code readability. [1]

Re: [PATCH 1/2] rcu/tree: Add a warning if CPU being onlined did not report QS already

2020-07-30 Thread Paul E. McKenney
On Thu, Jul 30, 2020 at 09:42:22PM -0400, Joel Fernandes wrote: > On Thu, Jul 30, 2020 at 09:21:59AM -0700, Paul E. McKenney wrote: > > On Wed, Jul 29, 2020 at 11:02:20PM -0400, Joel Fernandes (Google) wrote: > > > Add a warning if CPU being onlined did not report QS already. This is to > > >

[git pull] drm fixes for 5.8-rc8 (part 2)

2020-07-30 Thread Dave Airlie
Hi Linus, As mentioned previously this contains the nouveau regression fix, amdgpu had 3 fixes outstanding as well, one revert, an info leak and use after free. The use after free is a bit trickier than I'd like, and I've personally gone over it to confirm I'm happy that it is doing what it says.

[PATCH v2 2/2] PCI: Reduce warnings on possible RW1C corruption

2020-07-30 Thread Mark Tomlinson
For hardware that only supports 32-bit writes to PCI there is the possibility of clearing RW1C (write-one-to-clear) bits. A rate-limited messages was introduced by fb2659230120, but rate-limiting is not the best choice here. Some devices may not show the warnings they should if another device has

[PATCH v2 1/2] PCI: iproc: Set affinity mask on MSI interrupts

2020-07-30 Thread Mark Tomlinson
The core interrupt code expects the irq_set_affinity call to update the effective affinity for the interrupt. This was not being done, so update iproc_msi_irq_set_affinity() to do so. Fixes: 3bc2b2348835 ("PCI: iproc: Add iProc PCIe MSI support") Signed-off-by: Mark Tomlinson --- changes in v2:

[PATCH] acpi: fix 'return' with no value build warning

2020-07-30 Thread Neal Liu
Fixing CFI issue which introduced by commit efe9711214e6 is incomplete. Add return value to fix return-type build warning. Signed-off-by: Neal Liu --- drivers/acpi/processor_idle.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/processor_idle.c

acpi: fix 'return' with no value build warning

2020-07-30 Thread Neal Liu
*** BLURB HERE *** Neal Liu (1): acpi: fix 'return' with no value build warning drivers/acpi/processor_idle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.18.0

[PATCH] mm/memcg: remove useless check on page->mem_cgroup

2020-07-30 Thread Alex Shi
Since readahead page will be charged on memcg too. We don't need to check this exception now. Rmove them is safe as all user pages are charged before use. Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Cc: Andrew Morton Cc: cgro...@vger.kernel.org Cc:

linux-next: build warnings after merge of the mac80211-next tree

2020-07-30 Thread Stephen Rothwell
Hi all, After merging the mac80211-next tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: drivers/net/wireless/ath/ath10k/mac.c: In function 'chan_to_phymode': drivers/net/wireless/ath/ath10k/mac.c:558:3: warning: enumeration value 'NL80211_CHAN_WIDTH_1' not handled

Re: [PATCH v2 1/3] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-30 Thread Jim Mattson
On Thu, Jul 30, 2020 at 4:53 PM Jim Mattson wrote: > > On Thu, Jul 30, 2020 at 4:08 PM Alexander Graf wrote: > > Do you have a particular situation in mind where that would not be the > > case and where we would still want to actually complete an MSR operation > > after the environment changed?

Re: [PATCH v10 22/28] media: platform: Change the call functions of getting/enable/disable the jpeg's clock

2020-07-30 Thread Xia Jiang
On Thu, 2020-07-30 at 16:34 +, Tomasz Figa wrote: > Hi Xia, > > On Thu, Jul 23, 2020 at 11:04:45AM +0800, Xia Jiang wrote: > > Use the generic of_property_* helpers to get the clock_nums and clocks > > from device tree. > > Use the generic clk_bulk_* helpers to enable and disable clocks. > >

Re: [PATCH v2 3/3] KVM: SVM: Fix disable pause loop exit/pause filtering capability on SVM

2020-07-30 Thread Wanpeng Li
On Thu, 30 Jul 2020 at 19:16, Vitaly Kuznetsov wrote: > > Wanpeng Li writes: > > > On Wed, 29 Jul 2020 at 20:21, Vitaly Kuznetsov wrote: > >> > >> Wanpeng Li writes: > >> > >> > From: Wanpeng Li > >> > > >> > Commit 8566ac8b (KVM: SVM: Implement pause loop exit logic in SVM) drops > >> >

[PATCH mmotm] mm: memcontrol: decouple reference counting from page accounting fix

2020-07-30 Thread Hugh Dickins
Moving tasks between mem cgroups with memory.move_charge_at_immigrate 3, while swapping, crashes soon on mmotm (and so presumably on linux-next): for example, spinlock found corrupted when lock_page_memcg() is called. It's as if the mem cgroup structures have been freed too early. Stab in the

BUG: unable to handle kernel paging request in __syscall_return_slowpath

2020-07-30 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:04300d66 Merge tag 'riscv-for-linus-5.8-rc7' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13e6fb6490 kernel config: https://syzkaller.appspot.com/x/.config?x=f87a5e4232fdb267

[PATCH v3 3/3] KVM: SVM: Fix disable pause loop exit/pause filtering capability on SVM

2020-07-30 Thread Wanpeng Li
From: Wanpeng Li 'Commit 8566ac8b8e7c ("KVM: SVM: Implement pause loop exit logic in SVM")' drops disable pause loop exit/pause filtering capability completely, I guess it is a merge fault by Radim since disable vmexits capabilities and pause loop exit for SVM patchsets are merged at the same

WARNING: ODEBUG bug in cancel_delayed_work

2020-07-30 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:27a2145d ibmvnic: Fix IRQ mapping disposal in error path git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1427784890 kernel config: https://syzkaller.appspot.com/x/.config?x=ca6448d2af2ba351 dashboard

WARNING in cancel_delayed_work

2020-07-30 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:83bdc727 random32: remove net_rand_state from the latent e.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10479f1290 kernel config: https://syzkaller.appspot.com/x/.config?x=e59ee776d5aa8d55

[PATCH v3 2/3] KVM: LAPIC: Set the TDCR settable bits

2020-07-30 Thread Wanpeng Li
From: Wanpeng Li It is a little different between Intel and AMD, Intel's bit 2 is 0 and AMD is reserved. On bare-metal, Intel will refuse to set APIC_TDCR once bits except 0, 1, 3 are setting, however, AMD will accept bits 0, 1, 3 and ignore other bits setting as patch does. Before the patch, we

[PATCH v3 1/3] KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled

2020-07-30 Thread Wanpeng Li
From: Wanpeng Li Prevent setting the tscdeadline timer if the lapic is hw disabled. Fixes: bce87cce88 (KVM: x86: consolidate different ways to test for in-kernel LAPIC) Cc: Signed-off-by: Wanpeng Li --- v1 -> v2: * add Fixes tag and cc stable arch/x86/kvm/lapic.c | 2 +- 1 file changed, 1

Re: [PATCH] uacce: fix some coding styles

2020-07-30 Thread Zhangfei Gao
On 2020/7/30 下午2:13, Kai Ye wrote: 1. delete some redundant code. 2. modify the module author information. Signed-off-by: Kai Ye Thanks Kai Acked-by: Zhangfei Gao Thanks

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

2020-07-30 Thread xunlei
On 2020/7/7 下午11:23, Pekka Enberg wrote: > 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

Re: [PATCH -next] sched/uclamp: kill unnecessary mutex_init()

2020-07-30 Thread Steven Rostedt
On Sat, 25 Jul 2020 16:56:29 +0800 Qinglang Miao wrote: > The mutex uclamp_mutex is initialized statically. It is > unnecessary to initialize by mutex_init(). > Seems reasonable. Reviewed-by: Steven Rostedt (VMware) -- Steve > Signed-off-by: Qinglang Miao > --- > kernel/sched/core.c | 2

[PATCH v1 2/2] perf/core: Fake regs for leaked kernel samples

2020-07-30 Thread Jin Yao
When doing sampling, for example, perf record -e cycles:u ... On workloads that do a lot of kernel entry/exits we see kernel samples, even though :u is specified. This is due to skid. This is a potential security issue because it may leak kernel address even though kernel sampling is disabled.

[PATCH v1 1/2] Missing instruction_pointer_set() instances

2020-07-30 Thread Jin Yao
There is a potential security issue that perf kernel samples may be leaked even though kernel sampling is disabled. For fixing the potential leakage, the idea is to use instruction_pointer_set to set invalid ip address in leaked perf samples in some cases. But instruction_pointer_set is missing

Re: KASAN: use-after-free Read in io_uring_setup (2)

2020-07-30 Thread Jens Axboe
On 7/30/20 8:28 PM, Hillf Danton wrote: > > On Thu, 30 Jul 2020 20:07:59 -0600 Jens Axboe wrote: >> On 7/30/20 7:45 PM, Hillf Danton wrote: >>> >>> Add the missing percpu_ref_get when creating ctx. >>> > [...] >> The error path doesn't care, the issue is only after fd install. Hence > > Yes you

Re: [PATCH v4 2/2] soc: mediatek: add mtk-devapc driver

2020-07-30 Thread Neal Liu
Hi Chun-Kuang, On Fri, 2020-07-31 at 00:14 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年7月29日 週三 下午4:29寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security

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

2020-07-30 Thread xunlei
On 2020/7/7 下午2:59, Christopher Lameter wrote: > On Thu, 2 Jul 2020, Xunlei Pang wrote: > >> This patch introduces two counters to maintain the actual number >> of partial objects dynamically instead of iterating the partial >> page lists with list_lock held. >> >> New counters of kmem_cache_node

Re: [PATCH] sched: remove duplicated tick_nohz_full_enabled() check

2020-07-30 Thread Steven Rostedt
On Tue, 28 Jul 2020 19:17:55 +0800 linmiaohe wrote: > From: Miaohe Lin > > The func tick_nohz_full_enabled() is also called by tick_nohz_full_cpu(). > So this one is duplicated and should be removed. Seems reasonable. Reviewed-by: Steven Rostedt (VMware) -- Steve > > Signed-off-by:

Re: [PATCH v4 2/2] soc: mediatek: add mtk-devapc driver

2020-07-30 Thread Neal Liu
Hi Chun-Kuang, On Thu, 2020-07-30 at 06:47 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年7月29日 週三 下午4:29寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security

Re: linux-next: Tree for Jul 30 [build failure on arm64]

2020-07-30 Thread Shaokun Zhang
Hi, There's a build failure on arm64: In file included from ./include/linux/compat.h:17:0, from ./arch/arm64/include/asm/stat.h:13, from ./include/linux/stat.h:6, from ./include/linux/sysfs.h:22, from

Re: [PATCH v4 2/2] soc: mediatek: add mtk-devapc driver

2020-07-30 Thread Neal Liu
Hi Chun-Kuang, On Thu, 2020-07-30 at 00:38 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年7月29日 週三 下午4:29寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security

Re: [PATCH] drm/amdkfd: Put ACPI table after using it

2020-07-30 Thread Felix Kuehling
Hi Hanjun, Sorry for the late reply. Thank you for the patch and the explanation. This seems to have been broken since the first version of KFD in 2014. See one suggestion inline. Am 2020-07-22 um 5:48 a.m. schrieb Hanjun Guo: > The acpi_get_table() should be coupled with acpi_put_table() if >

[ANNOUNCE] 5.4.54-rt32

2020-07-30 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 5.4.54-rt32 stable release. This release is just an update to the new stable 5.4.54 version and no RT specific changes have been made. You can get this release via the git tree at:

[RFC] ALSA: hda: Add workaround to adapt to Loongson 7A1000 controller

2020-07-30 Thread Kaige Li
There's some issues that cause palyback without a sound on Loongson platform (3A3000 + 7A1000) with a Realtek ALC269 codec. After lengthy debugging sessions, we solved it by adding workaround. Signed-off-by: Kaige Li --- sound/hda/hdac_controller.c| 63

[PATCH] erofs: remove WQ_CPU_INTENSIVE flag from unbound wq's

2020-07-30 Thread Gao Xiang
From: Gao Xiang The documentation [1] says that WQ_CPU_INTENSIVE is "meaningless" for unbound wq. I remove this flag from places where unbound queue is allocated. This is supposed to improve code readability. [1] https://www.kernel.org/doc/html/latest/core-api/workqueue.html#flags

Re: [PATCH] uacce: fix some coding styles

2020-07-30 Thread Zhou Wang
On 2020/7/30 14:13, Kai Ye wrote: > 1. delete some redundant code. > 2. modify the module author information. > > Signed-off-by: Kai Ye Fine to me. Reviewed-by: Zhou Wang Thanks, Zhou > --- > Changes in V2: > deleted extra NULL pointer check in uacce_fops. > >

[PATCH 5/6] crypto: crypto_engine: delete duplicated word

2020-07-30 Thread Randy Dunlap
Drop the doubled word "a". Signed-off-by: Randy Dunlap Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-cry...@vger.kernel.org --- crypto/crypto_engine.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200730.orig/crypto/crypto_engine.c +++ linux-

[PATCH 3/6] crypto: crc32c_generic: delete and fix duplicated words

2020-07-30 Thread Randy Dunlap
Drop the doubled word "the". Change "at at" to "at a". Signed-off-by: Randy Dunlap Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-cry...@vger.kernel.org --- crypto/crc32c_generic.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 2/6] crypto: asymmetric_keys: pkcs7_parser: delete duplicated word

2020-07-30 Thread Randy Dunlap
Drop the doubled word "the". Signed-off-by: Randy Dunlap Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-cry...@vger.kernel.org --- crypto/asymmetric_keys/pkcs7_parser.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200730.orig/cr

[PATCH 4/6] crypto: crct10dif_generic: fix duplicated words

2020-07-30 Thread Randy Dunlap
Change the doubled word "at" to "at a". Signed-off-by: Randy Dunlap Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-cry...@vger.kernel.org --- crypto/crct10dif_generic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200730.orig/crypto

[PATCH 6/6] crypto: tcrypt: delete duplicated words in messages

2020-07-30 Thread Randy Dunlap
Drop the doubled word "failed" in pr_err() messages. Signed-off-by: Randy Dunlap Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-cry...@vger.kernel.org --- crypto/tcrypt.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200730.orig/crypto/tcr

[PATCH 0/6] crypto: delete or fix duplicated words

2020-07-30 Thread Randy Dunlap
Drop doubled words or fix them to what they should be. Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-cry...@vger.kernel.org crypto/algif_aead.c |2 +- crypto/asymmetric_keys/pkcs7_parser.h |2 +- crypto/crc32c_generic.c |4 ++--

[PATCH 1/6] crypto: algif_aead: delete duplicated word

2020-07-30 Thread Randy Dunlap
Drop the doubled word "is". Signed-off-by: Randy Dunlap Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-cry...@vger.kernel.org --- crypto/algif_aead.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200730.orig/crypto/algif_aead.c +++ linux-

Re: [PATCH] mm/dmapool.c: add WARN_ON() in dma_pool_destroy

2020-07-30 Thread Matthew Wilcox
On Fri, Jul 31, 2020 at 10:39:39AM +0800, qiang.zh...@windriver.com wrote: > The pool is being destroyed, all page which in the pool, > should be free. if some page is still be use by somebody, > we should not just output error logs, also should also add > a warning message. There's already a

Re: [PATCH] ceph: use frag's MDS in either mode

2020-07-30 Thread Yanhu Cao
On Fri, Jul 31, 2020 at 12:46 AM Jeff Layton wrote: > > On Thu, 2020-07-30 at 19:22 +0800, Yanhu Cao wrote: > > if frag.mds != cap->session->s_mds, the client's req will be resent. > > > > e.g. > > > > file: mnt/cephfs/dir03/dir003 (0x103) > > ceph.dir.pin="1" > > > > echo 'aaa' >

Re: [PATCH v2] drm/connector: Add of_drm_find_connector

2020-07-30 Thread Andy Yan
ping On 7/3/20 5:45 PM, Andy Yan wrote: Add a function to look up a connector by device tree node, like what of_drm_find_bridge/panel does. Signed-off-by: Andy Yan Reported-by: kernel test robot --- Changes in v2: - Add function declaration drivers/gpu/drm/drm_connector.c | 33

[PATCH] mm/dmapool.c: add WARN_ON() in dma_pool_destroy

2020-07-30 Thread qiang.zhang
From: Zhang Qiang The pool is being destroyed, all page which in the pool, should be free. if some page is still be use by somebody, we should not just output error logs, also should also add a warning message. Signed-off-by: Zhang Qiang --- mm/dmapool.c | 2 +- 1 file changed, 1

RE: [PATCH v3 3/4] iommu: Add iommu_aux_get_domain_for_dev()

2020-07-30 Thread Tian, Kevin
> From: Tian, Kevin > Sent: Friday, July 31, 2020 8:26 AM > > > From: Alex Williamson > > Sent: Friday, July 31, 2020 4:17 AM > > > > On Wed, 29 Jul 2020 23:49:20 + > > "Tian, Kevin" wrote: > > > > > > From: Alex Williamson > > > > Sent: Thursday, July 30, 2020 4:25 AM > > > > > > > > On

Re: arm64: pointer_auth.h:40:3: error: implicit declaration of function 'get_random_bytes'; did you mean 'get_random_once'?

2020-07-30 Thread Willy Tarreau
On Thu, Jul 30, 2020 at 12:40:01PM -0700, Linus Torvalds wrote: > On Thu, Jul 30, 2020 at 12:05 PM Grygorii Strashko > wrote: > > > > FYI. Below diff seems fixes build: > > Thanks, I'll do that instead, it looks like the right thing to do regardless. > > Mind sending me a sign-off for it (and

Re: add file system helpers that take kernel pointers for the init code v4

2020-07-30 Thread Al Viro
On Thu, Jul 30, 2020 at 08:25:24AM +0200, Christoph Hellwig wrote: > On Wed, Jul 29, 2020 at 08:51:17PM +0100, Al Viro wrote: > > On Tue, Jul 28, 2020 at 06:33:53PM +0200, Christoph Hellwig wrote: > > > Hi Al and Linus, > > > > > > currently a lot of the file system calls in the early in code

[PATCH] dt-bindings: memory-controllers: Convert mmdc to json-schema

2020-07-30 Thread Anson Huang
Convert the MMDC memory controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../bindings/memory-controllers/fsl/mmdc.txt | 35 .../bindings/memory-controllers/fsl/mmdc.yaml | 49 ++ 2 files changed, 49

Re: KASAN: use-after-free Read in io_uring_setup (2)

2020-07-30 Thread Jens Axboe
On 7/30/20 7:45 PM, Hillf Danton wrote: > > Thu, 30 Jul 2020 12:21:18 -0700 >> syzbot found the following issue on: >> >> HEAD commit:04b45717 Add linux-next specific files for 20200729 >> git tree: linux-next >> console output: https://syzkaller.appspot.com/x/log.txt?x=173774b890

Re: [PATCH v2] clk: bcm2835: Do not use prediv with bcm2711's PLLs

2020-07-30 Thread Nathan Chancellor
On Thu, Jul 30, 2020 at 08:26:19PM +0200, Nicolas Saenz Julienne wrote: > Contrary to previous SoCs, bcm2711 doesn't have a prescaler in the PLL > feedback loop. Bypass it by zeroing fb_prediv_mask when running on > bcm2711. > > Note that, since the prediv configuration bits were re-purposed,

RE: [EXT] Re: [PATCH V2 1/4] spi: lpspi: Fix kernel warning dump when probe fail after calling spi_register

2020-07-30 Thread Clark Wang
> -Original Message- > From: Mark Brown > Sent: Monday, July 27, 2020 19:11 > To: Clark Wang > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [EXT] Re: [PATCH V2 1/4] spi: lpspi: Fix kernel warning dump when > probe fail after calling spi_register > > On Mon,

Re: [PATCH v2] drivers/net/wan/lapbether: Use needed_headroom instead of hard_header_len

2020-07-30 Thread Xie He
Brian Norris has approved this patch with "Reviewed-by" in the v1 email thread. I really appreciate his review. It's very hard for me to find reviewers for X.25 code so I'm grateful for anyone who could help. Thanks to everyone. Reviewed-by: Brian Norris

[PATCH net-next v2 1/2] hinic: add generating mailbox random index support

2020-07-30 Thread Luo bin
add support to generate mailbox random id of VF to ensure that mailbox messages PF received are from the correct VF. Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 13 ++ .../net/ethernet/huawei/hinic/hinic_hw_mbox.c | 136 ++

  1   2   3   4   5   6   7   8   9   10   >