[PATCH] cgroup: Replace a seq_printf() call by seq_puts() in cgroup_print_ss_mask()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 19:26:59 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] cgroup: Replace a seq_printf() call by seq_puts() in cgroup_print_ss_mask()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 19:26:59 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] PCI/P2PDMA: Fix missing check for dma_virt_ops

2019-07-02 Thread Logan Gunthorpe
Drivers that use dma_virt_ops were meant to be rejected when testing compatibility for P2PDMA. This check got inadvertantly dropped in one of the later versions of the original patchset, so add it back. Fixes: 52916982af48 ("PCI/P2PDMA: Support peer-to-peer memory") Signed-off-by: Logan

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

2019-07-02 Thread Numfor Mbiziwo-Tiapo
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 0 fixes this change. Signed-off-by: Numfor Mbiziwo-Tiapo ---

[PATCH 2/2] Fix perf-hooks test

2019-07-02 Thread Numfor Mbiziwo-Tiapo
The perf-hooks test fails with Address Sanitizer and Memory Sanitizer builds because it purposefully generates a segfault. Checking if these sanitizers are active when running this test will allow the perf-hooks test to pass. Signed-off-by: Numfor Mbiziwo-Tiapo --- tools/perf/tests/perf-hooks.c

Re: [PATCH] x86/stacktrace: Do not access user space memory unnecessarily

2019-07-02 Thread Steven Rostedt
On Tue, 2 Jul 2019 11:33:55 -0400 Steven Rostedt wrote: > On Tue, 2 Jul 2019 16:14:05 +0200 (CEST) > Thomas Gleixner wrote: > > > On Tue, 2 Jul 2019, Peter Zijlstra wrote: > > > > > On Tue, Jul 02, 2019 at 02:31:51PM +0900, Eiichi Tsukata wrote: > > > > Put the boundary check before it

Re: [PATCH 5.1 00/55] 5.1.16-stable review

2019-07-02 Thread Naresh Kamboju
On Tue, 2 Jul 2019 at 13:34, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.16 release. > There are 55 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH v1] KVM: x86: PMU Whitelist

2019-07-02 Thread Eric Hankland
> Actually I have another thing to discuss: > probably we could consider to make this filter list white/black configurable > from userspace. For example, userspace option: filter-list=white/black Works for me. I'll include this in the next version. > Probably we don't need this field to be

[PATCH] fs: ecryptfs: crypto: Change return type of ecryptfs_process_flags

2019-07-02 Thread Hariprasad Kelam
Change return type of ecryptfs_process_flags from int to void. As it never fails. fixes below issue reported by coccicheck s/ecryptfs/crypto.c:870:5-7: Unneeded variable: "rc". Return "0" on line 883 Signed-off-by: Hariprasad Kelam --- fs/ecryptfs/crypto.c | 11 +++ 1 file changed, 3

Re: [PATCH v4 2/5] x86: Add nopv parameter to disable PV extensions

2019-07-02 Thread Boris Ostrovsky
On 7/1/19 1:19 AM, Zhenzhong Duan wrote: > > There is already 'xen_nopv' parameter for XEN platform but not for > others. 'xen_nopv' can then be removed with this change. This is no longer true. -boris

Re: [PATCH] x86/stacktrace: Do not access user space memory unnecessarily

2019-07-02 Thread Steven Rostedt
On Tue, 2 Jul 2019 13:39:05 -0400 Steven Rostedt wrote: > On Tue, 2 Jul 2019 11:33:55 -0400 > Steven Rostedt wrote: > > > On Tue, 2 Jul 2019 16:14:05 +0200 (CEST) > > Thomas Gleixner wrote: > > > > > On Tue, 2 Jul 2019, Peter Zijlstra wrote: > > > > > > > On Tue, Jul 02, 2019 at

Re: [PATCH] net: pci: Fix hotplug event timeout with shpchp

2019-07-02 Thread Bjorn Helgaas
On Tue, Jul 02, 2019 at 01:35:19PM +, Miaohe Lin wrote: > Hotplug a network card would take more than 5 seconds > in qemu + shpchp scene. It’s because 5 seconds > delayed_work in func handle_button_press_event with > case STATIC_STATE. And this will break some > protocols with timeout within 5

[PATCH] locking/lockdep: Replace two seq_printf() calls by seq_puts() in print_name()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 19:45:26 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

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

2019-07-02 Thread Sergei Shtylyov
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 connect microprocessor, microcontroller, > or ASIC devices

[PATCH] fs: reiserfs: journal: Change return type of dirty_one_transaction

2019-07-02 Thread Hariprasad Kelam
Change return type of dirty_one_transaction from int to void. As this function always return success. Fixes below issue reported by coccicheck fs/reiserfs/journal.c:1690:5-8: Unneeded variable: "ret". Return "0" on line 1719 Signed-off-by: Hariprasad Kelam --- fs/reiserfs/journal.c | 6 ++

Re: [PATCH v2] PM: Move disabling/enabling runtime PM to suspend/resume noirq

2019-07-02 Thread Rafael J. Wysocki
On Tue, Jul 2, 2019 at 6:37 PM Muchun Song wrote: > > Currently, the PM core disables runtime PM for all devices right after > executing subsystem/driver .suspend_late() callbacks for them and > re-enables it right before executing subsystem/driver .resume_early() > callbacks for them. This may

Re: [PATCH] openpromfs: Adjust three seq_printf() calls in property_show()

2019-07-02 Thread Greg Kroah-Hartman
On Tue, Jul 02, 2019 at 09:08:04AM -0700, Joe Perches wrote: > On Tue, 2019-07-02 at 17:40 +0200, Markus Elfring wrote: > > From: Markus Elfring > > Date: Tue, 2 Jul 2019 17:24:27 +0200 > > > > A bit of information should be put into a sequence. > > Thus improve the execution speed for this data

Re: [PATCH] vfio-mdev/samples: make some symbols static

2019-07-02 Thread Alex Williamson
On Thu, 16 May 2019 09:55:26 +0800 Kefeng Wang wrote: > Make some structs and functions static to fix build warning, parts of > warning shown below, > > amples/vfio-mdev/mtty.c:730:5: warning: symbol 'mtty_create' was not > declared. Should it be static? > samples/vfio-mdev/mtty.c:780:5:

Re: [PATCH] vfio: vfio_pci_nvlink2: use a vma helper function

2019-07-02 Thread Alex Williamson
On Thu, 16 May 2019 20:38:26 +0800 "richard.p...@oppo.com" wrote: > Use a vma helper function to simply code. > > Signed-off-by: Peng Hao > --- >  drivers/vfio/pci/vfio_pci_nvlink2.c | 3 +-- >  1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/vfio/pci/vfio_pci_nvlink2.c

Re: RX CRC errors on I219-V (6) 8086:15be

2019-07-02 Thread Bjorn Helgaas
On Tue, Jul 02, 2019 at 04:25:59PM +0800, Kai Heng Feng wrote: > +linux-pci > > Hi Sasha, > > at 6:49 PM, Kai-Heng Feng wrote: > > > at 14:26, Neftin, Sasha wrote: > > > > > On 6/26/2019 09:14, Kai Heng Feng wrote: > > > > Hi Sasha > > > > at 5:09 PM, Kai-Heng Feng wrote: > > > > > Hi

Re: [PATCH -next] sample/mdev/mbochs: remove set but not used variable 'mdev_state'

2019-07-02 Thread Alex Williamson
On Sat, 25 May 2019 21:53:49 +0800 YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > samples/vfio-mdev/mbochs.c: In function mbochs_ioctl: > samples/vfio-mdev/mbochs.c:1188:21: warning: variable mdev_state set but not > used [-Wunused-but-set-variable] > > It's not used

Re: [PATCH] bpf: Replace a seq_printf() call by seq_puts() in btf_enum_seq_show()

2019-07-02 Thread Yonghong Song
On 7/2/19 10:13 AM, Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 2 Jul 2019 19:04:08 +0200 > > A string which did not contain a data format specification should be put > into a sequence. Thus use the corresponding function “seq_puts”. > > This issue was detected by using the

Re: [PATCH v2] mdev: Send uevents around parent device registration

2019-07-02 Thread Kirti Wankhede
On 7/2/2019 8:13 PM, Alex Williamson wrote: > On Tue, 2 Jul 2019 19:10:17 +0530 > Kirti Wankhede wrote: > >> On 7/2/2019 6:38 PM, Alex Williamson wrote: >>> On Tue, 2 Jul 2019 18:17:41 +0530 >>> Kirti Wankhede wrote: >>> On 7/2/2019 12:43 PM, Parav Pandit wrote: > >

Re: [PATCH v4 4/5] x86/xen: Add 'nopv' support for HVM guest

2019-07-02 Thread Boris Ostrovsky
On 7/1/19 1:19 AM, Zhenzhong Duan wrote: > PVH guest needs PV extentions to work, so 'nopv' parameter should be > ignored for PVH but not for HVM guest. > > If PVH guest boots up via the Xen-PVH boot entry, xen_pvh is set early, > we know it's PVH guest and ignore 'nopv' parameter directly. > > If

Re: [PATCH 5.1 00/55] 5.1.16-stable review

2019-07-02 Thread Jiunn Chang
On Tue, Jul 02, 2019 at 10:01:08AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.16 release. > There are 55 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH net-next] iavf: remove unused debug function iavf_debug_d

2019-07-02 Thread David Miller
From: YueHaibing Date: Tue, 2 Jul 2019 14:20:21 +0800 > There is no caller of function iavf_debug_d() in tree since > commit 75051ce4c5d8 ("iavf: Fix up debug print macro"), > so it can be removed. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Jeff, please queue this up or handle

[PATCH] netfilter: nf_log: Replace a seq_printf() call by seq_puts() in seq_show()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 20:06:30 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH net-next] hinic: remove standard netdev stats

2019-07-02 Thread David Miller
From: Xue Chaojing Date: Mon, 1 Jul 2019 23:40:00 + > This patch removes standard netdev stats in ethtool -S. > > Suggested-by: Jakub Kicinski > Signed-off-by: Xue Chaojing Applied, thanks for following up on this.

Re: [PATCH net-next] net: stmmac: Re-word Kconfig entry

2019-07-02 Thread David Miller
From: Jose Abreu Date: Tue, 2 Jul 2019 11:12:10 +0200 > We support many speeds and it doesn't make much sense to list them all > in the Kconfig. Let's just call it Multi-Gigabit. > > Suggested-by: David S. Miller > Signed-off-by: Jose Abreu Applied.

Re: [PATCH v4 5/5] xen: Add 'xen_nopv' parameter back for backward compatibility

2019-07-02 Thread Boris Ostrovsky
On 7/1/19 1:19 AM, Zhenzhong Duan wrote: > Map 'xen_nopv' to 'nopv' and mark 'xen_nopv' obsolete in > kernel-parameters.txt I am not sure we want patch #3, why not do everything in a single patch? > > Signed-off-by: Zhenzhong Duan > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Stefano

[PATCH] fs: xfs: xfs_log: Change return type from int to void

2019-07-02 Thread Hariprasad Kelam
Change return types of below functions as they never fails xfs_log_mount_cancel xlog_recover_cancel xlog_recover_cancel_intents fix below issue reported by coccicheck fs/xfs/xfs_log_recover.c:4886:7-12: Unneeded variable: "error". Return "0" on line 4926 Signed-off-by: Hariprasad Kelam ---

Re: [PATCH 00/11] VFS: Introduce filesystem information query syscall [ver #15]

2019-07-02 Thread Eric Biggers
On Fri, Jun 28, 2019 at 04:43:37PM +0100, David Howells wrote: > > Here are a set of patches that adds a syscall, fsinfo(), that allows > attributes of a filesystem/superblock to be queried. Attribute values are > of four basic types: > > (1) Version dependent-length structure (size defined by

Re: [PATCH v2] virtio-mmio: add error check for platform_get_irq

2019-07-02 Thread Ivan T. Ivanov
Quoting Ihor Matushchak (2019-07-02 17:48:18) > in vm_find_vqs() irq has a wrong type > so, in case of no IRQ resource defined, > wrong parameter will be passed to request_irq() > > Signed-off-by: Ihor Matushchak Reviewed-by: Ivan T. Ivanov Thanks! > --- > Changes in v2: > Don't overwrite

[PATCH] fs: cifs: cifsssmb: Change return type of convert_ace_to_cifs_ace

2019-07-02 Thread Hariprasad Kelam
Change return from int to void of convert_ace_to_cifs_ace as it never fails. fixes below issue reported by coccicheck fs/cifs/cifssmb.c:3606:7-9: Unneeded variable: "rc". Return "0" on line 3620 Signed-off-by: Hariprasad Kelam --- fs/cifs/cifssmb.c | 14 +++--- 1 file changed, 3

Re: [PATCH] vfs: move_mount: reject moving kernel internal mounts

2019-07-02 Thread Eric Biggers
On Mon, Jul 01, 2019 at 07:22:39PM +0100, Al Viro wrote: > On Mon, Jul 01, 2019 at 09:45:37AM -0700, Eric Biggers wrote: > > On Sat, Jun 29, 2019 at 01:27:44PM -0700, Eric Biggers wrote: > > > > > > Reproducer: > > > > > > #include > > > > > > #define __NR_move_mount 429 > > >

Re: [PATCH v2] virtio-mmio: add error check for platform_get_irq

2019-07-02 Thread Michael S. Tsirkin
On Tue, Jul 02, 2019 at 05:48:18PM +0300, Ihor Matushchak wrote: > in vm_find_vqs() irq has a wrong type > so, in case of no IRQ resource defined, > wrong parameter will be passed to request_irq() > > Signed-off-by: Ihor Matushchak Thanks! pls don't make v2 a response to v1 in the future

Re: [PATCH] net: core: page_pool: add user refcnt and reintroduce page_pool_destroy

2019-07-02 Thread Jesper Dangaard Brouer
On Tue, 2 Jul 2019 18:21:13 +0300 Ivan Khoronzhuk wrote: > On Tue, Jul 02, 2019 at 05:10:29PM +0200, Jesper Dangaard Brouer wrote: > >On Tue, 2 Jul 2019 17:56:13 +0300 > >Ivan Khoronzhuk wrote: > > > >> On Tue, Jul 02, 2019 at 04:52:30PM +0200, Jesper Dangaard Brouer wrote: > >> >On Tue, 2

Re: memory leak in nfs_get_client

2019-07-02 Thread Benjamin Coddington
On 2 Jul 2019, at 12:11, Eric Biggers wrote: On Tue, Jul 02, 2019 at 07:23:32AM -0400, Benjamin Coddington wrote: On 2 Jul 2019, at 2:31, Eric Biggers wrote: On Tue, Jun 11, 2019 at 12:23:12PM -0400, Benjamin Coddington wrote: Ugh.. Now that you can cancel the wait, you have to also handle

Re: [PATCH v2] mdev: Send uevents around parent device registration

2019-07-02 Thread Alex Williamson
On Tue, 2 Jul 2019 23:34:30 +0530 Kirti Wankhede wrote: > On 7/2/2019 8:13 PM, Alex Williamson wrote: > > On Tue, 2 Jul 2019 19:10:17 +0530 > > Kirti Wankhede wrote: > > > >> On 7/2/2019 6:38 PM, Alex Williamson wrote: > >>> On Tue, 2 Jul 2019 18:17:41 +0530 > >>> Kirti Wankhede wrote: >

[PATCH] fs: ocfs2: dlmglue: Unneeded variable: "status"

2019-07-02 Thread Hariprasad Kelam
fix below issue reported by coccicheck fs/ocfs2/dlmglue.c:4410:5-11: Unneeded variable: "status". Return "0" on line 4428 We can not change return type of ocfs2_downconvert_thread as its registered as callback of kthread_create. Signed-off-by: Hariprasad Kelam --- fs/ocfs2/dlmglue.c | 3 +-- 1

[PATCH] apparmor: Replace two seq_printf() calls by seq_puts() in aa_label_seq_xprint()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 20:27:32 +0200 Two strings which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH v7 0/4] mtd: spi-nor: add support for is25wp256 spi-nor flash

2019-07-02 Thread Sagar Shrikant Kadam
The patch series adds support for 32MiB spi-nor is25wp256 present on HiFive Unleashed A00 board. The flash device gets BFPT_DWORD1_ADDRESS_BYTES_3_ONLY from BFPT table for address width, whereas the flash can support 4 byte address width, so the address width is configured by using the post bfpt

[PATCH v7 1/4] mtd: spi-nor: add support for is25wp256

2019-07-02 Thread Sagar Shrikant Kadam
Update spi_nor_id table for is25wp256 (32MB) device from ISSI, present on HiFive Unleashed dev board (Rev: A00). Set method to enable quad mode for ISSI device in flash parameters table. Based on code originally written by Wesley Terpstra and/or Palmer Dabbelt

[PATCH v7 4/4] mtd: spi-nor: add locking support for is25wp256 device

2019-07-02 Thread Sagar Shrikant Kadam
Implement a locking scheme for ISSI devices based on the stm_lock scheme. The is25wp256 device has 4 bits for selecting the range of blocks to be locked/protected from erase/write operations and function register gives feasibility to select the top / bottom area for protection. Added opcode to

[PATCH v7 3/4] mtd: spi-nor: add support to unlock the flash device

2019-07-02 Thread Sagar Shrikant Kadam
Nor device (is25wp256 mounted on HiFive unleashed Rev A00 board) from ISSI have memory blocks guarded by block protection bits BP[0,1,2,3]. Add an identifier within the flash info structure to indicate that a particular flash device has the fourth block protect bit (SPI_NOR_HAS_BP3). Increase

[PATCH v7 2/4] mtd: spi-nor: fix nor->addr_width for is25wp256

2019-07-02 Thread Sagar Shrikant Kadam
Use the post bfpt fixup hook for the is25wp256 device as done for is25lp256 device to overwrite the address width advertised by BFPT. For instance the standard devices eg: IS25WP256D-JMLE where J stands for "standard" does not support SFDP. Signed-off-by: Sagar Shrikant Kadam ---

Re: linux-next: Tree for Jul 2 (objtool)

2019-07-02 Thread Randy Dunlap
On 7/2/19 2:51 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190701: > on x86_64: kernel/bpf/core.o: warning: objtool: ___bpf_prog_run()+0x22: can't find switch jump table -- ~Randy

Re: [PATCH] net: core: page_pool: add user refcnt and reintroduce page_pool_destroy

2019-07-02 Thread Ivan Khoronzhuk
On Tue, Jul 02, 2019 at 08:29:07PM +0200, Jesper Dangaard Brouer wrote: On Tue, 2 Jul 2019 18:21:13 +0300 Ivan Khoronzhuk wrote: On Tue, Jul 02, 2019 at 05:10:29PM +0200, Jesper Dangaard Brouer wrote: >On Tue, 2 Jul 2019 17:56:13 +0300 >Ivan Khoronzhuk wrote: > >> On Tue, Jul 02, 2019 at

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

2019-07-02 Thread David Rientjes
On Mon, 1 Jul 2019, Henry Burns wrote: > __SetPageMovable() expects it's page to be locked, but z3fold.c doesn't > lock the page. Following zsmalloc.c's example we call trylock_page() and > unlock_page(). Also makes z3fold_page_migrate() assert that newpage is > passed in locked, as

Re: nvmem creates multiple devices with the same name

2019-07-02 Thread Boris Brezillon
On Tue, 21 May 2019 10:56:41 +0200 Sascha Hauer wrote: > Hi all, > > nvmem derives the device name directly from the partition name of the > underlying device. IMO this is wrong since it's not possible to create > two partitions with the same name on different devices. In my case I > have a

[PATCH] ima: Replace two seq_printf() calls by seq_puts() in ima_show_template_data_ascii()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 20:52:21 +0200 Two strings which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] ima: Replace two seq_printf() calls by seq_puts() in ima_show_template_data_ascii()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 20:52:21 +0200 Two strings which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] ima: Replace two seq_printf() calls by seq_puts() in ima_show_template_data_ascii()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 20:52:21 +0200 Two strings which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] ima: Replace two seq_printf() calls by seq_puts() in ima_show_template_data_ascii()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 20:52:21 +0200 Two strings which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH] nfc: st-nci: remove redundant assignment to variable r

2019-07-02 Thread David Miller
From: Colin King Date: Tue, 2 Jul 2019 14:16:42 +0100 > From: Colin Ian King > > The variable r is being initialized with a value that is never > read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused

Re: [PATCH v3 1/4] perf pmu: Support more complex PMU event aliasing

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 28, 2019 at 10:35:49PM +0800, John Garry escreveu: > 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

Re: [PATCHv2] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled

2019-07-02 Thread shuah
On 6/30/19 10:40 PM, Po-Hsu Lin wrote: The psock_tpacket test will need to access /proc/kallsyms, this would require the kernel config CONFIG_KALLSYMS to be enabled first. Apart from adding CONFIG_KALLSYMS to the net/config file here, check the file existence to determine if we can run this

Re: [PATCH net-next] rxrpc: Fix uninitialized error code in rxrpc_send_data_packet()

2019-07-02 Thread David Miller
From: David Howells Date: Tue, 02 Jul 2019 15:55:28 +0100 > With gcc 4.1: > > net/rxrpc/output.c: In function ‘rxrpc_send_data_packet’: > net/rxrpc/output.c:338: warning: ‘ret’ may be used uninitialized in this > function > > Indeed, if the first jump to the send_fragmentable label is

fsinfo(2) manpage

2019-07-02 Thread David Howells
Here's a manpage for fsinfo(). It needs a little updating, but I've applied some review comments that will require this updating anyway. David --- '\" t .\" Copyright (c) 2018 David Howells .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of

Re: [PATCH-next v2] mm, memcg: Add ":deact" tag for reparented kmem caches in memcg_slabinfo

2019-07-02 Thread David Rientjes
On Thu, 27 Jun 2019, Waiman Long wrote: > With Roman's kmem cache reparent patch, multiple kmem caches of the same > type can be seen attached to the same memcg id. All of them, except > maybe one, are reparent'ed kmem caches. It can be useful to tag those > reparented caches by adding a new slab

[tip:x86/urgent] Revert "x86/build: Move _etext to actual end of .text"

2019-07-02 Thread tip-bot for Ross Zwisler
Commit-ID: 77a1619947ab31564aed54621d5b1e34af9b395d Gitweb: https://git.kernel.org/tip/77a1619947ab31564aed54621d5b1e34af9b395d Author: Ross Zwisler AuthorDate: Mon, 1 Jul 2019 09:52:08 -0600 Committer: Thomas Gleixner CommitDate: Tue, 2 Jul 2019 21:09:44 +0200 Revert "x86/build: Move

Re: [PATCH net] rxrpc: Fix send on a connected, but unbound socket

2019-07-02 Thread David Miller
From: David Howells Date: Tue, 02 Jul 2019 15:59:12 +0100 > If sendmsg() or sendmmsg() is called on a connected socket that hasn't had > bind() called on it, then an oops will occur when the kernel tries to > connect the call because no local endpoint has been allocated. > > Fix this by

Re: [PATCH] mm, slab: Extend slab/shrink to shrink all the memcg caches

2019-07-02 Thread Waiman Long
On 7/2/19 3:09 PM, David Rientjes wrote: > On Tue, 2 Jul 2019, Waiman Long wrote: > >> diff --git a/Documentation/ABI/testing/sysfs-kernel-slab >> b/Documentation/ABI/testing/sysfs-kernel-slab >> index 29601d93a1c2..2a3d0fc4b4ac 100644 >> --- a/Documentation/ABI/testing/sysfs-kernel-slab >> +++

[PATCH] ASoC: sunxi: sun50i-codec-analog: Add earpiece

2019-07-02 Thread Luca Weiss
This adds the necessary registers and audio routes to play audio using the Earpiece, that's supported on the A64. Signed-off-by: Luca Weiss --- So, first of all: This is my first audio patch and I hope I didn't make too many mistakes :) , especially with the routes at the bottom of the patch.

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

2019-07-02 Thread shuah
Hi Po-Hsu Lin, On 7/2/19 12:23 AM, Po-Hsu Lin wrote: The ftrace test will need to have CONFIG_FTRACE enabled to make the ftrace directory available. Add an additional check to skip this test if the CONFIG_FTRACE was not enabled. This will be helpful to avoid a false-positive test result when

Re: [PATCH][next] selftests/x86: fix spelling mistake "FAILT" -> "FAIL"

2019-07-02 Thread shuah
On 7/2/19 8:22 AM, shuah wrote: On 7/1/19 11:48 AM, Andy Lutomirski wrote: On Mon, Jul 1, 2019 at 6:04 AM Colin King wrote: From: Colin Ian King There is an spelling mistake in an a test error message. Fix it. Signed-off-by: Colin Ian King ---  

Re: [PATCH] fs: ecryptfs: crypto: Change return type of ecryptfs_process_flags

2019-07-02 Thread Tyler Hicks
On 2019-07-02 23:17:24, Hariprasad Kelam wrote: > Change return type of ecryptfs_process_flags from int to void. As it > never fails. > > fixes below issue reported by coccicheck > > s/ecryptfs/crypto.c:870:5-7: Unneeded variable: "rc". Return "0" on line > 883 > > Signed-off-by: Hariprasad

Re: [PATCH next] sysctl: add proc_dointvec_jiffies_minmax to limit the min/max write value

2019-07-02 Thread Luis Chamberlain
On Tue, Jun 04, 2019 at 11:27:51PM +0800, Zhiqiang Liu wrote: > > On Wed, May 15, 2019 at 10:53:55PM +0800, Zhiqiang Liu wrote: > In proc_dointvec_jiffies func, the write value is only checked > whether it is larger than INT_MAX. If the write value is less > than zero, it can also

Wine Enthusiasts

2019-07-02 Thread Amanda Bagnola
Hi, Would you be interested in acquiring an email list of "Wine Enthusiasts" from USA? We also have data for Golfers, Alcohol Enthusiasts, Beer Enthusiasts, Chocolate Enthusiasts, Foodies, Travelers, Gift Buyers, Spa and Resort Visitors, Sports Enthusiasts, Android Users and many more..

[PATCH 3/4] phy: enable compile-testing for the Lantiq PHY drivers

2019-07-02 Thread Martin Blumenstingl
Unconditionally include the lantiq subdirectory in the phy Makefile. All drivers in there have their dependencies maintained. One of these (optional) dependencies is COMPILE_TEST, however this can only be evaluated when Kconfig scans the lantiq subdirectory. Signed-off-by: Martin Blumenstingl

Re: objtool warnings in prerelease clang-9

2019-07-02 Thread Nick Desaulniers
On Tue, Jul 2, 2019 at 3:20 PM Thomas Gleixner wrote: > > Nick, > > On Tue, 2 Jul 2019, Nick Desaulniers wrote: > > On Tue, Jul 2, 2019 at 2:58 PM Thomas Gleixner wrote: > > > On Tue, 2 Jul 2019, Nick Desaulniers wrote: > > > > > > This causes objtool to not find any issues in > > > >

Re: [PATCH] arm64: mm: Fix dead assignment of old_pte

2019-07-02 Thread Nathan Huckleberry
Oops I forgot moving the variable declaration would cause a warning. Will send a V2. Thanks, Nathan Huckleberry On Tue, Jul 2, 2019 at 4:25 PM Nathan Chancellor wrote: > > On Tue, Jul 02, 2019 at 04:13:02PM -0700, 'Nathan Huckleberry' via Clang > Built Linux wrote: > > When analyzed with the

Re: [PATCH] ext4: replace ktype default_attrs with default_groups

2019-07-02 Thread Theodore Ts'o
On Wed, May 08, 2019 at 04:07:48PM -0400, Kimberly Brown wrote: > The kobj_type default_attrs field is being replaced by the > default_groups field. Replace the default_attrs field in ext4_sb_ktype > and ext4_feat_ktype with default_groups. Use the ATTRIBUTE_GROUPS macro > to create ext4_groups

Re: [PATCH] filesystem-dax: Disable PMD support

2019-07-02 Thread Boaz Harrosh
On 02/07/2019 18:37, Dan Williams wrote: <> > > I'd be inclined to do the brute force fix of not trying to get fancy > with separate PTE/PMD waitqueues and then follow on with a more clever > performance enhancement later. Thoughts about that? > Sir Dan I do not understand how separate

Re: [PATCH v6 1/6] ARM: Add TTBR operator for kasan_init

2019-07-02 Thread Linus Walleij
Hi Florian! thanks for your patch! On Tue, Jun 18, 2019 at 12:11 AM Florian Fainelli wrote: > From: Abbott Liu > > The purpose of this patch is to provide set_ttbr0/get_ttbr0 to > kasan_init function. The definitions of cp15 registers should be in > arch/arm/include/asm/cp15.h rather than

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

2019-07-02 Thread Masami Hiramatsu
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 ftrace test will need to have CONFIG_FTRACE enabled to make the > > ftrace directory available. > > > > Add an additional check to skip this test if the

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

2019-07-02 Thread Bae, Chang Seok
> On Jul 2, 2019, at 14:38, Andy Lutomirski wrote: > > @@ -494,16 +489,24 @@ static void test_ptrace_write_gsbase(void) >* selector value is changed or not by the GSBASE write in >* a ptracer. >*/ > - if (gs != 0x7) { > +

[PATCH 0/2] RISC-V: Handle the siginfo_t offset problem

2019-07-02 Thread Alistair Francis
In the RISC-V 32-bit glibc port [1] the siginfo_t struct in the kernel doesn't line up with the struct in glibc. In glibc world the _sifields union is 8 byte alligned (although I can't figure out why) while in the kernel wordl the _sifields union is 4 bytes alligned. This results in information

[PATCH 2/2] riscv/include/uapi: Define a custom __SIGINFO struct for RV32

2019-07-02 Thread Alistair Francis
The glibc implementation of siginfo_t results in an allignment of 8 bytes for the union _sifields on RV32. The kernel has an allignment of 4 bytes for the _sifields union. This results in information being lost when glibc parses the siginfo_t struct. To fix the issue add a pad variable to the

Re: [PATCH v5 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-07-02 Thread Tao Xu
On 7/3/2019 12:37 AM, Paolo Bonzini wrote: On 20/06/19 11:46, Xiaoyao Li wrote: You cannot put the atomic switch here. What if umwait_control_cached is changed at runtime? Host kernel patch exposed a sysfs interface to let it happen. Thanks for the review, Xiaoyao. I agree with both of your

Re: [PATCH] fs: cifs: cifsssmb: Change return type of convert_ace_to_cifs_ace

2019-07-02 Thread Steve French
merged into cifs-2.6.git for-next On Tue, Jul 2, 2019 at 1:20 PM Hariprasad Kelam wrote: > > Change return from int to void of convert_ace_to_cifs_ace as it never > fails. > > fixes below issue reported by coccicheck > fs/cifs/cifssmb.c:3606:7-9: Unneeded variable: "rc". Return "0" on line >

[PATCH 1/2] uapi/asm-generic: Allow defining a custom __SIGINFO struct

2019-07-02 Thread Alistair Francis
Allow defining a custom __SIGINFO struct. This allows architectures to apply their own padding and allignment requirements to the struct. This is similar to the __ARCH_SI_ATTRIBUTES #define that already exists, but applies to the __SIGINFO struct instead of the siginfo_t struct. Signed-off-by:

Re: objtool warnings in prerelease clang-9

2019-07-02 Thread Nick Desaulniers
On Tue, Jul 2, 2019 at 3:07 PM Peter Zijlstra wrote: > > > Hi Nick, > > That is good news; and I'll strive to read the email in more detail > in the morning when there is a better chance of me actually > understanding some of it :-) > > But his here is something I felt needed clarification: > >

Re: [RFC/RFT v3 07/14] clk: meson: g12a: add notifiers to handle cpu clock change

2019-07-02 Thread Martin Blumenstingl
Hi Stephen, Hi Neil, On Mon, Jul 1, 2019 at 11:13 AM Neil Armstrong wrote: > > In order to implement clock switching for the CLKID_CPU_CLK and > CLKID_CPUB_CLK, notifiers are added on specific points of the > clock tree : > > cpu_clk / cpub_clk > | \- cpu_clk_dyn > | | \- cpu_clk_premux0

Re: pagecache locking

2019-07-02 Thread Boaz Harrosh
On 20/06/2019 01:37, Dave Chinner wrote: <> > > I'd prefer it doesn't get lifted to the VFS because I'm planning on > getting rid of it in XFS with range locks. i.e. the XFS_MMAPLOCK is > likely to go away in the near term because a range lock can be > taken on either side of the mmap_sem in the

Re: [PATCH -next] mm: Mark undo_dev_pagemap as __maybe_unused

2019-07-02 Thread Andrew Morton
On Tue, 2 Jul 2019 06:02:03 -0700 Guenter Roeck wrote: > Several mips builds generate the following build warning. > > mm/gup.c:1788:13: warning: 'undo_dev_pagemap' defined but not used > > The function is declared unconditionally but only called from behind > various ifdefs. Mark it

Re: [PATCH v6 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-07-02 Thread Tao Xu
Ping ;) On 6/21/2019 1:57 PM, Tao Xu wrote: UMWAIT and TPAUSE instructions use IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch emulates MSR IA32_UMWAIT_CONTROL in guest and differentiate

Re: [PATCH][next] selftests/x86: fix spelling mistake "FAILT" -> "FAIL"

2019-07-02 Thread Colin Ian King
On 02/07/2019 23:48, shuah wrote: > On 7/2/19 4:42 PM, Colin Ian King wrote: >> On 02/07/2019 20:25, shuah wrote: >>> On 7/2/19 8:22 AM, shuah wrote: On 7/1/19 11:48 AM, Andy Lutomirski wrote: > On Mon, Jul 1, 2019 at 6:04 AM Colin King > wrote: >> >> From: Colin Ian King

Re: [PATCH] arm64: mm: Fix dead assignment of old_pte

2019-07-02 Thread Nathan Chancellor
On Tue, Jul 02, 2019 at 04:13:02PM -0700, 'Nathan Huckleberry' via Clang Built Linux wrote: > When analyzed with the clang static analyzer the > following warning occurs > > line 251, column 2 > Value stored to 'old_pte' is never read > > This warning is repeated every time pgtable.h is >

Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute

2019-07-02 Thread Luis Chamberlain
On Sat, Jun 29, 2019 at 10:42:57AM +0200, Greg Kroah-Hartman wrote: > On Fri, Jun 28, 2019 at 11:40:22AM -0700, Luis Chamberlain wrote: > > On Wed, Jun 26, 2019 at 9:51 PM Christoph Hellwig wrote: > > > > > > On Wed, Jun 26, 2019 at 03:21:08PM -0700, Luis Chamberlain wrote: > > > > On Tue, Feb 5,

[PATCH 2/2] drm/msm: mark devices where iommu is managed by driver

2019-07-02 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c| 1 + drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 1 + drivers/gpu/drm/msm/msm_drv.c | 1 + 4 files changed, 4 insertions(+) diff --git

Re: [PATCH][next] selftests/x86: fix spelling mistake "FAILT" -> "FAIL"

2019-07-02 Thread Colin Ian King
On 02/07/2019 20:25, shuah wrote: > On 7/2/19 8:22 AM, shuah wrote: >> On 7/1/19 11:48 AM, Andy Lutomirski wrote: >>> On Mon, Jul 1, 2019 at 6:04 AM Colin King >>> wrote: From: Colin Ian King There is an spelling mistake in an a test error message. Fix it.

Re: [PATCH] block: fix a crash in do_task_dead()

2019-07-02 Thread Andrew Morton
On Mon, 1 Jul 2019 08:22:32 -0600 Jens Axboe wrote: > Andrew, can you queue Oleg's patch for 5.2? You can also add my: > > Reviewed-by: Jens Axboe Sure. Although things are a bit of a mess. Oleg, can we please have a clean resend with signoffs and acks, etc?

[PATCH 3/4] gpio: stp-xway: get rid of the #include dependency

2019-07-02 Thread Martin Blumenstingl
Use the xway_stp_{r,w}32 helpers in xway_stp_w32_mask instead of relying on ltq_{r,w}32 from the architecture specific . This will allow the driver to be compile-tested on all architectures that support MMIO. Signed-off-by: Martin Blumenstingl --- drivers/gpio/gpio-stp-xway.c | 5 + 1 file

Re: [RFC/RFT v3 06/14] soc: amlogic: meson-clk-measure: add G12B second cluster cpu clk

2019-07-02 Thread Martin Blumenstingl
On Mon, Jul 1, 2019 at 11:13 AM Neil Armstrong wrote: > > Add the G12B second CPU cluster CPU and SYS_PLL measure IDs. > > These IDs returns 0Hz on G12A. > > Reviewed-by: Kevin Hilman > Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl

Re: [RFC PATCH 00/28] Removing struct page from P2PDMA

2019-07-02 Thread Jason Gunthorpe
On Fri, Jun 28, 2019 at 01:35:42PM -0600, Logan Gunthorpe wrote: > > However, I'd feel more comfortable about that assumption if we had > > code to support the IOMMU case, and know for sure it doesn't require > > more info :( > > The example I posted *does* support the IOMMU case. That was case

Re: [PATCHv2] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled

2019-07-02 Thread David Miller
From: Po-Hsu Lin Date: Mon, 1 Jul 2019 12:40:31 +0800 > The psock_tpacket test will need to access /proc/kallsyms, this would > require the kernel config CONFIG_KALLSYMS to be enabled first. > > Apart from adding CONFIG_KALLSYMS to the net/config file here, check the > file existence to

Re: [RFC/RFT v3 05/14] soc: amlogic: meson-clk-measure: protect measure with a mutex

2019-07-02 Thread Martin Blumenstingl
Hi Neil, On Mon, Jul 1, 2019 at 11:13 AM Neil Armstrong wrote: > > In order to protect clock measuring when multiple process asks for > a measure, protect the main measure function with mutexes. > > Reviewed-by: Kevin Hilman > Signed-off-by: Neil Armstrong > --- >

Re: [PATCH] net: core: page_pool: add user refcnt and reintroduce page_pool_destroy

2019-07-02 Thread Ivan Khoronzhuk
On Wed, Jul 03, 2019 at 12:15:36AM +0300, Ilias Apalodimas wrote: Hi Jesper, Getting late here, i'll respond in detail tomorrow. One point though [...] This special use-case, seems confined to your driver. And Ilias told me that XDP is not really a performance benefit for this driver as the

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

2019-07-02 Thread Henry Burns
Following zsmalloc.c's example we call trylock_page() and unlock_page(). Also make z3fold_page_migrate() assert that newpage is passed in locked, as per the documentation. Link: http://lkml.kernel.org/r/20190702005122.41036-1-henrybu...@google.com Signed-off-by: Henry Burns Suggested-by: Vitaly

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