Re: [RFC, WIP, v6 05/10] media: vidtv: add wrappers for memcpy and memset

2020-06-01 Thread Shuah Khan
Hi Daniel, On 5/20/20 1:03 AM, Daniel W. S. Almeida wrote: From: "Daniel W. S. Almeida" A lot of code in this driver is for serializing structures. This is error prone. Therefore, prevent buffer overflows by wrapping memcpy and memset, comparing the requested length against the buffer size.

Re: [GRUB PATCH RFC 00/18] i386: Intel TXT secure launcher

2020-06-01 Thread Andy Lutomirski
On Mon, Jun 1, 2020 at 8:33 AM Daniel P. Smith wrote: > > On 5/7/20 7:06 AM, Daniel Kiper wrote: > > Hi Łukasz, > > > > On Tue, May 05, 2020 at 04:38:02PM +0200, Lukasz Hawrylko wrote: > >> On Tue, 2020-05-05 at 01:21 +0200, Daniel Kiper wrote: > > ... > > >> In OS-MLE table there is a buffer for

Re: [PATCH V2] dt-bindings: thermal: Convert qoriq to json-schema

2020-06-01 Thread Rob Herring
On Sun, May 31, 2020 at 9:45 PM Anson Huang wrote: > > Convert the qoriq thermal binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V1: > - add 'maxItems' for 'fsl,tmu-range' property; > - add 'minItems'/'maxItems' and items descript

Re: [PATCH v5 00/13] perf: support enable and disable commands in stat and record modes

2020-06-01 Thread Alexey Budankov
Please refrain from testing this patch set. For some reason it lacks exposure of ctl-fd, ctl-fd-ack options. There are also functional issues. I am working to improve all that and resend fixed v5. ~Alexey On 01.06.2020 18:46, Alexey Budankov wrote: > > Changes in v5: > - split re-factoring of

[GIT PULL] x86/fpu changes for v5.8

2020-06-01 Thread Ingo Molnar
Linus, Please pull the latest x86/fpu git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-fpu-2020-06-01 # HEAD: 55e00fb66fd5048f4a3ee357018fd26fc527abca x86/fpu/xstate: Restore supervisor states for signal return Most of the changes here related to 'XSAVES super

Re: [PATCH 1/5] arm: decompressor: set malloc pool size for the decompressor

2020-06-01 Thread Lukasz Stelmach
It was <2020-06-01 pon 16:10>, when Russell King - ARM Linux admin wrote: > On Mon, Jun 01, 2020 at 04:56:40PM +0200, Lukasz Stelmach wrote: >> It was <2020-06-01 pon 15:46>, when Russell King - ARM Linux admin wrote: >> > On Mon, Jun 01, 2020 at 04:27:50PM +0200, Łukasz Stelmach wrote: >> >> Move

Re: [PATCH] mm/vmstat: Add events for PMD based THP migration without split

2020-06-01 Thread Daniel Jordan
Hi Anshuman, On Fri, May 22, 2020 at 09:04:04AM +0530, Anshuman Khandual wrote: > This adds the following two new VM events which will help in validating PMD > based THP migration without split. Statistics reported through these events > will help in performance debugging. > > 1. THP_PMD_MIGRATIO

Re: [PATCH] sh: Implement __get_user_u64() required for 64-bit get_user()

2020-06-01 Thread Rich Felker
On Mon, Jun 01, 2020 at 11:13:26AM +0200, John Paul Adrian Glaubitz wrote: > Hello! > > On 6/1/20 11:02 AM, Geert Uytterhoeven wrote: > >> Can I propose a different solution? For archs where there isn't > >> actually any 64-bit load or store instruction, does it make sense to > >> be writing asm j

Re: [PATCH RESEND v2 0/6] mips: Add DT bindings for MIPS CDMM and MIPS GIC

2020-06-01 Thread Thomas Bogendoerfer
On Mon, Jun 01, 2020 at 06:24:49PM +0300, Serge Semin wrote: > Hello Marc, > > On Mon, Jun 01, 2020 at 01:31:27PM +0100, Marc Zyngier wrote: > > On 2020-06-01 13:21, Serge Semin wrote: > > > > [...] > > > > > Since Paul isn't looking after the MIPS arch code anymore, Ralf hasn't > > > been seen

[GIT PULL] x86/mm changes for v5.8

2020-06-01 Thread Ingo Molnar
Linus, Please pull the latest x86/mm git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mm-2020-06-01 # HEAD: 0fcfdf55db9e1ecf85edd6aa8d0bc78a448cb96a Documentation: Add L1D flushing Documentation Misc changes: - Unexport various PAT primitives - Unexport pe

[PATCH v3] seccomp: Add find_notification helper

2020-06-01 Thread Sargun Dhillon
This adds a helper which can iterate through a seccomp_filter to find a notification matching an ID. It removes several replicated chunks of code. Signed-off-by: Sargun Dhillon Acked-by: Christian Brauner Reviewed-by: Tycho Andersen Cc: Matt Denton Cc: Kees Cook , Cc: Jann Horn , Cc: Robert Se

[PATCH] kbuild: doc: rename LDFLAGS to KBUILD_LDFLAGS

2020-06-01 Thread Masahiro Yamada
Commit d503ac531a52 ("kbuild: rename LDFLAGS to KBUILD_LDFLAGS") missed to update the documentation. Signed-off-by: Masahiro Yamada --- Documentation/kbuild/makefiles.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/kbuild/makefiles.rst b/Documentation/

Re: [PATCH v5 5/7] blktrace: fix debugfs use after free

2020-06-01 Thread Luis Chamberlain
On Wed, May 27, 2020 at 03:12:02AM +, Luis Chamberlain wrote: > You forgot to deal with partitions. Putting similar lipstick on the pig, > this is what I end up with, let me know if this seems agreeable: So even with the partition stuff in place, this approach still don't allow multiple uses o

[GIT PULL] x86/platform updates for v5.8

2020-06-01 Thread Ingo Molnar
Linus, Please pull the latest x86/platform git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-platform-2020-06-01 # HEAD: 33649bf4494c1feaf1956a84895fcc0621aafd90 x86/apic/uv: Remove code for unused distributed GRU mode This tree cleans up various aspects of th

Re: [PATCHv1 00/19] Improve SBS battery support

2020-06-01 Thread Sebastian Reichel
Hi Marek, On Mon, Jun 01, 2020 at 12:40:27PM +0200, Marek Szyprowski wrote: > On 13.05.2020 20:55, Sebastian Reichel wrote: > > This patchset improves support for SBS compliant batteries. Due to > > the changes, the battery now exposes 32 power supply properties and > > (un)plugging it generates a

[GIT PULL] x86/vdso updates for v5.8

2020-06-01 Thread Ingo Molnar
Linus, Please pull the latest x86/vdso git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-vdso-2020-06-01 # HEAD: cd2f45b7514cdddabbf3f81a98a20ae02f99efa1 x86/vdso/Makefile: Add vobjs32 Clean up various aspects of the vDSO code, no change in functionality intend

[ANNOUNCE] git-filter-repo v2.27.0 (Was: Re: [ANNOUNCE] Git v2.27.0)

2020-06-01 Thread Elijah Newren
Hi, On Mon, Jun 1, 2020 at 9:37 AM Junio C Hamano wrote: > > The latest feature release Git v2.27.0 is now available at the > usual places. It is comprised of 537 non-merge commits since > v2.26.0, contributed by 71 people, 19 of which are new faces. The latest release of git-filter-repo, v2.27

Re: [PATCH v2] check: Add 10bit/slave i2c reg flags support

2020-06-01 Thread Rob Herring
On Sat, May 30, 2020 at 3:32 AM Wolfram Sang wrote: > > > > + addr = reg & 0x3FFFU; > > + snprintf(unit_addr, sizeof(unit_addr), "%x", addr); > > Hmm, this hardcoded value will not work if we ever need to add another > bit. I hope this will never happen, though. I had this concern and

Re: [PATCH v2] afs: Fix memory leak in afs_put_sysnames()

2020-06-01 Thread David Howells
Markus Elfring wrote: > > sysnames should be freed after refcnt being decreased to zero in > > afs_put_sysnames(). > > How do you think about a wording variant like the following? > >Release the sysnames object after its reference counter was decreased >to zero. I would say "reference

RE: [Intel-wired-lan] [PATCH] [net-next] e1000e: fix unused-function warning

2020-06-01 Thread Brown, Aaron F
> From: Intel-wired-lan On Behalf Of Arnd > Bergmann > Sent: Wednesday, May 27, 2020 6:47 AM > To: Kirsher, Jeffrey T ; David S. Miller > ; Jakub Kicinski ; Lifshits, Vitaly > > Cc: Arnd Bergmann ; Konstantin Khlebnikov > ; net...@vger.kernel.org; Wysocki, Rafael J > ; linux-kernel@vger.kernel.or

[GIT PULL] x86/cache updates for v5.8

2020-06-01 Thread Borislav Petkov
Hi Linus, please pull the resctrl pile for 5.8. Thx. --- The following changes since commit 0e698dfa282211e414076f9dc7e83c1c288314fd: Linux 5.7-rc4 (2020-05-03 14:56:04 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_cache

[PATCH] perf timechart: explain the SVG output

2020-06-01 Thread Elazar Leibovich
It is not immediately clear what the SVG output means and how is it supposed to be used. Add links to example SVGs, and to annotated images explaining what each part in the SVG means. Signed-off-by: Elazar Leibovich --- tools/perf/Documentation/perf-timechart.txt | 22 + 1 f

Re: [PATCH 0/2] video: fbdev: fix error handling, convert to pin_user_pages*()

2020-06-01 Thread John Hubbard
On 2020-06-01 03:35, Andy Shevchenko wrote: On Mon, Jun 1, 2020 at 1:00 AM John Hubbard wrote: On 2020-05-31 14:11, Andy Shevchenko wrote: ... JFYI, we have history.git starting from v0.01. OK, thanks for that note. According to that history.git [1], then: drivers/video/pvr2fb.c had get

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-01 Thread Alexey Budankov
Hi Adrian, On 01.06.2020 19:30, Adrian Hunter wrote: > On 1/06/20 7:05 pm, Alexey Budankov wrote: >> >> Introduce --ctl-fd[-ack] options to pass open file descriptors numbers >> from command line. Extend perf-record.txt file with --ctl-fd[-ack] >> options description. Document possible usage mod

Re: [PATCH] HID: usbhid: do not sleep when opening device

2020-06-01 Thread Jiri Kosina
On Fri, 29 May 2020, Dmitry Torokhov wrote: > > > > > > usbhid tries to give the device 50 milliseconds to drain its queues > > > > > > when opening the device, but does it naively by simply sleeping in > > > > > > open > > > > > > handler, which slows down device probing (and thus may affect >

Re: [PATCH RESEND v2 0/6] mips: Add DT bindings for MIPS CDMM and MIPS GIC

2020-06-01 Thread Serge Semin
On Mon, Jun 01, 2020 at 06:56:46PM +0200, Thomas Bogendoerfer wrote: > On Mon, Jun 01, 2020 at 06:24:49PM +0300, Serge Semin wrote: > > Hello Marc, > > > > On Mon, Jun 01, 2020 at 01:31:27PM +0100, Marc Zyngier wrote: > > > On 2020-06-01 13:21, Serge Semin wrote: > > > > > > [...] > > > > > > >

Re: [PATCH 1/2] coresight: tmc: Add enable flag to indicate the status of ETR/ETF

2020-06-01 Thread Sai Prakash Ranjan
Hi Mike, Thanks for the review. On 2020-06-01 18:57, Mike Leach wrote: Hi, On Mon, 1 Jun 2020 at 09:02, Sai Prakash Ranjan wrote: Add a flag to check whether TMC ETR/ETF is enabled or not. This is later used in shutdown callback to determine if we require to disable ETR/ETF. Signed-off-by:

[GIT PULL] arm64 updates for 5.8

2020-06-01 Thread Will Deacon
Hi Linus, Please pull this sizeable pile of arm64 updates for 5.8. Summary in the tag, but the big two features are support for Branch Target Identification and Clang's Shadow Call stack. The latter is currently arm64-only, but the high-level parts are all in core code so it could easily be adopte

Re: [PATCH 04/12] mm: add support for async page locking

2020-06-01 Thread Jens Axboe
On 6/1/20 8:26 AM, Matthew Wilcox wrote: > On Tue, May 26, 2020 at 01:51:15PM -0600, Jens Axboe wrote: >> +static int __wait_on_page_locked_async(struct page *page, >> + struct wait_page_queue *wait, bool set) >> +{ >> +struct wait_queue_head *q = page_waitqueu

Re: [PATCH 2/2] coresight: tmc: Add shutdown callback for TMC ETR/ETF

2020-06-01 Thread Sai Prakash Ranjan
Hi Mike, Thanks for the review. On 2020-06-01 19:05, Mike Leach wrote: Hi, On Mon, 1 Jun 2020 at 09:02, Sai Prakash Ranjan wrote: Implement a shutdown callback to ensure ETR/ETF hardware is properly shutdown in reboot/shutdown path. This is required for ETR/ETF which has SMMU address transl

RE: [PATCH v2] e1000: use generic power management

2020-06-01 Thread Brown, Aaron F
> From: Vaibhav Gupta > Sent: Monday, May 25, 2020 5:27 AM > To: Vaibhav Gupta ; Bjorn Helgaas > ; Bjorn Helgaas ; > bj...@helgaas.com; Kirsher, Jeffrey T ; David S. > Miller ; r...@rjwysocki.net > Cc: Vaibhav Gupta ; Brandeburg, Jesse > ; intel-wired-...@lists.osuosl.org; > net...@vger.kernel.org

Re: [PATCH] kernel: power: swap: mark a function as __init to save some memory

2020-06-01 Thread Christophe JAILLET
Le 01/06/2020 à 00:11, Joe Perches a écrit : (adding Dan Carpenter) On Sun, 2020-05-31 at 23:00 +0200, Christophe JAILLET wrote: 'swsusp_header_init()' is only called via 'core_initcall'. It can be marked as __init to save a few bytes of memory. Hey Dan smatch has a full function calling tre

Re: [PATCH v2 2/2] regulator: Add support for sync_state() callbacks

2020-06-01 Thread Mark Brown
On Fri, May 29, 2020 at 07:39:33PM -0700, Saravana Kannan wrote: > On Fri, May 29, 2020 at 6:00 AM Mark Brown wrote: > > On Thu, May 28, 2020 at 12:06:10PM -0700, Saravana Kannan wrote: > > > especially important for regulators that might be powering more than one > > > consumer. Otherwise, when

[PATCHv2] coresight: tmc: Add shutdown callback for TMC ETR/ETF

2020-06-01 Thread Sai Prakash Ranjan
Implement a shutdown callback to ensure ETR/ETF hardware is properly shutdown in reboot/shutdown path. This is required for ETR/ETF which has SMMU address translation enabled like on SC7180 SoC and few others. If the hardware is still accessing memory after SMMU translation is disabled as part of S

Re: [PATCH 0/2] video: fbdev: fix error handling, convert to pin_user_pages*()

2020-06-01 Thread Andy Shevchenko
On Mon, Jun 1, 2020 at 8:10 PM John Hubbard wrote: > > On 2020-06-01 03:35, Andy Shevchenko wrote: > > On Mon, Jun 1, 2020 at 1:00 AM John Hubbard wrote: > >> On 2020-05-31 14:11, Andy Shevchenko wrote: > >>> ... > >>> JFYI, we have history.git starting from v0.01. > >>> > >> OK, thanks for

Re: [PATCH] mei: me: Add itouch device IDs for SPT / ICP

2020-06-01 Thread Dorian Stoll
> > > These device IDs can be found on Microsoft Surface devices. > > > > Signed-off-by: Dorian Stoll > > This need to be done differently because of the server platforms conflict. > I have patches for that I will post short, though we are not officially > supporting those devices under Linux,

Re: [PATCH] RDMA/hns: Uninitialized variable in modify_qp_init_to_rtr()

2020-06-01 Thread Jason Gunthorpe
On Fri, May 29, 2020 at 11:39:18AM +0300, Dan Carpenter wrote: > The "dmac" variable is used before it is initialized. > > Fixes: 494c3b312255 ("RDMA/hns: Refactor the QP context filling process > related to WQE buffer configure") > Signed-off-by: Dan Carpenter > Reviewed-by: Leon Romanovsky >

Re: [PATCH] misc: atmel-ssc: lock with mutex instead of spinlock

2020-06-01 Thread Michał Mirosław
On Mon, Jun 01, 2020 at 11:18:48AM +0200, Markus Elfring wrote: > > Uninterruptible context is not needed in the driver and causes lockdep > > warning because of mutex taken in of_alias_get_id(). > > Was a spin lock taken? > > Convert the lock to mutex to avoid the issue. > Would you like to add t

Re: [PATCH 0/2] Build ORC fast lookup table in scripts/sorttable tool

2020-06-01 Thread Josh Poimboeuf
On Sun, May 31, 2020 at 01:26:54PM +0800, changhuaixin wrote: >It turned out to be an alignment problem. If sh_size of previous section >orc_unwind is not 4-byte aligned, sh_offset of the following orc_lookup >section is not 4-byte aligned too. However, the VMA of section orc_lookup >

Re: [PATCH 0/2] Introduce PCI_FIXUP_IOMMU

2020-06-01 Thread Bjorn Helgaas
On Thu, May 28, 2020 at 09:33:44AM +0200, Joerg Roedel wrote: > On Wed, May 27, 2020 at 01:18:42PM -0500, Bjorn Helgaas wrote: > > Is this slowdown significant? We already iterate over every device > > when applying PCI_FIXUP_FINAL quirks, so if we used the existing > > PCI_FIXUP_FINAL, we wouldn'

Re: [PATCH 0/2] video: fbdev: fix error handling, convert to pin_user_pages*()

2020-06-01 Thread John Hubbard
On 2020-06-01 10:25, Andy Shevchenko wrote: On Mon, Jun 1, 2020 at 8:10 PM John Hubbard wrote: On 2020-06-01 03:35, Andy Shevchenko wrote: On Mon, Jun 1, 2020 at 1:00 AM John Hubbard wrote: On 2020-05-31 14:11, Andy Shevchenko wrote: ... JFYI, we have history.git starting from v0.01.

Re: [RFC PATCH 2/2] perf symbols: Try reading the symbol table with libbfd

2020-06-01 Thread Jiri Olsa
On Mon, Jun 01, 2020 at 01:19:15PM +0200, Rémi Bernon wrote: > Wine generates PE binaries for its code modules and also generates > debug files in PE or PDB formats, which perf cannot parse either. > > Trying libbfd, when supported, if the default libelf symbol parsing > failed, makes it possible

Re: [PATCH] pinctrl-single: fix pcs_parse_pinconf() return val

2020-06-01 Thread Drew Fustini
On Mon, Jun 01, 2020 at 09:18:51AM -0700, Tony Lindgren wrote: > * Drew Fustini [200531 20:42]: > > This patch causes pcs_parse_pinconf() to return an error when no > > pinctrl_map is added. The current behavior is to return 0 when > > !PCS_HAS_PINCONF or !nconfs. Thus pcs_parse_one_pinctrl_entr

Re: [RFC PATCH 1/2] perf dso: Use libbfd to read build_id and .gnu_debuglink section

2020-06-01 Thread Jiri Olsa
On Mon, Jun 01, 2020 at 01:19:14PM +0200, Rémi Bernon wrote: SNIP > int sysfs__read_build_id(const char *filename, void *build_id, size_t size) > @@ -611,6 +638,37 @@ int sysfs__read_build_id(const char *filename, void > *build_id, size_t size) > int filename__read_debuglink(const char *filena

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-06-01 Thread hpa
On June 1, 2020 6:59:26 AM PDT, Andy Lutomirski wrote: > > >> On Jun 1, 2020, at 2:23 AM, Billy Laws wrote: >> >>  >>> >>> On May 30, 2020, at 5:26 PM, Gabriel Krisman Bertazi > wrote: >>> >>> Andy Lutomirski writes: >>> >>> On May 29, 2020, at 11:00 PM, Gabriel Krisman Bertazi > wrote

[PATCH v4 9/9] remoteproc: Properly handle firmware name when attaching

2020-06-01 Thread Mathieu Poirier
This patch prevents the firmware image name from being displayed when the remoteproc core is attaching to a remote processor. This is needed needed since there is no guarantee about the nature of the firmware image that is loaded by the external entity. Signed-off-by: Mathieu Poirier --- drivers

[PATCH v4 3/9] remoteproc: Introducing function rproc_attach()

2020-06-01 Thread Mathieu Poirier
Introducing function rproc_attach() to enact the same actions as rproc_start(), but without the steps related to the handling of a firmware image. That way we can properly deal with scenarios where the remoteproc core needs to attach with a remote processsor that has been booted by another entity.

[PATCH v4 0/9] remoteproc: Add support for attaching with rproc

2020-06-01 Thread Mathieu Poirier
This fourth iteration implements a solution that is fairly different from what was proposed in V3 and earlier versions. Three aspects have been revisited: 1) Only the scenario where the remoteproc core is attaching to the remote processor is implemented. Other scenarios where actions need to

[PATCH v4 8/9] remoteproc: Refactor function rproc_free_vring()

2020-06-01 Thread Mathieu Poirier
When function rproc_free_vring() clears the virtio device section it does so on the cached resource table rather than the one installed in the remote processor memory. When a remote processor has been booted by another entity there is no need to use a cached table and as such, no need to clear the

[PATCH v4 2/9] remoteproc: Add new attach() remoteproc operation

2020-06-01 Thread Mathieu Poirier
Add an new attach() operation in order to properly deal with scenarios where the remoteproc core needs to attach to a remote processor that has been booted by another entity. Signed-off-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_internal.h | 8 include/linux/remoteproc.h

[PATCH v4 6/9] remoteproc: Refactor function rproc_boot()

2020-06-01 Thread Mathieu Poirier
Refactor function rproc_boot() to properly deal with scenarios where the remoteproc core needs to attach with a remote processor that has already been booted by an external entity. Signed-off-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_core.c | 28 +--- 1 file c

[PATCH v4 1/9] remoteproc: Add new RPROC_DETACHED state

2020-06-01 Thread Mathieu Poirier
Add a new RPROC_DETACHED state to take into account scenarios where the remoteproc core needs to attach to a remote processor that is booted by another entity. Signed-off-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_sysfs.c | 1 + include/linux/remoteproc.h| 5 - 2 files

[PATCH v4 5/9] remoteproc: Introducing function rproc_validate()

2020-06-01 Thread Mathieu Poirier
Add a new function to assert the general health of the remote processor before handing it to the remoteproc core. Signed-off-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_core.c | 45 1 file changed, 45 insertions(+) diff --git a/drivers/remoteproc/remotepro

[PATCH v4 7/9] remoteproc: Refactor function rproc_trigger_auto_boot()

2020-06-01 Thread Mathieu Poirier
Refactor function rproc_trigger_auto_boot() to properly deal with scenarios where the remoteproc core needs to attach with a remote processor that has already been booted by an external entity. Signed-off-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_core.c | 9 + 1 file changed,

[tip:core/rcu] BUILD SUCCESS cb3cb6733fbd8fd8d2c716095fdca42dadba2063

2020-06-01 Thread kbuild test robot
ig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig x86_64 randconfig-a002-20200601 x86_64 randc

[PATCH v4 4/9] remoteproc: Introducing function rproc_actuate()

2020-06-01 Thread Mathieu Poirier
Introduce function rproc_actuate() that provides the same functionatlity as rproc_fw_boot(), but without the steps that involve interaction with the firmware image. That way we can deal with scenarios where the remoteproc core is attaching to a remote processor that has already been started by ano

Re: [PATCH net-next v5] hinic: add set_channels ethtool_ops support

2020-06-01 Thread David Miller
From: Luo bin Date: Mon, 1 Jun 2020 18:57:48 +0800 > @@ -470,6 +470,11 @@ netdev_tx_t hinic_xmit_frame(struct sk_buff *skb, struct > net_device *netdev) > struct hinic_txq *txq; > struct hinic_qp *qp; > > + if (unlikely(!netif_carrier_ok(netdev))) { > + dev_kfree_sk

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-06-01 Thread Gabriel Krisman Bertazi
Matthew Wilcox writes: > On Sun, May 31, 2020 at 03:39:33PM +0300, Paul Gofman wrote: >> > Paul (cc'ed) is the wine expert, but my understanding is that memory >> > allocation and initial program load of the emulated binary will go >> > through wine. It does the allocation and mark the vma accor

Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas

2020-06-01 Thread Gabriel Krisman Bertazi
Paul Gofman writes: > On 5/31/20 20:31, Matthew Wilcox wrote: >> If it's the cost of the syscall that's the problem, there are ways >> around that. We'd still want a personality() call to indicate that >> the syscall handler should look (somewhere) to determine the current >> personality, but th

[PATCH 4.4 10/48] cachefiles: Fix race between read_waiter and read_copier involving op->to_do

2020-06-01 Thread Greg Kroah-Hartman
From: Lei Xue [ Upstream commit 7bb0c5338436dae953622470d52689265867f032 ] There is a potential race in fscache operation enqueuing for reading and copying multiple pages from cachefiles to netfs. The problem can be seen easily on a heavy loaded system (for example many processes reading files

[GIT PULL] io_uring updates for 5.8-rc1

2020-06-01 Thread Jens Axboe
Hi Linus, A relatively quiet round, mostly just fixes and code improvements. In particular: - Make statx just use the generic statx handler, instead of open coding it. We don't need that anymore, as we always call it async safe (Bijan) - Enable closing of the ring itself. Also fixes O_PATH c

[PATCH 4.4 13/48] Input: usbtouchscreen - add support for BonXeon TP

2020-06-01 Thread Greg Kroah-Hartman
From: James Hilliard [ Upstream commit e3b4f94ef52ae1592cbe199bd38dbdc0d58b2217 ] Based on available information this uses the singletouch irtouch protocol. This is tested and confirmed to be fully functional on the BonXeon TP hardware I have. Signed-off-by: James Hilliard Link: https://lore.k

[PATCH 4.4 16/48] Input: xpad - add custom init packet for Xbox One S controllers

2020-06-01 Thread Greg Kroah-Hartman
From: Łukasz Patron [ Upstream commit 764f7f911bf72450c51eb74cbb262ad9933741d8 ] Sending [ 0x05, 0x20, 0x00, 0x0f, 0x06 ] packet for Xbox One S controllers fixes an issue where controller is stuck in Bluetooth mode and not sending any inputs. Signed-off-by: Łukasz Patron Reviewed-by: Cameron G

[PATCH 4.4 01/48] ax25: fix setsockopt(SO_BINDTODEVICE)

2020-06-01 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 687775cec056b38a4c8f3291e0dd7a9145f7b667 ] syzbot was able to trigger this trace [1], probably by using a zero optlen. While we are at it, cap optlen to IFNAMSIZ - 1 instead of IFNAMSIZ. [1] BUG: KMSAN: uninit-value in strnlen+0xf9/0x170 lib/string.c:569 CP

[PATCH 4.4 14/48] Input: i8042 - add ThinkPad S230u to i8042 nomux list

2020-06-01 Thread Greg Kroah-Hartman
From: Kevin Locke [ Upstream commit 18931506465a762ffd3f4803d36a18d336a67da9 ] On the Lenovo ThinkPad Twist S230u (3347-4HU) with BIOS version "GDETC1WW (1.81 ) 06/27/2019", whether booted in UEFI or Legacy/CSM mode the keyboard, Synaptics TouchPad, and TrackPoint either do not function or stop

[PATCH 4.4 15/48] Input: evdev - call input_flush_device() on release(), not flush()

2020-06-01 Thread Greg Kroah-Hartman
From: Brendan Shanks [ Upstream commit 09264098ff153f60866039d60b31d39b66f55a31 ] input_flush_device() should only be called once the struct file is being released and no open descriptors remain, but evdev_flush() was calling it whenever a file descriptor was closed. This caused uploaded force-

[PATCH 4.4 11/48] usb: gadget: legacy: fix redundant initialization warnings

2020-06-01 Thread Greg Kroah-Hartman
From: Masahiro Yamada [ Upstream commit d13cce757954fa663c69845611957396843ed87a ] Fix the following cppcheck warnings: drivers/usb/gadget/legacy/inode.c:1364:8: style: Redundant initialization for 'value'. The initialized value is overwritten$ value = -EOPNOTSUPP; ^ drivers/usb/gadget

[PATCH v4 00/11] remoteproc: stm32: Add support for attaching to M4

2020-06-01 Thread Mathieu Poirier
This set applies on top of [1] and refactors the STM32 platform code in order to attach to the M4 remote processor when it has been started by the boot loader. It carries the same functionatlity as the previeous revision but account for changes in the remoteproc core to support attaching scenarios

[PATCH 4.4 17/48] Input: i8042 - add ThinkPad S230u to i8042 reset list

2020-06-01 Thread Greg Kroah-Hartman
From: Kevin Locke [ Upstream commit 2712c91a54a1058d55c284152b4d93c979b67be6 ] On the Lenovo ThinkPad Twist S230u (3347-4HU) with BIOS version "GDETC1WW (1.81 ) 06/27/2019", the keyboard, Synaptics TouchPad, and TrackPoint either do not function or stop functioning a few minutes after boot. Thi

[PATCH v4 10/11] remoteproc: stm32: Introduce new attach() operation

2020-06-01 Thread Mathieu Poirier
Introduce new attach function to be used when attaching to a remote processor. Mainly based on the work published by Arnaud Pouliquen [1]. [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=239877 Signed-off-by: Mathieu Poirier --- drivers/remoteproc/stm32_rproc.c | 8

[PATCH 4.4 21/48] exec: Always set cap_ambient in cap_bprm_set_creds

2020-06-01 Thread Greg Kroah-Hartman
From: Eric W. Biederman [ Upstream commit a4ae32c71fe90794127b32d26d7ad795813b502e ] An invariant of cap_bprm_set_creds is that every field in the new cred structure that cap_bprm_set_creds might set, needs to be set every time to ensure the fields does not get a stale value. The field cap_ambi

[PATCH v4 11/11] remoteproc: stm32: Update M4 state in stm32_rproc_stop()

2020-06-01 Thread Mathieu Poirier
Update the co-processor state in function stm32_rproc_stop() so that it can be used in scenarios where the remoteproc core is attaching to the M4. Mainly based on the work published by Arnaud Pouliquen [1]. [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=239877 Signed-off

[PATCH 4.4 22/48] fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()

2020-06-01 Thread Greg Kroah-Hartman
From: Alexander Potapenko [ Upstream commit 1d605416fb7175e1adf094251466caa52093b413 ] KMSAN reported uninitialized data being written to disk when dumping core. As a result, several kilobytes of kmalloc memory may be written to the core file and then read by a non-privileged user. Reported-by

[PATCH v4 03/11] remoteproc: stm32: Decouple rproc from DT parsing

2020-06-01 Thread Mathieu Poirier
Remove the remote processor from the process of parsing the device tree since (1) there is no correlation between them and (2) to use the information that was gathered to make a decision on whether to synchronise with the M4 or not. Signed-off-by: Mathieu Poirier Reviewed-by: Bjorn Andersson ---

[PATCH 4.4 26/48] x86/dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-06-01 Thread Greg Kroah-Hartman
From: Alexander Dahl commit 88743470668ef5eb6b7ba9e0f99888e5999bf172 upstream. The intermediate result of the old term (4UL * 1024 * 1024 * 1024) is 4 294 967 296 or 0x1 which is no problem on 64 bit systems. The patch does not change the later overall result of 0x10 for MAX_DMA32_PF

[PATCH v4 05/11] remoteproc: stm32: Parse syscon that will manage M4 synchronisation

2020-06-01 Thread Mathieu Poirier
Get from the DT the syncon to probe the state of the remote processor and the location of the resource table. Mainly based on the work published by Arnaud Pouliquen [1]. [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=239877 Signed-off-by: Mathieu Poirier Reviewed-by: Lo

[PATCH v4 02/11] remoteproc: stm32: Request IRQ with platform device

2020-06-01 Thread Mathieu Poirier
Request IRQ with platform device rather than remote proc in order to call stm32_rproc_parse_dt() before rproc_alloc(). That way we can know whether we need to synchronise with the MCU or not. Signed-off-by: Mathieu Poirier Reviewed-by: Loic Pallardy Reviewed-by: Bjorn Andersson --- drivers/re

[PATCH 4.4 27/48] xfrm: allow to accept packets with ipv6 NEXTHDR_HOP in xfrm_input

2020-06-01 Thread Greg Kroah-Hartman
From: Xin Long commit afcaf61be9d1dbdee5ec186d1dcc67b6b692180f upstream. For beet mode, when it's ipv6 inner address with nexthdrs set, the packet format might be: | outer | | dest | | | ESP| ESP | | IP hdr | ES

linux-kernel@vger.kernel.org

2020-06-01 Thread Greg Kroah-Hartman
From: Yoshihiro Shimoda commit 14a8d4bfc2102f85ce097563d151370c91c1898a upstream. This patch fixes an issue that the spin_lock_init() is not called for almost all pipes. Otherwise, the lockdep output the following message when we connect a usb cable using g_ncm: INFO: trying to register non-st

[PATCH 4.4 46/48] asm-prototypes: Clear any CPP defines before declaring the functions

2020-06-01 Thread Greg Kroah-Hartman
From: Michal Marek commit c7858bf16c0b2cc62f475f31e6df28c3a68da1d6 upstream. The asm-prototypes.h file is used to provide dummy function declarations for genksyms, when processing asm files with EXPORT_SYMBOL. Make sure that any architecture defines get out of our way. x86 currently has an issue

[PATCH 4.4 40/48] drm/fb-helper: Use proper plane mask for fb cleanup

2020-06-01 Thread Greg Kroah-Hartman
From: Matt Roper commit 7118fd9bd975a9f3093239d4c0f4e15356b57fab upstream. pan_display_atomic() calls drm_atomic_clean_old_fb() to sanitize the legacy FB fields (plane->fb and plane->old_fb). However it was building the plane mask to pass to this function incorrectly (the bitwise OR was using p

[rcu:dev.2020.05.31a 79/79] arch/m68k/include/asm/delay.h:123:19: error: called object 'ndelay' is not a function or function pointer

2020-06-01 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.31a head: d4a44f7b283b30d89a9d3b68266ecde58fc92aab commit: d4a44f7b283b30d89a9d3b68266ecde58fc92aab [79/79] refperf: Change readdelay module parameter to nanoseconds config: m68k-allmodconfig (attached as

Re: [GRUB PATCH RFC 00/18] i386: Intel TXT secure launcher

2020-06-01 Thread Daniel P. Smith
On 6/1/20 12:51 PM, Andy Lutomirski wrote: > On Mon, Jun 1, 2020 at 8:33 AM Daniel P. Smith > wrote: >> >> On 5/7/20 7:06 AM, Daniel Kiper wrote: >>> Hi Łukasz, >>> >>> On Tue, May 05, 2020 at 04:38:02PM +0200, Lukasz Hawrylko wrote: On Tue, 2020-05-05 at 01:21 +0200, Daniel Kiper wrote: >> >

[PATCH 4.4 08/48] IB/cma: Fix reference count leak when no ipv4 addresses are set

2020-06-01 Thread Greg Kroah-Hartman
From: Kalderon, Michal commit 963916fdb3e5ad4af57ac959b5a03bf23f7568ca upstream. Once in_dev_get is called to receive in_device pointer, the in_device reference counter is increased, but if there are no ipv4 addresses configured on the net-device the ifa_list will be null, resulting in a flow th

[PATCH 4.4 04/48] net/mlx5: Add command entry handling completion

2020-06-01 Thread Greg Kroah-Hartman
From: Moshe Shemesh [ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion

[PATCH 4.4 48/48] drm/msm: Fix possible null dereference on failure of get_pages()

2020-06-01 Thread Greg Kroah-Hartman
From: Ben Hutchings commit 3976626ea3d2011f8fd3f3a47070a8b792018253 upstream. Commit 62e3a3e342af changed get_pages() to initialise msm_gem_object::pages before trying to initialise msm_gem_object::sgt, so that put_pages() would properly clean up pages in the failure case. However, this means t

[PATCH 4.4 32/48] netfilter: nft_reject_bridge: enable reject with bridge vlan

2020-06-01 Thread Greg Kroah-Hartman
From: Michael Braun commit e9c284ec4b41c827f4369973d2792992849e4fa5 upstream. Currently, using the bridge reject target with tagged packets results in untagged packets being sent back. Fix this by mirroring the vlan id as well. Fixes: 85f5b3086a04 ("netfilter: bridge: add reject support") Sign

[PATCH 4.4 45/48] mm/vmalloc.c: dont dereference possible NULL pointer in __vunmap()

2020-06-01 Thread Greg Kroah-Hartman
From: Liviu Dudau commit 6ade20327dbb808882888ed8ccded71e93067cf9 upstream. find_vmap_area() can return a NULL pointer and we're going to dereference it without checking it first. Use the existing find_vm_area() function which does exactly what we want and checks for the NULL pointer. Link: ht

[PATCH 4.4 33/48] netfilter: ipset: Fix subcounter update skip

2020-06-01 Thread Greg Kroah-Hartman
From: Phil Sutter commit a164b95ad6055c50612795882f35e0efda1f1390 upstream. If IPSET_FLAG_SKIP_SUBCOUNTER_UPDATE is set, user requested to not update counters in sub sets. Therefore IPSET_FLAG_SKIP_COUNTER_UPDATE must be set, not unset. Fixes: 6e01781d1c80e ("netfilter: ipset: set match: add su

[PATCH 4.4 44/48] net: rtnl_configure_link: fix dev flags changes arg to __dev_notify_flags

2020-06-01 Thread Greg Kroah-Hartman
From: Roopa Prabhu commit 56a49d7048703f5ffdb84d3a0ee034108fba6850 upstream. This fix addresses https://bugzilla.kernel.org/show_bug.cgi?id=201071 Commit 5025f7f7d506 wrongly relied on __dev_change_flags to notify users of dev flag changes in the case when dev->rtnl_link_state = RTNL_LINK_INITI

[PATCH 4.4 35/48] qlcnic: fix missing release in qlcnic_83xx_interrupt_test.

2020-06-01 Thread Greg Kroah-Hartman
From: Qiushi Wu commit 15c973858903009e995b2037683de29dfe968621 upstream. In function qlcnic_83xx_interrupt_test(), function qlcnic_83xx_diag_alloc_res() is not handled by function qlcnic_83xx_diag_free_res() after a call of the function qlcnic_alloc_mbx_args() failed. Fix this issue by adding a

[PATCH 4.9 14/61] net: microchip: encx24j600: add missed kthread_stop

2020-06-01 Thread Greg Kroah-Hartman
From: Chuhong Yuan [ Upstream commit ff8ce319e9c25e920d994cc35236f0bb32dfc8f3 ] This driver calls kthread_run() in probe, but forgets to call kthread_stop() in probe failure and remove. Add the missed kthread_stop() to fix it. Signed-off-by: Chuhong Yuan Signed-off-by: David S. Miller Signed-

[PATCH 4.9 16/61] gfs2: dont call quota_unhold if quotas are not locked

2020-06-01 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c9cb9e381985bbbe8acd2695bbe6bd24bf06b81c ] Before this patch, function gfs2_quota_unlock checked if quotas are turned off, and if so, it branched to label out, which called gfs2_quota_unhold. With the new system of gfs2_qa_get and put, we no longer want to ca

[PATCH 4.9 20/61] Input: usbtouchscreen - add support for BonXeon TP

2020-06-01 Thread Greg Kroah-Hartman
From: James Hilliard [ Upstream commit e3b4f94ef52ae1592cbe199bd38dbdc0d58b2217 ] Based on available information this uses the singletouch irtouch protocol. This is tested and confirmed to be fully functional on the BonXeon TP hardware I have. Signed-off-by: James Hilliard Link: https://lore.k

[PATCH 4.9 12/61] IB/cma: Fix reference count leak when no ipv4 addresses are set

2020-06-01 Thread Greg Kroah-Hartman
From: Kalderon, Michal commit 963916fdb3e5ad4af57ac959b5a03bf23f7568ca upstream. Once in_dev_get is called to receive in_device pointer, the in_device reference counter is increased, but if there are no ipv4 addresses configured on the net-device the ifa_list will be null, resulting in a flow th

[PATCH 4.9 01/61] ax25: fix setsockopt(SO_BINDTODEVICE)

2020-06-01 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 687775cec056b38a4c8f3291e0dd7a9145f7b667 ] syzbot was able to trigger this trace [1], probably by using a zero optlen. While we are at it, cap optlen to IFNAMSIZ - 1 instead of IFNAMSIZ. [1] BUG: KMSAN: uninit-value in strnlen+0xf9/0x170 lib/string.c:569 CP

[PATCH 4.4 39/48] mm: remove VM_BUG_ON(PageSlab()) from page_mapcount()

2020-06-01 Thread Greg Kroah-Hartman
From: Konstantin Khlebnikov commit 6988f31d558aa8c744464a7f6d91d34ada48ad12 upstream. Replace superfluous VM_BUG_ON() with comment about correct usage. Technically reverts commit 1d148e218a0d ("mm: add VM_BUG_ON_PAGE() to page_mapcount()"), but context lines have changed. Function isolate_migr

[PATCH 4.4 30/48] vti4: eliminated some duplicate code.

2020-06-01 Thread Greg Kroah-Hartman
From: Jeremy Sowden commit f981c57ffd2d7cf2dd4b6d6f8fcb3965df42f54c upstream. The ipip tunnel introduced in commit dd9ee3444014 ("vti4: Fix a ipip packet processing bug in 'IPCOMP' virtual tunnel") largely duplicated the existing vti_input and vti_recv functions. Refactored to deduplicate the c

[PATCH 4.9 18/61] usb: gadget: legacy: fix redundant initialization warnings

2020-06-01 Thread Greg Kroah-Hartman
From: Masahiro Yamada [ Upstream commit d13cce757954fa663c69845611957396843ed87a ] Fix the following cppcheck warnings: drivers/usb/gadget/legacy/inode.c:1364:8: style: Redundant initialization for 'value'. The initialized value is overwritten$ value = -EOPNOTSUPP; ^ drivers/usb/gadget

[PATCH 4.9 22/61] Input: evdev - call input_flush_device() on release(), not flush()

2020-06-01 Thread Greg Kroah-Hartman
From: Brendan Shanks [ Upstream commit 09264098ff153f60866039d60b31d39b66f55a31 ] input_flush_device() should only be called once the struct file is being released and no open descriptors remain, but evdev_flush() was calling it whenever a file descriptor was closed. This caused uploaded force-

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