Re: [PATCH v7 06/13] pwm: add support for sl28cpld PWM controller

2020-08-07 Thread Michael Walle
Hi Uwe, Hi Lee, Am 2020-08-06 10:40, schrieb Uwe Kleine-König: On Mon, Aug 03, 2020 at 11:35:52AM +0200, Michael Walle wrote: diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 7dbcf6973d33..a0d50d70c3b9 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -428,6 +428,16 @@

KASAN: use-after-free Read in rc_dev_uevent

2020-08-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7b4ea945 Revert "x86/mm/64: Do not sync vmalloc/ioremap ma.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=11a7813a90 kernel

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

2020-08-07 Thread Pekka Enberg
On Thu, Aug 6, 2020 at 3:42 PM Vlastimil Babka wrote: > > On 7/2/20 10:32 AM, Xunlei Pang wrote: > > The node list_lock in count_partial() spend long time iterating > > in case of large amount of partial page lists, which can cause > > thunder herd effect to the list_lock contention, e.g. it

Re: [PATCH 4.19 0/6] 4.19.138-rc1 review

2020-08-07 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 4.19.138 release. > There are 6 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 Fri, 07 Aug 2020 15:34:53

Re: [PATCH 25/26] net: pass a sockptr_t into ->setsockopt

2020-08-07 Thread Christoph Hellwig
On Thu, Aug 06, 2020 at 03:21:25PM -0700, Eric Dumazet wrote: > converting get_user(...) to copy_from_sockptr(...) really assumed the > optlen > has been validated to be >= sizeof(int) earlier. > > Which is not always the case, for example here. Yes. And besides the bpfilter mess the main

Re: [GIT] Networking

2020-08-07 Thread Christoph Hellwig
On Thu, Aug 06, 2020 at 11:23:34PM -0700, John Stultz wrote: > So I've finally rebase-bisected it down to: > a31edb2059ed ("net: improve the user pointer check in init_user_sockptr") >

[PATCH v9 3/5] drm/msm/dp: add support for DP PLL driver

2020-08-07 Thread Tanmay Shah
From: Chandan Uddaraju Add the needed DP PLL specific files to support display port interface on msm targets. The DP driver calls the DP PLL driver registration. The DP driver sets the link and pixel clock sources. Changes in v2: -- Update copyright markings on all relevant files. -- Use

Re: [PATCH] ASoC: fsl-asoc-card: Get "extal" clock rate by clk_get_rate

2020-08-07 Thread Shengjiu Wang
On Thu, Aug 6, 2020 at 8:39 PM Mark Brown wrote: > > On Thu, Aug 06, 2020 at 03:39:45PM +0800, Shengjiu Wang wrote: > > > } else if (of_node_name_eq(cpu_np, "esai")) { > > + struct clk *esai_clk = clk_get(_pdev->dev, "extal"); > > + > > + if (!IS_ERR(esai_clk)) { > >

[PATCH v9 1/5] drm: add constant N value in helper file

2020-08-07 Thread Tanmay Shah
From: Chandan Uddaraju The constant N value (0x8000) is used by i915 DP driver. Define this value in dp helper header file to use in multiple Display Port drivers. Change i915 driver accordingly. Change in v6: Change commit message Signed-off-by: Chandan Uddaraju Signed-off-by: Vara Reddy

[PATCH v9 0/5] Add support for DisplayPort driver on SnapDragon

2020-08-07 Thread Tanmay Shah
These patches add Display-Port driver on SnapDragon/msm hardware. This series also contains device-tree bindings for msm DP driver. It also contains Makefile and Kconfig changes to compile msm DP driver. The block diagram of DP driver is shown below: +-+

[PATCH v9 5/5] drm/msm/dp: Add Display Port HPD feature

2020-08-07 Thread Tanmay Shah
Configure HPD registers in DP controller and enable HPD interrupt. Add interrupt to handle HPD connect and disconnect events. Changes in v8: None Signed-off-by: Tanmay Shah --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 18 drivers/gpu/drm/msm/dp/dp_catalog.c | 63 --

[PATCH v9 4/5] drm/msm/dpu: add display port support in DPU

2020-08-07 Thread Tanmay Shah
From: Jeykumar Sankaran Add display port support in DPU by creating hooks for DP encoder enumeration and encoder mode initialization. changes in v2: - rebase on [2] (Sean Paul) - remove unwanted error checks and switch cases (Jordan Crouse) [1]

Re: [x86/copy_mc] a0ac629ebe: fio.read_iops -43.3% regression

2020-08-07 Thread kernel test robot
On Thu, Aug 06, 2020 at 05:35:00PM +0200, Ingo Molnar wrote: > > * Dan Williams wrote: > > > On Thu, Aug 6, 2020 at 6:35 AM Ingo Molnar wrote: > > > > > > > > > * kernel test robot wrote: > > > > > > > Greeting, > > > > > > > > FYI, we noticed a -43.3% regression of fio.read_iops due to

WARNING: ODEBUG bug in put_device

2020-08-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:47ec5303 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11d8d3c690 kernel config: https://syzkaller.appspot.com/x/.config?x=7bb894f55faf8242

[PATCH v2 2/4] perf arm_arch_timer: Convert between counter and timestamp

2020-08-07 Thread Leo Yan
This patch introduces two new APIs, one is to calculate from converting counter to timestamp and provides a reverse flow to convert timestamp to counter. Signed-off-by: Leo Yan --- tools/perf/util/Build| 1 + tools/perf/util/arm_arch_timer.c | 28

INFO: trying to register non-static key in l2cap_chan_close

2020-08-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:01830e6c Add linux-next specific files for 20200731 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=171e3dc690 kernel config: https://syzkaller.appspot.com/x/.config?x=2e226b2d1364112c dashboard

[PATCH v2 1/4] perf tools: Support Arm arch timer counter

2020-08-07 Thread Leo Yan
The Arm arch timer can be used to calculate timestamp, the basic idea is the arch timer's counter value can be recorded in the hardware tracing data, e.g. the arch timer's counter value can be used for Arm CoreSight (not now but might be implemented later) and Arm SPE. So we need a way to convert

[PATCH v2 4/4] perf arm-spe: Enable timestamp with arch timer counter

2020-08-07 Thread Leo Yan
Since the arch timer's counter is used for SPE tracing data, and now it's ready to use arch timer for sample's timestamp in Perf tool, this patch is to enable timestamp by convert the arch timer counter value to the time. After enabling timestamp for Arm SPE with this patch, we can see the

[PATCH v2 3/4] perf arm_arch_timer: Test conversion between counter and timestamp

2020-08-07 Thread Leo Yan
x86 arch has provides the testing for conversion between tsc and perf time, this patch studies it and writes a similar testing for conversion between arch timer's counter and sample's time. The testing approach firstly creates three time points: Time point 1: 1st process's sample with perf

[PATCH v2 0/4] Perf tool: Enable Arm arch timer counter and arm-spe's timestamp

2020-08-07 Thread Leo Yan
This patch set is to enable Arm arch timer counter and Arm SPE is the first customer to use arch timer counter for its timestamp. Patches 01 ~ 03 enables Arm arch timer counter in Perf tool; patch 01 is to retrieve arch timer's parameters from mmaped page; patch 02 provides APIs for the

memory leak in hci_conn_add

2020-08-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:47ec5303 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11a0122c90 kernel config: https://syzkaller.appspot.com/x/.config?x=eab224ce244e423c

[PATCH] ALSA: usb-audio: Fix memleak in scarlett2_add_new_ctl

2020-08-07 Thread Dinghao Liu
When snd_usb_mixer_add_control() fails, elem needs to be freed just like when snd_ctl_new1() fails. However, current code is returning directly and ends up leaking memory. Fixes: 9e4d5c1be21f0 ("ALSA: usb-audio: Scarlett Gen 2 mixer interface") Signed-off-by: Dinghao Liu ---

Re: [PATCH] mm: sort freelist by rank number

2020-08-07 Thread Pekka Enberg
Hi Cho and David, On Mon, Aug 3, 2020 at 10:57 AM David Hildenbrand wrote: > > On 03.08.20 08:10, pullip@samsung.com wrote: > > From: Cho KyongHo > > > > LPDDR5 introduces rank switch delay. If three successive DRAM accesses > > happens and the first and the second ones access one rank and

KASAN: use-after-free Write in afs_manage_cell

2020-08-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fffe3ae0 Merge tag 'for-linus-hmm' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1053efea90 kernel config: https://syzkaller.appspot.com/x/.config?x=18bb86f2e4ebfda2

KASAN: use-after-free Read in __usb_hcd_giveback_urb

2020-08-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fffe3ae0 Merge tag 'for-linus-hmm' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12b22fda90 kernel config: https://syzkaller.appspot.com/x/.config?x=226c7a97d80bec54

WARNING: locking bug in l2cap_chan_del

2020-08-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:47ec5303 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=111d93fa90 kernel config: https://syzkaller.appspot.com/x/.config?x=7bb894f55faf8242

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-07 Thread Sedat Dilek
On Fri, Aug 7, 2020 at 12:13 AM Thomas Gleixner wrote: > > Sedat Dilek writes: > > what is the status of this patch? > > Just looked at it. > > > I needed this one to be able to build VirtualBox via DKMS as an > > out-of-tree kernel-module. > > Not being able to build the vbox rootkit is a

Re: memory leak in do_eventfd

2020-08-07 Thread Rustam Kovhaev
On Thu, Jun 04, 2020 at 09:24:02PM -0700, Eric Biggers wrote: > [+Cc kvm mailing list] > > On Wed, May 20, 2020 at 06:12:17PM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:5a9ffb95 Merge tag '5.7-rc5-smb3-fixes' of git://git.samba.. > > git

Re: [PATCH v5 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline

2020-08-07 Thread David Hildenbrand
On 07.08.20 06:32, Andrew Morton wrote: > On Fri, 3 Jul 2020 18:28:23 +0530 Srikar Dronamraju > wrote: > >>> The memory hotplug changes that somehow because you can hotremove numa >>> nodes and therefore make the nodemask sparse but that is not a common >>> case. I am not sure what would happen

Re: [RESEND PATCH] media: atomisp: Replace trace_printk by pr_info

2020-08-07 Thread Nicolas Boichat
On Fri, Aug 7, 2020 at 2:28 PM Greg Kroah-Hartman wrote: > > On Fri, Aug 07, 2020 at 09:50:23AM +0800, Nicolas Boichat wrote: > > On Fri, Jul 24, 2020 at 8:41 PM Nicolas Boichat > > wrote: > > > > > > On Fri, Jul 10, 2020 at 3:03 PM Greg Kroah-Hartman > > > wrote: > > > > > > > > On Fri, Jul

Re: [GIT] Networking

2020-08-07 Thread John Stultz
On Thu, Aug 6, 2020 at 11:23 PM John Stultz wrote: > > On Thu, Aug 6, 2020 at 5:32 PM John Stultz wrote: > > > > On Thu, Aug 6, 2020 at 4:17 PM Eric Dumazet wrote: > > > On 8/6/20 2:39 PM, John Stultz wrote: > > > > [ 19.709492] Unable to handle kernel access to user memory outside > > > >

Re: [PATCH 1/2] module: Correctly truncate sysfs sections output

2020-08-07 Thread Greg Kroah-Hartman
On Thu, Aug 06, 2020 at 11:35:38PM -0700, Kees Cook wrote: > The only-root-readable /sys/module/$module/sections/$section files > did not truncate their output to the available buffer size. While most > paths into the kernfs read handlers end up using PAGE_SIZE buffers, > it's possible to get

Re: [PATCH] staging: Add Mediatek High Frequency Manager Framework

2020-08-07 Thread Greg Kroah-Hartman
On Fri, Aug 07, 2020 at 02:30:29PM +0800, hongxu.zhao wrote: > On Thu, 2020-08-06 at 12:53 +0200, Greg Kroah-Hartman wrote: > > On Thu, Aug 06, 2020 at 04:32:28PM +0800, hongxu.zhao wrote: > > > On Tue, 2020-08-04 at 10:11 +0200, Greg Kroah-Hartman wrote: > > > > On Tue, Aug 04, 2020 at 03:52:49PM

[PATCH net-next] vmxnet3: use correct tcp hdr length when packet is encapsulated

2020-08-07 Thread Ronak Doshi
'Commit dacce2be3312 ("vmxnet3: add geneve and vxlan tunnel offload support")' added support for encapsulation offload. However, while calculating tcp hdr length, it does not take into account if the packet is encapsulated or not. This patch fixes this issue by using correct reference for inner

linux-next: Tree for Aug 7

2020-08-07 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do not add any v5.10 related material to your linux-next included branches until after the merge window closes again. Changes since 20200806: My fixes tree contains: dbf24e30ce2e ("device_cgroup: Fix RCU list debugging warning") Non-merge

Re: [PATCH] hwmon/pmbus: use simple i2c probe function

2020-08-07 Thread Stephen Kitt
On Thu, 6 Aug 2020 14:48:58 -0700, Guenter Roeck wrote: > On 8/6/20 1:12 PM, Stephen Kitt wrote: > > On Thu, 6 Aug 2020 12:15:55 -0700, Guenter Roeck > > wrote: > >> On 8/6/20 9:16 AM, Stephen Kitt wrote: [...] > >> Also, I am not convinced that replacements such as > >> > >> - { "ipsps1",

[PATCH 1/2] module: Correctly truncate sysfs sections output

2020-08-07 Thread Kees Cook
The only-root-readable /sys/module/$module/sections/$section files did not truncate their output to the available buffer size. While most paths into the kernfs read handlers end up using PAGE_SIZE buffers, it's possible to get there through other paths (e.g. splice, sendfile). Actually limit the

[PATCH 0/2] module: Correctly truncate sysfs sections output

2020-08-07 Thread Kees Cook
Hi, This fixes my sysfs module sections refactoring to take into account the case where the output buffer is not PAGE_SIZE. :( Thanks to 0day and trinity for noticing. I'll let this sit in -next for a few days and then send it to Linus. -Kees Kees Cook (2): module: Correctly truncate sysfs

[PATCH 2/2] selftests: splice: Check behavior of full and short splices

2020-08-07 Thread Kees Cook
In order to help catch regressions in splice vs read behavior in certain special files, test a few with various different kinds of internal kernel helpers. Cc: Shuah Khan Signed-off-by: Kees Cook --- tools/testing/selftests/splice/.gitignore | 1 + tools/testing/selftests/splice/Makefile

[tip:timers/core] BUILD SUCCESS 0099808553ad4f9c04ad7afd966f6d7f470f247f

2020-08-07 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core branch HEAD: 0099808553ad4f9c04ad7afd966f6d7f470f247f x86: Select POSIX_CPU_TIMERS_TASK_WORK elapsed time: 724m configs tested: 112 configs skipped: 6 The following configs have been built successfully.

[tip:perf/urgent] BUILD SUCCESS b55b3fdce3e554a6bbe8f8ca6a01a892d720e64e

2020-08-07 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/urgent branch HEAD: b55b3fdce3e554a6bbe8f8ca6a01a892d720e64e hw_breakpoint: Remove unused __register_perf_hw_breakpoint() declaration elapsed time: 724m configs tested: 110 configs skipped: 6 The following configs

[GIT PULL] Mailbox changes for v5.9

2020-08-07 Thread Jassi Brar
Hi Linus, The following changes since commit 92ed301919932f13b9172e525674157e983d: Linux 5.8-rc7 (2020-07-26 14:14:06 -0700) are available in the Git repository at: git://git.linaro.org/landing-teams/working/fujitsu/integration.git tags/mailbox-v5.9 for you to fetch changes up to

Re: [RESEND PATCH] media: atomisp: Replace trace_printk by pr_info

2020-08-07 Thread Greg Kroah-Hartman
On Fri, Aug 07, 2020 at 09:50:23AM +0800, Nicolas Boichat wrote: > On Fri, Jul 24, 2020 at 8:41 PM Nicolas Boichat wrote: > > > > On Fri, Jul 10, 2020 at 3:03 PM Greg Kroah-Hartman > > wrote: > > > > > > On Fri, Jul 10, 2020 at 02:45:29PM +0800, Nicolas Boichat wrote: > > > > trace_printk should

Re: [PATCH v6 2/2] devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml

2020-08-07 Thread Chris Ruehl
Rob, sorry for late reply, I have my head in setup production install the dt-schema and rerun the check, with 2020-6 no warnings lets fix it. Chris On 13/7/2020 11:00 pm, Rob Herring wrote: On Sun, 12 Jul 2020 12:44:10 +0800, Chris Ruehl wrote: Add documentation for the newly added DTS

Re: Is anyone else getting a bad signature from kernel.org's 5.8 sources+Greg's sign?

2020-08-07 Thread Greg Kroah-Hartman
On Wed, Aug 05, 2020 at 11:20:38PM -0400, David Niklas wrote: > On Wed, 5 Aug 2020 18:36:08 -0700 > Randy Dunlap wrote: > > > On 8/5/20 5:59 PM, David Niklas wrote: > > > Hello, > > > I downloaded the kernel sources from kernel.org using curl, then > > > opera, and finally lynx (to rule out an

Re: [PATCH] perf record: Skip side-band event setup if HAVE_LIBBPF_SUPPORT is not set

2020-08-07 Thread Jin, Yao
Hi Jiri, On 8/7/2020 3:43 AM, Jiri Olsa wrote: On Wed, Aug 05, 2020 at 10:29:37AM +0800, Jin Yao wrote: We received an error report that perf-record caused 'Segmentation fault' on a newly system (e.g. on the new installed ubuntu). (gdb) backtrace #0 __read_once_size (size=4, res=,

[RESEND 0/3] Venus - Handle race conditions in concurrency

2020-08-07 Thread Mansur Alisha Shaik
The intention of this patchset is to handle race conditions during concurrency usecases like Multiple YouTube browser tabs(approx 50 plus tabs), graphics_Stress, WiFi ON/OFF, Bluetooth ON/OF, and reboot in parallel. --- Resending the fixes by describing more about the issue and correcting typo

[RESEND 2/3] venus: core: cancel pending work items in workqueue

2020-08-07 Thread Mansur Alisha Shaik
In concurrency usecase and reboot scenario we are observing race condition and seeing NULL pointer dereference crash. In shutdown path and system recovery path we are destroying the same mutex hence seeing crash. This case is handled by mutex protection and cancel delayed work items in work

[RESEND 3/3] venus: handle use after free for iommu_map/iommu_unmap

2020-08-07 Thread Mansur Alisha Shaik
In concurrency usecase and reboot scenario we are trying to map fw.iommu_domain which is already unmapped during shutdown. This is causing NULL pointer dereference crash. This case is handled by adding necessary checks. Call trace: __iommu_map+0x4c/0x348 iommu_map+0x5c/0x70

[RESEND 1/3] venus: core: handle race condititon for core ops

2020-08-07 Thread Mansur Alisha Shaik
For core ops we are having only write protect but there is no read protect, because of this in multthreading and concurrency, one CPU core is reading without wait which is causing the NULL pointer dereferece crash. one such scenario is as show below, where in one core core->ops becoming NULL and

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

2020-08-07 Thread Jin, Yao
Hi Peter, On 8/6/2020 7:00 PM, pet...@infradead.org wrote: On Thu, Aug 06, 2020 at 11:18:27AM +0200, pet...@infradead.org wrote: Suppose we have nested virt: L0-hv | G0/L1-hv | G1 And we're running in G0, then: - 'exclude_hv' would exclude L0

Re: [PATCH v3 2/4] irqchip/qcom-pdc: Switch to using IRQCHIP_PLATFORM_DRIVER helper macros

2020-08-07 Thread Saravana Kannan
On Thu, Aug 6, 2020 at 10:58 PM Bjorn Andersson wrote: > > On Thu 06 Aug 19:48 PDT 2020, John Stultz wrote: > > > On Thu, Aug 6, 2020 at 6:42 PM Bjorn Andersson > > wrote: > > > On Thu 06 Aug 18:22 PDT 2020, John Stultz wrote: > > > > On Thu, Aug 6, 2020 at 5:43 PM Bjorn Andersson > > > >

Re: [GIT] Networking

2020-08-07 Thread John Stultz
On Thu, Aug 6, 2020 at 5:32 PM John Stultz wrote: > > On Thu, Aug 6, 2020 at 4:17 PM Eric Dumazet wrote: > > On 8/6/20 2:39 PM, John Stultz wrote: > > > [ 19.709492] Unable to handle kernel access to user memory outside > > > uaccess routines at virtual address 006f53337070 > > > [

[GIT PULL]: dmaengine updates for v5.9-rc1

2020-08-07 Thread Vinod Koul
Hello Linus, Now that mail.kernel.org is back, time to send the pull request. Please pull to receive the below updates for dmaengine. Please note that SFR has reported conflicts with MAINTAINERS file update in this request, am sure that would be easy for you to manage :) The following changes

<    5   6   7   8   9   10