Re: [PATCH] iwlwifi: fix memory leaks in iwl_pcie_ctxt_info_gen3_init

2019-09-29 Thread Luca Coelho
On Fri, 2019-09-27 at 15:56 -0500, Navid Emamdoost wrote: > In iwl_pcie_ctxt_info_gen3_init there are cases that the allocated dma > memory is leaked in case of error. > DMA memories prph_scratch, prph_info, and ctxt_info_gen3 are allocated > and initialized to be later assigned to trans_pcie. But

Re: [PATCH] usb: dwc3: pci: prevent memory leak in dwc3_pci_probe

2019-09-29 Thread Markus Elfring
> … This commit replaces return with the goto. How do you think about to omit the wording “This commit” from your change descriptions? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=97f9a3c4eee55b0178b518ae7114a6a53372913d#n

Re: [PATCH v2 1/1] i2c: iproc: Add i2c repeated start capability

2019-09-29 Thread Rayagonda Kokatanur
On Sat, Sep 28, 2019 at 11:53 PM Wolfram Sang wrote: > > On Thu, Sep 26, 2019 at 10:10:08AM +0530, Rayagonda Kokatanur wrote: > > From: Lori Hikichi > > > > Enable handling of i2c repeated start. The current code > > handles a multi msg i2c transfer as separate i2c bus > > transactions. This chan

[PATCH v2 1/1] i2c: iproc: Add i2c repeated start capability

2019-09-29 Thread Rayagonda Kokatanur
From: Lori Hikichi Enable handling of i2c repeated start. The current code handles a multi msg i2c transfer as separate i2c bus transactions. This change will now handle this case using the i2c repeated start protocol. The number of msgs in a transfer is limited to two, and must be a write follow

Re: [PATCH] iwlwifi: dvm: excessive if in rs_bt_update_lq()

2019-09-29 Thread Luciano Coelho
On Wed, 2019-09-25 at 23:49 +0300, Denis Efremov wrote: > There is no need to check 'priv->bt_ant_couple_ok' twice in > rs_bt_update_lq(). The second check is always true. Thus, the > expression can be simplified. > > Signed-off-by: Denis Efremov > --- > drivers/net/wireless/intel/iwlwifi/dvm/rs

Re: [PATCH] mm/page_alloc: fix a crash in free_pages_prepare()

2019-09-29 Thread Christian Borntraeger
On 27.09.19 23:59, Andrew Morton wrote: > On Fri, 27 Sep 2019 17:28:06 -0400 Qian Cai wrote: > >>> >>> So I think you've moved the arch_free_page() to be after the final >>> thing which can access page contents, yes? If so, we should have a >>> comment in free_pages_prepare() to attmept to pr

Re: [PATCH] mm/page_alloc: fix a crash in free_pages_prepare()

2019-09-29 Thread Christian Borntraeger
On 28.09.19 11:06, David Hildenbrand wrote: > On 28.09.19 00:17, Alexander Duyck wrote: >> On Fri, Sep 27, 2019 at 2:59 PM Andrew Morton >> wrote: >>> >>> On Fri, 27 Sep 2019 17:28:06 -0400 Qian Cai wrote: >>> > > So I think you've moved the arch_free_page() to be after the final

[RFC PATCH] Don't copy mark from encapsulated packet when routing VXLAN

2019-09-29 Thread Jethro Beekman
When using rule-based routing to send traffic via VXLAN, a routing loop may occur. Say you have the following routing setup: ip rule add from all fwmark 0x2/0x2 lookup 2 ip route add table 2 default via 10.244.2.0 dev vxlan1 onlink The intention is to route packets with mark 2 through VXLAN, and

Re: [PATCH] iwlwifi: dbg_ini: fix memory leak in alloc_sgtable

2019-09-29 Thread Luca Coelho
On Thu, 2019-09-12 at 23:23 -0500, Navid Emamdoost wrote: > In alloc_sgtable if alloc_page fails, the alocated table should be > released. > > Signed-off-by: Navid Emamdoost > --- > drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 1 + > 1 file changed, 1 insertion(+) Thanks, Navid! I have applied

Re: [PATCH] spi: gpio: prevent memory leak in spi_gpio_probe

2019-09-29 Thread Markus Elfring
* Please avoid typos in the commit message. * I would prefer an other wording for the change description. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=97f9a3c4eee55b0178b518ae7114a6a53372913d#n151 Regards, Markus

[PATCH v6 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-09-29 Thread Alastair D'Silva
From: Alastair D'Silva On PowerPC, the address ranges allocated to OpenCAPI LPC memory are allocated from firmware. These address ranges may be higher than what older kernels permit, as we increased the maximum permissable address in commit 4ffe713b7587 ("powerpc/mm: Increase the max addressable

[PATCH v6 0/1] Add bounds check for Hotplugged memory

2019-09-29 Thread Alastair D'Silva
From: Alastair D'Silva This series adds bounds checks for hotplugged memory, ensuring that it is within the physically addressable range (for platforms that define MAX_(POSSIBLE_)PHYSMEM_BITS. This allows for early failure, rather than attempting to access bogus section numbers. Changelog: V6:

[PATCH V10 0/2] mailbox: arm: introduce smc triggered mailbox

2019-09-29 Thread Peng Fan
From: Peng Fan V10: - Add R-b tag from Andre, Rob and Florian - Two minor fixes - Drop "passed from consumers" in patch 1/2 per Andre's comments - Drop interrupts.h in patch 2/2 per Andre's comments V9: - Add Florian's R-b tag in patch 1/2 - Mark arm,func-id as a required property per An

[PATCH V10 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-29 Thread Peng Fan
From: Peng Fan The ARM SMC/HVC mailbox binding describes a firmware interface to trigger actions in software layers running in the EL2 or EL3 exception levels. The term "ARM" here relates to the SMC instruction as part of the ARM instruction set, not as a standard endorsed by ARM Ltd. Reviewed-b

[PATCH V10 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-29 Thread Peng Fan
From: Peng Fan This mailbox driver implements a mailbox which signals transmitted data via an ARM smc (secure monitor call) instruction. The mailbox receiver is implemented in firmware and can synchronously return data when it returns execution to the non-secure world again. An asynchronous recei

Re: [PATCH 4.19 33/63] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

2019-09-29 Thread Pavel Machek
> From: Vadim Sukhomlinov > > commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream > > TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM chip and disabling > future TPM operations. TPM 1.2 behavior was different, future TPM > operations weren't disabled, causing rare issues. This patch e

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Borislav Petkov
On Sun, Sep 29, 2019 at 07:59:19PM -0700, Linus Torvalds wrote: > All my smoke testing looked fine - I disabled trusting the CPU, I > increased the required entropy a lot, and to actually trigger the > lockup issue without the broken user space, I made /dev/urandom do > that "wait for entropy" thin

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-09-29 Thread Masahiro Yamada
Hi. On Fri, Sep 27, 2019 at 7:58 PM Nicolas Saenz Julienne wrote: > > On Fri, 2019-08-30 at 12:43 +0900, Masahiro Yamada wrote: > > Commit 9012d011660e ("compiler: allow all arches to enable > > CONFIG_OPTIMIZE_INLINING") allowed all architectures to enable > > this option. A couple of build erro

Re: [PATCH] fs: affs: fix a memory leak in affs_remount

2019-09-29 Thread Markus Elfring
* Please avoid typos in the commit message. * I would prefer an other wording for the change description. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=97f9a3c4eee55b0178b518ae7114a6a53372913d#n151 > But this is not act

[PATCH] ARM: fix __get_user_check() in case uaccess_* calls are not inlined

2019-09-29 Thread Masahiro Yamada
KernelCI reports that bcm2835_defconfig is no longer booting since commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly"): https://lkml.org/lkml/2019/9/26/825 I also received a regression report from Nicolas Saenz Julienne: https://lkml.org/lkml/2019/9/27/263 This proble

Re: [PATCH v5 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-09-29 Thread Alastair D'Silva
On Mon, 2019-09-30 at 12:21 +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > On PowerPC, the address ranges allocated to OpenCAPI LPC memory > are allocated from firmware. These address ranges may be higher > than what older kernels permit, as we increased the maximum > permissable add

[PATCH] ARM: module: remove 'always false' statement

2019-09-29 Thread Austin Kim
The each field of 'struct elf32_rel' is declared as below. typedef struct elf32_rel { Elf32_Addr r_offset; Elf32_Word r_info; } Elf32_Rel; typedef __u32 Elf32_Addr; typedef __u32 Elf32_Word; This means that 'r_offset' and 'r_info' could contain non-negative value. So 'always false' statemen

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-29 Thread Alexander Kapshuk
On Mon, Sep 30, 2019 at 8:35 AM Borislav Petkov wrote: > > On Tue, Sep 24, 2019 at 07:46:59AM +0300, Alexander Kapshuk wrote: > > gawk 5.0.1 generates the regexp warnings shown below: > > GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c > > awk: ../arch/x86/tools/gen-insn-att

Re: [PATCH v6] perf: Sharing PMU counters across compatible events

2019-09-29 Thread Song Liu
Hi Peter, > On Sep 18, 2019, at 10:23 PM, Song Liu wrote: > > This patch tries to enable PMU sharing. To make perf event scheduling > fast, we use special data structures. > > An array of "struct perf_event_dup" is added to the perf_event_context, > to remember all the duplicated events under t

Re: [PATCH] arm64: tegra: only map accessible sysram

2019-09-29 Thread Stephen Warren
On 9/29/19 2:08 PM, Mian Yousaf Kaukab wrote: > Most of the SysRAM is secure and only accessible by TF-A. > Don't map this inaccessible memory in kernel. Only map pages > used by bpmp driver. I don't believe this change is correct. The actual patch doesn't implement mapping a subset of the RAM (a

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-29 Thread Borislav Petkov
On Tue, Sep 24, 2019 at 07:46:59AM +0300, Alexander Kapshuk wrote: > gawk 5.0.1 generates the regexp warnings shown below: > GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c > awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape > sequence `\:' is not a kn

Re: [PATCH] perf: rework memory accounting in perf_mmap()

2019-09-29 Thread Song Liu
> On Sep 16, 2019, at 1:10 PM, Hechao Li wrote: > > Song Liu wrote on Mon [2019-Sep-16 12:43:16 -0700]: >> Hi Peter, >> >>> On Sep 4, 2019, at 2:46 PM, Song Liu wrote: >>> >>> perf_mmap() always increases user->locked_vm. As a result, "extra" could >>> grow bigger than "user_extra", which

[PATCH] iio: adc: Variables could be uninitalized if regmap_read() fails

2019-09-29 Thread Yizhuo
Several functions in this file are trying to use regmap_read() to initialize the specific variable, however, if regmap_read() fails, the variable could be uninitialized but used directly, which is potentially unsafe. The return value of regmap_read() should be checked and handled. Signed-off-by: Y

Re: [PATCH v4] arm64: use generic free_initrd_mem()

2019-09-29 Thread Anshuman Khandual
On 09/28/2019 01:32 PM, Mike Rapoport wrote: > From: Mike Rapoport > > arm64 calls memblock_free() for the initrd area in its implementation of > free_initrd_mem(), but this call has no actual effect that late in the boot > process. By the time initrd is freed, all the reserved memory is manage

[PATCH] AF_PACKET doesnt strip VLAN information

2019-09-29 Thread Sriram Krishnan
When an application sends with AF_PACKET and places a vlan header on the raw packet; then the AF_PACKET needs to move the tag into the skb so that it gets processed normally through the rest of the transmit path. This is particularly a problem on Hyper-V where the host only allows vlan in the offl

Re: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Peter Rosin
On 2019-09-30 04:43, Biwen Li wrote: >> >> On 2019-09-29 12:36, Biwen Li wrote: >>> On some Layerscape boards like LS2085ARDB and LS2088ARDB, input >>> pull-up resistors on PCA954x MUX device are missing on board, So, if >>> MUX are disabled after powered-on, input lines will float leading to >>> i

[PATCH] PCI: Add Loongson vendor ID and device IDs

2019-09-29 Thread Tiezhu Yang
Add the Loongson vendor ID and device IDs to pci_ids.h to be used in the future. The Loongson IDs can be found at the following link: https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/tree/pci.ids Co-developed-by: Lu Zeng Signed-off-by: Lu Zeng Signed-off-by: Tiezhu Yang --- include

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-29 Thread Walter Wu
On Fri, 2019-09-27 at 21:41 +0200, Dmitry Vyukov wrote: > On Fri, Sep 27, 2019 at 4:22 PM Walter Wu wrote: > > > > On Fri, 2019-09-27 at 15:07 +0200, Dmitry Vyukov wrote: > > > On Fri, Sep 27, 2019 at 5:43 AM Walter Wu > > > wrote: > > > > > > > > memmove() and memcpy() have missing underflow is

RE: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-29 Thread Namjae Jeon
> [..] > > Put it in drivers/staging/sdfat/. > > > > But really we want someone from Samsung to say that they will treat > > the staging version as upstream. It doesn't work when people apply > > fixes to their version and a year later back port the fixes into > > staging. The staging tree is g

[PATCH] spi: lpspi: fix memory leak in fsl_lpspi_probe

2019-09-29 Thread Navid Emamdoost
In fsl_lpspi_probe an SPI controller is allocated either via spi_alloc_slave or spi_alloc_master. In all but one error cases this controller is put by going to error handling code. This commit fixes the case when pm_runtime_get_sync fails and it should go to the error handling path. Fixes: 944c01a

linux-next: Tree for Sep 30

2019-09-29 Thread Stephen Rothwell
Hi all, Changes since 20190926: The powerpc tree (well, Linus' tree really) gained a build failure for which I applied a patch. Non-merge commits (relative to Linus' tree): 462 574 files changed, 9710 insertions(+), 4176 deletions(-)

[PATCH] spi: gpio: prevent memroy leak in spi_gpio_probe

2019-09-29 Thread Navid Emamdoost
In spi_gpio_probe an SPI master is allocated via spi_alloc_master, but this controller should be released if devm_add_action_or_reset fails, otherwise memory leaks. This commit adds Fixes: spi_contriller_put in case of failure for devm_add_action_or_reset. Fixes: 8b797490b4db ("spi: gpio: Make sur

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Theodore Y. Ts'o
On Sun, Sep 29, 2019 at 06:16:33PM -0700, Linus Torvalds wrote: > > - or just say "hey, a lot of people find jitter entropy reasonable, > so let's just try this". > I'm OK with this as a starting point. If a jitter entropy system allow us to get pass this logjam, let's do it. At least for the

[v2,2/2] dt-bindings: i2c-mux-pca954x: Add optional property i2c-mux-never-disable

2019-09-29 Thread Biwen Li
The patch adds an optional property i2c-mux-never-disable Signed-off-by: Biwen Li --- Change in v2: - update documentation Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.

[v2,1/2] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
On some Layerscape boards like LS2085ARDB and LS2088ARDB, input pull-up resistors on PCA954x MUX device are missing on board, So, if MUX are disabled after powered-on, input lines will float leading to incorrect functionality. Hence, PCA954x MUX device should never be turned-off after power-on. A

Re: [PATCH v8] perf diff: Report noisy for cycles diff

2019-09-29 Thread Jin, Yao
Hi Jiri, Hi Arnaldo, Can this patch be accepted? Thanks Jin Yao On 9/25/2019 9:14 AM, Jin Yao wrote: This patch prints the stddev and hist for the cycles diff of program block. It can help us to understand if the cycles is noisy or not. This patch is inspired by Andi Kleen's patch https://lwn

[PATCH] fs: affs: fix a memroy leak in affs_remount

2019-09-29 Thread Navid Emamdoost
In affs_remount if data is provided it is duplicated into new_opts. But this is not actually used later! The allocated memory for new_opts is only released if pare_options fail. This commit adds release for new_opts. Signed-off-by: Navid Emamdoost --- fs/affs/super.c | 2 ++ 1 file changed, 2 in

Re: [GIT PULL] SMB3 Fixes

2019-09-29 Thread pr-tracker-bot
The pull request you sent on Sat, 28 Sep 2019 16:36:21 -0500: > git://git.samba.org/sfrench/cifs-2.6.git tags/5.4-rc-smb3-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7edee5229c8f4e075fe71274620bb11ead885c9b Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [GIT PULL] Documentation/process/embargoed-hardware-issues patches for 5.4-rc1

2019-09-29 Thread pr-tracker-bot
The pull request you sent on Sun, 29 Sep 2019 12:53:47 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git > tags/char-misc-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/97f9a3c4eee55b0178b518ae7114a6a53372913d Thank you! -- Deet-do

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Linus Torvalds
On Sun, Sep 29, 2019 at 6:16 PM Linus Torvalds wrote: > > But I've committed that patch and the revert of the ext4 revert to a > local branch, I'll do some basic testing of it (which honestly on my > machines are kind of pointless, since all of them support rdrand), but > assuming it passes the ba

RE: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
> > Hello Biwen, > > > + /* Errata ID E-00013 on board LS2088ARDB and LS2088ARDB: > > +* The point here is that you must not disable a mux if there > > +* are no pullups on the input or you mess up the I2C. This > > +* needs to be put into the DTS really as the kerne

RE: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
> > On 2019-09-29 12:36, Biwen Li wrote: > > On some Layerscape boards like LS2085ARDB and LS2088ARDB, input > > pull-up resistors on PCA954x MUX device are missing on board, So, if > > MUX are disabled after powered-on, input lines will float leading to > > incorrect functionality. > > Hi! > >

[PATCH] usb: dwc3: pci: prevent memory leak in dwc3_pci_probe

2019-09-29 Thread Navid Emamdoost
In dwc3_pci_probe a call to platform_device_alloc allocates a device which is correctly put in case of error except one case: when the call to platform_device_add_properties fails it directly returns instead of going to error handling. This commit replaces return with the goto. Fixes: 1a7b12f69a94

Re: [PATCH] virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr

2019-09-29 Thread Navid Emamdoost
It is a neat fix now, thank you. On Sat, Sep 28, 2019 at 4:54 AM Hans de Goede wrote: > > Hi, > > On 28-09-2019 01:04, Navid Emamdoost wrote: > > In hgcm_call_preprocess_linaddr memory is allocated for bounce_buf but > > is not released if copy_form_user fails. The release is added. > > > > Fixe

[PATCH v5 0/1] Add bounds check for Hotplugged memory

2019-09-29 Thread Alastair D'Silva
From: Alastair D'Silva This series adds bounds checks for hotplugged memory, ensuring that it is within the physically addressable range (for platforms that define MAX_(POSSIBLE_)PHYSMEM_BITS. This allows for early failure, rather than attempting to access bogus section numbers. Changelog: V5:

[PATCH v5 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-09-29 Thread Alastair D'Silva
From: Alastair D'Silva On PowerPC, the address ranges allocated to OpenCAPI LPC memory are allocated from firmware. These address ranges may be higher than what older kernels permit, as we increased the maximum permissable address in commit 4ffe713b7587 ("powerpc/mm: Increase the max addressable

[V5 1/2] dmaengine: fsl-dpaa2-qdma: Add the DPDMAI(Data Path DMA Interface) support

2019-09-29 Thread Peng Ma
The MC(Management Complex) exports the DPDMAI(Data Path DMA Interface) object as an interface to operate the DPAA2(Data Path Acceleration Architecture 2) qDMA Engine. The DPDMAI enables sending frame-based requests to qDMA and receiving back confirmation response on transaction completion, utilizin

[V5 2/2] dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscape SoCs

2019-09-29 Thread Peng Ma
DPPA2(Data Path Acceleration Architecture 2) qDMA supports virtualized channel by allowing DMA jobs to be enqueued into different work queues. Core can initiate a DMA transaction by preparing a frame descriptor(FD) for each DMA job and enqueuing this job through a hardware portal. DPAA2 components

[PATCH v10 1/3] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-09-29 Thread Jia He
We unconditionally set the HW_AFDBM capability and only enable it on CPUs which really have the feature. But sometimes we need to know whether this cpu has the capability of HW AF. So decouple AF from DBM by new helper cpu_has_hw_af(). Signed-off-by: Jia He Suggested-by: Suzuki Poulose Reviewed-

[PATCH v10 2/3] arm64: mm: implement arch_faults_on_old_pte() on arm64

2019-09-29 Thread Jia He
On arm64 without hardware Access Flag, copying fromuser will fail because the pte is old and cannot be marked young. So we always end up with zeroed page after fork() + CoW for pfn mappings. we don't always have a hardware-managed access flag on arm64. Hence implement arch_faults_on_old_pte on arm

[PATCH v10 0/3] fix double page fault on arm64

2019-09-29 Thread Jia He
When we tested pmdk unit test vmmalloc_fork TEST1 in arm64 guest, there will be a double page fault in __copy_from_user_inatomic of cow_user_page. As told by Catalin: "On arm64 without hardware Access Flag, copying from user will fail because the pte is old and cannot be marked young. So we always

[PATCH v10 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-29 Thread Jia He
When we tested pmdk unit test [1] vmmalloc_fork TEST1 in arm64 guest, there will be a double page fault in __copy_from_user_inatomic of cow_user_page. Below call trace is from arm64 do_page_fault for debugging purpose [ 110.016195] Call trace: [ 110.016826] do_page_fault+0x5a4/0x690 [ 110.0178

Re: [PATCH 4.19 36/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-29 Thread Tetsuo Handa
On 2019/09/30 9:28, Sasha Levin wrote: > On Sun, Sep 29, 2019 at 11:43:38PM +0900, Tetsuo Handa wrote: >> On 2019/09/29 22:54, Greg Kroah-Hartman wrote: >>> From: Waiman Long >>> >>> [ Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf ] >>> >>> Tetsuo Handa had reported he saw an incorrect

Re: [PATCH v3] patman: Use the Change-Id, version, and prefix in the Message-Id

2019-09-29 Thread Simon Glass
On Fri, 27 Sep 2019 at 10:25, Douglas Anderson wrote: > > As per the centithread on ksummit-discuss [1], there are folks who > feel that if a Change-Id is present in a developer's local commit that > said Change-Id could be interesting to include in upstream posts. > Specifically if two commits ar

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Linus Torvalds
On Sat, Sep 28, 2019 at 4:53 PM Linus Torvalds wrote: > > But hey, here's a made-up patch. It basically does jitter entropy, but > it uses a more complex load than the fibonacci LFSR folding: it calls > "schedule()" in a loop, and it sets up a timer to fire. Ok, I'm sure a lot of people will end

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-09-29 Thread Rik van Riel
On Thu, 2019-09-19 at 09:33 +0200, Vincent Guittot wrote: > > Also the load balance decisions have been consolidated in the 3 > functions > below after removing the few bypasses and hacks of the current code: > - update_sd_pick_busiest() select the busiest sched_group. > - find_busiest_group() che

[PATCH] acpi: Mute gcc warning

2019-09-29 Thread Zhenzhong Duan
When build with "EXTRA_CFLAGS=-Wall" gcc warns: arch/x86/boot/compressed/acpi.c:29:30: warning: get_cmdline_acpi_rsdp defined but not used [-Wunused-function] Fixes: 41fa1ee9c6d6 ("acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down") Signed-off-by: Zhenzhong Duan Cc: Josh

Re: [PATCH 4.19 36/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-29 Thread Sasha Levin
On Sun, Sep 29, 2019 at 11:43:38PM +0900, Tetsuo Handa wrote: On 2019/09/29 22:54, Greg Kroah-Hartman wrote: From: Waiman Long [ Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf ] Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lo

Re: [PATCH 2/4] rsicv: avoid sending a SIGTRAP to a user thread trapped in WARN()

2019-09-29 Thread Vincent Chen
On Sat, Sep 28, 2019 at 6:56 AM Christoph Hellwig wrote: > > Oh and s/rsicv/riscv/ in the subject, please. Oh! Thank you for finding this typo. I will correct it.

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

2019-09-29 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this: arch/powerpc/mm/book3s64/pgtable.c: In function 'flush_partition': arch/powerpc/mm/book3s64/pgtable.c:216:3: error: implicit declaration of function 'radix__flush_all_lpid_guest'; did you m

Re: [GIT PULL][SECURITY] Kernel lockdown patches for v5.4

2019-09-29 Thread James Morris
On Sat, 28 Sep 2019, Linus Torvalds wrote: > On Fri, Sep 27, 2019 at 11:19 AM Linus Torvalds > wrote: > > > > This is one of the pull requests that I have to go through commit by > > commit because of the history of this thing. > > > > And I've yet to empty my queue of all the _regular_ things th

Re: [PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box

2019-09-29 Thread Vivek Unune
On Sun, Sep 29, 2019 at 01:22:17PM +0200, Vicente Bergas wrote: > On Sunday, September 29, 2019 5:22:30 AM CEST, Vivek Unune wrote: > > Fix usb-c on X99 TV Box. Tested with armbian w/ kernel 5.3 > > > > Signed-off-by: Vivek Unune > > --- > > arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts | 4

hello

2019-09-29 Thread joe akaba
Hello My name is Joe Akaba I am a lawyer by profession. I wish to offer you the next of kin to my client. You will inherit the sum of ($8.5 Million) dollars my client left in the bank before his death. My client is a citizen of your country who died in auto crash with his wife and only son. I wil

Re: [PATCH 1/1] media: dvbsky: use a single mutex and state buffers for all R/W ops

2019-09-29 Thread JP
This works very well for me. (and please see unrelated comment below) On 9/29/19 10:04 AM, Andrei Koshkosh wrote: Signed-off-by: Andrei Koshkosh --- drivers/media/usb/dvb-usb-v2/dvbsky.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/media/usb/dv

Re: [PATCH] dt-bindings: arm: rockchip: fix Theobroma-System board bindings

2019-09-29 Thread Heiko Stuebner
Am Dienstag, 17. September 2019, 10:34:53 CEST schrieb Heiko Stuebner: > The naming convention for the existing Theobroma boards is > soc-q7module-baseboard, so rk3399-puma-haikou and the in-kernel > devicetrees also follow that scheme. > > For some reason in the binding a wrong or outdated naming

Re: [PATCH 4/6] arm64: dts: rockchip: Rename roc-pc with libretech notation

2019-09-29 Thread Heiko Stuebner
Hi Jagan, Am Donnerstag, 19. September 2019, 07:28:20 CEST schrieb Jagan Teki: > Though the ROC-PC is manufactured by firefly, it is co-designed > by libretch like other Libretech computer boards from allwinner, > amlogic does. > > So, it is always meaningful to keep maintain those vendors who >

Re: [PATCH 1/6] arm64: dts: rockchip: Fix rk3399-roc-pc pwm2 pin

2019-09-29 Thread Heiko Stuebner
Hi Jagan, Am Donnerstag, 19. September 2019, 07:28:17 CEST schrieb Jagan Teki: > ROC-PC is not able to boot linux console if PWM2_d is > unattached to any pinctrl logic. > > To be precise the linux boot hang with last logs as, > ... > . > [0.003367] Console: colour dummy device 80x25 > [

Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Peter Rosin
On 2019-09-29 12:36, Biwen Li wrote: > On some Layerscape boards like LS2085ARDB and LS2088ARDB, > input pull-up resistors on PCA954x MUX device are missing on board, > So, if MUX are disabled after powered-on, input lines will float > leading to incorrect functionality. Hi! Are you saying that t

Re: linux-next: no release today

2019-09-29 Thread Stephen Rothwell
Hi Mark, On Mon, 16 Sep 2019 02:37:27 +0100 Mark Brown wrote: > > On Thu, Sep 05, 2019 at 04:02:37PM +1000, Stephen Rothwell wrote: > > > As I said yesterday, there will be no release today, or any day until > > September 30. > > I'm going to try to provide some builds for this week (16th-20t

Re: [PATCH v2] perf tools: avoid sample_reg_masks being const + weak

2019-09-29 Thread Jiri Olsa
On Fri, Sep 27, 2019 at 02:43:41PM -0700, Ian Rogers wrote: > Being const + weak breaks with some compilers that constant-propagate > from the weak symbol. This behavior is outside of the specification, but > in LLVM is chosen to match GCC's behavior. > > LLVM's implementation was set in this patc

[GIT PULL] tracing: A few minor fix ups

2019-09-29 Thread Steven Rostedt
Linus, A few more tracing fixes: - Fixed a buffer overflow by checking nr_args correctly in probes - Fixed a warning that is reported by clang - Fixed a possible memory leak in error path of filter processing - Fixed the selftest that checks for failures, but wasn't failing - Minor cle

[PATCH] arm64: tegra: only map accessible sysram

2019-09-29 Thread Mian Yousaf Kaukab
Most of the SysRAM is secure and only accessible by TF-A. Don't map this inaccessible memory in kernel. Only map pages used by bpmp driver. Signed-off-by: Mian Yousaf Kaukab --- Only tegra186 is tested. Tested on Jetson TX2. arch/arm64/boot/dts/nvidia/tegra186.dtsi | 14 +++--- arch/arm

[for-linus][PATCH 1/5] tracing/probe: Fix to check the difference of nr_args before adding probe

2019-09-29 Thread Steven Rostedt
From: Masami Hiramatsu Steven reported that a test triggered: == BUG: KASAN: slab-out-of-bounds in trace_kprobe_create+0xa9e/0xe40 Read of size 8 at addr 8880c4f25a48 by task ftracetest/4798 CPU: 2 PID: 4798 Comm: ftracetest

[for-linus][PATCH 3/5] tracing: Have error path in predicate_parse() free its allocated memory

2019-09-29 Thread Steven Rostedt
From: Navid Emamdoost In predicate_parse, there is an error path that is not going to out_free instead it returns directly which leads to a memory leak. Link: http://lkml.kernel.org/r/20190920225800.3870-1-navid.emamdo...@gmail.com Signed-off-by: Navid Emamdoost Signed-off-by: Steven Rostedt (

[for-linus][PATCH 4/5] mm, tracing: Print symbol name for call_site in trace events

2019-09-29 Thread Steven Rostedt
From: Changbin Du To improve the readability of raw slab trace points, print the call_site ip using '%pS'. Then we can grep events with function names. [002] 808.188897: kmem_cache_free: call_site=putname+0x47/0x50 ptr=cef40c80 [002] 808.188898: kfree: call_site=security_c

[for-linus][PATCH 0/5] tracing: Minor fixes for the last pull request

2019-09-29 Thread Steven Rostedt
Some final fix ups that will be sent to Linus shortly. Changbin Du (1): mm, tracing: Print symbol name for call_site in trace events Masami Hiramatsu (1): tracing/probe: Fix to check the difference of nr_args before adding probe Nathan Chancellor (1): tracing: Fix clang -Wint

[for-linus][PATCH 2/5] tracing: Fix clang -Wint-in-bool-context warnings in IF_ASSIGN macro

2019-09-29 Thread Steven Rostedt
From: Nathan Chancellor After r372664 in clang, the IF_ASSIGN macro causes a couple hundred warnings along the lines of: kernel/trace/trace_output.c:1331:2: warning: converting the enum constant to a boolean [-Wint-in-bool-context] kernel/trace/trace.h:409:3: note: expanded from macro 'trace_ass

[for-linus][PATCH 5/5] selftests/ftrace: Fix same probe error test

2019-09-29 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The "same probe" selftest that tests that adding the same probe fails doesn't add the same probe and passes, which fails the test. Fixes: b78b94b82122 ("selftests/ftrace: Update kprobe event error testcase") Signed-off-by: Steven Rostedt (VMware) --- .../selftes

[PATCH v2 4/6] media: cedrus: Detect first slice of a frame

2019-09-29 Thread Jernej Skrabec
When codec supports multiple slices in one frame, VPU has to know when first slice of each frame is being processed, presumably to correctly clear/set data in auxiliary buffers. Add first_slice field to cedrus_run structure and set it according to timestamps of capture and output buffers. If times

[PATCH v2 3/6] media: v4l2-mem2mem: add stateless_(try_)decoder_cmd ioctl helpers

2019-09-29 Thread Jernej Skrabec
These helpers are used by stateless codecs when they support multiple slices per frame and hold capture buffer flag is set. It's expected that all such codecs will use this code. Signed-off-by: Jernej Skrabec --- drivers/media/v4l2-core/v4l2-mem2mem.c | 35 ++ include/med

[PATCH v2 6/6] media: cedrus: Add support for holding capture buffer

2019-09-29 Thread Jernej Skrabec
When frame contains multiple slices and driver works in slice mode, it's more efficient to hold capture buffer in queue until all slices of a same frame are decoded. Add support for that to Cedrus driver by exposing and implementing V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability. Signed-of

[PATCH v2 2/6] videodev2.h: add V4L2_DEC_CMD_FLUSH

2019-09-29 Thread Jernej Skrabec
From: Hans Verkuil Add this new V4L2_DEC_CMD_FLUSH decoder command and document it. Reviewed-by: Boris Brezillon Reviewed-by: Alexandre Courbot Signed-off-by: Hans Verkuil [Adjusted description] Signed-off-by: Jernej Skrabec --- Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst | 10 +

[PATCH v2 1/6] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-09-29 Thread Jernej Skrabec
From: Hans Verkuil This patch adds support for the V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF flag. It also adds a new V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability and a v4l2_m2m_release_capture_buf() helper function. Drivers should set vb2_queue->subsystem_flags to VB2_V4L2_FL_SUPPORTS_M2M_HOL

[PATCH v2 5/6] media: cedrus: h264: Support multiple slices per frame

2019-09-29 Thread Jernej Skrabec
With recent changes, support for decoding multi-slice frames can be easily added now. Signal VPU if current slice is first in frame or not and add information about first macroblock coordinates. Signed-off-by: Jernej Skrabec --- drivers/staging/media/sunxi/cedrus/cedrus_h264.c | 11 ++-

[PATCH v2 0/6] media: cedrus: h264: Support multi-slice frames

2019-09-29 Thread Jernej Skrabec
This series adds support for decoding multi-slice H264 frames along with support for V4L2_DEC_CMD_FLUSH and V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF. Code was tested by modified ffmpeg, which can be found here: https://github.com/jernejsk/FFmpeg, branch mainline-test It has to be configured with at leas

Re: [PATCH] arm64: dts: rockchip: fix Rockpro64 RK808 interrupt line

2019-09-29 Thread Heiko Stuebner
Am Samstag, 21. September 2019, 15:14:57 CEST schrieb Hugh Cole-Baker: > Fix the pinctrl and interrupt specifier for RK808 to use GPIO3_B2. On the > Rockpro64 schematic [1] page 16, it shows GPIO3_B2 used for the interrupt > line PMIC_INT_L from the RK808, and there's a note which translates as: >

Why does /proc/partitions have sr0 and fd0 in it?

2019-09-29 Thread David F.
Hi, I was updating some tools such as udev, mdadm, lvm, and came across a hang and messages about unable to read fd0 which wasn't occurring with the old tools, but using same kernel. So I've found that in the old version the /proc/partitions didn't have fd0 whereas now it does. But both have sr0

MIPS SGI IP30

2019-09-29 Thread Carlo Pisani
hi guys any news about the kernel? I still have a lot of trouble with the PCI. Carlo

Re: [PATCH AUTOSEL 5.3 20/49] firmware: bcm47xx_nvram: Correct size_t printf format

2019-09-29 Thread Florian Fainelli
On 9/29/2019 10:30 AM, Sasha Levin wrote: > From: Florian Fainelli > > [ Upstream commit feb4eb060c3aecc3c5076bebe699cd09f1133c41 ] > > When building on a 64-bit host, we will get warnings like those: > > drivers/firmware/broadcom/bcm47xx_nvram.c:103:3: note: in expansion of macro > 'pr_err

[GIT PULL] MMC updates for v5.4 take 2

2019-09-29 Thread Ulf Hansson
Hi Linus, Here's a PR with a couple more updates/fixes for MMC fixes intended for v5.4. No worries if this doesn't get included in rc1. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 3c6a6910a

Re: [PATCH 2/3] clk: let init callback return an error code

2019-09-29 Thread Heiko Stuebner
Am Dienstag, 24. September 2019, 14:39:53 CEST schrieb Jerome Brunet: > If the init callback is allowed to request resources, it needs a return > value to report the outcome of such a request. > > Signed-off-by: Jerome Brunet > --- [...] > drivers/clk/rockchip/clk-pll.c| 28 +

Re: WireGuard to port to existing Crypto API

2019-09-29 Thread David Sterba
Hi, On Wed, Sep 25, 2019 at 10:29:45AM +0200, Jason A. Donenfeld wrote: > I've long resisted the idea of porting to the existing crypto API, > because I think there are serious problems with it, in terms of > primitives, API, performance, and overall safety. I didn't want to > ship WireGuard in a

Re: [PATCH 5.2 00/45] 5.2.18-stable review

2019-09-29 Thread kernelci.org bot
stable-rc/linux-5.2.y boot: 83 boots: 0 failed, 83 passed (v5.2.17-46-g70cc0b99b90f) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-5.2.y/kernel/v5.2.17-46-g70cc0b99b90f/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-5.2.y/kernel/v5.2.17-46-g

Re: [PATCH 4.19 00/63] 4.19.76-stable review

2019-09-29 Thread kernelci.org bot
stable-rc/linux-4.19.y boot: 80 boots: 1 failed, 78 passed with 1 conflict (v4.19.75-64-gb52c75f7b978) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.19.y/kernel/v4.19.75-64-gb52c75f7b978/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.19.

[GIT PULL] ARM: SoC fixes

2019-09-29 Thread Olof Johansson
Hi Linus, The following changes since commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8: Linux 5.3 (2019-09-15 14:19:32 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes for you to fetch changes up to 9bfd7319e8d353b8b8

  1   2   3   4   5   >