[PATCH v3 0/7] selftsts/ftrace: Add requires list for each test case

2020-06-02 Thread Masami Hiramatsu
Hi, Here is the 3rd version of the series of "requires:" list for simplifying and unifying requirement checks for each test case. The previous version is here. https://lkml.kernel.org/r/15910259.42416.547252366885528860.stgit@devnote2 I've fixed a comment in the template file in this

linux-next: manual merge of the v4l-dvb-next tree with the v4l-dvb tree

2020-06-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the v4l-dvb-next tree got a conflict in: drivers/staging/media/atomisp/pci/sh_css.c between commit: 27333dadef57 ("media: atomisp: adjust some code at sh_css that could be broken") from the v4l-dvb tree and commits: 815618c139d7 ("media: atomisp:

Re: [PATCH v10 00/10] exynos-ufs: Add support for UFS HCI

2020-06-02 Thread Martin K. Petersen
On Thu, 28 May 2020 06:46:48 +0530, Alim Akhtar wrote: > This patch-set introduces UFS (Universal Flash Storage) host > controller support for Samsung family SoC. Mostly, it consists of > UFS PHY and host specific driver. > [...] Applied [1,2,3,4,5,9] to 5.9/scsi-queue. The series won't show up

Re: [PATCH] scsi: qedf: remove redundant initialization of variable rc

2020-06-02 Thread Martin K. Petersen
On Wed, 27 May 2020 12:52:42 +0100, Colin King wrote: > The variable rc 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. Applied to 5.8/scsi-queue, thanks! [1/1] scsi: qedf: Remove

Re: [PATCH v1 1/1] scsi: ufs: Don't update urgent bkops level when toggle auto bkops

2020-06-02 Thread Martin K. Petersen
On Wed, 27 May 2020 19:24:42 -0700, Can Guo wrote: > Urgent bkops level is used to compare against actual bkops status read > from UFS device. Urgent bkops level is set during initialization and might > be updated in exception event handler during runtime, but it should not be > updated to the

Re: [PATCH] scsi: Fix reference count leak in iscsi_boot_create_kobj.

2020-06-02 Thread Martin K. Petersen
On Thu, 28 May 2020 15:13:53 -0500, wu000...@umn.edu wrote: > kobject_init_and_add() should be handled when it return an error, > because kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory

Re: [PATCH] scsi: ufs: Remove redundant urgent_bkop_lvl initialization

2020-06-02 Thread Martin K. Petersen
On Sat, 30 May 2020 22:12:00 +0800, Stanley Chu wrote: > In ufshcd_probe_hba(), all BKOP SW tracking variables can be reset > together in ufshcd_force_reset_auto_bkops(), thus urgent_bkop_lvl > initialization in the beginning of ufshcd_probe_hba() can be merged > into

arch/powerpc/boot/decompress.c:133: undefined reference to `__decompress'

2020-06-02 Thread kbuild test robot
: 6 weeks ago config: powerpc-randconfig-r032-20200602 (attached as .config) compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2388a096e7865c043e83ece4e26654bd3d1a20d5) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [PATCH] tcp: fix TCP socks unreleased in BBR mode

2020-06-02 Thread Eric Dumazet
On Tue, Jun 2, 2020 at 6:53 PM Jason Xing wrote: > > Hi Eric, > > I'm sorry that I didn't write enough clearly. We're running the > pristine 4.19.125 linux kernel (the latest LTS version) and have been > haunted by such an issue. This patch is high-important, I think. So > I'm going to resend

Re: [RFC] Restrict the untrusted devices, to bind to only a set of "whitelisted" drivers

2020-06-02 Thread Rajat Jain
On Mon, Jun 1, 2020 at 10:06 PM Greg Kroah-Hartman wrote: > > On Mon, Jun 01, 2020 at 06:25:42PM -0500, Bjorn Helgaas wrote: > > [+cc Greg, linux-kernel for wider exposure] > > Thanks for the cc:, missed this... > > > > > On Tue, May 26, 2020 at 09:30:08AM -0700, Rajat Jain wrote: > > > On Thu,

Re: linux-next: manual merge of the jc_docs tree with the ext4 tree

2020-06-02 Thread Stephen Rothwell
Hi all, On Fri, 22 May 2020 13:06:16 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the jc_docs tree got a conflict in: > > Documentation/filesystems/fiemap.rst > > between commit: > > 469581d9e5c9 ("fs: move fiemap range validation into the file systems > instances") >

Re: Re: [PATCH] drm/nouveau/clk/gm20b: Fix memory leak in gm20b_clk_new()

2020-06-02 Thread dinghao . liu
> On Tue, Jun 02, 2020 at 01:10:34PM +0200, Markus Elfring wrote: > > > The original patch was basically fine. > > > > I propose to reconsider the interpretation of the software situation once > > more. > > > > * Should the allocated clock object be kept usable even after > > a successful

Re: [PATCH] net: genetlink: Fix memleak in genl_family_rcv_msg_dumpit()

2020-06-02 Thread Yuehaibing
On 2020/6/3 2:04, Cong Wang wrote: > On Mon, Jun 1, 2020 at 11:47 PM YueHaibing wrote: >> @@ -630,6 +625,9 @@ static int genl_family_rcv_msg_dumpit(const struct >> genl_family *family, >> err = __netlink_dump_start(net->genl_sock, skb, nlh, ); >> } >> >> +

[PATCH 0/2] Update CascadelakeX and SkylakeX events list

2020-06-02 Thread Jin Yao
This patchset updates CascadelakeX events to v1.08 and updates SkylakeX events to v1.21. The events have been tested on CascadelakeX and SkylakeX servers with latest perf/core branch. Jin Yao (2): perf vendor events: Update CascadelakeX events to v1.08 perf vendor events: Update SkylakeX

RE: [PATCH] exfat: fix memory leak in exfat_parse_param()

2020-06-02 Thread Namjae Jeon
> On Wed, Jun 03, 2020 at 10:29:57AM +0900, Namjae Jeon wrote: > > > exfat_free() should call exfat_free_iocharset() after stealing > > param->string instead of kstrdup in exfat_parse_param(). > > ITYM > extfat_free() should call exfat_free_iocharset(), to prevent a leak in > case we fail

Re: [GIT PULL] General notification queue and key notifications

2020-06-02 Thread Ian Kent
On Tue, 2020-06-02 at 16:55 +0100, David Howells wrote: > > [[ With regard to the mount/sb notifications and fsinfo(), Karel Zak > and >Ian Kent have been working on making libmount use them, > preparatory to >working on systemd: > >

[PATCH v2] exfat: fix memory leak in exfat_parse_param()

2020-06-02 Thread Namjae Jeon
From: Al Viro butt3rflyh4ck reported memory leak found by syzkaller. A param->string held by exfat_mount_options. BUG: memory leak unreferenced object 0x88801972e090 (size 8): comm "syz-executor.2", pid 16298, jiffies 4295172466 (age 14.060s) hex dump (first 8 bytes): 6b 6f 69 38

Re: [PATCH] tcp: fix TCP socks unreleased in BBR mode

2020-06-02 Thread David Miller
From: Jason Xing Date: Wed, 3 Jun 2020 09:53:10 +0800 > I'm sorry that I didn't write enough clearly. We're running the > pristine 4.19.125 linux kernel (the latest LTS version) and have been > haunted by such an issue. This patch is high-important, I think. So > I'm going to resend this email

Re: [RFC 02/16] x86/kvm: Introduce KVM memory protection feature

2020-06-02 Thread Huang, Kai
On Wed, 2020-05-27 at 10:39 +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > On Mon, May 25, 2020 at 06:15:25PM +0300, Kirill A. Shutemov wrote: > > > On Mon, May 25, 2020 at 04:58:51PM +0200, Vitaly Kuznetsov wrote: > > > > > @@ -727,6 +734,15 @@ static void __init

[PATCH 0/3] Convert i.MX/MXS I2C/LPI2C binding doc to json-schema

2020-06-02 Thread Anson Huang
Coverts i.MX/MXS I2C.LPI2C binding doc to json-schema, some examples are too old, update them based on latest DT file, also add more compatible based on supported SoCs. Anson Huang (3): dt-bindings: i2c: Convert imx lpi2c to json-schema dt-bindings: i2c: Convert mxs i2c to json-schema

[PATCH 2/3] dt-bindings: i2c: Convert mxs i2c to json-schema

2020-06-02 Thread Anson Huang
Convert the MXS I2C binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/i2c/i2c-mxs.txt | 25 -- Documentation/devicetree/bindings/i2c/i2c-mxs.yaml | 55 ++ 2 files changed, 55 insertions(+), 25 deletions(-)

[PATCH 3/3] dt-bindings: i2c: Convert imx i2c to json-schema

2020-06-02 Thread Anson Huang
Convert the i.MX I2C binding to DT schema format using json-schema, some improvements applied, such as update example based on latest DT file, add more compatible for existing SoCs, and remove unnecessary common property "pinctrl". Signed-off-by: Anson Huang ---

[PATCH 1/3] dt-bindings: i2c: Convert imx lpi2c to json-schema

2020-06-02 Thread Anson Huang
Convert the i.MX LPI2C binding to DT schema format using json-schema Signed-off-by: Anson Huang --- .../devicetree/bindings/i2c/i2c-imx-lpi2c.txt | 20 -- .../devicetree/bindings/i2c/i2c-imx-lpi2c.yaml | 45 ++ 2 files changed, 45 insertions(+), 20

Re: [PATCH -next] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-06-02 Thread Yang Yingliang
ping On 2020/5/13 10:28, Yang Yingliang wrote: I got a slab-out-of-bounds report when I doing fuzz test. [ 334.989515] == [ 334.989577] BUG: KASAN: slab-out-of-bounds in vgacon_scroll+0x57a/0x8ed [ 334.989588] Write of size

Re: linux-next: manual merge of the akpm-current tree with the btrfs tree

2020-06-02 Thread Stephen Rothwell
Hi all, On Mon, 25 May 2020 21:11:28 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the akpm-current tree got a conflict in: > > fs/btrfs/inode.c > > between commit: > > f31e5f70919f ("btrfs: switch to iomap_dio_rw() for dio") > > from the btrfs tree and commit: > >

Re: [GIT PULL] io_uring updates for 5.8-rc1

2020-06-02 Thread Jens Axboe
On 6/2/20 5:03 PM, Linus Torvalds wrote: > On Mon, Jun 1, 2020 at 10:55 AM Jens Axboe wrote: >> >> git://git.kernel.dk/linux-block.git for-5.8/io_uring-2020-06-01 > > I'm not sure why pr-tracker-bot didn't like your io_uring pull request. > > It replied to your two other pull requests, but

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-02 Thread Hanjun Guo
On 2020/6/2 11:34, Xiongfeng Wang wrote: Hi Viresh, Sorry to disturb you about another problem as follows. CPPC use the increment of Desired Performance counter and Reference Performance counter to get the CPU frequency and show it in sysfs through 'cpuinfo_cur_freq'. But ACPI CPPC doesn't

Re: [PATCH 1/2] perf tools: check libasan and libubsan in Makefile.config

2020-06-02 Thread Tiezhu Yang
On 06/02/2020 10:15 PM, Jiri Olsa wrote: On Tue, Jun 02, 2020 at 12:15:03PM +0800, Tiezhu Yang wrote: When build perf with ASan or UBSan, if libasan or libubsan can not find, the feature-glibc is 0 and there exists the following error log which is wrong, because we can find gnu/libc-version.h

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

2020-06-02 Thread Stephen Rothwell
Hi all, On Tue, 19 May 2020 17:23:16 +1000 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the rcu tree got a conflict in: > > arch/powerpc/kernel/traps.c > > between commit: > > 116ac378bb3f ("powerpc/64s: machine check interrupt update NMI accounting") > > from

Re: [RFC PATCH v1] irqchip: Add IRQCHIP_MODULE_BEGIN/END helper macros

2020-06-02 Thread Saravana Kannan
On Fri, May 1, 2020 at 1:23 PM Saravana Kannan wrote: > > On Fri, May 1, 2020 at 1:48 AM Marc Zyngier wrote: > > > > On 2020-04-29 20:04, Saravana Kannan wrote: > > > On Wed, Apr 29, 2020 at 2:28 AM Marc Zyngier wrote: > > > > [...] > > > > >> One thing though: this seems to be exclusively DT

Re: [PATCHES] uaccess hpsa

2020-06-02 Thread Martin K. Petersen
> hpsa compat ioctl done (hopefully) saner. I really want > to kill compat_alloc_user_space() off - it's always trouble and > for a driver-private ioctls it's absolutely pointless. > > Note that this is only compile-tested - I don't have the > hardware to test it on *or* userland to

Re: [PATCH] exfat: fix memory leak in exfat_parse_param()

2020-06-02 Thread Al Viro
On Wed, Jun 03, 2020 at 10:29:57AM +0900, Namjae Jeon wrote: > exfat_free() should call exfat_free_iocharset() after stealing > param->string instead of kstrdup in exfat_parse_param(). ITYM extfat_free() should call exfat_free_iocharset(), to prevent a leak in case we fail after parsing

Re: [PATCH] xfs/XXX: Add xfs/XXX

2020-06-02 Thread Xiao Yang
On 2020/6/3 2:14, Darrick J. Wong wrote: On Tue, Jun 02, 2020 at 04:51:48PM +0800, Xiao Yang wrote: On 2020/4/14 0:30, Darrick J. Wong wrote: This might be a good time to introduce a few new helpers: _require_scratch_dax ("Does $SCRATCH_DEV support DAX?") _require_scratch_dax_mountopt ("Does

Re: [PATCH] tcp: fix TCP socks unreleased in BBR mode

2020-06-02 Thread Jason Xing
Hi Eric, I'm sorry that I didn't write enough clearly. We're running the pristine 4.19.125 linux kernel (the latest LTS version) and have been haunted by such an issue. This patch is high-important, I think. So I'm going to resend this email with the [patch 4.19] on the headline and cc Greg.

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-02 Thread Yan Zhao
On Tue, Jun 02, 2020 at 01:34:35PM -0600, Alex Williamson wrote: > I'm not at all happy with this. Why do we need to hide the migration > sparse mmap from the user until migration time? What if instead we > introduced a new VFIO_REGION_INFO_CAP_SPARSE_MMAP_SAVING capability > where the existing

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

2020-06-02 Thread Stephen Rothwell
Hi all, After merging the overlayfs tree, today's linux-next build (x86_64 allmodconfig) failed like this: ERROR: modpost: "security_file_ioctl" [fs/overlayfs/overlay.ko] undefined! Caused by commit b5940870e166 ("ovl: call secutiry hook in ovl_real_ioctl()") I have applied this patch for

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-02 Thread Al Viro
On Tue, Jun 02, 2020 at 04:45:05AM -0400, Michael S. Tsirkin wrote: > So vhost needs to poke at userspace *a lot* in a quick succession. It > is thus benefitial to enable userspace access, do our thing, then > disable. Except access_ok has already been pre-validated with all the > relevant nospec

Re: [git pull] a couple of sparc ptrace fixes

2020-06-02 Thread David Miller
From: Al Viro Date: Sun, 31 May 2020 02:04:14 +0100 > The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: > > Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git

Re: [PATCH 0/3] sparc32 SRMMU fixes for SMP

2020-06-02 Thread David Miller
From: Will Deacon Date: Tue, 26 May 2020 18:32:59 +0100 > Hi folks, > > Enabling SMP for sparc32 uncovered some issues in the SRMMU page-table > allocation code. One of these was introduced by me, but the other two > seem to have been there a while and are probably just exposed more > easily by

Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()

2020-06-02 Thread wanghai (M)
在 2020/6/3 1:20, Markus Elfring 写道: Fix it by adding a call to kobject_put() in the error path of kobject_init_and_add(). Thanks for another completion of the exception handling. Would an other patch subject be a bit nicer? Thanks for the guidance, I will perfect this description and send a

Re: [PATCH] sparc: remove unused header file nfs_fs.h

2020-06-02 Thread David Miller
From: Anupam Aggarwal Date: Fri, 29 May 2020 17:56:00 +0530 > Remove unused header file linux/nfs_fs.h > > Signed-off-by: Anupam Aggarwal > Signed-off-by: Vivek Trivedi > Signed-off-by: Amit Sahrawat Applied, thank you.

Re: [PATCH V2] pinctrl: sirf: add missing put_device() call in sirfsoc_gpio_probe()

2020-06-02 Thread yukuai (C)
On 2020/6/3 9:35, yu kuai wrote: A coccicheck run provided information like the following: drivers/pinctrl/sirf/pinctrl-sirf.c:798:2-8: ERROR: missing put_device; call of_find_device_by_node on line 792, but without a corresponding object release within this function. Generated by:

[PATCH V2] pinctrl: sirf: add missing put_device() call in sirfsoc_gpio_probe()

2020-06-02 Thread yu kuai
A coccicheck run provided information like the following: drivers/pinctrl/sirf/pinctrl-sirf.c:798:2-8: ERROR: missing put_device; call of_find_device_by_node on line 792, but without a corresponding object release within this function. Generated by: scripts/coccinelle/free/put_device.cocci Thus

Re: [RFC 09/16] KVM: Protected memory extension

2020-06-02 Thread Huang, Kai
On Mon, 2020-05-25 at 18:34 +0300, Kirill A. Shutemov wrote: > On Mon, May 25, 2020 at 05:26:37PM +0200, Vitaly Kuznetsov wrote: > > "Kirill A. Shutemov" writes: > > > > > Add infrastructure that handles protected memory extension. > > > > > > Arch-specific code has to provide hypercalls and

[PATCH] exfat: fix memory leak in exfat_parse_param()

2020-06-02 Thread Namjae Jeon
From: Al Viro butt3rflyh4ck reported memory leak found by syzkaller. A param->string held by exfat_mount_options. BUG: memory leak unreferenced object 0x88801972e090 (size 8): comm "syz-executor.2", pid 16298, jiffies 4295172466 (age 14.060s) hex dump (first 8 bytes): 6b 6f 69 38

Re: [PATCH] scsi: megaraid_sas: fix kdump kernel boot hung caused by JBOD

2020-06-02 Thread Martin K. Petersen
> when kernel crash, and kexec into kdump kernel, megaraid_sas will hung > and print follow error logs > > 24.1485901 sd 0:0:G:0: [sda 1 tag809 BRCfl Debug mfi stat 0x2(1, data len > requested/conpleted 0X100 > 0/0x0)] > 24.1867171 sd 0:0:G :9: [sda I tag861 BRCfl Debug mfft stat 0x2d, data len

RE: memory leak in exfat_parse_param

2020-06-02 Thread Namjae Jeon
> On Tue, Jun 02, 2020 at 01:03:05PM +0800, butt3rflyh4ck wrote: > > I report a bug (in linux-5.7.0-rc7) found by syzkaller. > > > > kernel config: > > https://protect2.fireeye.com/url?k=f3a88a7d-ae6446d8-f3a90132-0cc47a30 > > d446-6021a2fbdd1681a8=1=https%3A%2F%2Fgithub.com%2Fbutterflyhack%2 > >

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

2020-06-02 Thread Singh, Balbir
On Tue, 2020-06-02 at 16:28 -0700, Linus Torvalds wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > On Tue, Jun 2, 2020 at 4:01 PM Singh, Balbir wrote: >

Re: [PATCH v2] scsi: st: convert convert get_user_pages() --> pin_user_pages()

2020-06-02 Thread Martin K. Petersen
> This code was using get_user_pages*(), in a "Case 1" scenario (Direct > IO), using the categorization from [1]. That means that it's time to > convert the get_user_pages*() + put_page() calls to pin_user_pages*() > + unpin_user_pages() calls. Kai: Please review. Thanks! -- Martin K.

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

2020-06-02 Thread Anshuman Khandual
On 06/02/2020 08:31 PM, Matthew Wilcox wrote: > On Fri, May 22, 2020 at 09:04:04AM +0530, Anshuman Khandual wrote: >> This adds the following two new VM events which will help in validating PMD >> based THP migration without split. Statistics reported through these events >> will help in

[GIT PULL] erofs updates for 5.8-rc1

2020-06-02 Thread Gao Xiang
Hi Linus, Could you consider this pull request for 5.8-rc1? The most outstanding part is the new mount api conversion, which is actually a old patch already pending for several cycles. And the others are recent trivial cleanups here. All commits have been tested and have been in linux-next as

Re: [PATCH 08/14] x86/entry: Optimize local_db_save() for virt

2020-06-02 Thread Sean Christopherson
On Fri, May 29, 2020 at 11:27:36PM +0200, Peter Zijlstra wrote: > Because DRn access is 'difficult' with virt; but the DR7 read is > cheaper than a cacheline miss on native, add a virt specific > fast path to local_db_save(), such that when breakpoints are not in > use we avoid touching DRn

[PATCH v3 3/4] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-06-02 Thread Sargun Dhillon
This adds a seccomp notifier ioctl which allows for the listener to "add" file descriptors to a process which originated a seccomp user notification. This allows calls like mount, and mknod to be "implemented", as the return value, and the arguments are data in memory. On the other hand, calls

[PATCH v3 2/4] pid: Use file_receive helper to copy FDs

2020-06-02 Thread Sargun Dhillon
The code to copy file descriptors was duplicated in pidfd_getfd. Rather than continue to duplicate it, this hoists the code out of kernel/pid.c and uses the newly added file_receive helper. Earlier, when this was implemented there was some back-and-forth about how the semantics should work around

Re: [PATCH v2 1/2] media: dt-bindings: media: xilinx: Add Xilinx UHD-SDI Receiver Subsystem

2020-06-02 Thread Laurent Pinchart
Hi Vishal, On Mon, Jun 01, 2020 at 03:14:52PM +, Vishal Sagar wrote: > On Wednesday, May 6, 2020 6:32 PM, Laurent Pinchart wrote: > > On Wed, Apr 29, 2020 at 07:47:03PM +0530, Vishal Sagar wrote: > > > Add bindings documentation for Xilinx UHD-SDI Receiver Subsystem. > > > > > > The Xilinx

[PATCH v3 4/4] selftests/seccomp: Test SECCOMP_IOCTL_NOTIF_ADDFD

2020-06-02 Thread Sargun Dhillon
Test whether we can add file descriptors in response to notifications. This injects the file descriptors via notifications, and then uses kcmp to determine whether or not it has been successful. It also includes some basic sanity checking for arguments. Signed-off-by: Sargun Dhillon Cc: Al Viro

Re: general protection fault in nfsd_reply_cache_free_locked

2020-06-02 Thread J. Bruce Fields
On Mon, May 11, 2020 at 11:55:16PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: This is like https://lore.kernel.org/linux-nfs/5016dd05a5e6b...@google.com/ in that we're discovering the drc is corrupt while destroying it. I don't see the problem

[PATCH v3 0/4] Add seccomp notifier ioctl that enables adding fds

2020-06-02 Thread Sargun Dhillon
This adds the capability for seccomp notifier listeners to add file descriptors in response to a seccomp notification. This is useful for syscalls in which the previous capabilities were not sufficient. The current mechanism works well for syscalls that either have side effects that are system /

[PATCH v3 1/4] fs, net: Standardize on file_receive helper to move fds across processes

2020-06-02 Thread Sargun Dhillon
Previously there were two chunks of code where the logic to receive file descriptors was duplicated in net. The compat version of copying file descriptors via SCM_RIGHTS did not have logic to update cgroups. Logic to change the cgroup data was added in: commit 48a87cc26c13 ("net: netprio: fd

Re: [PATCH] pinctrl: sirf: Add missing put_device() call in sirfsoc_gpio_probe()

2020-06-02 Thread yukuai (C)
On 2020/6/3 2:56, Markus Elfring wrote: in sirfsoc_gpio_probe(), if of_find_device_by_node() succeed, put_device() is missing in the error handling patch. How do you think about another wording variant? A coccicheck run provided information like the following.

Re: [PATCH 4/6] KVM: X86: Split kvm_update_cpuid()

2020-06-02 Thread Sean Christopherson
On Fri, May 29, 2020 at 04:55:43PM +0800, Xiaoyao Li wrote: > Split the part of updating KVM states from kvm_update_cpuid(), and put > it into a new kvm_update_state_based_on_cpuid(). So it's clear that > kvm_update_cpuid() is to update guest CPUID settings, while >

Re: [GIT PULL] SELinux patches for v5.8

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Jun 2020 21:06:48 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git > tags/selinux-pr-20200601 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f41030a20b38552a2da3b3f6bc9e7a78637d6c23 Thank you! --

Re: [GIT PULL][Security] lockdown: Allow unprivileged users to see lockdown status

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Tue, 2 Jun 2020 12:15:04 +1000 (AEST): > git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git > next-general has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/56f2e3b7d819f4fa44857ba81aa6870f18714ea0 Thank you! --

Re: [GIT PULL] Audit patches for v5.8

2020-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 1 Jun 2020 20:48:59 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git > tags/audit-pr-20200601 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9d99b1647fa56805c1cfef2d81ee7b9855359b62 Thank you! --

Re: [PATCH] sbp-target: add the missed kfree() in an error path

2020-06-02 Thread Martin K. Petersen
Chris, > I think you might be right. I also don't have much time to maintain it > these days and the hardware I had is long dead. In that case I'd appreciate a patch to remove it. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [GIT PULL][Security] lockdown: Allow unprivileged users to see lockdown status

2020-06-02 Thread Linus Torvalds
On Mon, Jun 1, 2020 at 7:15 PM James Morris wrote: > > Just one update for the security subsystem: allows unprivileged users to > see the status of the lockdown feature. From Jeremy Cline. Hmm. That branch seems to have sprouted another commit just today. I ended up taking that too as trivial,

Re: [PATCH -next] IB/hfi1: Use free_netdev() in hfi1_netdev_free()

2020-06-02 Thread Jason Gunthorpe
On Tue, Jun 02, 2020 at 02:16:35PM +0800, YueHaibing wrote: > dummy_netdev shold be freed by free_netdev() instead of > kfree(). Also remove unneeded variable 'priv' > > Fixes: 4730f4a6c6b2 ("IB/hfi1: Activate the dummy netdev") > Signed-off-by: YueHaibing > Reported-by: kbuild test robot >

Re: [PATCH v3] iommu/vt-d: Don't apply gfx quirks to untrusted devices

2020-06-02 Thread Prashant Malani
(Trimming text) On Wed, Jun 03, 2020 at 12:23:48AM +, Rajat Jain wrote: > On Tue, Jun 2, 2020 at 4:49 PM Prashant Malani wrote: > > > > Hi Rajat, > > Hi Prashant, thanks for taking a look. > > > > > On Tue, Jun 02, 2020 at 04:26:02PM -0700, Rajat Jain wrote: > > > +static bool

Re: [GIT PULL] SELinux patches for v5.8

2020-06-02 Thread Linus Torvalds
On Mon, Jun 1, 2020 at 6:07 PM Paul Moore wrote: > > - A number of improvements to various SELinux internal data structures > to help improve performance. We move the role transitions into a hash > table. In the content structure we shift from hashing the content > string (aka SELinux label) to

Re: [PATCH] wireless: ath10k: Return early in ath10k_qmi_event_server_exit() to avoid hard crash on reboot

2020-06-02 Thread Manivannan Sadhasivam
On Tue, Jun 02, 2020 at 01:04:26PM -0700, Brian Norris wrote: > On Tue, Jun 2, 2020 at 12:40 PM John Stultz wrote: > > On Tue, Jun 2, 2020 at 12:16 PM Brian Norris > > wrote: > > > On Mon, Jun 1, 2020 at 10:25 PM John Stultz > > > wrote: > > > > > > > > Ever since 5.7-rc1, if we call > > > >

Re: [PATCH v3] iommu/vt-d: Don't apply gfx quirks to untrusted devices

2020-06-02 Thread Rajat Jain
On Tue, Jun 2, 2020 at 4:49 PM Prashant Malani wrote: > > Hi Rajat, Hi Prashant, thanks for taking a look. > > On Tue, Jun 02, 2020 at 04:26:02PM -0700, Rajat Jain wrote: > > Currently, an external malicious PCI device can masquerade the VID:PID > > of faulty gfx devices, and thus apply iommu

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread Jason Gunthorpe
On Tue, Jun 02, 2020 at 02:51:10PM -0700, James Bottomley wrote: > My first thought was "what? I got suckered into creating a patch", > thanks ;-) But now I look, all the error paths do unwind back to the > initial state, so kfree() on error looks to be completely correct. It doesn't fully

Re: [PATCH v2 1/2] video: fbdev: amifb: add FIXME about dead APUS support

2020-06-02 Thread Finn Thain
On Tue, 2 Jun 2020, Al Viro wrote: > I have done that on aranym (which is how I'd been doing all testing for > e.g. signal-related m68k patches) and I've seen references to some > out-of-tree qemu variant doing quadra, but nothing for amiga > emulators... > Laurent Vivier's Quadra 800

Re: [GIT PULL] Audit patches for v5.8

2020-06-02 Thread Linus Torvalds
On Mon, Jun 1, 2020 at 5:49 PM Paul Moore wrote: > > Unfortunately I just noticed > that one of the commit subject lines is truncated - sorry about that, > it's my fault not Richard's - but since the important part is there > ("add subj creds to NETFILTER_CFG") I opted to leave it as-is and

Re: [PATCH 00/10] fix swiotlb-xen for RPi4

2020-06-02 Thread Boris Ostrovsky
On 6/2/20 5:51 PM, Stefano Stabellini wrote: > I would like to ask the maintainers, Juergen, Boris, Konrad, whether you > have any more feedback before I send v2 of the series. I think I only had one comment and that's all. Most were from Julien. -boris > > Cheers, > > Stefano > > > On Wed,

Re: [PATCH v5 0/3] close_range()

2020-06-02 Thread Linus Torvalds
On Tue, Jun 2, 2020 at 4:33 PM Christian Brauner wrote: > > > > And maybe this _did_ get mentioned last time, and I just don't find > > it. I also don't see anything like that in the patches, although the > > flags argument is there. > > I spent some good time digging and I couldn't find this

[PATCH v2] hwmon: bt1-pvt: Define Temp- and Volt-to-N poly as maybe-unused

2020-06-02 Thread Serge Semin
Clang-based kernel building with W=1 warns that some static const variables are unused: drivers/hwmon/bt1-pvt.c:67:30: warning: unused variable 'poly_temp_to_N' [-Wunused-const-variable] static const struct pvt_poly poly_temp_to_N = { ^ drivers/hwmon/bt1-pvt.c:99:30:

Re: kobject_init_and_add is easy to misuse

2020-06-02 Thread James Bottomley
On Tue, 2020-06-02 at 14:51 -0700, James Bottomley wrote: > On Tue, 2020-06-02 at 22:07 +0200, Greg Kroah-Hartman wrote: > > On Tue, Jun 02, 2020 at 12:54:16PM -0700, James Bottomley wrote: > > [...] > > > I think the only way we can make the failure semantics consistent > > > is to have the

Re: [PATCH v3 6/6] MAINTAINERS: Add maintainers for MIPS core drivers

2020-06-02 Thread Serge Semin
On Tue, Jun 02, 2020 at 11:12:31AM +0100, Marc Zyngier wrote: > On 2020-06-02 11:09, Serge Semin wrote: > > Add Thomas and myself as maintainers of the MIPS CPU and GIC IRQchip, > > MIPS > > GIC timer and MIPS CPS CPUidle drivers. > > > > Signed-off-by: Serge Semin > > > > --- > > > >

RE: [RFC PATCH 1/2] Drivers: hv: vmbus: Re-balance channel interrupts across CPUs at CPU hotplug

2020-06-02 Thread Michael Kelley
From: Andrea Parri (Microsoft) Sent: Tuesday, May 26, 2020 3:32 PM > > CPU hot removals and additions present an opportunity for (re-)balancing > the channel interrupts across the available CPUs. Current code does not > balance the interrupts at CPU hotplug; furthermore/consequently, the hot >

[PATCH stable 5.4] PM: wakeup: Show statistics for deleted wakeup sources again

2020-06-02 Thread Florian Fainelli
From: zhuguangqing commit e976eb4b91e906f20ec25b20c152d53c472fc3fd upstream After commit 00ee22c28915 (PM / wakeup: Use seq_open() to show wakeup stats), print_wakeup_source_stats(m, _ws) is not called from wakeup_sources_stats_seq_show() any more. Because deleted_ws is one of the wakeup

[rcu:dev.2020.06.01b] BUILD SUCCESS 9c814827af953f2e109feef5272154c00a8f4541

2020-06-02 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.06.01b branch HEAD: 9c814827af953f2e109feef5272154c00a8f4541 refperf: Add test for RCU Tasks Trace readers. i386-tinyconfig vmlinux size:

[rcu:urgent-for-mingo] BUILD SUCCESS b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61

2020-06-02 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git urgent-for-mingo branch HEAD: b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61 rcuperf: Fix printk format warning elapsed time: 485m configs tested: 99 configs skipped: 7 The following configs have been built

Re: [GIT PULL] vfs: improve DAX behavior for 5.8, part 1

2020-06-02 Thread Ira Weiny
On Tue, Jun 02, 2020 at 09:58:52AM -0700, Darrick J. Wong wrote: > Hi Linus, > > After many years of LKML-wrangling about how to enable programs to query > and influence the file data access mode (DAX) when a filesystem resides > on storage devices such as persistent memory, Ira Weiny has emerged

Re: [PATCH] iommu/amd: Fix event counter availability check

2020-06-02 Thread Shuah Khan
On 5/31/20 1:22 AM, Alexander Monakov wrote: Hi, Adding Shuah Khan to Cc: I've noticed you've seen this issue on Ryzen 2400GE; can you have a look at the patch? Would be nice to know if it fixes the problem for you too. I am not seeing any change in behavior on my system. I still see: I

Re: [PATCH v8 04/10] drm: bridge: dw_mipi_dsi: allow bridge daisy chaining

2020-06-02 Thread Laurent Pinchart
Hi Adrian, Thank you for the patch. On Mon, Apr 27, 2020 at 11:19:46AM +0300, Adrian Ratiu wrote: > Up until now the assumption was that the synopsis dsi bridge will > directly connect to an encoder provided by the platform driver, but > the current practice for drivers is to leave the encoder

Re: [PATCH v2 3/7] selftests/ftrace: Add "requires:" list support

2020-06-02 Thread Masami Hiramatsu
On Tue, 2 Jun 2020 09:21:45 -0400 Steven Rostedt wrote: > On Tue, 2 Jun 2020 18:08:31 +0900 > Masami Hiramatsu wrote: > > > +++ b/tools/testing/selftests/ftrace/test.d/template > > @@ -1,6 +1,7 @@ > > #!/bin/sh > > # SPDX-License-Identifier: GPL-2.0 > > # description: %HERE DESCRIBE WHAT

Re: [PATCH v3] iommu/vt-d: Don't apply gfx quirks to untrusted devices

2020-06-02 Thread Prashant Malani
Hi Rajat, On Tue, Jun 02, 2020 at 04:26:02PM -0700, Rajat Jain wrote: > Currently, an external malicious PCI device can masquerade the VID:PID > of faulty gfx devices, and thus apply iommu quirks to effectively > disable the IOMMU restrictions for itself. > > Thus we need to ensure that the

Re: [PATCH 00/10] spi: Adding support for Microchip Sparx5 SoC

2020-06-02 Thread Serge Semin
On Tue, Jun 02, 2020 at 10:18:28AM +0200, Lars Povlsen wrote: > > Serge Semin writes: > > > Hello Lars, > > > > On Wed, May 13, 2020 at 04:00:21PM +0200, Lars Povlsen wrote: > >> This is an add-on series to the main SoC Sparx5 series > >> (Message-ID:

[tip:master] BUILD SUCCESS 16fc229652f8188dd898584c946293ea576abbbb

2020-06-02 Thread kbuild test robot
randconfig-a001-20200602 i386 randconfig-a006-20200602 i386 randconfig-a002-20200602 i386 randconfig-a005-20200602 i386 randconfig-a003-20200602 i386 randconfig-a004-20200602 riscv

Re: [PATCH 7/7] dt-bindings: display: Document Cadence MHDP HDMI/DP bindings

2020-06-02 Thread Laurent Pinchart
Hi Sandor, Thank you for the patch. On Mon, Jun 01, 2020 at 02:17:37PM +0800, sandor...@nxp.com wrote: > From: Sandor Yu > > Document the bindings used for the Cadence MHDP HDMI/DP bridge. > > Signed-off-by: Sandor Yu > --- > .../bindings/display/bridge/cdns,mhdp.yaml| 46

Re: [PATCH v5 1/3] open: add close_range()

2020-06-02 Thread Christian Brauner
On Wed, Jun 03, 2020 at 01:30:57AM +0200, Florian Weimer wrote: > * Christian Brauner: > > > The performance is striking. For good measure, comparing the following > > simple close_all_fds() userspace implementation that is essentially just > > glibc's version in [6]: > > > > static int

Re: [PATCH 3/7] drm: bridge: cadence: initial support for MHDP DP bridge driver

2020-06-02 Thread Laurent Pinchart
Hi Sandor, Thank you for the patch. On Mon, Jun 01, 2020 at 02:17:33PM +0800, sandor...@nxp.com wrote: > From: Sandor Yu > > This adds initial support for MHDP DP bridge driver. > Basic DP functions are supported, that include: > -Video mode set on-the-fly > -Cable hotplug detect > -MAX

Re: [PATCH v5 0/3] close_range()

2020-06-02 Thread Christian Brauner
On Tue, Jun 02, 2020 at 02:03:09PM -0700, Linus Torvalds wrote: > On Tue, Jun 2, 2020 at 1:42 PM Christian Brauner > wrote: > > > > This is a resend of the close_range() syscall, as discussed in [1]. There > > weren't any outstanding > > discussions anymore and this was in mergeable shape. I

Re: [PATCH] hwmon: bt1-pvt: Declare Temp- and Volt-to-N poly when alarms are enabled

2020-06-02 Thread Serge Semin
On Tue, Jun 02, 2020 at 07:07:46AM -0700, Guenter Roeck wrote: > On Tue, Jun 02, 2020 at 12:12:19PM +0300, Serge Semin wrote: > > Clang-based kernel building with W=1 warns that some static const > > variables are unused: > > > > drivers/hwmon/bt1-pvt.c:67:30: warning: unused variable

Re: [PATCH 1/4] drivers: clk: qcom: Add msm8992 GCC driver

2020-06-02 Thread Bryan O'Donoghue
On 31/05/2020 18:46, Konrad Dybcio wrote: +static struct clk_fixed_factor xo = { + .mult = 1, + .div = 1, + .hw.init = &(struct clk_init_data) + { + .name = "xo", + .parent_names = (const char *[]) { "xo_board" }, + .num_parents

Re: linux-next: manual merge of the block tree with the rdma tree

2020-06-02 Thread Jason Gunthorpe
On Wed, Jun 03, 2020 at 01:40:51AM +0300, Max Gurtovoy wrote: > > On 6/3/2020 12:37 AM, Jens Axboe wrote: > > On 6/2/20 1:09 PM, Jason Gunthorpe wrote: > > > On Tue, Jun 02, 2020 at 01:02:55PM -0600, Jens Axboe wrote: > > > > On 6/2/20 1:01 PM, Jason Gunthorpe wrote: > > > > > On Tue, Jun 02,

Re: [PATCH v5 1/3] open: add close_range()

2020-06-02 Thread Florian Weimer
* Christian Brauner: > The performance is striking. For good measure, comparing the following > simple close_all_fds() userspace implementation that is essentially just > glibc's version in [6]: > > static int close_all_fds(void) > { > int dir_fd; > DIR *dir; > struct

Re: [PATCH net-next v5 4/4] net: dp83869: Add RGMII internal delay configuration

2020-06-02 Thread Dan Murphy
Florian On 6/2/20 6:13 PM, Florian Fainelli wrote: On 6/2/2020 4:10 PM, Dan Murphy wrote: Florian On 6/2/20 5:33 PM, Florian Fainelli wrote: On 6/2/2020 9:45 AM, Dan Murphy wrote: Add RGMII internal delay configuration for Rx and Tx. Signed-off-by: Dan Murphy --- [snip] +   enum {   

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

2020-06-02 Thread Linus Torvalds
On Tue, Jun 2, 2020 at 4:01 PM Singh, Balbir wrote: > > > (c) and if I read the code correctly, trying to flush the L1D$ on > > non-intel without the HW support, it causes a WARN_ON_ONCE()! WTF? > > That is not correct, the function only complains if we do a software fallback > flush without

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