include/asm-generic/irqflags.h:47:9: sparse: sparse: context imbalance in 'cm_queue_work_unlock' - unexpected unlock

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: e83f195aa45c1ffd73b3a950a887e41c260cf194 RDMA/cm: Pull duplicated code into cm_queue_work_unlock() date: 4 weeks ago config: sh-randconfig-s032-20200611

Re: [PATCH] ARM: dts: rockchip: Add marvell BT irq config

2020-06-10 Thread Johan Jonker
On 6/11/20 4:06 AM, Abhishek Pandit-Subedi wrote: > Veyron Jaq and Mighty both use the Marvel 8897 WiFi+BT chip. Add wakeup > and pinctrl block to devicetree so the btmrvl driver can correctly > configure the wakeup interrupt. > > Signed-off-by: Abhishek Pandit-Subedi > Reviewed-by: Reviewed-by:

Re: [PATCH v2] powerpc: Remove inaccessible CMDLINE default

2020-06-10 Thread Christophe Leroy
Le 11/06/2020 à 05:41, Chris Packham a écrit : Since commit cbe46bd4f510 ("powerpc: remove CONFIG_CMDLINE #ifdef mess") CONFIG_CMDLINE has always had a value regardless of CONFIG_CMDLINE_BOOL. For example: $ make ARCH=powerpc defconfig $ cat .config # CONFIG_CMDLINE_BOOL is not set

[PATCH 2/2] mtd: rawnand: brcmnand: Ecc error handling on EDU transfers

2020-06-10 Thread Kamal Dasu
Implemented ECC correctable and uncorrectable error handling for EDU reads. If ECC correctable bitflips are encountered on EDU transfer, read page again using pio, This is needed due to a controller lmitation where read and corrected data is not transferred to the DMA buffer on ECC errors. This

[PATCH 1/2] mtd: rawnand: brcmnand: Don't default to edu transfer

2020-06-10 Thread Kamal Dasu
When flash-dma is absent do not default to using flash-edu. Make sure flash-edu is enabled before setting EDU transfer function. Fixes: a5d53ad26a8b ("mtd: rawnand: brcmnand: Add support for flash-edu for dma transfers") Signed-off-by: Kamal Dasu --- drivers/mtd/nand/raw/brcmnand/brcmnand.c |

Re: [PATCH v6 6/6] blktrace: fix debugfs use after free

2020-06-10 Thread Christoph Hellwig
On Wed, Jun 10, 2020 at 11:31:16PM +, Luis Chamberlain wrote: > On Wed, Jun 10, 2020 at 09:52:13PM +, Luis Chamberlain wrote: > > diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c > > index 7ff2ea5cd05e..5cea04c05e09 100644 > > --- a/kernel/trace/blktrace.c > > +++

[PATCH] pinctrl: meson: fix drive strength register and bit calculation

2020-06-10 Thread Hyeonki Hong
On Wed, Jun 10, 2020 at 03:09:42PM +0200, Jerome Brunet wrote: > > On Wed 10 Jun 2020 at 06:13, hhk7...@gmail.com wrote: > > > From: Hyeonki Hong > > > > If a GPIO bank has greater than 16 pins, PAD_DS_REG is split into two > > registers. However, when register and bit were calculated, the

[PATCH v2 1/1] checkpatch: add check for NONNETWORKING_BLOCK_COMMENT_STYLE

2020-06-10 Thread Scott Branden
NETWORKING_BLOCK_COMMENT_STYLE is supported by checkpatch but there doesn't seem to be any check for the standard block comment style. Add support for NONNETWORKING_BLOCK_COMMENT_STYLE to check for empty /* on first line of non-networking block comments. Signed-off-by: Scott Branden --- Changes

Re: [RFC PATCH 0/3] Add Documentation for /proc/cpuinfo flags

2020-06-10 Thread Greg KH
On Wed, Jun 10, 2020 at 01:06:58PM -0700, Kyung Min Park wrote: > This RFC series has been reviewed by Dave Hansen. Then why isn't there a "Reviewed-by:" line with his name on it on the patches? Come on, you all know how to do this properly...

[git pull] m68knommu changes for v5.8

2020-06-10 Thread Greg Ungerer
Hi Linus, Please pull the m68knommu changes for v5.8. Regards Greg The following changes since commit 9cb1fd0efd195590b828b9b865421ad345a4a145: Linux 5.7-rc7 (2020-05-24 15:32:54 -0700) are available in the Git repository at:

[PATCH v4] scsi: ufs: Fix imprecise load calculation in devfreq window

2020-06-10 Thread Stanley Chu
The UFS load calculation is based on "total_time" and "busy_time" in a devfreq window. However, the source of time is different for both parameters: "busy_time" is assigned from "jiffies" thus has different accuracy from "total_time" which is assigned from ktime_get(). Besides, the time of window

Re: [RFC PATCH] fix use after free in xlog_wait()

2020-06-10 Thread Dave Chinner
On Thu, Jun 11, 2020 at 11:01:38AM +0800, yukuai (C) wrote: > On 2020/6/11 10:28, Dave Chinner wrote > > Actually, it's a lot simpler: > > > > thread1 thread2 > > > > __xfs_trans_commit > > xfs_log_commit_cil > >xlog_wait > > schedule > >

[PATCH v1 RFC 1/2] spi: introduce fallback to pio

2020-06-10 Thread Robin Gong
Add SPI_CONTROLLER_FALLBACK to fallback to pio mode in case dma transfer failed. If spi client driver want to enable this feature please set master->flags with SPI_MASTER_FALLBACK and add master->fallback checking in its can_dma() as spi-imx.c Signed-off-by: Robin Gong --- drivers/spi/spi.c

[PATCH v1 RFC 2/2] spi: spi-imx: add fallback feature

2020-06-10 Thread Robin Gong
Add fallback pio feature for dma transfer failed. Since another whole pio transfer including setup_transfer will be issued by spi core, no need to restore jobs like commit bcd8e7761ec9 ("spi: imx: fallback to PIO if dma setup failure"). Signed-off-by: Robin Gong --- drivers/spi/spi-imx.c | 23

[PATCH v1 RFC 0/2] introduce fallback to pio in spi core

2020-06-10 Thread Robin Gong
Introudce fallback pio way at spi core level so that the tx/rx buffer mapped by spi core for dma could be unmap and fallback pio again. Hence no need the below patch where 'dma_sync_sg_for_devic' to sync fresh data back into 'device' memory and sync to 'cpu' again in spi core.

drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse: sparse: incorrect type in assignment (different base types)

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: 6482023b9d3350bf1b756ef36e1ea1a1c871879c crypto: marvell - enable OcteonTX cpt options for build date: 3 months ago config: s390-randconfig-s032-20200611

Re: INFO: task hung in corrupted (2)

2020-06-10 Thread Peter Hutterer
On Thu, Jun 04, 2020 at 01:41:07PM +0200, Jiri Kosina wrote: > On Tue, 2 Jun 2020, Andrey Konovalov wrote: > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:b0c3ba31 Merge tag 'fsnotify_for_v5.7-rc8' of > > > git://git.ke.. > > > git tree: upstream

INFO: task hung in do_truncate (2)

2020-06-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=150f296110 kernel config: https://syzkaller.appspot.com/x/.config?x=d195fe572fb15312

include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'do_sched_cfs_period_timer' - unexpected unlock

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: ab93a4bc955b3980c699430bc0b633f0d8b607be sched/fair: Remove distribute_running from CFS bandwidth date: 6 weeks ago config: arm64-randconfig-s032-20200611

Re: [PATCH v7 3/5] remoteproc: Add support for runtime PM

2020-06-10 Thread Bjorn Andersson
On Wed 10 Jun 02:40 PDT 2020, Paul Cercueil wrote: > Hi, > > Le lun. 8 juin 2020 à 18:10, Suman Anna a écrit : > > Hi Paul, > > > > On 6/8/20 5:46 PM, Paul Cercueil wrote: > > > Hi Suman, > > > > > > > > > On 5/15/20 5:43 AM, Paul Cercueil wrote: > > > > > > > Call pm_runtime_get_sync()

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

2020-06-10 Thread Sargun Dhillon
On Wed, Jun 10, 2020 at 07:59:55PM -0700, Kees Cook wrote: > > Yeah, that seems reasonable. Here's the diff for that part: > > diff --git a/include/uapi/linux/seccomp.h b/include/uapi/linux/seccomp.h > index 7b6028b399d8..98bf19b4e086 100644 > --- a/include/uapi/linux/seccomp.h > +++

Re: [PATCH V2 1/2] mtd: rawnand: qcom: remove write to unavailable register

2020-06-10 Thread Sivaprakash Murugesan
Hi Miquel, On 6/9/2020 7:32 PM, Miquel Raynal wrote: Hi Sivaprakash, Sivaprakash Murugesan wrote on Tue, 9 Jun 2020 16:40:55 +0530: SFLASHC_BURST_CFG register is not available on all ipq nand platforms, it is available only on ipq8064 devices and the nand controller works without

[PATCH v2][RFC] kdump: append kernel build-id string to VMCOREINFO

2020-06-10 Thread Vijay Balakrishna
Make kernel GNU build-id available in VMCOREINFO. Having build-id in VMCOREINFO facilitates presenting appropriate kernel namelist image with debug information file to kernel crash dump analysis tools. Currently VMCOREINFO lacks uniquely identifiable key for crash analysis automation. Regarding

Re: [PATCH V2 2/2] mtd: rawnand: qcom: set BAM mode only if not set already

2020-06-10 Thread Sivaprakash Murugesan
Hi Miquel, Thanks for the review. On 6/9/2020 7:33 PM, Miquel Raynal wrote: Hi Sivaprakash, Sivaprakash Murugesan wrote on Tue, 9 Jun 2020 16:40:56 +0530: BAM mode is set by writing BAM_MODE_EN bit on NAND_CTRL register. NAND_CTRL is an operational register and in BAM mode operational

Re: [PATCH v2] usb: gadget: configfs: Fix KASAN use-after-free

2020-06-10 Thread Macpaul Lin
On Thu, 2017-09-01 at 10:25:32 -0700, Kees Cook wrote: > Subject: Re: [PATCH v2] usb: gadget: configfs: Fix KASAN use-after-free > To: Jim Lin > Cc: Felipe Balbi , , LKML > , Greg KH , > Steve Beattie > > > On Tue, Jan 17, 2017 at 1:29 AM, Jim Lin wrote: > > When gadget is disconnected,

[GIT PULL] Mailbox changes for v5.8

2020-06-10 Thread Jassi Brar
Hi Linus, The following changes since commit ffeb595d84811dde16a28b33d8a7cf26d51d51b3: Merge tag 'powerpc-5.7-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (2020-05-30 12:28:44 -0700) are available in the Git repository at:

[PATCH v2 2/3] iommu/uapi: Add argsz for user filled data

2020-06-10 Thread Jacob Pan
As IOMMU UAPI gets extended, user data size may increase. To support backward compatibiliy, this patch introduces a size field to each UAPI data structures. It is *always* the responsibility for the user to fill in the correct size. Specific scenarios for user data handling are documented in:

[PATCH v2 0/3] IOMMU user API enhancement

2020-06-10 Thread Jacob Pan
IOMMU user API header was introduced to support nested DMA translation and related fault handling. The current UAPI data structures consist of three areas that cover the interactions between host kernel and guest: - fault handling - cache invalidation - bind guest page tables, i.e. guest PASID

[PATCH v2 1/3] docs: IOMMU user API

2020-06-10 Thread Jacob Pan
IOMMU UAPI is newly introduced to support communications between guest virtual IOMMU and host IOMMU. There has been lots of discussions on how it should work with VFIO UAPI and userspace in general. This document is indended to clarify the UAPI design and usage. The mechenics of how future

[GIT PULL] Crypto Fixes for 5.8

2020-06-10 Thread Herbert Xu
Hi Linus: This push contains a number of fixes to the omap and nitrox drivers. The following changes since commit 58ca0060ec4e51208d2eee12198fc55fd9e4feb3: crypto: hisilicon - fix driver compatibility issue with different versions of devices (2020-05-28 17:27:52 +1000) are available in the

[PATCH v2 3/3] iommu/vt-d: Sanity check uapi argsz filled by users

2020-06-10 Thread Jacob Pan
IOMMU UAPI data has an argsz field which is filled by user. As the data structures expands, argsz may change. As the UAPI data are shared among different architectures, extensions of UAPI data could be a result of one architecture which has no impact on another. Therefore, these argsz santity

Fund Application For Project

2020-06-10 Thread Services
Asalam - alikom, I apologise for sending an unexpected message, We are an expert in Finance, Investments and Assets Collateralization. We offer loan / project funding at a low interest rate of 2.5% RIO per anum. Kindly revert back if interested for further proceedings and negotiations.

[git pull] drm i915 fixes for rc1

2020-06-10 Thread Dave Airlie
Hi Linus, dhowells reported an oops, and the i915 team tracked it down to a missing fix that didn't have correct tags, they've pulled it in along with two other fixes. I might have some more fixes for rc1, but I might not, taking the day off tomorrow, so probably won't be in a hurry to process

linux-next: Tree for Jun 11

2020-06-10 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do *not* add v5.9 material to your linux-next included branches until after v5.8-rc1 has been released. Changes since 20200610: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") The tip t

[x86/mm] c7b2a6d1af: kernel_BUG_at_arch/x86/mm/physaddr.c

2020-06-10 Thread kernel test robot
Greeting, FYI, we noticed the following commit (built with gcc-9): commit: c7b2a6d1affb732cdb37677f31cc8c2499fbf57c ("[PATCHv2 1/2] x86/mm: Fix boot with some memory above MAXMEM") url:

[PATCH v2] powerpc: Remove inaccessible CMDLINE default

2020-06-10 Thread Chris Packham
Since commit cbe46bd4f510 ("powerpc: remove CONFIG_CMDLINE #ifdef mess") CONFIG_CMDLINE has always had a value regardless of CONFIG_CMDLINE_BOOL. For example: $ make ARCH=powerpc defconfig $ cat .config # CONFIG_CMDLINE_BOOL is not set CONFIG_CMDLINE="" When enabling CONFIG_CMDLINE_BOOL

[PATCH 2/2] spi: tools: Fix build errors

2020-06-10 Thread Qing Zhang
Fix the following build errors: include/linux/spi 2>&1 || true ln -sf /home/zhangqing/spi.git2/tools/spi/../../include/uapi/linux/spi/spidev.h include/linux/spi/spidev.h make -f /home/zhangqing/spi.git2/tools/build/Makefile.build dir=. obj=spidev_test make[1]: Entering directory

[PATCH 1/2] spi: tools: Make default_tx/rx and input_tx static

2020-06-10 Thread Qing Zhang
Fix the following sparse warning: ./spidev_test.c:50:9: warning: symbol 'default_tx' was not declared. Should it be static? ./spidev_test.c:59:9: warning: symbol 'default_rx' was not declared. Should it be static? ./spidev_test.c:60:6: warning: symbol 'input_tx' was not declared. Should it be

RE: [PATCH v2] exfat: add missing brelse() calls on error paths

2020-06-10 Thread Namjae Jeon
> If the second exfat_get_dentry() call fails then we need to release "old_bh" > before returning. There > is a similar bug in exfat_move_file(). > > Fixes: 5f2aa075070c ("exfat: add inode operations") > Reported-by: Markus Elfring > Signed-off-by: Dan Carpenter Applied. Thanks!

Re: [PATCH 2/2] net: dsa: qca8k: Improve SGMII interface handling

2020-06-10 Thread Florian Fainelli
On 6/10/2020 12:15 PM, Jonathan McDowell wrote: > This patch improves the handling of the SGMII interface on the QCA8K > devices. Previously the driver did no configuration of the port, even if > it was selected. We now configure it up in the appropriate > PHY/MAC/Base-X mode depending on what

drivers/video/fbdev/tdfxfb.c:1120:27: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-06-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b29482fde649c72441d5478a4ea2c52c56d97a5e commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 7 months ago config: s390-randconfig-s032-20200611 (attached as .config)

[PATCH 5/6] spi: altera: move driver name string to header file

2020-06-10 Thread Xu Yilun
This allows other driver to reuse the name string for spi-altera platform device creation. Signed-off-by: Matthew Gerlach Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 6 ++ include/linux/spi/altera.h | 2 ++ 2 files changed, 4

[PATCH 6/6] spi: altera: fix size mismatch on 64 bit processors

2020-06-10 Thread Xu Yilun
From: Matthew Gerlach The spi-altera driver was originally written with a 32 bit processor, where sizeof(unsigned long) is 4. On a 64 bit processor sizeof(unsigned long) is 8. Change the structure member to u32 to match the actual size of the control register. Signed-off-by: Matthew Gerlach

[PATCH 1/6] spi: altera: add 32bit data width transfer support.

2020-06-10 Thread Xu Yilun
Add support for 32bit width data register, then it supports 32bit data width spi slave device and spi transfers. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 14 ++ 1 file changed, 14

[PATCH 0/6] Add more configuration and regmap support for spi-altera

2020-06-10 Thread Xu Yilun
This patchset adds platform_data for spi-altera, to enable more IP configurations, and creating specific spi client devices. It also adds regmap support, to enable the indirect access to this IP. We have a PCIE based FPGA platform which integrates this IP to communicate with a BMC chip (Intel

[PATCH 2/6] spi: altera: add SPI core parameters support via platform data.

2020-06-10 Thread Xu Yilun
This patch introduced SPI core parameters in platform data, it allows passing these SPI core parameters via platform data. Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 25 ++---

Re: [patch 113/131] mm: balance LRU lists based on relative thrashing

2020-06-10 Thread Alex Shi
在 2020/6/10 下午1:23, Joonsoo Kim 写道: > 2020년 6월 9일 (화) 오후 11:46, Johannes Weiner 님이 작성: >> >> On Tue, Jun 09, 2020 at 05:15:33PM +0800, Alex Shi wrote: >>> >>> >>> 在 2020/6/4 上午7:03, Andrew Morton 写道: + /* XXX: Move to lru_cache_add() when it supports new vs putback */ >>> >>> Hi

[PATCH 3/6] spi: altera: add platform data for slave information.

2020-06-10 Thread Xu Yilun
This patch introduces platform data for slave information, it allows spi-altera to add new spi devices once master registration is done. Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight --- drivers/spi/spi-altera.c | 11 +++

[PATCH 4/6] spi: altera: use regmap instead of direct mmio register access

2020-06-10 Thread Xu Yilun
This patch adds support for regmap. It allows this driver to be compatible if low layer register access method is changed in some cases. Signed-off-by: Matthew Gerlach Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Signed-off-by: Russ Weight --- drivers/spi/Kconfig| 1 +

[PATCH] ext4: fix spelling mistakes in extents.c

2020-06-10 Thread Keyur Patel
Fix spelling issues over the comments in the code. requsted ==> requested deterimined ==> determined insde ==> inside neet ==> need somthing ==> something Signed-off-by: Keyur Patel --- fs/ext4/extents.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v2] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-10 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to whole data area of a regular file for security reason. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 8 +++ fs/f2fs/file.c | 143 + 2 files changed, 151

Re: [PATCH 1/2] net: dsa: qca8k: Switch to PHYLINK instead of PHYLIB

2020-06-10 Thread Florian Fainelli
On 6/10/2020 12:14 PM, Jonathan McDowell wrote: > Update the driver to use the new PHYLINK callbacks, removing the > legacy adjust_link callback. > > Signed-off-by: Jonathan McDowell This looks reasonable to me, Russell would be the person you want to get an Acked-by/Reviewed-by tag from. --

Re: [PATCH] Replace HTTP links with HTTPS ones: Documentation/translations/it_IT

2020-06-10 Thread Kees Cook
On Wed, Jun 10, 2020 at 08:11:39PM +0200, Alexander A. Klimov wrote: > Am 10.06.20 um 10:57 schrieb Federico Vaga: > > On Tuesday, June 9, 2020 10:12:41 PM CEST Alexander A. Klimov wrote: > > > Rationale: > > > Reduces attack surface on kernel devs opening the links for MITM > > > as HTTPS traffic

Re: [PATCH] s390: protvirt: virtio: Refuse device without IOMMU

2020-06-10 Thread Jason Wang
On 2020/6/10 下午9:11, Pierre Morel wrote: Protected Virtualisation protects the memory of the guest and do not allow a the host to access all of its memory. Let's refuse a VIRTIO device which does not use IOMMU protected access. Signed-off-by: Pierre Morel ---

[PATCH] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-10 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to whole data area of a regular file for security reason. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 8 +++ fs/f2fs/file.c | 143 + 2 files changed, 151

Re: Compile error: linux-next-20200610

2020-06-10 Thread Randy Dunlap
On 6/10/20 8:07 PM, Souptick Joarder wrote: > Hi Stephen, > > While compiling linux-next-20200610, I hit below compile error. > .config file is attached. > > Steps -> > > 1. Download the tar > 2. make defconfig > 3. make -j4 > > In file included fro

Re: [PATCH RFC v6 02/11] vhost: use batched get_vq_desc version

2020-06-10 Thread Jason Wang
On 2020/6/10 下午7:05, Michael S. Tsirkin wrote: +EXPORT_SYMBOL_GPL(vhost_get_vq_desc); /* Reverse the effect of vhost_get_vq_desc. Useful for error handling. */ void vhost_discard_vq_desc(struct vhost_virtqueue *vq, int n) { + unfetch_descs(vq); vq->last_avail_idx -= n;

Re: [kernfs] ea7c5fc39a: stress-ng.stream.ops_per_sec 11827.2% improvement

2020-06-10 Thread Ian Kent
On Thu, 2020-06-11 at 10:06 +0800, kernel test robot wrote: > On Sun, Jun 07, 2020 at 09:13:08AM +0800, Ian Kent wrote: > > On Sat, 2020-06-06 at 20:18 +0200, Greg Kroah-Hartman wrote: > > > On Sat, Jun 06, 2020 at 11:52:16PM +0800, kernel test robot > > > wrote: > > > > Greeting, > > > > > > > >

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

2020-06-10 Thread Kees Cook
On Wed, Jun 10, 2020 at 08:48:45AM +, David Laight wrote: > From: Sargun Dhillon > > Sent: 10 June 2020 09:13 > In essence the 'copy_to_user' is done by the wrapper code. > The code filling in the CMSG buffer can be considered to be > writing a kernel buffer. > > IIRC other kernels (eg

Re: [RFC PATCH] fix use after free in xlog_wait()

2020-06-10 Thread yukuai (C)
On 2020/6/11 10:28, Dave Chinner wrote Actually, it's a lot simpler: thread1 thread2 __xfs_trans_commit xfs_log_commit_cil xlog_wait schedule xlog_cil_push_work wake_up_all

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

2020-06-10 Thread Kees Cook
On Wed, Jun 10, 2020 at 08:12:38AM +, Sargun Dhillon wrote: > As an aside, all of this junk should be dropped: > + ret = get_user(size, >size); > + if (ret) > + return ret; > + > + ret = copy_struct_from_user(, sizeof(addfd), uaddfd, size); > + if (ret) > +

Re: [PATCH V3] vdpa: introduce virtio pci driver

2020-06-10 Thread Jason Wang
On 2020/6/10 下午4:51, Michael S. Tsirkin wrote: On Wed, Jun 10, 2020 at 04:25:06PM +0800, Jason Wang wrote: + +#define VP_VDPA_FEATURES \ + ((1ULL << VIRTIO_F_ANY_LAYOUT)| \ This is presumably for transitional devices only. In fact looking at code it seems that only

Re: [PATCH 0/2] Introduce PCI_FIXUP_IOMMU

2020-06-10 Thread Zhangfei Gao
On 2020/6/10 上午12:49, Bjorn Helgaas wrote: On Tue, Jun 09, 2020 at 11:15:06AM +0200, Arnd Bergmann wrote: On Tue, Jun 9, 2020 at 6:02 AM Zhangfei Gao wrote: On 2020/6/9 上午12:41, Bjorn Helgaas wrote: On Mon, Jun 08, 2020 at 10:54:15AM +0800, Zhangfei Gao wrote: On 2020/6/6 上午7:19, Bjorn

Re: [PATCH] firmware: arm_scmi: fix timeout value for send_message

2020-06-10 Thread Jassi Brar
On Wed, Jun 10, 2020 at 10:56 AM Sudeep Holla wrote: [I admit you can write bigger posts than me, so I am not going to write a passionate response to each of your paragraphs. Let's keep it to the point.] > > > > if (xfer->hdr.poll_completion) { > > > > - ktime_t stop =

[PATCH] xfs: fix use-after-free on CIL context on shutdown

2020-06-10 Thread Dave Chinner
From: Dave Chinner xlog_wait() on the CIL context can reference a freed context if the waiter doesn't get scheduled before the CIL context is freed. This can happen when a task is on the hard throttle and the CIL push aborts due to a shutdown. This was detected by generic/019: thread 1

[PATCH] drivers: dpaa2: Use devm_kcalloc() in setup_dpni()

2020-06-10 Thread Xu Wang
A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". Signed-off-by: Xu Wang --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 5 +++-- 1 file changed, 3

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

2020-06-10 Thread Darrick J. Wong
Hi Linus, Please pull this third part of the 5.8 DAX changes. Now that the xfs changes have landed, this third piece changes the FS_XFLAG_DAX ioctl code in xfs to request that the inode be reloaded after the last program closes the file, if doing so would make a S_DAX change happen. This goal

[PATCH] Fix null pointer dereference in vector_user_bpf

2020-06-10 Thread Gaurav Singh
The bpf_prog is being checked for !NULL after uml_kmalloc but later its used directly for example: bpf_prog->filter = bpf and is also later returned upon success. Fix this, do a NULL check and return right away. Signed-off-by: Gaurav Singh --- arch/um/drivers/vector_user.c | 8 +--- 1 file

Re: [PATCH] EDAC/mc: call edac_inc_ue_error() before panic

2020-06-10 Thread Zhenzhong Duan
On Thu, Jun 11, 2020 at 1:19 AM Luck, Tony wrote: > > On Wed, Jun 10, 2020 at 02:58:46PM +0800, Zhenzhong Duan wrote: > > By calling edac_inc_ue_error() before panic, we get a correct UE error > > count for core dump analysis. > > Looks accurate, and I'll add the patch to be applied. But I wonder

[PATCH] x86/mce: fix a wrong assignment of i_mce.status

2020-06-10 Thread Zhenzhong Duan
The original code is a nop as i_mce.status is or'ed with part of itself, fix it. Signed-off-by: Zhenzhong Duan --- arch/x86/kernel/cpu/mce/inject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mce/inject.c b/arch/x86/kernel/cpu/mce/inject.c index

Re: possible deadlock in send_sigio

2020-06-10 Thread Waiman Long
On 4/4/20 1:55 AM, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:bef7b2a7 Merge tag 'devicetree-for-5.7' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15f39c5de0 kernel config:

Re: [PATCH v2] ovl: provide real_file() and overlayfs get_unmapped_area()

2020-06-10 Thread Mike Kravetz
On 6/10/20 7:17 PM, Al Viro wrote: > On Wed, Jun 10, 2020 at 06:36:16PM -0700, Matthew Wilcox wrote: > >> while (file->f_mode & FMODE_OVL_UPPER) >> file = file->private_data; >> return file; >> >> Or are you proposing that overlayfs copy FMODE_HUGEPAGES from the >>

Re: [PATCH] vfs: don't unnecessarily clone write access for writable fds

2020-06-10 Thread Eric Biggers
On Wed, Jun 10, 2020 at 06:49:45PM -0700, Eric Biggers wrote: > From: Eric Biggers > > There's no need for mnt_want_write_file() to clone a write reference to > the mount when the file is already open for writing, provided that > mnt_drop_write_file() is changed to conditionally drop the

Re: [RFC PATCH] fix use after free in xlog_wait()

2020-06-10 Thread Dave Chinner
On Thu, Jun 11, 2020 at 09:39:52AM +0800, Yu Kuai wrote: > I recently got UAF by running generic/019 in qemu: > > == > BUG: KASAN: use-after-free in __lock_acquire+0x4508/0x68c0 > Read of size 8 at addr 88811327f080 by task

Re: [RFC PATCH v4 08/10] i40e/vf_migration: VF live migration - pass-through VF first

2020-06-10 Thread Xiang Zheng
On 2020/6/11 8:23, Yan Zhao wrote: > On Wed, Jun 10, 2020 at 04:59:43PM +0800, Xiang Zheng wrote: >> Hi Yan, >> >> few nits below... >> >> On 2020/5/18 10:53, Yan Zhao wrote: >>> This driver intercepts all device operations as long as it's probed >>> successfully by vfio-pci driver. >>> >>> It

Re: [PATCH v7 7/7] mm/madvise: allow KSM hints for remote API

2020-06-10 Thread Jann Horn
On Mon, Mar 2, 2020 at 8:36 PM Minchan Kim wrote: > From: Oleksandr Natalenko > > It all began with the fact that KSM works only on memory that is marked > by madvise(). And the only way to get around that is to either: [...] > To overcome this restriction, lets employ a new remote madvise API.

Re: [kernfs] ea7c5fc39a: stress-ng.stream.ops_per_sec 11827.2% improvement

2020-06-10 Thread Rick Lindsley
On 6/10/20 7:06 PM, kernel test robot wrote: On Sun, Jun 07, 2020 at 09:13:08AM +0800, Ian Kent wrote: It seems the result of stress-ng is inaccurate if test time too short, we'll increase the test time to avoid unreasonable results, sorry for the inconvenience. Thank you for your response!

Re: [kmemleak] b751c52bb5: BUG:kernel_hang_in_boot_stage

2020-06-10 Thread Li Zhijian
On 6/10/20 6:56 PM, Catalin Marinas wrote: On Wed, Jun 10, 2020 at 03:51:56PM +0800, kernel test robot wrote: FYI, we noticed the following commit (built with gcc-7): commit: b751c52bb587ae66f773b15204ef7a147467f4c7 ("kmemleak: increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K")

Re: [PATCH 1/2] integrity: Add errno field in audit message

2020-06-10 Thread Paul Moore
On Wed, Jun 10, 2020 at 9:58 PM Lakshmi Ramasubramanian wrote: > On 6/10/20 6:45 PM, Paul Moore wrote: > > Hi Paul, > > > I'm sorry I didn't get a chance to mention this before you posted this > > patch, but for the past several years we have been sticking with a > > policy of only adding new

Re: [PATCH v2] ovl: provide real_file() and overlayfs get_unmapped_area()

2020-06-10 Thread Al Viro
On Wed, Jun 10, 2020 at 06:36:16PM -0700, Matthew Wilcox wrote: > while (file->f_mode & FMODE_OVL_UPPER) > file = file->private_data; > return file; > > Or are you proposing that overlayfs copy FMODE_HUGEPAGES from the > underlying fs to the overlaying fs? The latter -

[PATCH v2 1/2] dt-bindings: usb: Add USB PHY support for Intel LGM SoC

2020-06-10 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add the dt-schema to support USB PHY on Intel LGM SoC Signed-off-by: Ramuthevar Vadivel Murugan --- .../devicetree/bindings/usb/intel,lgm-usb-phy.yaml | 53 ++ 1 file changed, 53 insertions(+) create mode 100644

[PATCH v2 2/2] usb: phy: Add USB3 PHY support for Intel LGM SoC

2020-06-10 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add support for USB PHY on Intel LGM SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/usb/phy/Kconfig | 11 ++ drivers/usb/phy/Makefile | 1 + drivers/usb/phy/phy-lgm-usb.c | 280 ++ 3 files

[PATCH v2 0/2] usb : phy: Add USB PHY support on Intel LGM SoC

2020-06-10 Thread Ramuthevar,Vadivel MuruganX
The USB PHY provides the optimized for low power dissipation while active, idle, or on standby. Requires minimal external components, a single resistor, for best operation. Supports 10/5-Gbps high-speed data transmission rates through 3-m USB 3.x cable --- v2: - Address Phillip's review

Re: [PATCH v2 1/1] selinux: fix double free

2020-06-10 Thread Paul Moore
On Wed, Jun 10, 2020 at 5:57 PM wrote: > From: Tom Rix > > Clang's static analysis tool reports these double free memory errors. > > security/selinux/ss/services.c:2987:4: warning: Attempt to free released > memory [unix.Malloc] > kfree(bnames[i]); >

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

2020-06-10 Thread Stephen Rothwell
Hi all, On Wed, 10 Jun 2020 12:17:07 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the scsi-mkp tree got a conflict in: > > drivers/scsi/sr.c > > between commit: > > a711d91cd97e ("block: add a cdrom_device_info pointer to struct gendisk") > > from Linus' tree and

[PATCH] ARM: dts: rockchip: Add marvell BT irq config

2020-06-10 Thread Abhishek Pandit-Subedi
Veyron Jaq and Mighty both use the Marvel 8897 WiFi+BT chip. Add wakeup and pinctrl block to devicetree so the btmrvl driver can correctly configure the wakeup interrupt. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Reviewed-by: Douglas Anderson --- The Veyron Mighty Chromebook (rk3288

Re: [kernfs] ea7c5fc39a: stress-ng.stream.ops_per_sec 11827.2% improvement

2020-06-10 Thread kernel test robot
On Sun, Jun 07, 2020 at 09:13:08AM +0800, Ian Kent wrote: > On Sat, 2020-06-06 at 20:18 +0200, Greg Kroah-Hartman wrote: > > On Sat, Jun 06, 2020 at 11:52:16PM +0800, kernel test robot wrote: > > > Greeting, > > > > > > FYI, we noticed a 11827.2% improvement of stress- > > > ng.stream.ops_per_sec

Re: [f2fs-dev] [PATCH] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-10 Thread Daeho Jeong
Ok, I got it. Thanks for quick response~ :) 2020년 6월 11일 (목) 오전 10:56, Eric Biggers 님이 작성: > > On Thu, Jun 11, 2020 at 09:23:23AM +0900, Daeho Jeong wrote: > > Yes, I saw the implementation in vfs_write(). > > But if we use mnt_want_write_file() here, it'll call mnt_clone_write() > > internally

Re: [PATCH 1/2] integrity: Add errno field in audit message

2020-06-10 Thread Lakshmi Ramasubramanian
On 6/10/20 6:45 PM, Paul Moore wrote: Hi Paul, I'm sorry I didn't get a chance to mention this before you posted this patch, but for the past several years we have been sticking with a policy of only adding new fields to the end of existing records; please adjust this patch accordingly.

[tip:WIP.fixes] BUILD SUCCESS 0acd9a0ded80c986ccc9588ba2703436769ead74

2020-06-10 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.fixes branch HEAD: 0acd9a0ded80c986ccc9588ba2703436769ead74 Revert "mm/vmalloc: modify struct vmap_area to reduce its size" elapsed time: 1130m configs tested: 172 configs skipped: 15 The following configs have

Re: [f2fs-dev] [PATCH] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-06-10 Thread Eric Biggers
On Thu, Jun 11, 2020 at 09:23:23AM +0900, Daeho Jeong wrote: > Yes, I saw the implementation in vfs_write(). > But if we use mnt_want_write_file() here, it'll call mnt_clone_write() > internally if the file is already open in write mode. > Don't you think the below thing is needed? We can increase

[PATCH 3/3] Bluetooth: btmrvl_sdio: Refactor irq wakeup

2020-06-10 Thread Abhishek Pandit-Subedi
Use device_init_wakeup to allow the Bluetooth dev to wake the system from suspend. Currently, the device can wake the system but no power/wakeup entry is created in sysfs to allow userspace to disable wakeup. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Douglas Anderson ---

[PATCH 1/3] Bluetooth: btmrvl_sdio: Set parent dev to hdev

2020-06-10 Thread Abhishek Pandit-Subedi
Set the correct parent dev when registering hdev. This allows userspace tools to find the parent device (for example, to set the power/wakeup property). Before this change, the path was /sys/devices/virtual/bluetooth/hci0 and after this change, it looks more like:

[PATCH 2/3] Bluetooth: btmrvl_sdio: Implement prevent_wake

2020-06-10 Thread Abhishek Pandit-Subedi
Use the parent device's power/wakeup to control whether we support remote wake. If remote wakeup is disabled, Bluetooth will not enable scanning for incoming connections. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Douglas Anderson --- drivers/bluetooth/btmrvl_main.c | 9 + 1

[PATCH] 9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work

2020-06-10 Thread Wang Hai
p9_read_work and p9_fd_cancelled may be called concurrently. Before list_del(>rreq->req_list) in p9_read_work is called, the req->req_list may have been deleted in p9_fd_cancelled. We can fix it by setting req->status to REQ_STATUS_FLSHD after list_del(>req_list) in p9_fd_cancelled. Before

[PATCH 0/3] Bluetooth: btmrvl_sdio: Refactor remote wakeup support

2020-06-10 Thread Abhishek Pandit-Subedi
Hi linux-bluetooth, This patch series is refactoring the btmrvl driver to add better support for controlling remote wakeup during suspend. Previously, the hci device was getting created as /sys/devices/virtual/bluetooth/hci0 and there wasn't a way to control wakeup for the device from

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

2020-06-10 Thread Xiongfeng Wang
Hi Ionela, Thanks for your reply ! On 2020/6/10 17:40, Ionela Voinescu wrote: > Hi guys, > > Sorry for showing up late to the party, I was on holiday last week. > > On Thursday 04 Jun 2020 at 13:58:22 (+0100), Sudeep Holla wrote: >> On Thu, Jun 04, 2020 at 12:42:06PM +0200, Rafael J. Wysocki

[PATCH] vfs: don't unnecessarily clone write access for writable fds

2020-06-10 Thread Eric Biggers
From: Eric Biggers There's no need for mnt_want_write_file() to clone a write reference to the mount when the file is already open for writing, provided that mnt_drop_write_file() is changed to conditionally drop the reference. We seem to have ended up in the current situation because

Re: [git pull] uaccess i915

2020-06-10 Thread pr-tracker-bot
The pull request you sent on Wed, 10 Jun 2020 21:28:37 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git uaccess.i915 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3a8557e1aed0043d526f304a1f500108c8976b78 Thank you! -- Deet-doot-dot, I am a bot.

Re: [git pull] vfs misc

2020-06-10 Thread pr-tracker-bot
The pull request you sent on Wed, 10 Jun 2020 21:30:19 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4dbb29fe9dae033a375f231da9cc27aaa09d2580 Thank you! -- Deet-doot-dot, I am a bot.

  1   2   3   4   5   6   7   8   9   10   >