Applied "ASoC: qcom: Set dai_link id to each dai_link" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: qcom: Set dai_link id to each dai_link has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: [PATCH] exec: separate MM_ANONPAGES and RLIMIT_STACK accounting

2018-11-13 Thread Kees Cook
On Mon, Nov 12, 2018 at 10:09 AM, Oleg Nesterov wrote: > get_arg_page() checks bprm->rlim_stack.rlim_cur and re-calculates the > "extra" size for argv/envp pointers every time, this is a bit ugly and > even not strictly correct: acct_arg_size() must not account this size. > > Remove all the rlimit

Re: UBSAN: Undefined behaviour in mm/page_alloc.c

2018-11-13 Thread Andrew Morton
On Tue, 13 Nov 2018 10:43:05 +0100 Michal Hocko wrote: > Konstantin has noticed that kvmalloc might trigger the following warning > [Thu Nov 1 08:43:56 2018] WARNING: CPU: 0 PID: 6676 at mm/vmstat.c:986 > __fragmentation_index+0x54/0x60 > [...] > [Thu Nov 1 08:43:56 2018] Call Trace: > [Thu No

Re: [PATCH] kbuild: remove 'prepare' and 'scripts' dummies for external module build

2018-11-13 Thread Masahiro Yamada
On Mon, Nov 12, 2018 at 1:02 PM Masahiro Yamada wrote: > > Make is lenient enough to ignore missing rules as long as they are marked > as PHONY. Remove dummy targets. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > > Makefile | 3 --- > 1 file changed, 3 deletions(-) > > d

Re: [patch 0/2] Documentation/process: Add subsystem/tree handbook

2018-11-13 Thread Mark Brown
On Thu, Nov 08, 2018 at 09:32:18AM -0800, Dan Williams wrote: > On Thu, Nov 8, 2018 at 8:32 AM Mark Brown wrote: > > I'm not 100% sure that people will pick up that the topic is about a > > handbook for working with maintainers rather than a handbook for being a > > maintainer from that title...

[PATCH 0/3] AFS fixes

2018-11-13 Thread David Howells
Hi Al, Here's a set of fixes for AFS if you could pass them on to Linus: (1) Fix the interaction between vnode (inode) state validation and callback-break. There are some unhandled cases that lead to kafs transmitting a FetchStatus request on every validate call after the serve

[PATCH 2/3] afs: Fix missing net error handling

2018-11-13 Thread David Howells
kAFS can be given certain network errors (EADDRNOTAVAIL, EHOSTDOWN and ERFKILL) that it doesn't handle in its server/address rotation algorithms. They cause the probing and rotation to abort immediately rather than rotating. Fix this by: (1) Abstracting out the error prioritisation from the VL a

[PATCH 3/3] afs: Use d_instantiate() rather than d_add() and don't d_drop()

2018-11-13 Thread David Howells
Use d_instantiate() rather than d_add() and don't d_drop() in afs_vnode_new_inode(). The dentry shouldn't be removed as it's not changing its name. Reported-by: Al Viro Signed-off-by: David Howells --- fs/afs/dir.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/a

[PATCH 1/3] afs: Fix validation/callback interaction

2018-11-13 Thread David Howells
When afs_validate() is called to validate a vnode (inode), there are two unhandled cases in the fastpath at the top of the function: (1) If the vnode is promised (AFS_VNODE_CB_PROMISED is set), the break counters match and the data has expired, then there's an implicit case in which the

Re: UBSAN: Undefined behaviour in mm/page_alloc.c

2018-11-13 Thread Vlastimil Babka
On 11/14/18 12:15 AM, Andrew Morton wrote: > On Tue, 13 Nov 2018 10:43:05 +0100 Michal Hocko wrote: > >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -4364,6 +4353,15 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int >> order, int preferred_nid, >> gfp_t alloc_mask; /* The gfp_

Re: UBSAN: Undefined behaviour in mm/page_alloc.c

2018-11-13 Thread Andrew Morton
On Tue, 13 Nov 2018 10:43:05 +0100 Michal Hocko wrote: > From: Michal Hocko > Date: Fri, 9 Nov 2018 09:35:29 +0100 > Subject: [PATCH] mm, page_alloc: check for max order in hot path > > Konstantin has noticed that kvmalloc might trigger the following warning > [Thu Nov 1 08:43:56 2018] WARNING

Re: UBSAN: Undefined behaviour in mm/page_alloc.c

2018-11-13 Thread Andrew Morton
On Wed, 14 Nov 2018 00:23:28 +0100 Vlastimil Babka wrote: > On 11/14/18 12:15 AM, Andrew Morton wrote: > > On Tue, 13 Nov 2018 10:43:05 +0100 Michal Hocko wrote: > > > >> --- a/mm/page_alloc.c > >> +++ b/mm/page_alloc.c > >> @@ -4364,6 +4353,15 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned

[PATCH] rtc: max77686: Fix the returned value in case of error in 'max77686_rtc_read_time()'

2018-11-13 Thread Christophe JAILLET
In case of error, we return 0. This is spurious and not consistent with the other functions of the driver. Commit e115a2bf1426 has modified more than what is said in the commit message. Reverse part of it znd return an error when needed, as it was previously. Fixes: e115a2bf1426 ("rtc: max77686: s

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-13 Thread Russell King - ARM Linux
On Wed, Nov 14, 2018 at 08:55:37AM +1100, Finn Thain wrote: > On Tue, 13 Nov 2018, Russell King - ARM Linux wrote: > > > On Tue, Nov 13, 2018 at 02:39:00PM +1100, Finn Thain wrote: > > > > > > You could remove the old arch_gettimeoffset API without dropping any > > > platforms. > > > > > > If n

Linux 4.19.2

2018-11-13 Thread Greg KH
I'm announcing the release of the 4.19.2 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser:

Linux 4.18.19

2018-11-13 Thread Greg KH
I'm announcing the release of the 4.18.19 kernel. All users of the 4.18 kernel series must upgrade. The updated 4.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.18.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH] extcon: max8997: Fix lack of path setting in USB device mode

2018-11-13 Thread Chanwoo Choi
On 2018년 11월 14일 00:38, Marek Szyprowski wrote: > MAX8997 driver disables automatic path selection from MicroUSB connector > and manually sets path to either UART or USB lines. However the code for > setting USB path worked only for USB host mode (when ID pin is set > to ground). When standard USB

Linux 4.14.81

2018-11-13 Thread Greg KH
I'm announcing the release of the 4.14.81 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser:

Linux 4.9.137

2018-11-13 Thread Greg KH
I'm announcing the release of the 4.9.137 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.137

2018-11-13 Thread Greg KH
diff --git a/Makefile b/Makefile index 79b8f3a44f74..41fe3014b712 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 136 +SUBLEVEL = 137 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250

Re: UBSAN: Undefined behaviour in mm/page_alloc.c

2018-11-13 Thread Vlastimil Babka
On 11/14/18 12:32 AM, Andrew Morton wrote: > On Wed, 14 Nov 2018 00:23:28 +0100 Vlastimil Babka wrote: > >> On 11/14/18 12:15 AM, Andrew Morton wrote: >>> On Tue, 13 Nov 2018 10:43:05 +0100 Michal Hocko wrote: >>> --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4364,6 +4353,15 @@

Re: [PATCH] rtc: max77686: Fix the returned value in case of error in 'max77686_rtc_read_time()'

2018-11-13 Thread Chanwoo Choi
On 2018년 11월 14일 08:36, Christophe JAILLET wrote: > In case of error, we return 0. > This is spurious and not consistent with the other functions of the driver. > Commit e115a2bf1426 has modified more than what is said in the commit > message. Reverse part of it znd return an error when needed, as

Re: [PATCH v1 1/4] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2018-11-13 Thread Matthias Kaehlcke
On Tue, Nov 06, 2018 at 05:35:25PM +0530, Balakrishna Godavarthi wrote: > wcn3990 requires a power pulse to turn ON/OFF along with > regulators. Sometimes we are observing the power pulses are sent > out with some time delay, due to queuing these commands. This is > causing synchronization issues w

Re: BUG: GPF in non-whitelisted uaccess (non-canonical address?)

2018-11-13 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:ccda4af0f4b9 Linux 4.20-rc2 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13b4e77b40 kernel config: https://syzkaller.appspot.com/x/.config?x=4a0a89f12ca9b0f5 dashboard link: https:

Re: nfs: possible sync issue between nfs_call_unlink <-> nfs_async_unlink_release

2018-11-13 Thread Rafael David Tinoco
On 7/3/18 6:04 PM, Rafael Tinoco wrote: BUG: https://bugs.linaro.org/show_bug.cgi?id=3731 During Linaro's Kernel Functional tests, we have observed the following situation: [ 52.651490] DEBUG_LOCKS_WARN_ON(sem->owner != ((struct task_struct *)1UL)) [ 52.651506] WARNING: CPU: 2 PID: 1457 at

Applied "ASoC: pcm3060: Add DT property for single-ended output" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: pcm3060: Add DT property for single-ended output has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Applied "regulator: bd9571mwv: convert to SPDX identifiers" to the regulator tree

2018-11-13 Thread Mark Brown
The patch regulator: bd9571mwv: convert to SPDX identifiers has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours

Applied "regulator: as3711: convert to SPDX identifiers" to the regulator tree

2018-11-13 Thread Mark Brown
The patch regulator: as3711: convert to SPDX identifiers has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "regulator: bd718x7: Change next state after poweroff to ready" to the regulator tree

2018-11-13 Thread Mark Brown
The patch regulator: bd718x7: Change next state after poweroff to ready has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the n

Re: [PATCH] nvme: utilize two queue maps, one for reads and one for writes

2018-11-13 Thread Guenter Roeck
l as "nvme: add separate poll queue map" fixes the problem. Guenter --- # bad: [220dcf1c6fc97f8873b6d9fe121b80decd4b71a8] Add linux-next specific files for 20181113 # good: [ccda4af0f4b92f7b4c308d3acc262f4a7e3affad] Linux 4.20-rc2 git bisect start 'HEAD' 'v4.20-rc2' # g

[PATCH] mm/usercopy: Use memory range to be accessed for wraparound check

2018-11-13 Thread Isaac J. Manjarres
Currently, when checking to see if accessing n bytes starting at address "ptr" will cause a wraparound in the memory addresses, the check in check_bogus_address() adds an extra byte, which is incorrect, as the range of addresses that will be accessed is [ptr, ptr + (n - 1)]. This can lead to incor

Re: [PATCH] nvme: utilize two queue maps, one for reads and one for writes

2018-11-13 Thread Jens Axboe
On 11/13/18 5:41 PM, Guenter Roeck wrote: > Hi, > > On Wed, Oct 31, 2018 at 08:36:31AM -0600, Jens Axboe wrote: >> NVMe does round-robin between queues by default, which means that >> sharing a queue map for both reads and writes can be problematic >> in terms of read servicing. It's much easier t

Re: [GIT PULL] namespace fixes for v4.20-rc2

2018-11-13 Thread pr-tracker-bot
The pull request you sent on Sat, 10 Nov 2018 12:12:12 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1de4f2ef216dade3b5bd5f5247c4c750a953f51c Thank you! -- Deet-doot-dot

Re: [GIT PULL] clk fixes for v4.20-rc1

2018-11-13 Thread pr-tracker-bot
The pull request you sent on Sat, 10 Nov 2018 10:04:23 -0800: > https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git > tags/clk-fixes-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a1aa42f1d8c00a0767afee28d17caafd2a4dd8ff Thank you! -- Deet-doot-

Re: [GIT PULL] arm64 fixes for 4.20-rc2

2018-11-13 Thread pr-tracker-bot
The pull request you sent on Sat, 10 Nov 2018 11:44:54 +: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/35c55685fc807fb536067602418f4a12dde23987 Thank you! -- Deet-doot-dot, I am a bot

Re: [GIT PULL] Ceph fixes for 4.20-rc2

2018-11-13 Thread pr-tracker-bot
The pull request you sent on Fri, 9 Nov 2018 17:47:55 +0100: > https://github.com/ceph/ceph-client.git tags/ceph-for-4.20-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d757a3b01e72368176c5ee580ea17f8c2d185cd7 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: ODEBUG: Out of memory. ODEBUG disabled

2018-11-13 Thread Qian Cai
> On Nov 12, 2018, at 11:33 PM, Qian Cai wrote: > > > >> On Nov 10, 2018, at 9:11 AM, Qian Cai wrote: >> >> On 11/10/18 at 8:59 AM, Waiman Long wrote: >> >>> On 11/09/2018 08:45 PM, Qian Cai wrote: > Sent: Friday, November 09, 2018 at 5:08 PM > From: "Waiman Long" > To: "Qian

Re: [GIT PULL] Devicetree fixes for 4.20-rc, round 2

2018-11-13 Thread pr-tracker-bot
The pull request you sent on Fri, 9 Nov 2018 15:39:43 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git > tags/devicetree-fixes-for-4.20-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/aa4330e15c26c5ef8dd184f515c0655db8c6df3a Thank you! -- Deet

Re: [GIT PULL] namespace fixes for v4.20-rc2

2018-11-13 Thread Konstantin Ryabitsev
On Wed, Nov 14, 2018 at 12:55:45AM +, pr-tracker-...@kernel.org wrote: > The pull request you sent on Sat, 10 Nov 2018 12:12:12 -0600: > > > git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > > for-linus > > has been merged into torvalds/linux.git: > https://git.kern

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-13 Thread Michael Schmitz
Hi Finn, On 14/11/18 11:11 AM, Finn Thain wrote: On Tue, 13 Nov 2018, Michael Schmitz wrote: Running a recent kernel under ARAnyM shows 40 ns resolution so the Atari hardware emulation is a little more complete. You mean, 40 us resolution, right? Sorry, typo. Should have been us of course.

RE,

2018-11-13 Thread Miss Juliet Muhammad
Hello, I need your help to invest in your region.

RE,

2018-11-13 Thread Miss Juliet Muhammad
Hello, I need your help to invest in your region.

RE,

2018-11-13 Thread Miss Juliet Muhammad
Hello, I need your help to invest in your region.

Re: nvme: utilize two queue maps, one for reads and one for writes

2018-11-13 Thread Mike Snitzer
On Tue, Nov 13 2018 at 7:51pm -0500, Jens Axboe wrote: > On 11/13/18 5:41 PM, Guenter Roeck wrote: > > Hi, > > > > On Wed, Oct 31, 2018 at 08:36:31AM -0600, Jens Axboe wrote: > >> NVMe does round-robin between queues by default, which means that > >> sharing a queue map for both reads and write

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-13 Thread Michael Schmitz
On 14/11/18 12:43 PM, Russell King - ARM Linux wrote: On Wed, Nov 14, 2018 at 08:55:37AM +1100, Finn Thain wrote: On Tue, 13 Nov 2018, Russell King - ARM Linux wrote: On Tue, Nov 13, 2018 at 02:39:00PM +1100, Finn Thain wrote: You could remove the old arch_gettimeoffset API without dropping

Re: nvme: utilize two queue maps, one for reads and one for writes

2018-11-13 Thread Mike Snitzer
On Tue, Nov 13 2018 at 8:28pm -0500, Mike Snitzer wrote: > On Tue, Nov 13 2018 at 7:51pm -0500, > Jens Axboe wrote: > > > On 11/13/18 5:41 PM, Guenter Roeck wrote: > > > Hi, > > > > > > On Wed, Oct 31, 2018 at 08:36:31AM -0600, Jens Axboe wrote: > > >> NVMe does round-robin between queues by

[PATCH -next] misc: mic/scif: fix copy-paste error in scif_create_remote_lookup

2018-11-13 Thread YueHaibing
gcc '-Wunused-but-set-variable' warning: drivers/misc/mic/scif/scif_rma.c: In function 'scif_create_remote_lookup': drivers/misc/mic/scif/scif_rma.c:373:25: warning: variable 'vmalloc_num_pages' set but not used [-Wunused-but-set-variable] 'vmalloc_num_pages' should be used to determine if the a

Re: [PATCH v7 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Stefan Berger
On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 110

Re: [PATCH 4/6] autofs - use struct for mount params

2018-11-13 Thread kbuild test robot
Hi Ian, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.20-rc2] [cannot apply to next-20181113] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day

Re: [PATCH v11 3/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdlien from kexec

2018-11-13 Thread Chao Fan
On Tue, Nov 13, 2018 at 06:51:50PM +0100, Borislav Petkov wrote: >On Mon, Nov 12, 2018 at 05:46:43PM +0800, Chao Fan wrote: >> Imitate setup_acpi_rsdp() for the early_param of 'acpi_rsdp'. >> KEXEC writes the RSDP pointer to cmdline for EFI booting. >> So if 'acpi_rsdp' found in cmdline, use it dir

Re: [PATCH v1 2/4] Bluetooth: hci_qca: Pull RTS line high for baudrate change command

2018-11-13 Thread Matthias Kaehlcke
On Tue, Nov 06, 2018 at 05:35:26PM +0530, Balakrishna Godavarthi wrote: > This patch will pull the RTS line high instead of turning off the > flow control, while changing baudrate of host and chip. Please don't only describe what is changed, but also why this change is necessary. IIUC the BT chip

Re: [PATCH v7 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Stefan Berger
On 11/13/18 5:34 PM, Stefan Berger wrote: On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). I ran the vtpm proxy test suite on this series and got t

Re: [PATCH cgroup/for-4.21 1/2] cpuset: Minor cgroup2 interface updates

2018-11-13 Thread Waiman Long
On 11/13/2018 12:13 PM, Tejun Heo wrote: > From b1e3aeb11c5e86ee0988a038c4e7682d6beaa977 Mon Sep 17 00:00:00 2001 > From: Tejun Heo > Date: Tue, 13 Nov 2018 12:03:33 -0800 > > * Rename the partition file from "cpuset.sched.partition" to > "cpuset.cpus.partition". > > * When writing to the partit

Re: [PATCH v1 3/4] Bluetooth: hci_qca: clear HCI_QUIRK_RESET_ON_CLOSE flag

2018-11-13 Thread Matthias Kaehlcke
On Tue, Nov 06, 2018 at 06:44:07PM +0530, Balakrishna Godavarthi wrote: > Hi Marcel, > > On 2018-11-06 18:32, Marcel Holtmann wrote: > > Hi Balakrishna, > > > > > > > During hci down we are sending reset command to chip, which > > > > > is not required for wcn3990, as hdev->shutdown() will turn o

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

2018-11-13 Thread Stephen Rothwell
Hi Mark, After merging the spi tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/spi/spi-npcm-pspi.c: In function 'npcm_pspi_recv': drivers/spi/spi-npcm-pspi.c:226:17: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] *priv->rx

Re: [PATCH] openrisc: make function cache_loop() inline

2018-11-13 Thread Changbin Du
On Wed, Nov 14, 2018 at 05:49:53AM +0900, Stafford Horne wrote: > On Mon, Nov 12, 2018 at 11:55:44PM +0800, Changbin Du wrote: > > The third operand of mtspr instruction must be a constraint. To guarantee > > this condition, function cache_loop() which uses macro mtspr() must be > > inlined. So let

Re: kmemleak: Early log buffer exceeded (525980) during boot

2018-11-13 Thread Qian Cai
> On Nov 10, 2018, at 12:42 PM, Qian Cai wrote: > > > On 11/10/18 at 11:59 AM, Catalin Marinas wrote: > >> On Sat, Nov 10, 2018 at 10:08:10AM -0500, Qian Cai wrote: >>> On Nov 8, 2018, at 4:23 PM, Qian Cai wrote: The maximum value for DEBUG_KMEMLEAK_EARLY_LOG_SIZE is only 4, so it

WARNING: possible circular locking dependency detected

2018-11-13 Thread Qian Cai
Compiling kernel on an aarch64 server with the latest mainline (rc2) generated this, [ 910.263839] WARNING: possible circular locking dependency detected [ 910.263841] 4.20.0-rc2+ #4 Tainted: GWL [ 910.263843] -- [ 910.263844]

[PATCH 01/25] sched/vtime: Fix guest/system mis-accounting on task switch

2018-11-13 Thread Frederic Weisbecker
vtime_account_system() assumes that the target task to account cputime to is always the current task. This is most often true indeed except on task switch where we call: vtime_common_task_switch(prev) vtime_account_system(prev) Here prev is the scheduling-out task where we

[PATCH 03/25] vtime: Rename vtime_account_system() to vtime_account_kernel()

2018-11-13 Thread Frederic Weisbecker
vtime_account_system() decides if we need to account the time to the system (__vtime_account_system()) or to the guest (vtime_account_guest()). So this function is a misnommer as we are on a higher level than "system". All we know when we call that function is that we are accounting kernel cputime

[PATCH 04/25] vtime: Spare a seqcount lock/unlock cycle on context switch

2018-11-13 Thread Frederic Weisbecker
On context switch we are locking the vtime seqcount of the scheduling-out task twice: * On vtime_task_switch_common(), when we flush the pending vtime through vtime_account_system() / vtime_account_idle() * On arch_vtime_task_switch() to reset the vtime state. This is pointless as these act

[PATCH 05/25] sched/vtime: Record CPU under seqcount for kcpustat needs

2018-11-13 Thread Frederic Weisbecker
In order to compute the kcpustat delta on a nohz CPU, we'll need to fetch the task running on that target. Checking that its vtime state snapshot actually refers to the relevant target involves recording that CPU under the seqcount locked on task switch. This is a step toward making kcpustat movin

[PATCH 00/25] sched/nohz: Make kcpustat vtime aware (Fix kcpustat on nohz_full)

2018-11-13 Thread Frederic Weisbecker
Kcpustat (the stats you see for each CPU on /proc/stat) is partly maintained by the tick, updated by TICK_NSEC every jiffy, the same way we account the cputime for tasks. Now in the case of nohz_full, kcpustat doesn't get accounted anymore while the tick is stopped. Vtime maintains the task cputim

[PATCH 02/25] sched/vtime: Protect idle accounting under vtime seqcount

2018-11-13 Thread Frederic Weisbecker
Locking the seqcount on idle vtime accounting wasn't thought to be necessary because the readers of idle cputime don't use vtime (yet). Now updating vtime expect the related seqcount to be locked so do it for locking coherency purposes. Also idle cputime updates use vtime, but idle cputime reader

[PATCH 06/25] sched/cputime: Add vtime idle task state

2018-11-13 Thread Frederic Weisbecker
Record idle as a VTIME state instead of guessing it from VTIME_SYS and is_idle_task(). This is going to simplify the cputime read side especially as its state machine is going to further expand in order to fully support kcpustat on nohz_full. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta

[PATCH 10/25] context_tracking: Remove context_tracking_active()

2018-11-13 Thread Frederic Weisbecker
This function is a leftover from old removal or rename. We can drop it. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar --- include/linux/context_tracking_state.h | 1 - 1 file changed, 1 deletion

[PATCH 09/25] kcpustat: Track running task following vtime sequences

2018-11-13 Thread Frederic Weisbecker
In order to make kcpustat vtime aware (ie: work on nohz_full without freezing), we need to track the task running on the CPU in order to fetch its vtime delta and add it to the relevant kcpustat field. The most efficient way to track this task is to use RCU. The task is assigned on context switch

[PATCH 08/25] vtime: Exit vtime before exit_notify()

2018-11-13 Thread Frederic Weisbecker
In order to correctly implement kcpustat under nohz_full, we need to track the task running on a given CPU and read its vtime state safely, reliably and locklessly. This leaves us with tracking and fetching that task under RCU. This will be done in a further patch. Until then we need to prepare vt

[PATCH 18/25] vtime: Track nice-ness on top of context switch

2018-11-13 Thread Frederic Weisbecker
We need to read the nice value of the task running on any CPU, possibly remotely, in order to correctly support kcpustat on nohz_full. Unfortunately we can't just read task_nice(tsk) when tsk runs on another CPU because its nice value may be concurrently changed. There could be a risk that a recent

[PATCH 12/25] context_tracking: Rename context_tracking_is_cpu_enabled() to context_tracking_enabled_this_cpu()

2018-11-13 Thread Frederic Weisbecker
Standardize the naming on top of the context_tracking_enabled_*() base. Also make it clear we are checking the context tracking state of the *current* CPU with this function. We'll need to add an API to check that state on remote CPUs as well, so we must disambiguate the naming. Signed-off-by: Fre

[PATCH 11/25] context_tracking: s/context_tracking_is_enabled/context_tracking_enabled()

2018-11-13 Thread Frederic Weisbecker
Remove the superfluous "is" in the middle of the name. We want to standardize the naming so that it can be expanded through suffixes: context_tracking_enabled() context_tracking_enabled_cpu() context_tracking_enabled_this_cpu() Signed-off-by: Frederic Weisbecker Cc: Yauhe

[PATCH 20/25] sched/kcpustat: Introduce vtime-aware kcpustat accessor

2018-11-13 Thread Frederic Weisbecker
Kcpustat is not correctly supported on nohz_full CPUs. The tick doesn't fire and the cputime therefore doesn't move forward. The issue has shown up after the vanishing of the remaining 1Hz which has made the issue visible. We are solving that with tracking the task running on a CPU through RCU and

[PATCH 07/25] sched/cputime: Add vtime guest task state

2018-11-13 Thread Frederic Weisbecker
Record guest as a VTIME state instead of guessing it from VTIME_SYS and PF_VCPU. This is going to simplify the cputime read side especially as its state machine is going to further expand in order to fully support kcpustat on nohz_full. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc:

[PATCH 21/25] procfs: Use vtime aware kcpustat accessor

2018-11-13 Thread Frederic Weisbecker
Now that we have a vtime safe kcpustat accessor, use it to fix frozen kcpustat values on nohz_full CPUs. Reported-by: Yauheni Kaliuta Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar --- fs/proc/s

[PATCH 14/25] sched/vtime: Rename vtime_accounting_cpu_enabled() to vtime_accounting_enabled_this_cpu()

2018-11-13 Thread Frederic Weisbecker
Standardize the naming on top of the vtime_accounting_enabled_*() base. Also make it clear we are checking the vtime state of the *current* CPU with this function. We'll need to add an API to check that state on remote CPUs as well, so we must disambiguate the naming. Signed-off-by: Frederic Weisb

[PATCH 19/25] sched/vite: Handle nice updates under vtime

2018-11-13 Thread Frederic Weisbecker
On the vtime level, nice updates are currently handled on context switches. When a task's nice value gets updated while it is sleeping, the context switch takes into account the new nice value in order to later record the vtime delta to the appropriate kcpustat index. We have yet to handle live up

[PATCH 13/25] context_tracking: Introduce context_tracking_enabled_cpu()

2018-11-13 Thread Frederic Weisbecker
This allows us to check if a remote CPU runs context tracking (ie: is nohz_full). We'll need that to reliably support "nice" accounting on kcpustat. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar

[PATCH 17/25] sched/cputime: Standardize the kcpustat index based accounting functions

2018-11-13 Thread Frederic Weisbecker
Sanitize a bit the functions that do cputime accounting with custom kcpustat indexes: * Rename account_system_index_time() to account_system_time_index() to comply with account_guest/user_time_index() * Use proper enum cpu_usage_stat type in account_system_time() * Reorder task_group_account_f

[PATCH 15/25] sched/vtime: Introduce vtime_accounting_enabled_cpu()

2018-11-13 Thread Frederic Weisbecker
This allows us to check if a remote CPU runs vtime accounting (ie: is nohz_full). We'll need that to reliably support "nice" accounting on kcpustat. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar

[PATCH 23/25] leds: Use vtime aware kcpustat accessors

2018-11-13 Thread Frederic Weisbecker
Now that we have a vtime safe kcpustat accessor, use it to fix frozen kcpustat values on nohz_full CPUs. Reported-by: Yauheni Kaliuta Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar --- drivers/l

[PATCH 24/25] rackmeter: Use vtime aware kcpustat accessors

2018-11-13 Thread Frederic Weisbecker
Now that we have a vtime safe kcpustat accessor, use it to fix frozen kcpustat values on nohz_full CPUs. Reported-by: Yauheni Kaliuta Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar --- drivers/m

[PATCH 25/25] sched/vtime: Clarify vtime_task_switch() argument layout

2018-11-13 Thread Frederic Weisbecker
This function deals with the previous and next tasks during a context switch. But only the previous is passed as an argument, the next task being deduced from current. Make the code clearer by passing both previous and next as arguments. Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc:

[PATCH 22/25] cpufreq: Use vtime aware kcpustat accessor

2018-11-13 Thread Frederic Weisbecker
Now that we have a vtime safe kcpustat accessor, use it to fix frozen kcpustat values on nohz_full CPUs. Reported-by: Yauheni Kaliuta Signed-off-by: Frederic Weisbecker Cc: Yauheni Kaliuta Cc: Thomas Gleixner Cc: Rik van Riel Cc: Peter Zijlstra Cc: Wanpeng Li Cc: Ingo Molnar --- drivers/c

[PATCH 16/25] sched/cputime: Allow to pass cputime index on user/guest accounting

2018-11-13 Thread Frederic Weisbecker
When we account user or guest cputime, we decide to add the delta either to the nice fields or the normal fields of kcpustat and this depends on the nice value for the task passed in parameter. Since we are going to track the nice-ness from vtime instead, we'll need to be able to use a different s

RE: scsi_set_medium_removal timeout issue

2018-11-13 Thread Zengtao (B)
Hi Alan: >-Original Message- >From: Alan Stern [mailto:st...@rowland.harvard.edu] >Sent: Monday, November 12, 2018 11:33 PM >To: Zengtao (B) >Cc: j...@linux.vnet.ibm.com; martin.peter...@oracle.com; >gre...@linuxfoundation.org; linux-s...@vger.kernel.org; >linux-kernel@vger.kernel.org; li

BUG: KASAN: slab-out-of-bounds in try_to_unmap_one+0x1c4/0x1af0

2018-11-13 Thread Qian Cai
Compiling kernel on an aarch64 server with the latest mainline (rc2) triggered this, [ 1463.931841] BUG: KASAN: slab-out-of-bounds in try_to_unmap_one+0x1c4/0x1af0 [ 1463.938969] Write of size 32 at addr 80897ce87b58 by task kworker/u513:0/5209 [ 1463.946678] [ 1463.948656] CPU: 38 PID: 520

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-13 Thread Michael Schmitz
Hi Finn, Am 14.11.2018 um 14:08 schrieb Michael Schmitz: Can you also test tree fbf8405cd982 please? My tests were on c606b5cf902 in case it wasn't clear. I've now seen fbf8405cd982, one moment please ... That one does appear to work - different versions of ARAnyM, and different userland vers

Re: [PATCH] ARM: dts: i.MX25: add the clocks for the EPIT blocks

2018-11-13 Thread Shawn Guo
On Thu, Nov 01, 2018 at 06:32:47PM +0100, Martin Kaiser wrote: > The i.MX25 contains two EPIT (Enhanced Periodic Interrupt Timer) > function blocks. Add their ipg and per clocks to the device tree. > > Signed-off-by: Martin Kaiser Applied, thanks.

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-13 Thread Finn Thain
On Tue, 13 Nov 2018, Russell King - ARM Linux wrote: > > A clocksource provides a cycle counter that monotonically changes and > does not wrap between clockevent events. > > A clock event is responsible for providing events to the system when > some work is needing to be done, limited by the w

Re: [PATCH v4] cpufreq: ti-cpufreq: Only register platform_device when supported

2018-11-13 Thread Viresh Kumar
On 13-11-18, 13:30, Dave Gerlach wrote: > Currently the ti-cpufreq driver blindly registers a 'ti-cpufreq' to force > the driver to probe on any platforms where the driver is built in. > However, this should only happen on platforms that actually can make use > of the driver. There is already funct

[PATCH v2] fork: Fix some -Wmissing-prototypes warnings

2018-11-13 Thread Yi Wang
We get a warning when building kernel with W=1: kernel/fork.c:167:13: warning: no previous prototype for ‘arch_release_thread_stack’ [-Wmissing-prototypes] kernel/fork.c:779:13: warning: no previous prototype for ‘fork_init’ [-Wmissing-prototypes] Add the missing declaration in head file to fix

Re: [PATCH] nvme: utilize two queue maps, one for reads and one for writes

2018-11-13 Thread Guenter Roeck
On Tue, Nov 13, 2018 at 05:51:08PM -0700, Jens Axboe wrote: > On 11/13/18 5:41 PM, Guenter Roeck wrote: > > Hi, > > > > On Wed, Oct 31, 2018 at 08:36:31AM -0600, Jens Axboe wrote: > >> NVMe does round-robin between queues by default, which means that > >> sharing a queue map for both reads and wri

Re: [PATCH v3] mm: Create the new vm_fault_t type

2018-11-13 Thread Souptick Joarder
On Tue, Nov 6, 2018 at 5:33 PM Souptick Joarder wrote: > > Page fault handlers are supposed to return VM_FAULT codes, > but some drivers/file systems mistakenly return error > numbers. Now that all drivers/file systems have been converted > to use the vm_fault_t return type, change the type defini

Re: [PATCH] ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

2018-11-13 Thread Darren Hart
On Tue, Nov 13, 2018 at 06:22:45PM -0800, Loic WEI YU NENG wrote: > Some Lenovo ideapad models lack a physical rfkill switch. > On Lenovo models Yoga 2 13, ideapad-laptop would wrongly report all > radios as blocked by hardware which caused wireless network connections > to fail. > Add these models

linux-next: Tree for Nov 14

2018-11-13 Thread Stephen Rothwell
Hi all, Changes since 20181113: The tip tree still had its build failure for which I applied a fix patch. Non-merge commits (relative to Linus' tree): 2696 2835 files changed, 114088 insertions(+), 98851 dele

Re: [PATCH v2 1/2] platform/chrome: straighten out cros_ec_get_{next,host}_event() error codes

2018-11-13 Thread Benson Leung
Hi Brian, On Wed, Nov 07, 2018 at 06:49:38PM -0800, Brian Norris wrote: > cros_ec_get_next_event() is documented to return 0 for success and > negative for errors. It currently returns negative for some errors, and > non-negative (number of bytes received) for success (including some "no > data av

Re: [PATCH v2 2/2] platform/chrome: don't report EC_MKBP_EVENT_SENSOR_FIFO as wakeup

2018-11-13 Thread Benson Leung
Hi Brian, On Wed, Nov 07, 2018 at 06:49:39PM -0800, Brian Norris wrote: > EC_MKBP_EVENT_SENSOR_FIFO events can be triggered for a variety of > reasons, and there are very few cases in which they should be treated as > wakeup interrupts (particularly, when a certain > MOTIONSENSE_MODULE_FLAG_* is s

[PATCH] HID: multitouch: Add pointstick support for Cirque Touchpad

2018-11-13 Thread Kai-Heng Feng
Cirque Touchpad/Pointstick combo is similar to Alps devices, it requires MT_CLS_WIN_8_DUAL to expose its pointstick as a mouse. Signed-off-by: Kai-Heng Feng --- drivers/hid/hid-ids.h| 3 +++ drivers/hid/hid-multitouch.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/drivers/h

[PATCH] zram: close udev startup race condition as default groups

2018-11-13 Thread Minchan Kim
commit fef912bf860e upstream. commit 98af4d4df889 upstream. I got a report from Howard Chen that he saw zram and sysfs race(ie, zram block device file is created but sysfs for it isn't yet) when he tried to create new zram devices via hotadd knob. v4.20 kernel fixes it by [1, 2] but it's too larg

Re: [PATCH 4/6] autofs - use struct for mount params

2018-11-13 Thread Ian Kent
On Wed, 2018-11-14 at 09:54 +0800, kbuild test robot wrote: > Hi Ian, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.20-rc2] > [cannot apply to next-20181113] > [if your patch is applied to th

<    1   2   3   4   5   6   7   >