Re: [PATCH] staging: speakup: refactor synths array to use a list

2018-06-17 Thread Gregory Nowak
On Tue, Jun 12, 2018 at 08:31:06AM +0200, Samuel Thibault wrote: > The load/unload is about the module itself, i.e. modprobe speakup_bns ; > modprobe speakup_soft, switch between them, then rmmod speakup_bns ; > speakup_soft or the converse (to exercise both orders). # uname -a Linux p41box

Re: linux-next: build warning after merge of the random tree

2018-06-17 Thread Tobin C. Harding
On Mon, Jun 18, 2018 at 01:35:23PM +1000, Stephen Rothwell wrote: > Hi all, > > On Fri, 8 Jun 2018 13:37:48 +1000 Stephen Rothwell > wrote: > > > > After merging the random tree, today's linux-next build (arm > > multi_v7_defconfig) produced this warning: > > > > lib/vsprintf.c:1668:13:

Re: [PATCH] ipc: Limit sysctl value to IPCMNI

2018-06-17 Thread Waiman Long
On 06/13/2018 07:36 AM, Andrew Morton wrote: > On Tue, 12 Jun 2018 08:36:32 +0200 Takashi Iwai wrote: > >>> Well the present behaviour is to convert higher values downwards, yes? >>> >>> int ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit) >>> { >>> kuid_t euid; >>>

[PATCH v1 4/6] perf cs-etm: Support dummy address value for CS_ETM_TRACE_ON packet

2018-06-17 Thread Leo Yan
For CS_ETM_TRACE_ON packet, its fields 'packet->start_addr' and 'packet->end_addr' equal to 0xdeadbeefdeadbeefUL which are emitted in the decoder layer as dummy value, but the dummy value is pointless for branch sample when we use 'perf script' command to check program flow. This patch is a

Re: [RFC PATCH 5/5] fsi/scom: Major overhaul

2018-06-17 Thread Alistair Popple
On Monday, 18 June 2018 2:46:33 PM AEST Benjamin Herrenschmidt wrote: > On Mon, 2018-06-18 at 14:09 +1000, Alistair Popple wrote: > > On Sunday, 17 June 2018 11:22:11 AM AEST Benjamin Herrenschmidt wrote: > > > On Sun, 2018-06-17 at 11:17 +1000, Benjamin Herrenschmidt wrote: > > > > > > > > We

[PATCH v1 5/6] perf cs-etm: Generate branch sample when receiving a CS_ETM_TRACE_ON packet

2018-06-17 Thread Leo Yan
If one CS_ETM_TRACE_ON packet is inserted, we miss to generate branch sample for the previous CS_ETM_RANGE packet. This patch is to generate branch sample when receiving a CS_ETM_TRACE_ON packet, so this can save complete info for the previous CS_ETM_RANGE packet just before CS_ETM_TRACE_ON

[PATCH v1 6/6] perf cs-etm: Generate branch sample for CS_ETM_TRACE_ON packet

2018-06-17 Thread Leo Yan
CS_ETM_TRACE_ON packet itself can give the info that there have a discontinuity in the trace, this patch is to add branch sample for CS_ETM_TRACE_ON packet if it is inserted in the middle of CS_ETM_RANGE packets; as result we can have hint for the trace discontinuity. Signed-off-by: Leo Yan ---

[PATCH v1 0/6] perf cs-etm: Fix tracing packet handling and minor refactoring

2018-06-17 Thread Leo Yan
Due the current code is missing to handle cs-etm start tracing packet and CS_ETM_TRACE_ON packet, we fail to generate branch sample for them. This patch series is to fix cs-etm tracing packet handling: Patch 0001 is to add invalid address macro for readable coding; Patch 0002 is one minor

[PATCH v1 2/6] perf cs-etm: Bail out immediately for instruction sample failure

2018-06-17 Thread Leo Yan
If the instruction sample failure has happened, it isn't necessary to execute to the end of the function cs_etm__flush(). This commit is to bail out immediately and return the error code. Signed-off-by: Leo Yan --- tools/perf/util/cs-etm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v1 3/6] perf cs-etm: Fix start tracing packet handling

2018-06-17 Thread Leo Yan
Usually the start tracing packet is a CS_ETM_TRACE_ON packet, this packet is passed to cs_etm__flush(); cs_etm__flush() will check the condition 'prev_packet->sample_type == CS_ETM_RANGE' but 'prev_packet' is allocated by zalloc() so 'prev_packet->sample_type' is zero in initialization and this

[PATCH v1 1/6] perf cs-etm: Introduce invalid address macro

2018-06-17 Thread Leo Yan
This patch introduces invalid address macro and uses it to replace dummy value '0xdeadbeefdeadbeefUL'. Signed-off-by: Leo Yan --- tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[RESEND PATCH v12 2/2] sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq()

2018-06-17 Thread Byungchul Park
Hello Steven, I've changed the code a little bit to avoid a compile warning caused by 'const' args of find_cpu(). Can I keep your Reviewed-by? BEFORE: static int find_cpu(const struct cpumask *mask, const struct sched_domain *sd, const struct sched_domain

[RESEND PATCH v5 2/2] sched/deadline: Set cp->elements[0].cpu to -1 when the heap is empty

2018-06-17 Thread Byungchul Park
Hello Steven and Daniel, I've changed the 2nd patch a little bit to consider cpudl_clear() additionally. Can I keep your Acked-by on? (I temporarily removed the Acked-by you gave me.) Acked-by: Steven Rostedt (VMware) Acked-by: Daniel Bristot de Oliveira -8<- >From

[RESEND PATCH v12 0/2] Make find_later_rq() choose a closer cpu in topology

2018-06-17 Thread Byungchul Park
Change from v11 -. Rebase onto the latest tip/sched/core -. make the word 'cpu' in comments be upper case as Ingo did in the commit 97fb7a0a89 -. Avoid a compile warning caused by mismatching bwt const and non-const 'struct sched_domain' in find_cpu() Change from v10 -.

[RESEND PATCH v5 1/2] sched/deadline: Add cpudl_maximum_dl() for better readability

2018-06-17 Thread Byungchul Park
Changes from v4 - Fix a typo in cpudl_init() of the 2nd patch Changes from v3 - Rebase onto the latest tip/sched/core - Apply what Joel suggests, to set cp->elements[0].cpu to -1 when the heap becomes empty in cpudl_clear() Changes from v2 - Run spellchecker over the text and fix typos -

[RESEND PATCH v12 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2018-06-17 Thread Byungchul Park
Hello Juri, I've changed the code a little bit to avoid a compile warning caused by 'const' args of find_cpu(). Can I keep your Acked-by? BEFORE: static int find_cpu(const struct cpumask *mask, const struct sched_domain *sd, const struct sched_domain

[PATCH 5/5] kbuild: Add documentation for modobj-m

2018-06-17 Thread NeilBrown
Add documentation for building modules from multiple directories using modobj-m. Signed-off-by: NeilBrown --- Documentation/kbuild/makefiles.txt | 65 ++-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/Documentation/kbuild/makefiles.txt

[PATCH 4/5] kbuild: disable KBUILD_MODNAME when building for mod.a

2018-06-17 Thread NeilBrown
When building an object to be included in mod.a we cannot know the name of the module. So don't define KBUILD_MODNAME. This will ensure attempt to use that macro when the module name isn't know will trigger an error. Signed-off-by: NeilBrown --- scripts/Makefile.lib |4 ++-- 1 file

[PATCH 1/5] kbuild: detect directories in components of a module.

2018-06-17 Thread NeilBrown
This is a first step in a larger change and so can only be fully understood in the larger context. This patch changes the code for extracting directories from a list of objects to extract them from real-obj-X instead of obj-X. This should not cause any change in behaviour yet as listing

[PATCH 2/5] kbuild: treat a directory listed in a composite object as foo/mod.a

2018-06-17 Thread NeilBrown
Currently a directory is not permitted in a composite object. This patch changes kbuild so that a directory it assumed to mean the file "mod.a" in that directory. The file cannot, yet, be created, so this does not yet affect behaviour. There are several parts to this. 1/ strip out all the

[RFC PATCH 0/5] kbuild: build modules from code in multiple directories.

2018-06-17 Thread NeilBrown
This set of patches makes it possible to build a module from code in multiple directories without needing to list files from one directory in the Makefile of another directory. The code was developed for lustre (which is now out-of-tree :-( ) but can be useful elsewhere, such as for xfs and btrfs

[PATCH 3/5] kbuild: support building of per-directory mod.a

2018-06-17 Thread NeilBrown
This patch allows a "mod.a" to be built in any directory. A previous patch allows that mod.a to be included in any module or another mod.a. This is achieved via a new pair of macros: modobj-y and modobj-m. Anything in modobj-y is added to obj-y and is otherwise ignored. Anything listed in

Re: [PATCH v3] cpufreq: kryo: Add module remove and exit

2018-06-17 Thread Viresh Kumar
On 17-06-18, 22:01, ilia@gmail.com wrote: > From: Ilia Lin > > Add device remove and module exit code to make the driver > functioning as a loadable module. > > Fixes: ac28927659be (cpufreq: kryo: allow building as a loadable module) > Signed-off-by: Ilia Lin > --- >

Re: [PATCH v2] cpufreq: kryo: Fix possible error code dereference

2018-06-17 Thread Viresh Kumar
On 17-06-18, 21:58, ilia@gmail.com wrote: > From: Ilia Lin > > In event of error returned by the nvmem_cell_read() non-pointer value > may be dereferenced. Fix this with error handling. > Additionally free the allocated speedbin buffer, as per the API. > > Fixes: 9ce36edd1a52 (cpufreq: Add

[RFC PATCH 1/2] mtd: rawnand: handle ONFI revision number field being 0

2018-06-17 Thread Chris Packham
Some Micron NAND chips (MT29F1G08ABAFAWP-ITE:F) report 00 00 for the revision number field of the ONFI parameter page. Rather than rejecting these outright assume ONFI version 1.0 if the revision number is 00 00. Signed-off-by: Chris Packham --- At the moment I haven't qualified this check on

Re: [PATCH v10 0/7] i2c: Add FSI-attached I2C master algorithm

2018-06-17 Thread Joel Stanley
On 14 June 2018 at 05:06, Eddie James wrote: > This series adds an algorithm for an I2C master physically located on an FSI > slave device. The I2C master has multiple ports, each of which may be > connected > to an I2C slave. Access to the I2C master registers is achieved over FSI bus. > > Due

[RFC PATCH 2/2] mtd: rawnand: marvell: Support page size of 2048 with 8-bit ECC

2018-06-17 Thread Chris Packham
The MT29F1G08ABAFAWP-ITE:F chip has 2048 byte pages and requires a minimum ECC strength of 8-bits. Allow for this combination of requirements using the marvell_nand controller. Signed-off-by: Chris Packham --- I've tried to follow the recommended AN-379 from Marvell. They do seem to have

[RFC PATCH 0/2] mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F

2018-06-17 Thread Chris Packham
Hi, I'm looking at adding support for the Micron MT29F1G08ABAFAWP-ITE:F chip to one of our boards which uses the Marvell NFCv2 controller. This particular chip is a bit odd in that the datasheet states support for ONFI 1.0 but the revision number field is 00 00. It also is marked ABAFA but

Re: what trees/branches to test on syzbot

2018-06-17 Thread Stephen Rothwell
Hi Dmitry, On Fri, 15 Jun 2018 11:54:16 +0200 Dmitry Vyukov wrote: > > Re backwards bisection (when bug is introduced), we can actually test > linux-next-history instead of linux-next, right? I don't see why using linux-next-history would be any better, it just contains all the linux-next

Re: [PATCH v11 00/27] ARM: davinci: convert to common clock framework​

2018-06-17 Thread Sekhar Nori
Hi David, On Sunday 17 June 2018 09:18 PM, David Lechner wrote: > Hi Sekhar, > > On 05/22/2018 04:38 AM, Sekhar Nori wrote: >> Hi David, >> >> On Friday 18 May 2018 10:18 PM, David Lechner wrote: >>> This series converts mach-davinci to use the common clock framework. >>> >>> The series works

linux-next: Tree for Jun 18

2018-06-17 Thread Stephen Rothwell
Hi all, Changes since 20180615: Added trees: xarray, mlx5-next Removed tree: powerpc-pkey (finished with) The mac80211-next tree gained a conflict against Linus' tree. The xarray tree gained a build failure due to an interaction with the nvdimm tree for which I applied a fix. Non-merge

Re: [RFC PATCH 5/5] fsi/scom: Major overhaul

2018-06-17 Thread Benjamin Herrenschmidt
On Mon, 2018-06-18 at 14:09 +1000, Alistair Popple wrote: > On Sunday, 17 June 2018 11:22:11 AM AEST Benjamin Herrenschmidt wrote: > > On Sun, 2018-06-17 at 11:17 +1000, Benjamin Herrenschmidt wrote: > > > > > > We have everything that cronus needs and more than pdbg needs afaik :-) > > Yep, has

[PATCH] rculist: improve documentation for list_for_each_entry_from_rcu()

2018-06-17 Thread NeilBrown
Unfortunately the patch for adding list_for_each_entry_from_rcu() wasn't the final patch after all review. It is functionally correct but the documentation was incomplete. This patch adds this missing documentation which includes an update to the documentation for

[PATCH v10 3/9] cpuset: Simulate auto-off of sched.domain_root at cgroup removal

2018-06-17 Thread Waiman Long
Making a cgroup a domain root will reserve cpu resource at its parent. So when a domain root cgroup is destroyed, we need to free the reserved cpus at its parent. This is now done by doing an auto-off of the sched.domain_root flag in the offlining phase when a domain root cgroup is being removed.

[PATCH v10 0/9] cpuset: Enable cpuset controller in default hierarchy

2018-06-17 Thread Waiman Long
v10: - Remove the cpuset.sched.load_balance patch for now as it may not be that useful. - Break the large patch 2 into smaller patches to make them a bit easier to review. - Test and fix issues related to changing "cpuset.cpus" and cpu online/offline in a domain root. - Rename

[PATCH v10 1/9] cpuset: Enable cpuset controller in default hierarchy

2018-06-17 Thread Waiman Long
Given the fact that thread mode had been merged into 4.14, it is now time to enable cpuset to be used in the default hierarchy (cgroup v2) as it is clearly threaded. The cpuset controller had experienced feature creep since its introduction more than a decade ago. Besides the core cpus and mems

Re: [RFC PATCH 5/5] fsi/scom: Major overhaul

2018-06-17 Thread Alistair Popple
On Sunday, 17 June 2018 11:22:11 AM AEST Benjamin Herrenschmidt wrote: > On Sun, 2018-06-17 at 11:17 +1000, Benjamin Herrenschmidt wrote: > > > > We have everything that cronus needs and more than pdbg needs afaik :-) Yep, has what we need and more (such as put scom under mask and indirect

Re: [PATCHv4 1/2] ARM: imx53: add secure-reg-access support for PMU

2018-06-17 Thread Fabio Estevam
Hi Sebastian, [Adding Martin on Cc who also tried to enable DBGEN bit in a previous patch] On Mon, Feb 26, 2018 at 10:47 AM, Sebastian Reichel wrote: > Hi Shawn, > > On Sat, Feb 24, 2018 at 03:45:44PM +0800, Shawn Guo wrote: >> On Mon, Feb 12, 2018 at 01:39:44PM +0100, Sebastian Reichel wrote:

Re: linux-next: build failure in Linus' tree

2018-06-17 Thread Stephen Rothwell
Hi all, On Tue, 12 Jun 2018 12:26:40 +1000 Stephen Rothwell wrote: > > Building Linus' tree, today's linux-next build (powerpc allyesconfig) > failed like this: > > ld: net/bpfilter/bpfilter_umh.o: compiled for a little endian system and > target is big endian > ld: failed to merge target

Re: linux-next: manual merge of the rcu tree with Linus' tree

2018-06-17 Thread Stephen Rothwell
Hi Paul, On Mon, 18 Jun 2018 13:48:49 +1000 Stephen Rothwell wrote: > > I am still getting this. Maybe this was a bit premature :-) -- Cheers, Stephen Rothwell pgpctU4_DnFxM.pgp Description: OpenPGP digital signature

Re: linux-next: manual merge of the rcu tree with Linus' tree

2018-06-17 Thread Stephen Rothwell
Hi all, On Tue, 12 Jun 2018 10:46:07 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the rcu tree got a conflict in: > > drivers/iommu/amd_iommu.c > > between commit: > > 94c793accacd ("iommu/amd: Hide unused iommu_table_lock") > > from Linus' tree and commit: > >

Re: linux-next: build warning after merge of the nfc-next tree

2018-06-17 Thread Stephen Rothwell
Hi all, On Tue, 12 Jun 2018 10:19:54 +1000 Stephen Rothwell wrote: > > After merging the nfc-next tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/nfc/fdp/fdp.c: In function 'fdp_nci_open': > drivers/nfc/fdp/fdp.c:250:17: warning: unused variable 'dev'

Re: linux-next: manual merge of the vfs tree with the overlayfs tree

2018-06-17 Thread Stephen Rothwell
Hi all, On Tue, 29 May 2018 11:30:35 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the vfs tree got a conflict in: > > fs/read_write.c > > between commit: > > 63ea46a359b2 ("vfs: dedupe: extract helper for a single dedup") > > from the overlayfs tree and commit: > >

Re: linux-next: manual merge of the overlayfs tree with the btrfs-kdave tree

2018-06-17 Thread Stephen Rothwell
Hi all, On Tue, 29 May 2018 09:52:50 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the overlayfs tree got a conflict in: > > fs/btrfs/ioctl.c > > between commit: > > 0b4dc087e29a ("Btrfs: dedupe_file_range ioctl: remove 16MiB restriction") > > from the btrfs-kdave tree

Re: [Freedreno] [PATCH] gpu: drm: msm: Change return type to vm_fault_t

2018-06-17 Thread Souptick Joarder
On Thu, May 31, 2018 at 11:29 PM, Jordan Crouse wrote: > On Mon, May 28, 2018 at 12:38:41PM +0530, Souptick Joarder wrote: >> On Mon, May 21, 2018 at 10:59 PM, Souptick Joarder >> wrote: >> > Use new return type vm_fault_t for fault handler. For >> > now, this is just documenting that the

Re: [GIT PULL] f2fs update for 4.16-rc1

2018-06-17 Thread Stephen Rothwell
Hi Chris, On Tue, 3 Apr 2018 12:29:19 +1000 Stephen Rothwell wrote: > > Ping? > > On Wed, 14 Mar 2018 10:17:04 +1100 Stephen Rothwell > wrote: > > > > On Thu, 1 Feb 2018 09:25:51 +1100 Stephen Rothwell > > wrote: > > > > > > On Tue, 30 Jan 2018 16:25:35 -0800 Jaegeuk Kim > > > wrote:

Re: linux-next: build warning after merge of the random tree

2018-06-17 Thread Stephen Rothwell
Hi all, On Fri, 8 Jun 2018 13:37:48 +1000 Stephen Rothwell wrote: > > After merging the random tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > lib/vsprintf.c:1668:13: warning: 'have_filled_random_ptr_key' defined but not > used [-Wunused-variable] >

linux-next: build warning after merge of the xarray tree

2018-06-17 Thread Stephen Rothwell
Hi all, After merging the xarray tree, today's linux-next build (x86_64 allmodconfig) produced this warning: WARNING: modpost: missing MODULE_LICENSE() in lib/test_xarray.o Introduced by commit d968f529e39f ("xarray: Add XArray load operation") -- Cheers, Stephen Rothwell

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

2018-06-17 Thread Stephen Rothwell
Hi all, After merging the xarray tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: In file included from arch/powerpc/include/asm/bug.h:128:0, from include/linux/bug.h:5, from arch/powerpc/include/asm/cmpxchg.h:9, from

Re: [tip:x86/pti] x86/asm: Pad assembly functions with INT3 instructions

2018-06-17 Thread Mike Galbraith
On Sun, 2018-06-17 at 21:47 +0200, Borislav Petkov wrote: > On Sun, Jun 17, 2018 at 04:02:58PM +0200, Mike Galbraith wrote: > > (/me does that.. all better) > > > > From 6ac281ee69f4cb5b581d5f49662fb56b6326155a Mon Sep 17 00:00:00 2001 > > From: Borislav Petkov > > Date: Sun, 17 Jun 2018

[PATCH] staging: pi433: fix race condition in pi433_open

2018-06-17 Thread Hugo Lefeuvre
Whenever pi433_open and pi433_remove execute concurrently, a race condition potentially resulting in use-after-free might happen. Let T1 and T2 be two kernel threads. 1. T1 executes pi433_open and stops before "device->users++". 2. The pi433 device was removed inbetween, so T2 executes

Re: [PATCH 4.4 234/268] enic: enable rq before updating rq descriptors

2018-06-17 Thread Govindarajulu Varadarajan (gvaradar)
On Mon, 2018-06-18 at 00:06 +0100, Ben Hutchings wrote: > On Mon, 2018-05-28 at 12:03 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Govindarajulu Varadarajan > > > > [ Upstream commit

Re: [PATCH RFC] tracing: Call triggers only if event passes filter checks

2018-06-17 Thread Joel Fernandes
On Sat, Jun 16, 2018 at 10:43:29PM +0900, Masami Hiramatsu wrote: > On Thu, 14 Jun 2018 18:01:13 -0700 > Joel Fernandes wrote: > > > From: "Joel Fernandes (Google)" > > > > Currently, trace event triggers are called regardless of if the event > > filter checks pass or fail. Thus if one were to

[PATCH v4] platform/x86: touchscreen_dmi: Add info for the ONDA V891W Dual OS tablet

2018-06-17 Thread youling257
Add touchscreen info for the ONDA V891W Dual OS tablet Reviewed-by: Hans de Goede Signed-off-by: youling257 --- drivers/platform/x86/touchscreen_dmi.c | 27 ++ 1 file changed, 27 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c

Re: [PATCH 4.4 246/268] media: cx25821: prevent out-of-bounds read on array card

2018-06-17 Thread Ben Hutchings
On Mon, 2018-05-28 at 12:03 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Colin Ian King > > [ Upstream commit 67300abdbe9f1717532aaf4e037222762716d0f6 ] > > Currently an out of range dev->nr is

Re: [PATCH v2 1/4] vt: preserve unicode values corresponding to screen characters

2018-06-17 Thread valdis . kletnieks
On Sun, 17 Jun 2018 19:17:51 -0400, Nicolas Pitre said: > On Sun, 17 Jun 2018, valdis.kletni...@vt.edu wrote: > > This preprocessor variable seems to be dangling in the breeze, with > > no way for it to get set? As a result, we pick up the #else define by > > default. > > That's actually what's

Re: [PATCH v2 1/4] vt: preserve unicode values corresponding to screen characters

2018-06-17 Thread Nicolas Pitre
On Sun, 17 Jun 2018, valdis.kletni...@vt.edu wrote: > On Sun, 17 Jun 2018 15:07:03 -0400, Nicolas Pitre said: > > > diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c > > index 1eb1a376a0..7b636638b3 100644 > > --- a/drivers/tty/vt/vt.c > > +++ b/drivers/tty/vt/vt.c > > @@ -317,6 +317,171 @@

Re: [PATCH 4.4 234/268] enic: enable rq before updating rq descriptors

2018-06-17 Thread Ben Hutchings
On Mon, 2018-05-28 at 12:03 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Govindarajulu Varadarajan > > [ Upstream commit e8588e268509292550634d9a35f2723a207683b2 ] [...] > ---

Re: wmi: usercopy: Kernel memory overwrite attempt detected to spans multiple pages (offset 0, size 4104)

2018-06-17 Thread valdis . kletnieks
On Sun, 17 Jun 2018 22:30:27 +0300, Mihai Donțu said: > Your patch works OK for me, thank you. The libsmbios tool, however, not > so much. It appears to be behind latest developments. > > # echo "+keyboard" >/sys/class/leds/dell\:\:kbd_backlight/start_triggers > > is all that is needed today.

Re: [PATCH v2 1/4] vt: preserve unicode values corresponding to screen characters

2018-06-17 Thread valdis . kletnieks
On Sun, 17 Jun 2018 15:07:03 -0400, Nicolas Pitre said: > diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c > index 1eb1a376a0..7b636638b3 100644 > --- a/drivers/tty/vt/vt.c > +++ b/drivers/tty/vt/vt.c > @@ -317,6 +317,171 @@ void schedule_console_callback(void) > schedule_work(_work);

Re: [PATCH] openrisc: Call destructor during __pte_free_tlb

2018-06-17 Thread Matthew Wilcox
On Mon, Jun 18, 2018 at 07:12:42AM +0900, Stafford Horne wrote: > During the __pte_free_tlb path openrisc fails to call the page > destructor which would clear the new bits that were introduced. > To fix this we are calling the destructor. > > It seem openrisc was the only architecture missing

Re: [PATCH 0/2] mm: gup: don't unmap or drop filesystem buffers

2018-06-17 Thread John Hubbard
On 06/17/2018 02:54 PM, Christopher Lameter wrote: > On Sat, 16 Jun 2018, john.hubb...@gmail.com wrote: > >> I've come up with what I claim is a simple, robust fix, but...I'm >> presuming to burn a struct page flag, and limit it to 64-bit arches, in >> order to get there. Given that the problem

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-17 Thread John Hubbard
On 06/17/2018 12:53 PM, Dan Williams wrote: > [..] >> diff --git a/mm/rmap.c b/mm/rmap.c >> index 6db729dc4c50..37576f0a4645 100644 >> --- a/mm/rmap.c >> +++ b/mm/rmap.c >> @@ -1360,6 +1360,8 @@ static bool try_to_unmap_one(struct page *page, struct >> vm_area_struct *vma, >>

Pre-Qualified Loan!

2018-06-17 Thread Activ Finance
Do you need a legal, reputable and quick loan? We can offer you a low interest rate guaranteed loan. We are a private lender and investor; we offer business and private loans on a low interest rate. We can help finance all kind of projects. For more details, contact me at:

[PATCH] openrisc: Call destructor during __pte_free_tlb

2018-06-17 Thread Stafford Horne
This fixes an issue uncovered when a recent change to add the "page table" flag was merged. During bootup we see many errors like the following: BUG: Bad page state in process mkdir pfn:00bae page:c1ff15c0 count:0 mapcount:-1024 mapping: index:0x0 flags: 0x0() raw:

Re: [PATCH 4.4 229/268] media: cx23885: Set subdev host data to clk_freq pointer

2018-06-17 Thread Ben Hutchings
On Mon, 2018-05-28 at 12:03 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Brad Love > > [ Upstream commit 5ceade1d97fc6687e050c44c257382c192f56276 ] > > Currently clk_freq is ignored entirely,

[PATCH] proc: fixup PDE allocation bloat

2018-06-17 Thread Alexey Dobriyan
commit 24074a35c5c975c94cd9691ae962855333aac47f ("proc: Make inline name size calculation automatic") started to put PDE allocations into kmalloc-256 which is unnecessary as ~40 character names are very rare. Put allocation back into kmalloc-192 cache for 64-bit non-debug builds. Put

Re: [PATCH 0/2] mm: gup: don't unmap or drop filesystem buffers

2018-06-17 Thread Christopher Lameter
On Sat, 16 Jun 2018, john.hubb...@gmail.com wrote: > I've come up with what I claim is a simple, robust fix, but...I'm > presuming to burn a struct page flag, and limit it to 64-bit arches, in > order to get there. Given that the problem is old (Jason Gunthorpe noted > that RDMA has been living

Re: [PATCH v5 4/4] mm: Mark pages in use for page tables

2018-06-17 Thread Stafford Horne
On Sun, Jun 17, 2018 at 11:52:22AM -0700, Matthew Wilcox wrote: > On Mon, Jun 18, 2018 at 12:09:31AM +0900, Stafford Horne wrote: > > On Wed, Mar 07, 2018 at 05:44:43AM -0800, Matthew Wilcox wrote: > > > Define a new PageTable bit in the page_type and use it to mark pages in > > > use as page

Re: x86_64: movdqu rarely stores bad data (movdqu works fine). Kernel bug, fried CPU or glibc bug?

2018-06-17 Thread Sergei Trofimovich
On Sat, 16 Jun 2018 22:22:50 +0100 Sergei Trofimovich wrote: > TL;DR: on master string/test-memmove glibc test fails on my machine > and I don't know why. Other tests work fine. > ... > This fails: > loop { > movdqu [src++],%xmm0 > movntdq %xmm0,[dst++] > } > sfence > This works: >

Re: [RFC PATCH] of: overlay: update phandle cache on overlay apply and remove

2018-06-17 Thread Alan Tull
On Sun, Jun 17, 2018 at 11:03 AM, wrote: Hi Frank, > From: Frank Rowand > > A comment in the review of the patch adding the phandle cache said that > the cache would have to be updated when modules are applied and removed. > This patch implements the cache updates. > > Fixes: 0b3ce78e90fc

[PATCH 1/2] rtl8192u/rtl819x_Qos.h: Adjust spaces to coding guidelines

2018-06-17 Thread Fabian Bläse
This patch improves spacing according to the coding guidelines, mainly around braces. This patch fixes errors reported by checkpatch. Signed-off-by: Fabian Bläse Signed-off-by: Maximilian Ott --- drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h | 94 1 file changed,

[PATCH 0/2] rtl8192u: Improve coding style

2018-06-17 Thread Fabian Bläse
This Patch series improves coding style in rtl8192u staging driver to fix checkpath errors. Fabian Bläse (2): rtl8192u/rtl819x_Qos.h: Adjust spaces to coding guidelines rtl8192u/rtl819x_BAProc.c: Adjust spaces to coding guidelines .../staging/rtl8192u/ieee80211/rtl819x_BAProc.c| 71

[PATCH 2/2] rtl8192u/rtl819x_BAProc.c: Adjust spaces to coding guidelines

2018-06-17 Thread Fabian Bläse
This patch improves spacing according to the coding guidelines, mainly around braces. This patch fixes errors reported by checkpatch. Signed-off-by: Fabian Bläse Signed-off-by: Maximilian Ott --- .../staging/rtl8192u/ieee80211/rtl819x_BAProc.c| 71 ++ 1 file changed,

[PATCH v5 6/6] ARM: dts: tegra: enable NAND flash on Colibri T20

2018-06-17 Thread Stefan Agner
This enables the on-module ONFI conformant NAND flash. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi

[PATCH v5 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-17 Thread Stefan Agner
Add support for the NAND flash controller found on NVIDIA Tegra 2 SoCs. This implementation does not make use of the command queue feature. Regular operations using ->exec_op() use PIO mode for data transfers. Raw, ECC and OOB read/writes make use of the DMA mode for data transfer. Signed-off-by:

[PATCH v5 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node

2018-06-17 Thread Stefan Agner
From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15

[PATCH v5 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-17 Thread Stefan Agner
Changes definitly calm down, most noteably probably the changes around checking whether a page is empty if the stack reports ECC errors.. I verified the code using raw nandwrites with OOB to simulate an empty page which has some bits flipped in the OOB area, everthing seems to work as I would

[PATCH v5 2/6] mtd: rawnand: add an option to specify NAND chip as a boot device

2018-06-17 Thread Stefan Agner
Allow to define a NAND chip as a boot device. This can be helpful for the selection of the ECC algorithm and strength in case the boot ROM supports only a subset of controller provided options. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon ---

[PATCH v5 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm

2018-06-17 Thread Stefan Agner
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/nand.txt | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 + include/linux/mtd/rawnand.h

[PATCH v5 3/6] mtd: rawnand: tegra: add devicetree binding

2018-06-17 Thread Stefan Agner
This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- .../bindings/mtd/nvidia-tegra20-nand.txt | 64 +++ 1 file changed, 64 insertions(+)

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-17 Thread John Hubbard
On 06/17/2018 01:10 PM, Dan Williams wrote: > On Sun, Jun 17, 2018 at 1:04 PM, Jason Gunthorpe wrote: >> On Sun, Jun 17, 2018 at 12:53:04PM -0700, Dan Williams wrote: diff --git a/mm/rmap.c b/mm/rmap.c index 6db729dc4c50..37576f0a4645 100644 +++ b/mm/rmap.c @@ -1360,6 +1360,8

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-17 Thread Dan Williams
On Sun, Jun 17, 2018 at 1:04 PM, Jason Gunthorpe wrote: > On Sun, Jun 17, 2018 at 12:53:04PM -0700, Dan Williams wrote: >> > diff --git a/mm/rmap.c b/mm/rmap.c >> > index 6db729dc4c50..37576f0a4645 100644 >> > +++ b/mm/rmap.c >> > @@ -1360,6 +1360,8 @@ static bool try_to_unmap_one(struct page

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-17 Thread Jason Gunthorpe
On Sun, Jun 17, 2018 at 12:53:04PM -0700, Dan Williams wrote: > > diff --git a/mm/rmap.c b/mm/rmap.c > > index 6db729dc4c50..37576f0a4645 100644 > > +++ b/mm/rmap.c > > @@ -1360,6 +1360,8 @@ static bool try_to_unmap_one(struct page *page, > > struct vm_area_struct *vma, > >

[PATCH v3] cpufreq: kryo: Add module remove and exit

2018-06-17 Thread ilia . lin
From: Ilia Lin Add device remove and module exit code to make the driver functioning as a loadable module. Fixes: ac28927659be (cpufreq: kryo: allow building as a loadable module) Signed-off-by: Ilia Lin --- drivers/cpufreq/qcom-cpufreq-kryo.c | 22 +++--- 1 file changed, 19

[PATCH v2] cpufreq: kryo: Fix possible error code dereference

2018-06-17 Thread ilia . lin
From: Ilia Lin In event of error returned by the nvmem_cell_read() non-pointer value may be dereferenced. Fix this with error handling. Additionally free the allocated speedbin buffer, as per the API. Fixes: 9ce36edd1a52 (cpufreq: Add Kryo CPU scaling driver) Signed-off-by: Ilia Lin ---

Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*()

2018-06-17 Thread Dan Williams
On Sat, Jun 16, 2018 at 6:25 PM, wrote: > From: John Hubbard > > This fixes a few problems that come up when using devices (NICs, GPUs, > for example) that want to have direct access to a chunk of system (CPU) > memory, so that they can DMA to/from that memory. Problems [1] come up > if that

Re: [tip:x86/pti] x86/asm: Pad assembly functions with INT3 instructions

2018-06-17 Thread Borislav Petkov
On Sun, Jun 17, 2018 at 04:02:58PM +0200, Mike Galbraith wrote: > (/me does that.. all better) > > From 6ac281ee69f4cb5b581d5f49662fb56b6326155a Mon Sep 17 00:00:00 2001 > From: Borislav Petkov > Date: Sun, 17 Jun 2018 13:57:42 +0200 > Subject: [PATCH] x86/crypto: Add a missing RET > >

[PATCH] ARM: S3C24XX: fix typo in guard macro for s3c2412.h

2018-06-17 Thread efremov
The guard macro __ARCH_ARM_REGS_S3C24XX_S3C2412_H in header s3c2412.h doesn't match the #ifndef macro __ARCH_ARM_MACH_S3C24XX_S3C2412_H. This patch defines the guard correctly. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov ---

Re: wmi: usercopy: Kernel memory overwrite attempt detected to spans multiple pages (offset 0, size 4104)

2018-06-17 Thread Mihai Donțu
On Sun, 2018-06-17 at 10:36 -0700, Kees Cook wrote: > On Sat, Jun 16, 2018 at 3:04 PM, Mihai Donțu wrote: > > On Sun, 2018-06-17 at 00:01 +0300, Mihai Donțu wrote: > > > While trying to adjust the keyboard backlight mode, I hit this BUG: > > > > > > Jun 16 22:16:07 mdontu-l kernel: usercopy:

Re: [PATCH v3] Input: add bu21029 touch driver

2018-06-17 Thread kbuild test robot
Hi Zhu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v4.17-rc4] [also build test WARNING on next-20180615] [cannot apply to input/next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH v2 1/4] vt: preserve unicode values corresponding to screen characters

2018-06-17 Thread Nicolas Pitre
The vt code translates UTF-8 strings into glyph index values and stores those glyph values directly in the screen buffer. Because there can only be at most 512 glyphs, it is impossible to represent most unicode characters, in which case a default glyph (often '?') is displayed instead. The

[PATCH v2 3/4] vt: unicode fallback for scrollback

2018-06-17 Thread Nicolas Pitre
There is currently no provision for scrollback content in the core code, leaving that to backend video drivers where this can be highly optimized. There is currently no common method for those drivers to tell the core what part of the scrollback is actually displayed and what size the scrollback

[PATCH v2 4/4] vt: coherence validation code for the unicode screen buffer

2018-06-17 Thread Nicolas Pitre
Make sure the unicode screen buffer matches the video screen content. This is provided for debugging convenience and disabled by default. Signed-off-by: Nicolas Pitre --- drivers/tty/vt/vt.c | 39 +++ 1 file changed, 39 insertions(+) diff --git

[PATCH v2 2/4] vt: introduce unicode mode for /dev/vcs

2018-06-17 Thread Nicolas Pitre
Now that the core vt code knows how to preserve unicode values for each displayed character, it is then possible to let user space access it via /dev/vcs*. Unicode characters are presented as 32 bit values in native endianity via the /dev/vcsu* devices, mimicking the simple /dev/vcs* devices.

[PATCH v2 0/4] have the vt console preserve unicode characters

2018-06-17 Thread Nicolas Pitre
The vt code translates UTF-8 strings into glyph index values and stores those glyph values directly in the screen buffer. Because there can only be at most 512 glyphs, it is impossible to represent most unicode characters, in which case a default glyph (often '?') is displayed instead. The

Re: [PATCH v5 4/4] mm: Mark pages in use for page tables

2018-06-17 Thread Matthew Wilcox
On Mon, Jun 18, 2018 at 12:09:31AM +0900, Stafford Horne wrote: > On Wed, Mar 07, 2018 at 05:44:43AM -0800, Matthew Wilcox wrote: > > Define a new PageTable bit in the page_type and use it to mark pages in > > use as page tables. This can be helpful when debugging crashdumps or > > analysing

Re: [RFC][PATCHES] getting rid of int *open in ->atomic_open() and friends

2018-06-17 Thread Al Viro
On Sat, Jun 09, 2018 at 06:10:51AM +0100, Al Viro wrote: > On Fri, Jun 08, 2018 at 11:57:06AM -0700, Linus Torvalds wrote: > > I'm obviously biased since I asked for this, but: > > > > On Fri, Jun 8, 2018 at 11:48 AM Al Viro wrote: > > > > > > 33 files changed, 135 insertions(+), 180

Re: [RFC PATCH] x86/arch_prctl: Add ARCH_SET_XCR0 to mask XCR0 per-thread

2018-06-17 Thread Keno Fischer
> Almost difference in CPU behavior > between the replayer and the replayee. Not sure what happened to this sentence. What I meant to say was: Almost any difference in CPU behavior between the replayer and the replayee will cause problems for the determinism of the trace. To elaborate on this,

Re: wmi: usercopy: Kernel memory overwrite attempt detected to spans multiple pages (offset 0, size 4104)

2018-06-17 Thread Kees Cook
On Sat, Jun 16, 2018 at 3:04 PM, Mihai Donțu wrote: > On Sun, 2018-06-17 at 00:01 +0300, Mihai Donțu wrote: >> While trying to adjust the keyboard backlight mode, I hit this BUG: >> >> Jun 16 22:16:07 mdontu-l kernel: usercopy: Kernel memory overwrite attempt >> detected to spans multiple pages

  1   2   >