Re: [PATCH v2] mm/z3fold.c: Lock z3fold page before __SetPageMovable()

2019-07-02 Thread Vitaly Wool
On Wed, Jul 3, 2019 at 12:18 AM Henry Burns wrote: > > On Tue, Jul 2, 2019 at 2:19 PM Andrew Morton > wrote: > > > > On Mon, 1 Jul 2019 18:16:30 -0700 Henry Burns wrote: > > > > > Cc: Vitaly Wool , Vitaly Vul > > > > Are these the same person? > I Think it's the same person, but i wasn't sure

Re: [PATCH v2] mm/z3fold.c: Lock z3fold page before __SetPageMovable()

2019-07-02 Thread Vitaly Wool
On Wed, Jul 3, 2019 at 12:24 AM Andrew Morton wrote: > > On Tue, 2 Jul 2019 15:17:47 -0700 Henry Burns wrote: > > > > > > > + if (can_sleep) { > > > > > > + lock_page(page); > > > > > > + __SetPageMovable(page, pool->inode->i_mapping); > > > > > > +

[PATCH] unicore32: dma: fix to pass correct device identity to free_irq()

2019-07-02 Thread Wei Yongjun
free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Fixes: 10c9c10c3151 ("unicore32 core architecture: mm related: consistent device DMA handling") Signed-off-by: Wei Yongjun --- arch/unicore32/kernel/dma.c | 2 +- 1 file

gpio desc flags being lost

2019-07-02 Thread Chris Packham
Hi LinusW, Bartosz, I was debugging something else and I noticed a problem with the gpio framework or the gpio-mmio driver (or both) in 5.2.0-rc6. I have some gpio hogs in my device tree which seem to get requested at startup as expected ... GPIO line 456 (sw-reset) hogged as output/low GPIO

Re: [DRAFT] mm/kprobes: Add generic kprobe_fault_handler() fallback definition

2019-07-02 Thread Anshuman Khandual
On 07/01/2019 06:58 PM, Guenter Roeck wrote: > On 7/1/19 2:35 AM, Anshuman Khandual wrote: >> Architectures like parisc enable CONFIG_KROBES without having a definition >> for kprobe_fault_handler() which results in a build failure. Arch needs to >> provide kprobe_fault_handler() as it is

Re: [GIT PULL] FSI changes for 5.3

2019-07-02 Thread Benjamin Herrenschmidt
On Wed, 2019-07-03 at 03:39 +, Joel Stanley wrote: > Hello Greg, > > We've not had a MAINAINERS entry for drivers/fsi, so this fixes that. It names > Jeremy and I as maintainers, so if it works for you we will send pull requests > to you each cycle. Ack. I no longer work for IBM and thus

Re: [PATCH v1 10/11] perf intel-pt: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Adrian Hunter
On 3/07/19 4:35 AM, Leo Yan wrote: > Hi Adrian, > > On Tue, Jul 02, 2019 at 02:07:40PM +0300, Adrian Hunter wrote: >> On 2/07/19 1:34 PM, Leo Yan wrote: >>> Based on the following report from Smatch, fix the potential >>> NULL pointer dereference check. >> >> It never is NULL. Remove the NULL

[PATCH] of/fdt: Make sure no-map does not remove already reserved regions

2019-07-02 Thread Nicolas Boichat
If the device tree is incorrectly configured, and attempts to define a "no-map" reserved memory that overlaps with the kernel data/code, the kernel would crash quickly after boot, with no obvious clue about the nature of the issue. For example, this would happen if we have the kernel mapped at

[PATCH] posix_acl: fix stale posix_acl_update_mode() comment

2019-07-02 Thread Sergey Senozhatsky
inode_change_ok() was renamed to setattr_prepare() in 4.8-rc1. Signed-off-by: Sergey Senozhatsky --- fs/posix_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/posix_acl.c b/fs/posix_acl.c index 84ad1c90d535..a76aa995a95d 100644 --- a/fs/posix_acl.c +++

Re: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Randy Dunlap
On 7/2/19 9:33 PM, Dexuan Cui wrote: >> From: linux-hyperv-ow...@vger.kernel.org >> On Behalf Of Randy Dunlap >> Sent: Tuesday, July 2, 2019 4:25 PM >> ERROR: "pci_destroy_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! >> ERROR: "pci_create_slot" [drivers/pci/controller/pci-hyperv.ko]

Reminder: 3 open syzbot bugs in "android/binder" subsystem

2019-07-02 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 3 of them as possibly being bugs in the

Re: [PATCHv4 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-07-02 Thread Tomasz Figa
Hi Hans, On Mon, Jun 3, 2019 at 8:28 PM Hans Verkuil wrote: > > From: Tomasz Figa > > Due to complexity of the video decoding process, the V4L2 drivers of > stateful decoder hardware require specific sequences of V4L2 API calls > to be followed. These include capability enumeration,

Re: [PATCH] Revert "ARM: dts: rockchip: add startup delay to rk3288-veyron panel-regulators"

2019-07-02 Thread Doug Anderson
Hi, On Thu, Jun 20, 2019 at 1:31 PM Doug Anderson wrote: > > Hi, > > On Thu, Jun 20, 2019 at 11:21 AM Douglas Anderson > wrote: > > > > This reverts commit 1f45e8c6d0161f044d679f242fe7514e2625af4a. > > > > This 100 ms mystery delay is not on downstream kernels and no longer > > seems needed on

[GIT PULL] SMB3 fix

2019-07-02 Thread Steve French
Please pull the following changes since commit 4b972a01a7da614b4796475f933094751a295a2f: Linux 5.2-rc6 (2019-06-22 16:01:36 -0700) are available in the Git repository at: git://git.samba.org/sfrench/cifs-2.6.git tags/5.2-rc6-smb3-fix for you to fetch changes up to

Re: suspicious RCU usage (was: Re: [PATCHv3 next 1/3] loopback: create blackhole net device similar to loopack.)

2019-07-02 Thread महेश बंडेवार
On Tue, Jul 2, 2019 at 5:54 AM Geert Uytterhoeven wrote: > > Hi Mahesh, > > On Mon, 1 Jul 2019, Mahesh Bandewar wrote: > > Create a blackhole net device that can be used for "dead" > > dst entries instead of loopback device. This blackhole device differs > > from loopback in few aspects:

RE: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Randy Dunlap > Sent: Tuesday, July 2, 2019 8:25 PM > To: Matthew Wilcox > Cc: LKML ; linux-hyp...@vger.kernel.org; Jake > Oshins ; KY Srinivasan ; Haiyang > Zhang ; Stephen Hemminger > ; Sasha Levin ; linux-pci > ; Bjorn Helgaas >

Re: [PATCH v8 3/5] mtd: Add support for HyperBus memory devices

2019-07-02 Thread Vignesh Raghavendra
On 02/07/19 11:23 PM, Sergei Shtylyov wrote: > Hello! > > On 06/25/2019 10:57 AM, Vignesh Raghavendra wrote: > >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave >> interfaces. HyperBus is used to

[RFC] rcuperf: Make rcuperf test more robust for !expedited mode

2019-07-02 Thread Joel Fernandes (Google)
It is possible that rcuperf run concurrently with init starting up. During this time, the system is running all grace periods as expedited. However, rcuperf can also be run in a normal mode. The rcuperf test depends on a holdoff before starting the test to ensure grace periods start later. This

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Ravi Bangoria
On 7/3/19 9:49 AM, Eric Biggers wrote: > On Wed, Jul 03, 2019 at 09:29:39AM +0530, Ravi Bangoria wrote: >> Hi Eric, >> >> On 7/3/19 9:25 AM, Eric Biggers wrote: >>> On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: On 7/2/19 11:13 AM, Eric Biggers wrote: >

RE: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Randy Dunlap > Sent: Tuesday, July 2, 2019 4:25 PM > ERROR: "pci_destroy_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! > ERROR: "pci_create_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! > > drivers/pci/slot.o is only

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Eric Biggers
On Wed, Jul 03, 2019 at 09:29:39AM +0530, Ravi Bangoria wrote: > Hi Eric, > > On 7/3/19 9:25 AM, Eric Biggers wrote: > > On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: > >> > >> > >> On 7/2/19 11:13 AM, Eric Biggers wrote: > >>>

[PATCH v7 3/3] arm64: kexec_file: add rng-seed support

2019-07-02 Thread Hsin-Yi Wang
Adding "rng-seed" to dtb. It's fine to add this property if original fdt doesn't contain it. Since original seed will be wiped after read, so use a default size 128 bytes here. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd --- change log v6->v7: * Use stack for rng_seed to avoid

[PATCH v7 2/3] fdt: add support for rng-seed

2019-07-02 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. Bootloader should provide this entropy and the value is read from /chosen/rng-seed in DT. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd

[PATCH v3 2/3] augmented rbtree: add new RB_DECLARE_CALLBACKS_MAX macro

2019-07-02 Thread Michel Lespinasse
Add RB_DECLARE_CALLBACKS_MAX, which generates augmented rbtree callbacks for the case where the augmented value is a scalar whose definition follows a max(f(node)) pattern. This actually covers all present uses of RB_DECLARE_CALLBACKS, and saves some (source) code duplication in the various

[PATCH v3 1/3] augmented rbtree: add comments for RB_DECLARE_CALLBACKS macro

2019-07-02 Thread Michel Lespinasse
Add a short comment summarizing the arguments to RB_DECLARE_CALLBACKS. The arguments are also now capitalized. This copies the style of the INTERVAL_TREE_DEFINE macro. No functional changes in this commit, only comments and capitalization. Signed-off-by: Michel Lespinasse Acked-by: Davidlohr

[PATCH v7 0/3] add support for rng-seed

2019-07-02 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. This can be used for adding sufficient initial entropy for stack canary. Especially architectures that lack per-stack canary. Hsin-Yi Wang (3): arm64:

[PATCH v7 1/3] arm64: map FDT as RW for early_init_dt_scan()

2019-07-02 Thread Hsin-Yi Wang
Currently in arm64, FDT is mapped to RO before it's passed to early_init_dt_scan(). However, there might be some codes (eg. commit "fdt: add support for rng-seed") that need to modify FDT during init. Map FDT to RO after early fixups are done. Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen

[PATCH v3 3/3] augmented rbtree: rework the RB_DECLARE_CALLBACKS macro definition

2019-07-02 Thread Michel Lespinasse
Change the definition of the RBCOMPUTE function. The propagate callback repeatedly calls RBCOMPUTE as it moves from leaf to root. it wants to stop recomputing once the augmented subtree information doesn't change. This was previously checked using the == operator, but that only works when the

[PATCH v3 0/3] make RB_DECLARE_CALLBACKS more generic

2019-07-02 Thread Michel Lespinasse
These changes are intended to make the RB_DECLARE_CALLBACKS macro more generic (allowing the aubmented subtree information to be a struct instead of a scalar). Changes since v2: Left the RBSTATIC and RBNAME arguments first in the RB_DECLARE_CALLBACKS and RB_DECLARE_CALLBACKS_MAX macros as

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Ravi Bangoria
Hi Eric, On 7/3/19 9:25 AM, Eric Biggers wrote: > On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: >> >> >> On 7/2/19 11:13 AM, Eric Biggers wrote: >>> >>> Title: possible deadlock in

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Eric Biggers
On Wed, Jul 03, 2019 at 09:09:55AM +0530, Ravi Bangoria wrote: > > > On 7/2/19 11:13 AM, Eric Biggers wrote: > > > > Title: possible deadlock in uprobe_clear_state > > Last occurred: 164 days ago >

Re: [RESEND PATCH v3 0/7] Improve scheduler scalability for fast path

2019-07-02 Thread Subhra Mazumdar
On 7/2/19 1:54 AM, Patrick Bellasi wrote: Wondering if searching and preempting needs will ever be conflicting? I guess the winning point is that we don't commit behaviors to userspace, but just abstract concepts which are turned into biases. I don't see conflicts right now: if you are

Re: [PATCH -next] btrfs: remove set but not used variable 'offset'

2019-07-02 Thread Anand Jain
On 2/7/19 10:15 PM, YueHaibing wrote: Fixes gcc '-Wunused-but-set-variable' warning: fs/btrfs/volumes.c: In function __btrfs_map_block: fs/btrfs/volumes.c:6023:6: warning: variable offset set but not used [-Wunused-but-set-variable] It is not used any more since commit 343abd1c0ca9 ("btrfs:

Klientskie bazy. Email: proda...@armyspy.com Uznajte podrobnee!

2019-07-02 Thread 9VZyqNsch1450
Klientskie bazy. Email: proda...@armyspy.com Uznajte podrobnee!

[PATCH] rbtree: sync up the tools/ copy of the code with the main one

2019-07-02 Thread Michel Lespinasse
I should probably have done this in the same commit that changed the main rbtree code to avoid generating code twice for the cached rbtree versions. Not copying the reviewers of the previous change as tools/ is just another copy of it. Copying LKML anyway because the additional noise won't make

[PATCH v2] selftests/x86/fsgsbase: Fix some test case bugs

2019-07-02 Thread Andy Lutomirski
This refactors do_unexpected_base() to clean up some code. It also fixes the following bugs in test_ptrace_write_gsbase(): - Incorrect printf() format string caused crashes. - Hardcoded 0x7 for the gs selector was not reliably correct. It also documents the fact that the test is expected to

Re: Reminder: 22 open syzbot bugs in perf subsystem

2019-07-02 Thread Ravi Bangoria
On 7/2/19 11:13 AM, Eric Biggers wrote: > > Title: possible deadlock in uprobe_clear_state > Last occurred: 164 days ago > Reported: 201 days ago > Branches: Mainline >

[GIT PULL] FSI changes for 5.3

2019-07-02 Thread Joel Stanley
Hello Greg, We've not had a MAINAINERS entry for drivers/fsi, so this fixes that. It names Jeremy and I as maintainers, so if it works for you we will send pull requests to you each cycle. I realise this one is a bit late, but please consider including so we have a clear path for future

[PATCH 4/4] numa: introduce numa cling feature

2019-07-02 Thread 王贇
Although we paid so many effort to settle down task on a particular node, there are still chances for a task to leave it's preferred node, that is by wakeup, numa swap migrations or load balance. When we are using cpu cgroup in share way, since all the workloads see all the cpus, it could be

[PATCH 3/4] numa: introduce numa group per task group

2019-07-02 Thread 王贇
By tracing numa page faults, we recognize tasks sharing the same page, and try pack them together into a single numa group. However when two task share lot's of cache pages while not much anonymous pages, since numa balancing do not tracing cache page, they have no chance to join into the same

[PATCH 18/18] perf script: Allow specifying the files to process guest samples

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The 'perf kvm' command set up things so that we can record, report, top, etc, but not 'script', so make 'perf script' be able to process samples by allowing to pass guest kallsyms, vmlinux, modules, etc, and if at least one of those is provided, set perf_guest to

[PATCH 16/18] perf tools metric: Don't include duration_time in group

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The Memory_BW metric generates groups including duration_time, which maps to a software event. For some reason this makes the group always not count. Always put duration_time outside a group when generating metrics. It's always the same time, so no need to group it.

[PATCH 2/4] numa: append per-node execution info in memory.numa_stat

2019-07-02 Thread 王贇
This patch introduced numa execution information, to imply the numa efficiency. By doing 'cat /sys/fs/cgroup/memory/CGROUP_PATH/memory.numa_stat', we see new output line heading with 'exectime', like: exectime 311900 407166 which means the tasks of this cgroup executed 311900 micro seconds on

[PATCH 12/18] perf jevents: Add support for Hisi hip08 L3C PMU aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry Add support for Hisi hip08 L3C PMU aliasing. The kernel driver is in drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c Signed-off-by: John Garry Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Ben Hutchings Cc: Hendrik Brueckner Cc: Kan Liang Cc: Mark Rutland

[PATCH 11/18] perf jevents: Add support for Hisi hip08 HHA PMU aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry Add support for Hisi hip08 HHA PMU aliasing. The kernel driver is in drivers/perf/hisilicon/hisi_uncore_hha_pmu.c Signed-off-by: John Garry Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Ben Hutchings Cc: Hendrik Brueckner Cc: Kan Liang Cc: Mark Rutland

[PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic

2019-07-02 Thread 王贇
This patch introduced numa locality statistic, which try to imply the numa balancing efficiency per memory cgroup. By doing 'cat /sys/fs/cgroup/memory/CGROUP_PATH/memory.numa_stat', we see new output line heading with 'locality', the format is: locality 0%~29% 30%~39% 40%~49% 50%~59% 60%~69%

[PATCH 10/18] perf jevents: Add support for Hisi hip08 DDRC PMU aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry Add support for Hisi hip08 DDRC PMU aliasing. We can now do something like this: $perf list [snip] uncore ddrc: uncore_hisi_ddrc.act_cmd [DDRC active commands. Unit: hisi_sccl,ddrc] uncore_hisi_ddrc.flux_rcmd [DDRC read commands. Unit: hisi_sccl,ddrc]

[PATCH 17/18] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Seeteena Thoufeek 'probe libc's inet_pton & backtrace it with ping' testcase sometimes fails on powerpc because distro ping binary does not have symbol information and thus it prints "[unknown]" function name in the backtrace. Accept "[unknown]" as valid function name for powerpc as well.

[PATCH 14/18] perf vendor events intel: Metric fixes for SKX/CLX

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen - Add a missing filter for the DRAM_Latency / DRAM_Parallel_Reads metrics - Remove the useless PMM_* metrics from Skylake Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190628220737.13259-1-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 15/18] perf list: Avoid extra : for --raw metrics

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen When printing the metrics raw, don't print : after the metricgroups. This helps the command line completion to complete those too. Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190628220737.13259-2-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho

[PATCH 05/18] perf diff: Use hists to manage basic blocks per symbol

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao The hist__account_cycles() can account cycles per basic block. The basic block information is saved in cycles_hist structure. This patch processes each symbol, get basic blocks from cycles_hist and add the basic block entries to a new hists (in 'struct block_hist'). Using a hists

[PATCH 06/18] perf diff: Link same basic blocks among different data

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao The target is to compare the performance difference (cycles diff) for the same basic blocks in different data files. The same basic block means same function, same start address and same end address. This patch finds the same basic blocks from different data files and link them

[PATCH 13/18] perf tools: Fix typos / broken sentences

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Andi Kleen - Fix a typo in the man page - Fix a tip that doesn't make any sense. Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190628220900.13741-1-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-report.txt | 2

[PATCH 08/18] perf diff: Documentation -c cycles option

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao Documentation the new computation selection 'cycles'. v4: --- Change the column 'Block cycles diff [start:end]' to '[Program Block Range] Cycles Diff' Signed-off-by: Jin Yao Reviewed-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jin Yao Cc: Kan Liang Cc: Peter

[PATCH 09/18] perf pmu: Support more complex PMU event aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
From: John Garry The jevent "Unit" field is used for uncore PMU alias definition. The form uncore_pmu_example_X is supported, where "X" is a wildcard, to support multiple instances of the same PMU in a system. Unfortunately this format not suitable for all uncore PMUs; take the Hisi DDRC

[GIT PULL] perf/core improvements and fixes

2019-07-02 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, this is on top of perf-core-for-mingo-5.3-20190701. Best regards, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 06c642c0e9fceafd16b1a4c80d44b1c09e282215: perf jevents: Use nonlocal include

[PATCH 02/18] perf symbol: Create block_info structure

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao 'perf diff' currently can only diff symbols(functions). We should expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify changes in specific code accurately. We need a new structure to maintain the basic block information,

[PATCH 01/18] objtool: Fix build by linking against tools/lib/ctype.o sources

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Fix objtool build, because it adds _ctype dependency via isspace call patch. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: André Goddard Rosa Cc: Clark Williams Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Gleixner Fixes: 7bd330de43fd ("tools lib: Adopt skip_spaces() from

[PATCH 07/18] perf diff: Print the basic block cycles diff

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao $ perf record -b ./div $ perf record -b ./div Following is the default perf diff output $ perf diff # Event 'cycles' # # Baseline Delta Abs Shared Object Symbol # . .. # 48.75% +0.33%

[PATCH 04/18] perf diff: Check if all data files with branch stacks

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao We will expand perf diff to support diff cycles of individual programs blocks, so it requires all data files having branch stacks. This patch checks HEADER_BRANCH_STACK in header, and only set the flag has_br_stack when HEADER_BRANCH_STACK are set in all data files. v2: ---

[PATCH 03/18] perf hists: Add block_info in hist_entry

2019-07-02 Thread Arnaldo Carvalho de Melo
From: Jin Yao The block_info contains the program basic block information, i.e, contains the start address and the end address of this basic block and how much cycles it takes. We need to compare, sort and even print out the basic block by some orders, i.e. sort by cycles. For this purpose, we

[PATCH 0/4] per cpu cgroup numa suite

2019-07-02 Thread 王贇
During our torturing on numa stuff, we found problems like: * missing per-cgroup information about the per-node execution status * missing per-cgroup information about the numa locality That is when we have a cpu cgroup running with bunch of tasks, no good way to tell how it's tasks are

Re: [PATCH bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-02 Thread Yuehaibing
On 2019/7/3 0:04, Yonghong Song wrote: > > > On 7/2/19 8:53 AM, Stanislav Fomichev wrote: >> On 07/02, YueHaibing wrote: >>> If CONFIG_NET is not set, gcc building fails: >>> >>> kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': >>> cgroup.c:(.text+0x237e): undefined reference to

Re: [PATCH] rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU

2019-07-02 Thread Chris Chiu
On Tue, Jul 2, 2019 at 8:44 PM Jes Sorensen wrote: > > On 6/27/19 5:52 AM, Chris Chiu wrote: > > The WiFi tx power of RTL8723BU is extremely low after booting. So > > the WiFi scan gives very limited AP list and it always fails to > > connect to the selected AP. This module only supports 1x1

Re: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS

2019-07-02 Thread Randy Dunlap
On 7/2/19 5:15 PM, Matthew Wilcox wrote: > On Tue, Jul 02, 2019 at 04:24:30PM -0700, Randy Dunlap wrote: >> From: Randy Dunlap >> >> Fix build errors when building almost-allmodconfig but with SYSFS >> not set (not enabled). Fixes these build errors: >> >> ERROR: "pci_destroy_slot"

linux-next: manual merge of the block tree with the xfs tree

2019-07-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the block tree got a conflict in: fs/xfs/xfs_aops.c between commit: a24737359667 ("xfs: simplify xfs_chain_bio") from the xfs tree and commit: 79d08f89bb1b ("block: fix .bi_size overflow") from the block tree. I fixed it up (see below) and can

Re: [RFC PATCH v2 11/12] powerpc/ptrace: create ppc_gethwdinfo()

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:18 PM, Christophe Leroy wrote: > Create ippc_gethwdinfo() to handle PPC_PTRACE_GETHWDBGINFO and > reduce ifdef mess > > Signed-off-by: Christophe Leroy > --- Reviewed-by: Ravi Bangoria

Re: [PATCH] selftests/ftrace: skip ftrace test if FTRACE was not enabled

2019-07-02 Thread Steven Rostedt
On Wed, 3 Jul 2019 12:09:53 +0900 Masami Hiramatsu wrote: > > Would something like that work? > > For older kernel, I think we'd better try to mount debugfs first. Sure, that's pretty trivial to do. Or what I was thinking, try it if it fails: if [ -z "$TRACING_DIR" ]; then

Re: [PATCH] selftests/ftrace: skip ftrace test if FTRACE was not enabled

2019-07-02 Thread Masami Hiramatsu
On Tue, 2 Jul 2019 21:07:30 -0400 Steven Rostedt wrote: > On Wed, 3 Jul 2019 09:11:47 +0900 > Masami Hiramatsu wrote: > > > Hi Po-Hsu Lin, > > > > On Tue, 2 Jul 2019 13:22:26 -0600 > > shuah wrote: > > > > > Hi Po-Hsu Lin, > > > > > > On 7/2/19 12:23 AM, Po-Hsu Lin wrote: > > > > The

Re: [PATCH 1/2] Fix mmap-thread-lookup.c unitialized memory usage

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 02, 2019 at 10:37:15AM -0700, Numfor Mbiziwo-Tiapo escreveu: > Running the perf test command after building perf with a memory > sanitizer causes a warning that says: > WARNING: MemorySanitizer: use-of-uninitialized-value... in > mmap-thread-lookup.c > Initializing the go variable to

Re: [RFC PATCH v2 12/12] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:18 PM, Christophe Leroy wrote: > ptrace_triggered() is declared in asm/hw_breakpoint.h and > only needed when CONFIG_HW_BREAKPOINT is set, so move it > into hw_breakpoint.c > > Signed-off-by: Christophe Leroy Reviewed-by: Ravi Bangoria

Re: [PATCH v4 1/2] mtd: rawnand: Add Macronix Raw NAND controller

2019-07-02 Thread masonccyang
Hi Miquel, > > Add a driver for Macronix raw NAND controller. > > Could you pass userspace major MTD tests and can you attach/mount/edit > a UBI/UBIFS storage? The other userspace MTD tests are passed. nandwrite, nanddump and nandtest. i.e., zynq> ./nandtest -k /dev/mtd1 ECC corrections: 0

Re: [RFC PATCH v2 10/12] powerpc/ptrace: create ptrace_get_debugreg()

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:17 PM, Christophe Leroy wrote: > Create ptrace_get_debugreg() to handle PTRACE_GET_DEBUGREG and > reduce ifdef mess > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/kernel/ptrace/ptrace-adv.c | 9 + > arch/powerpc/kernel/ptrace/ptrace-decl.h | 2 ++ >

[PATCH -next] integrity: Remove set but not used variable 'acl'

2019-07-02 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: security/integrity/digsig.c: In function 'integrity_init_keyring': security/integrity/digsig.c:99:18: warning: variable 'acl' set but not used [-Wunused-but-set-variable] It seems 'acl' is needed in __integrity_init_keyring Fixes: 6100ac53909d

Re: [RFC PATCH v2 09/12] powerpc/ptrace: split out ADV_DEBUG_REGS related functions.

2019-07-02 Thread Ravi Bangoria
On 6/28/19 9:17 PM, Christophe Leroy wrote: > diff --git a/arch/powerpc/kernel/ptrace/ptrace-adv.c > b/arch/powerpc/kernel/ptrace/ptrace-adv.c > new file mode 100644 > index ..86e71fa6c5c8 > --- /dev/null > +++ b/arch/powerpc/kernel/ptrace/ptrace-adv.c > @@ -0,0 +1,487 @@ > +/*

Re: [PATCH V2] media: usb: technisat-usb2: fix buffer overflow

2019-07-02 Thread Kees Cook
On Wed, Jul 03, 2019 at 09:14:44AM +0700, Phong Tran wrote: > The buffer will be overflow in case of the while loop can not break. > Add the checking buffer condition in while loop for avoiding > overlooping index. > > This issue was reported by syzbot > > Reported-by:

[PATCH AUTOSEL 5.1 01/39] ARM: dts: meson8: fix GPU interrupts and drop an undocumented property

2019-07-02 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 01dfdd7b4693496854ac92d1ebfb18d7b108f777 ] The interrupts in Amlogic's vendor kernel sources are all contiguous. There are two typos leading to pp2 and pp4 as well as ppmmu2 and ppmmu4 incorrectly sharing the same interrupt line. Fix this by using

[PATCH AUTOSEL 5.1 08/39] arm64: dts: ls1028a: Fix CPU idle fail.

2019-07-02 Thread Sasha Levin
From: Ran Wang [ Upstream commit 53f2ac9d3aa881ed419054076042898b77c27ee4 ] PSCI spec define 1st parameter's bit 16 of function CPU_SUSPEND to indicate CPU State Type: 0 for standby, 1 for power down. In this case, we want to select standby for CPU idle feature. But current setting wrongly

[PATCH AUTOSEL 5.1 06/39] clk: ti: clkctrl: Fix returning uninitialized data

2019-07-02 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 41b3588dba6ef4b7995735a97e47ff0aeea6c276 ] If we do a clk_get() for a clock that does not exists, we have _ti_omap4_clkctrl_xlate() return uninitialized data if no match is found. This can be seen in some cases with SLAB_DEBUG enabled: Unable to handle

[PATCH AUTOSEL 5.1 03/39] idr: Fix idr_get_next race with idr_remove

2019-07-02 Thread Sasha Levin
From: "Matthew Wilcox (Oracle)" [ Upstream commit 5c089fd0c73411f2170ab795c9ffc16718c7d007 ] If the entry is deleted from the IDR between the call to radix_tree_iter_find() and rcu_dereference_raw(), idr_get_next() will return NULL, which will end the iteration prematurely. We should instead

[PATCH AUTOSEL 5.1 04/39] irqchip/irq-csky-mpintc: Support auto irq deliver to all cpus

2019-07-02 Thread Sasha Levin
From: Guo Ren [ Upstream commit db56c5128e6625cb16efc4910b60627e46f608e3 ] The csky,mpintc could deliver a external irq to one cpu or all cpus, but it couldn't deliver a external irq to a group of cpus with cpu_mask. So we only use auto deliver mode when affinity mask_val is equal to

[PATCH AUTOSEL 5.1 14/39] x86/efi: fix a -Wtype-limits compilation warning

2019-07-02 Thread Sasha Levin
From: Qian Cai [ Upstream commit 919aef44d73d5d0c04213cb1bc31149cc074e65e ] Compiling a kernel with W=1 generates this warning, arch/x86/platform/efi/quirks.c:731:16: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] Fixes: 3425d934fc03 ("efi/x86: Handle page

[PATCH AUTOSEL 5.1 15/39] x86/apic: Fix integer overflow on 10 bit left shift of cpu_khz

2019-07-02 Thread Sasha Levin
From: Colin Ian King [ Upstream commit ea136a112d89bade596314a1ae49f748902f4727 ] The left shift of unsigned int cpu_khz will overflow for large values of cpu_khz, so cast it to a long long before shifting it to avoid overvlow. For example, this can happen when cpu_khz is 4194305, i.e. ~4.2

[PATCH AUTOSEL 5.1 10/39] perf/core: Fix perf_sample_regs_user() mm check

2019-07-02 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 085ebfe937d7a7a5df1729f35a12d6d655fea68c ] perf_sample_regs_user() uses 'current->mm' to test for the presence of userspace, but this is insufficient, consider use_mm(). A better test is: '!(current->flags & PF_KTHREAD)', exec() clears PF_KTHREAD after it

[PATCH AUTOSEL 5.1 20/39] sis900: fix TX completion

2019-07-02 Thread Sasha Levin
From: Sergej Benilov [ Upstream commit 8ac8a01092b2added0749ef937037bf1912e13e3 ] Since commit 605ad7f184b60cfaacbc038aa6c55ee68dee3c89 "tcp: refine TSO autosizing", outbound throughput is dramatically reduced for some connections, as sis900 is doing TX completion within idle states only.

[PATCH AUTOSEL 5.1 16/39] be2net: fix link failure after ethtool offline test

2019-07-02 Thread Sasha Levin
From: Petr Oros [ Upstream commit 2e5db6eb3c23e5dc8171eb8f6af7a97ef9fcf3a9 ] Certain cards in conjunction with certain switches need a little more time for link setup that results in ethtool link test failure after offline test. Patch adds a loop that waits for a link setup finish. Changes in

[PATCH AUTOSEL 5.1 12/39] ARM: omap2: remove incorrect __init annotation

2019-07-02 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 27e23d8975270df6999f8b5b3156fc0c04927451 ] omap3xxx_prm_enable_io_wakeup() is marked __init, but its caller is not, so we get a warning with clang-8: WARNING: vmlinux.o(.text+0x343c8): Section mismatch in reference from the function

[PATCH AUTOSEL 5.1 22/39] qmi_wwan: Fix out-of-bounds read

2019-07-02 Thread Sasha Levin
From: Bjørn Mork [ Upstream commit 904d88d743b0c94092c5117955eab695df8109e8 ] The syzbot reported Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xca/0x13e lib/dump_stack.c:113 print_address_description+0x67/0x231 mm/kasan/report.c:188 __kasan_report.cold+0x1a/0x32

[PATCH AUTOSEL 5.1 23/39] pinctrl: mcp23s08: Fix add_data and irqchip_add_nested call order

2019-07-02 Thread Sasha Levin
From: Phil Reid [ Upstream commit 6dbc6e6f58556369bf999cd7d9793586f1b0e4b4 ] Currently probing of the mcp23s08 results in an error message "detected irqchip that is shared with multiple gpiochips: please fix the driver" This is due to the following: Call to mcp23s08_irqchip_setup() with call

[PATCH AUTOSEL 5.1 31/39] HID: uclogic: Add support for Huion HS64 tablet

2019-07-02 Thread Sasha Levin
From: Kyle Godbey [ Upstream commit 315ffcc9a1e054bb460f9203058b52dc26b1173d ] Add support for Huion HS64 drawing tablet to hid-uclogic Signed-off-by: Kyle Godbey Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h| 1 +

[PATCH AUTOSEL 5.1 32/39] HID: multitouch: Add pointstick support for ALPS Touchpad

2019-07-02 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit 0a95fc733da375de0688d0f1fd3a2869a1c1d499 ] There's a new ALPS touchpad/pointstick combo device that requires MT_CLS_WIN_8_DUAL to make its pointsitck work as a mouse. The device can be found on HP ZBook 17 G5. Signed-off-by: Kai-Heng Feng Signed-off-by:

[PATCH AUTOSEL 5.1 27/39] dm verity: use message limit for data block corruption message

2019-07-02 Thread Sasha Levin
From: Milan Broz [ Upstream commit 2eba4e640b2c4161e31ae20090a53ee02a518657 ] DM verity should also use DMERR_LIMIT to limit repeat data block corruption messages. Signed-off-by: Milan Broz Signed-off-by: Mike Snitzer Signed-off-by: Sasha Levin --- drivers/md/dm-verity-target.c | 4 ++-- 1

[PATCH AUTOSEL 5.1 30/39] HID: chicony: add another quirk for PixArt mouse

2019-07-02 Thread Sasha Levin
From: Oleksandr Natalenko [ Upstream commit dcf768b0ac868630e7bdb6f2f1c9fe72788012fa ] I've spotted another Chicony PixArt mouse in the wild, which requires HID_QUIRK_ALWAYS_POLL quirk, otherwise it disconnects each minute. USB ID of this device is 0x04f2:0x0939. We've introduced quirks like

[PATCH AUTOSEL 5.1 26/39] dm table: don't copy from a NULL pointer in realloc_argv()

2019-07-02 Thread Sasha Levin
From: Jerome Marchand [ Upstream commit a0651926553cfe7992166432e418987760882652 ] For the first call to realloc_argv() in dm_split_args(), old_argv is NULL and size is zero. Then memcpy is called, with the NULL old_argv as the source argument and a zero size argument. AFAIK, this is undefined

[PATCH AUTOSEL 5.1 34/39] net: aquantia: fix vlans not working over bridged network

2019-07-02 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit 48dd73d08d4dda47ee31cc8611fb16840fc16803 ] In configuration of vlan over bridge over aquantia device it was found that vlan tagged traffic is dropped on chip. The reason is that bridge device enables promisc mode, but in atlantic chip vlan filters will

[PATCH AUTOSEL 5.1 38/39] fork,memcg: alloc_thread_stack_node needs to set tsk->stack

2019-07-02 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 1bf4580e00a248a2c86269125390eb3648e1877c ] Commit 5eed6f1dff87 ("fork,memcg: fix crash in free_thread_stack on memcg charge fail") corrected two instances, but there was a third instance of this bug. Without setting tsk->stack, if

[PATCH AUTOSEL 4.19 03/26] efi/bgrt: Drop BGRT status field reserved bits check

2019-07-02 Thread Sasha Levin
From: Hans de Goede [ Upstream commit a483fcab38b43fb34a7f12ab1daadd3907f150e2 ] Starting with ACPI 6.2 bits 1 and 2 of the BGRT status field are no longer reserved. These bits are now used to indicate if the image needs to be rotated before being displayed. The first device using these bits

[PATCH AUTOSEL 5.1 35/39] cpu/hotplug: Fix out-of-bounds read when setting fail state

2019-07-02 Thread Sasha Levin
From: Eiichi Tsukata [ Upstream commit 33d4a5a7a5b4d02915d765064b2319e90a11cbde ] Setting invalid value to /sys/devices/system/cpu/cpuX/hotplug/fail can control `struct cpuhp_step *sp` address, results in the following global-out-of-bounds read. Reproducer: # echo -2 >

[PATCH AUTOSEL 4.14 03/13] perf/core: Fix perf_sample_regs_user() mm check

2019-07-02 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 085ebfe937d7a7a5df1729f35a12d6d655fea68c ] perf_sample_regs_user() uses 'current->mm' to test for the presence of userspace, but this is insufficient, consider use_mm(). A better test is: '!(current->flags & PF_KTHREAD)', exec() clears PF_KTHREAD after it

[PATCH AUTOSEL 4.19 02/26] clk: ti: clkctrl: Fix returning uninitialized data

2019-07-02 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 41b3588dba6ef4b7995735a97e47ff0aeea6c276 ] If we do a clk_get() for a clock that does not exists, we have _ti_omap4_clkctrl_xlate() return uninitialized data if no match is found. This can be seen in some cases with SLAB_DEBUG enabled: Unable to handle

  1   2   3   4   5   6   7   8   9   10   >