Re: Does uaccess_kernel() work for detecting kernel thread?

2021-01-04 Thread Christoph Hellwig
On Tue, Dec 22, 2020 at 11:33:58AM -0600, Eric W. Biederman wrote: > I do wonder though if perhaps we should create a is_user_cred helper to > detect the difference between the creds of kernel threads and the thread > of ordinary userspace. Which would handle io_uring that copy creds > around

Re: [PATCH] ubifs: Fix memleak in ubifs_init_authentication

2021-01-04 Thread Zhihao Cheng
在 2021/1/5 14:03, Dinghao Liu 写道: When crypto_shash_digestsize() fails, c->hmac_tfm has not been freed before returning, which leads to memleak. Fixes: 49525e5eecca5 ("ubifs: Add helper functions for authentication support") Signed-off-by: Dinghao Liu Reviewed-by: Zhihao Cheng ---

Re: [PATCH] iommu: check for the deferred attach when attaching a device

2021-01-04 Thread lijiang
在 2021年01月05日 11:55, lijiang 写道: > Hi, > > Also add Joerg to cc list. > Also add more people to cc list, Jerry Snitselaar and Tom Lendacky. Thanks. > Thanks. > Lianbo > 在 2020年12月26日 13:39, Lianbo Jiang 写道: >> Currently, because domain attach allows to be deferred from iommu >> driver to

[PATCH] drm/amdgpu:fix IH overflow on Tonga

2021-01-04 Thread Defang Bo
Similar to commit ("drm/amdgpu: fix IH overflow on Vega10 v2"). When an ring buffer overflow happens the appropriate bit is set in the WPTR register which is also written back to memory. But clearing the bit in the WPTR doesn't trigger another memory writeback. So what can happen is that we end

Re: [PATCH RESEND] ia64: remove duplicate entries in generic_defconfig

2021-01-04 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: uninitialized pmem struct pages

2021-01-04 Thread Michal Hocko
On Mon 04-01-21 21:17:43, Dan Williams wrote: > On Mon, Jan 4, 2021 at 2:45 AM David Hildenbrand wrote: [...] > > I believe Dan mentioned somewhere that he wants to see a real instance > > of this producing a BUG before actually moving forward with a fix. I > > might be wrong. > > I think I'm

Re: [RFC PATCH V3 1/1] block: reject I/O for same fd if block size changed

2021-01-04 Thread Christoph Hellwig
On Tue, Jan 05, 2021 at 10:04:56AM +0900, Minwoo Im wrote: > It was a point that I really would like to ask by RFC whether we can > have backpointer to the gendisk from the request_queue. And I'd like to > have it to simplify this routine and for future usages also. I think it is the right thing

Re: [PATCH] fs: Fix freeze_bdev()/thaw_bdev() accounting of bd_fsfreeze_sb

2021-01-04 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH v3 1/4] mm: rename memmap_init() and memmap_init_zone()

2021-01-04 Thread Baoquan He
The current memmap_init_zone() only handles memory region inside one zone, actually memmap_init() does the memmap init of one zone. So rename both of them accordingly. And also rename the function parameter 'range_start_pfn' and local variable 'range_end_pfn' of memmap_init() to

[PATCH v3 4/4] mm: remove unneeded local variable in free_area_init_core

2021-01-04 Thread Baoquan He
Local variable 'zone_start_pfn' is not needed since there's only one call site in free_area_init_core(). Let's remove it and pass zone->zone_start_pfn directly to init_currently_empty_zone(). Signed-off-by: Baoquan He Reviewed-by: Mike Rapoport --- mm/page_alloc.c | 3 +-- 1 file changed, 1

[PATCH v3 2/4] mm: simplify parater of function memmap_init_zone()

2021-01-04 Thread Baoquan He
As David suggested, simply passing 'struct zone *zone' is enough. We can get all needed information from 'struct zone*' easily. Suggested-by: David Hildenbrand Signed-off-by: Baoquan He Reviewed-by: Mike Rapoport --- arch/ia64/include/asm/pgtable.h | 3 +-- arch/ia64/mm/init.c |

[PATCH v3 3/4] mm: simplify parameter of setup_usemap()

2021-01-04 Thread Baoquan He
Parameter 'zone' has got needed information, let's remove other unnecessary parameters. Signed-off-by: Baoquan He Reviewed-by: Mike Rapoport --- mm/page_alloc.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index

[PATCH v3 0/4] mm: clean up names and parameters of memmap_init_xxxx functions

2021-01-04 Thread Baoquan He
This patchset is correcting inappropriate function names of memmap_init_xxx, and simplify parameters of functions in the code flow when I tried to fix a regression bug in memmap defer init. These are taken from the v2 patchset, the bug fixing patch has bee sent alone and merged. So send the rest

Re: uninitialized pmem struct pages

2021-01-04 Thread Michal Hocko
On Mon 04-01-21 17:30:48, David Hildenbrand wrote: > >> Let's assume this is indeed a reserved pfn in the altmap. What's the > >> actual address of the memmap? > > > > Not sure what exactly you are asking for but crash says > > crash> kmem -p 606 > > PAGE PHYSICAL MAPPING

Re: [PATCH v5 3/4] spmi: mediatek: Add support for MT6873/8192

2021-01-04 Thread Nicolas Boichat
On Wed, Dec 23, 2020 at 10:45 AM Hsin-Hsiung Wang wrote: > > Add spmi support for MT6873/8192. > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/spmi/Kconfig | 9 + > drivers/spmi/Makefile| 1 + > drivers/spmi/spmi-mtk-pmif.c | 504 +++ > 3

Re: uninitialized pmem struct pages

2021-01-04 Thread Michal Hocko
On Mon 04-01-21 21:33:06, Dan Williams wrote: > On Mon, Jan 4, 2021 at 7:59 AM Michal Hocko wrote: [...] > > Not sure what exactly you are asking for but crash says > > crash> kmem -p 606 > > PAGE PHYSICAL MAPPING INDEX CNT FLAGS > > f8c600181800 606

Re: [PATCH mips-next 2/4] MIPS: vmlinux.lds.S: add ".rel.dyn" to DISCARDS

2021-01-04 Thread Fāng-ruì Sòng
On Mon, Jan 4, 2021 at 4:21 AM Alexander Lobakin wrote: > > GCC somehow manages to place some of the symbols from main.c into > .rel.dyn section: > > mips-alpine-linux-musl-ld: warning: orphan section `.rel.dyn' > from `init/main.o' being placed in section `.rel.dyn' > > I couldn't catch up the

[PATCH] drm/amdgpu:fix IH overflow on Cz

2021-01-04 Thread Defang Bo
Similar to commit ("drm/amdgpu: fix IH overflow on Vega10 v2") When an ring buffer overflow happens the appropriate bit is set in the WPTR register which is also written back to memory. But clearing the bit in the WPTR doesn't trigger another memory writeback. So what can happen is that we end up

Re: [PATCH 2/2] spi: rpc-if: Remove CONFIG_PM_SLEEP ifdefery

2021-01-04 Thread Geert Uytterhoeven
Hi Pavel, On Tue, Jan 5, 2021 at 12:40 AM Pavel Machek wrote: > > > > > .name = "rpc-if-spi", > > > > > - .pm = DEV_PM_OPS, > > > > > + .pm = _spi_pm_ops, > > > > > > You're aware rpcif_spi_pm_ops is now always referenced and thus emitted, >

Re: [PATCH RFC v4 1/1] scsi: ufs: Fix ufs power down/on specs violation

2021-01-04 Thread Adrian Hunter
On 5/01/21 9:28 am, Can Guo wrote: > On 2021-01-05 15:16, Adrian Hunter wrote: >> On 4/01/21 8:55 pm, Bjorn Andersson wrote: >>> On Mon 04 Jan 03:15 CST 2021, Adrian Hunter wrote: >>> On 22/12/20 3:49 pm, Ziqi Chen wrote: > As per specs, e.g, JESD220E chapter 7.2, while powering >

Re: [External] Re: [PATCH 4/6] mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page

2021-01-04 Thread 堀口 直也
On Tue, Jan 05, 2021 at 03:10:35PM +0800, Muchun Song wrote: > On Tue, Jan 5, 2021 at 2:38 PM HORIGUCHI NAOYA(堀口 直也) > wrote: > > > > On Mon, Jan 04, 2021 at 02:58:41PM +0800, Muchun Song wrote: > > > When dissolve_free_huge_page() races with __free_huge_page(), we can > > > do a retry. Because

kerneldoc warnings since commit 538fc2ee870a3 ("rcu: Introduce kfree_rcu() single-argument macro")

2021-01-04 Thread Lukas Bulwahn
Dear Uladzislau, in commit 538fc2ee870a3 ("rcu: Introduce kfree_rcu() single-argument macro"), you have refactored the kfree_rcu macro. Since then, make htmldocs warns: ./include/linux/rcupdate.h:882: warning: Excess function parameter 'ptr' description in 'kfree_rcu'

Re: [PATCH] mm/page_alloc: remove the static for local variable node_order

2021-01-04 Thread Michal Hocko
On Mon 04-01-21 15:23:57, Andrew Morton wrote: > On Wed, 30 Dec 2020 12:42:33 + Matthew Wilcox wrote: > > > On Wed, Dec 30, 2020 at 07:40:14PM +0800, Hui Su wrote: > > > local variable node_order do not need the static here. > > > > It bloody well does. It can be up to 2^10 entries on x86

Re: [PATCH RFC v4 1/1] scsi: ufs: Fix ufs power down/on specs violation

2021-01-04 Thread Can Guo
On 2021-01-05 15:16, Adrian Hunter wrote: On 4/01/21 8:55 pm, Bjorn Andersson wrote: On Mon 04 Jan 03:15 CST 2021, Adrian Hunter wrote: On 22/12/20 3:49 pm, Ziqi Chen wrote: As per specs, e.g, JESD220E chapter 7.2, while powering off/on the ufs device, RST_N signal and REF_CLK signal should

Re: Possible regression in cpuacct.stats system time

2021-01-04 Thread Paolo Bonzini
On 04/01/21 22:24, Nitesh Narayan Lal wrote: Hi, Last year I reported an issue of "suspicious RCU usage" [1] with the debug kernel which was fixed with the patch:     87fa7f3e98 "x86/kvm: Move context tracking where it belongs" Recently I have come across a possible regression because of

Re: i2c: mediatek: Fix apdma and i2c hand-shake timeout

2021-01-04 Thread Qii Wang
On Mon, 2021-01-04 at 19:32 +0100, Wolfram Sang wrote: > On Mon, Jan 04, 2021 at 07:29:59PM +0100, Wolfram Sang wrote: > > On Thu, Dec 24, 2020 at 08:26:07PM +0800, qii.w...@mediatek.com wrote: > > > From: Qii Wang > > > > > > With the apdma remove hand-shake signal, it requirs special > > >

Re: [PATCH] tee: optee: replace might_sleep with cond_resched

2021-01-04 Thread Jens Wiklander
On Tue, Jan 5, 2021 at 6:42 AM Sumit Garg wrote: > > On Fri, 25 Sept 2020 at 12:29, Jens Wiklander via OP-TEE > wrote: > > > > On Fri, Sep 18, 2020 at 7:45 PM Rouven Czerwinski > > wrote: > > > > > > On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force > > > rescheduling,

[PATCH v3 1/6] iio: hid-sensor-accel-3d: Add timestamp channel for gravity sensor

2021-01-04 Thread Ye Xiang
The accel_3d sensor already has a timestamp channel, this patch just replicate that for gravity sensor. Signed-off-by: Ye Xiang --- drivers/iio/accel/hid-sensor-accel-3d.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/iio/accel/hid-sensor-accel-3d.c

[PATCH v3 6/6] iio: hid-sensor-rotation: Add timestamp channel

2021-01-04 Thread Ye Xiang
Each sample has a timestamp field with this change. This timestamp may be from the sensor hub when present or local kernel timestamp. And the unit of timestamp is nanosecond. Signed-off-by: Ye Xiang --- drivers/iio/orientation/hid-sensor-rotation.c | 46 +++ 1 file changed, 26

[PATCH v3 2/6] iio: hid-sensor-gyro-3d: Add timestamp channel

2021-01-04 Thread Ye Xiang
Each sample has a timestamp field with this change. This timestamp may be from the sensor hub when present or local kernel timestamp. And the unit of timestamp is nanosecond. Signed-off-by: Ye Xiang --- drivers/iio/gyro/hid-sensor-gyro-3d.c | 40 --- 1 file changed, 24

[PATCH v3 3/6] iio: hid-sensor-als: Add timestamp channel

2021-01-04 Thread Ye Xiang
Each sample has a timestamp field with this change. This timestamp may be from the sensor hub when present or local kernel timestamp. And the unit of timestamp is nanosecond. Signed-off-by: Ye Xiang --- drivers/iio/light/hid-sensor-als.c | 39 ++ 1 file changed, 23

[PATCH v3 5/6] iio: hid-sensor-incl-3d: Add timestamp channel

2021-01-04 Thread Ye Xiang
Each sample has a timestamp field with this change. This timestamp may be from the sensor hub when present or local kernel timestamp. And the unit of timestamp is nanosecond. Signed-off-by: Ye Xiang --- drivers/iio/orientation/hid-sensor-incl-3d.c | 43 1 file changed, 27

[PATCH v3 0/6] add timestamp channel for hid-sensors

2021-01-04 Thread Ye Xiang
This patch series add a timestamp channel for hid sensors, including gravity sensor, gyro sensor, magnetometer sensor, ambient light sensor, inclinometer sensor, and rotation sensor. With this patch series, user can get the time when sensor yield a sample. --- v3: - hid-sensor-magn-3d: fix

[PATCH v3 4/6] iio: hid-sensor-magn-3d: Add timestamp channel

2021-01-04 Thread Ye Xiang
Each sample has a timestamp field with this change. This timestamp may be from the sensor hub when present or local kernel timestamp. And the unit of timestamp is nanosecond. Signed-off-by: Ye Xiang --- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 48 --- 1 file changed, 30

Re: [PATCH RFC v4 1/1] scsi: ufs: Fix ufs power down/on specs violation

2021-01-04 Thread Adrian Hunter
On 4/01/21 8:55 pm, Bjorn Andersson wrote: > On Mon 04 Jan 03:15 CST 2021, Adrian Hunter wrote: > >> On 22/12/20 3:49 pm, Ziqi Chen wrote: >>> As per specs, e.g, JESD220E chapter 7.2, while powering >>> off/on the ufs device, RST_N signal and REF_CLK signal >>> should be between VSS(Ground) and

Re: [PATCH] [v2]net:ppp: remove disc_data_lock in ppp line discipline

2021-01-04 Thread Gaoyan
Hi Greg KH: On Fri, 1 Jan 2021 09:18:48 +0100, Greg KH wrote: >On Fri, Jan 01, 2021 at 11:37:18AM +0800, Gao Yan wrote: >> In tty layer, it provides tty->ldisc_sem to protect all tty_ldisc_ops >> including ppp_sync_ldisc. So I think tty->ldisc_sem can also protect >> tty->disc_data, and the

Re: [RFC PATCH v3 4/5] usb: xhci-mtk: add support runtime pm

2021-01-04 Thread Chunfeng Yun
Hi Ikjoon, I try to rebuild the code flow, and want to apply the framework from wakeirq.c On Tue, 2020-12-29 at 15:38 +0800, Ikjoon Jang wrote: > On Tue, Dec 22, 2020 at 5:35 PM Chunfeng Yun > wrote: > > > > From: CK Hu > > > > add support runtime pm feature > > > > Signed-off-by: Zhanyong

Re: [PATCH 3/3] overlayfs: Report writeback errors on upper

2021-01-04 Thread Amir Goldstein
> > > > What I would rather see is: > > - Non-volatile: first syncfs in every container gets an error (nice to have) > > I am not sure why are we making this behavior per container. This should > be no different from current semantics we have for syncfs() on regular > filesystem. And that will

Re: [External] Re: [PATCH 4/6] mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page

2021-01-04 Thread Muchun Song
On Tue, Jan 5, 2021 at 2:38 PM HORIGUCHI NAOYA(堀口 直也) wrote: > > On Mon, Jan 04, 2021 at 02:58:41PM +0800, Muchun Song wrote: > > When dissolve_free_huge_page() races with __free_huge_page(), we can > > do a retry. Because the race window is small. > > > > Signed-off-by: Muchun Song > > --- > >

[PATCH v2] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Meng . Li
From: Meng Li There will be memory leak if driver probe failed. Trace as below: backtrace: [<2415258f>] kmemleak_alloc+0x3c/0x50 [] __kmalloc+0x208/0x530 [<48bc7b3a>] of_dma_get_range+0xe4/0x1b0 [<41e39065>]

[PATCH v2] fs/buffer.c: Revoke LRU when trying to drop buffers

2021-01-04 Thread Chris Goldsworthy
From: Laura Abbott When a buffer is added to the LRU list, a reference is taken which is not dropped until the buffer is evicted from the LRU list. This is the correct behavior, however this LRU reference will prevent the buffer from being dropped. This means that the buffer can't actually be

[PATCH v2] Resolve LRU page-pinning issue for file-backed pages

2021-01-04 Thread Chris Goldsworthy
It is possible for file-backed pages to end up in a contiguous memory area (CMA), such that the relevant page must be migrated using the .migratepage() callback when its backing physical memory is selected for use in an CMA allocation (through cma_alloc()). However, if a set of address space

RE: [PATCH v2] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Li, Meng
> -Original Message- > From: Greg KH > Sent: Tuesday, January 5, 2021 2:01 PM > To: Li, Meng > Cc: linux-kernel@vger.kernel.org; raf...@kernel.org; > james.quin...@broadcom.com; Hao, Kexin > Subject: Re: [PATCH v2] drivers core: Free dma_range_map when driver > probe failed > > On

[PATCH] selftests/ftrace: Disable multiple_kprobes test on powerpc

2021-01-04 Thread Naveen N. Rao
Not all symbols are blacklisted on powerpc. Disable multiple_kprobes test until that is sorted, so that rest of ftrace and kprobe selftests can be run. Signed-off-by: Naveen N. Rao --- .../testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v4 15/15] ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver

2021-01-04 Thread Kieran Bingham
Hi Dan, On 04/01/2021 22:02, Daniel Scally wrote: > On 04/01/2021 13:35, Kieran Bingham wrote: >>> +/* >>> + * Extend this array with ACPI Hardware IDs of devices known to be >>> working >>> + * plus the number of link-frequencies expected by their drivers, >>> along

Re: [PATCH 1/2] Documentation: devicetree: Add new compatible string for eeprom microchip 93LC46B

2021-01-04 Thread Aswath Govindraju
Hi Rob, On 01/01/21 12:47 am, Rob Herring wrote: > On Fri, Dec 18, 2020 at 07:38:10PM +0530, Aswath Govindraju wrote: >> Add a new compatible string for eeprom microchip 93LC46B in eeprom-93xx46 >> dt-binding file as it belongs to the 93xx46 family of devices. >> >> Signed-off-by: Aswath

Re: [PATCH 5.10 637/717] drm/amd/display: Fix memory leaks in S3 resume

2021-01-04 Thread Greg Kroah-Hartman
On Mon, Jan 04, 2021 at 08:04:08PM +0100, Andre Tomt wrote: > On 28.12.2020 13:50, Greg Kroah-Hartman wrote: > > From: Stylon Wang > > > > commit a135a1b4c4db1f3b8cbed9676a40ede39feb3362 upstream. > > > > EDID parsing in S3 resume pushes new display modes > > to probed_modes list but doesn't

Re: [Linaro-mm-sig] [PATCH] dmabuf: fix use-after-free of dmabuf's file->f_inode

2021-01-04 Thread Sumit Semwal
Hi Charan, On Mon, 4 Jan 2021 at 17:22, Christian König wrote: > > Am 04.01.21 um 12:36 schrieb Charan Teja Reddy: > > It is observed 'use-after-free' on the dmabuf's file->f_inode with the > > race between closing the dmabuf file and reading the dmabuf's debug > > info. > > > > Consider the

Re: [PATCH v3] ovl: use a dedicated semaphore for dir upperfile caching

2021-01-04 Thread Amir Goldstein
On Tue, Jan 5, 2021 at 2:36 AM Icenowy Zheng wrote: > > The function ovl_dir_real_file() currently uses the semaphore of the > inode to synchronize write to the upperfile cache field. Although the inode lock is a rw_sem it is referred to as the "inode lock" and you also left semaphore in the

Re: [PATCH 4/6] mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page

2021-01-04 Thread 堀口 直也
On Mon, Jan 04, 2021 at 02:58:41PM +0800, Muchun Song wrote: > When dissolve_free_huge_page() races with __free_huge_page(), we can > do a retry. Because the race window is small. > > Signed-off-by: Muchun Song > --- > mm/hugetlb.c | 16 +++- > 1 file changed, 11 insertions(+), 5

kernel BUG at fs/ext4/ext4.h:LINE!

2021-01-04 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f6e1ea19 Merge tag 'ceph-for-5.11-rc2' of git://github.com.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1364b1a350 kernel config: https://syzkaller.appspot.com/x/.config?x=2455d075a1c4afa8

Re: PROBLEM: Firmware loader fallback mechanism no longer works with sendfile

2021-01-04 Thread Greg KH
On Mon, Jan 04, 2021 at 02:43:45PM -0800, Siddharth Gupta wrote: > Hi all, > > With the introduction of the filesystem change "fs: don't allow splice > read/write without explicit ops"[1] the fallback mechanism of the firmware > loader[2] no longer works when using sendfile[3] from the userspace.

Re: [PATCH v8, 5/6] drm/mediatek: add RDMA fifo size error handle

2021-01-04 Thread Yongqiang Niu
On Mon, 2020-12-14 at 22:54 +0800, Chun-Kuang Hu wrote: > Hi, Yongqiang: > > Yongqiang Niu 於 2020年12月11日 週五 上午8:45寫道: > > > > On Thu, 2020-12-10 at 23:50 +0800, Chun-Kuang Hu wrote: > > > Hi, Yongqiang: > > > > > > Yongqiang Niu 於 2020年12月10日 週四 下午5:08寫道: > > > > > > > > This patch add RDMA

Re: [PATCH 2/2] ALSA: hda/tegra: fix tegra-hda on tegra30 soc

2021-01-04 Thread Sameer Pujar
On 12/25/2020 6:50 AM, Peter Geis wrote: External email: Use caution opening links or attachments Currently hda on tegra30 fails to open a stream with an input/output error. This is similar to the issue referenced in [1]. For example: speaker-test -Dhw:0,3 -c 2 speaker-test 1.2.2

Re: [External] Re: [PATCH 0/2] IdeaPad platform profile support

2021-01-04 Thread Jiaxun Yang
在 2021/1/5 上午5:58, Mark Pearson 写道: On 04/01/2021 15:58, Hans de Goede wrote: Hi, On 1/4/21 9:33 PM, Rafael J. Wysocki wrote: On Mon, Jan 4, 2021 at 3:36 PM Hans de Goede wrote: Hi, On 1/1/21 1:56 PM, Jiaxun Yang wrote: Tested on Lenovo Yoga-14SARE Chinese Edition. [...] Just for my

[PATCH 1/3] crypto: hisilicon - add ZIP device using mode parameter

2021-01-04 Thread Kai Ye
Add 'uacce_mode' parameter for ZIP, which can be set as 0(default) or 1. '0' means ZIP is only registered to kernel crypto, and '1' means it's registered to both kernel crypto and UACCE. Signed-off-by: Kai Ye Reviewed-by: Zhou Wang Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/qm.c

Re: linux-next: build warnings after merge of the net-next tree

2021-01-04 Thread Stephen Rothwell
Hi all, On Mon, 21 Dec 2020 12:28:39 +1100 Stephen Rothwell wrote: > > On Mon, 14 Dec 2020 20:10:25 +1100 Stephen Rothwell > wrote: > > > > After merging the net-next tree, today's linux-next build (htmldocs) > > produced these warnings: > > > > include/net/cfg80211.h:1759: warning: Cannot

[PATCH 2/3] crypto: hisilicon/hpre - register HPRE device to uacce

2021-01-04 Thread Kai Ye
Register HPRE device to uacce framework for user space. Signed-off-by: Kai Ye Reviewed-by: Zhou Wang Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/hpre/hpre_main.c | 54 +++ 1 file changed, 54 insertions(+) diff --git

[PATCH 0/3] crypto: hisilicon - register device to uacce

2021-01-04 Thread Kai Ye
1. Add parameter of UACCE mode selection for ZIP. 2. Register SEC and HPRE devices to UACCE framework for user space drivers. Kai Ye (3): crypto: hisilicon - add ZIP device using mode parameter crypto: hisilicon/hpre - register HPRE device to uacce crypto: hisilicon/sec - register SEC

[PATCH 3/3] crypto: hisilicon/sec - register SEC device to uacce

2021-01-04 Thread Kai Ye
Register SEC device to uacce framework for user space. Signed-off-by: Kai Ye Reviewed-by: Zhou Wang Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/sec2/sec_main.c | 39 +++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v3 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2021-01-04 Thread Vinod Koul
On 04-01-21, 12:37, Bjorn Andersson wrote: > > > +properties: > > > + compatible: > > > +const: qcom,sm8350-pinctrl > > > > If this block is called TLMM, then I'd expect that to be in the > > compatible string. But I guess this is consistent with the others. > > > > This is my mistake 7

[PATCH] crypto: hisilicon/qm - SVA bugfixed on Kunpeng920

2021-01-04 Thread Kai Ye
Kunpeng920 SEC/HPRE/ZIP cannot support running user space SVA and kernel Crypto at the same time. Therefore, the algorithms should not be registered to Crypto as user space SVA is enabled. Signed-off-by: Kai Ye Reviewed-by: Zaibo Xu Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/qm.c | 6

Re: [External] Re: [PATCH 3/6] mm: hugetlb: fix a race between freeing and dissolving the page

2021-01-04 Thread Muchun Song
On Tue, Jan 5, 2021 at 8:02 AM Mike Kravetz wrote: > > On 1/3/21 10:58 PM, Muchun Song wrote: > > There is a race condition between __free_huge_page() > > and dissolve_free_huge_page(). > > > > CPU0: CPU1: > > > > // page_count(page) == 1 > > put_page(page) > >

Re: [PATCH 5.4 00/47] 5.4.87-rc1 review

2021-01-04 Thread Daniel Díaz
Hello! On 1/4/21 9:56 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.87 release. There are 47 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. Responses should

Re: [PATCH 5.10 00/63] 5.10.5-rc1 review

2021-01-04 Thread Daniel Díaz
Hello! On 1/4/21 9:56 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.5 release. There are 63 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. Responses should

Re: [f2fs-dev] [PATCH v2] f2fs: fix null page reference in redirty_blocks

2021-01-04 Thread Chao Yu
On 2021/1/5 12:16, Daeho Jeong wrote: From: Daeho Jeong Fixed null page reference when find_lock_page() fails in redirty_blocks(). Signed-off-by: Daeho Jeong Reported-by: Colin Ian King Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE") Reviewed-by:

Re: [PATCH 1/2] rtc: pcf2127: Disable Power-On Reset Override

2021-01-04 Thread kernel test robot
Hi Philipp, Thank you for the patch! Yet something to improve: [auto build test ERROR on abelloni/rtc-next] [also build test ERROR on v5.11-rc2 next-20210104] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[PATCH] ubifs: Fix memleak in ubifs_init_authentication

2021-01-04 Thread Dinghao Liu
When crypto_shash_digestsize() fails, c->hmac_tfm has not been freed before returning, which leads to memleak. Fixes: 49525e5eecca5 ("ubifs: Add helper functions for authentication support") Signed-off-by: Dinghao Liu --- fs/ubifs/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v3 -next] staging: vc04_services: use DEFINE_MUTEX() for mutex lock

2021-01-04 Thread Greg KH
On Tue, Jan 05, 2021 at 10:05:47AM +0800, Zheng Yongjun wrote: > mutex lock can be initialized automatically with DEFINE_MUTEX() > rather than explicitly calling mutex_init(). > > Signed-off-by: Zheng Yongjun > --- > .../vc04_services/interface/vchiq_arm/vchiq_connected.c | 6 ++ > 1

Re: [PATCH v2] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Greg KH
On Tue, Jan 05, 2021 at 01:41:48PM +0800, meng...@windriver.com wrote: > From: Limeng This does not match your signed-off-by line :(

Re: [PATCH v4] proc: Allow pid_revalidate() during LOOKUP_RCU

2021-01-04 Thread Al Viro
On Mon, Jan 04, 2021 at 03:21:22PM -0800, Stephen Brennan wrote: > The pid_revalidate() function drops from RCU into REF lookup mode. When > many threads are resolving paths within /proc in parallel, this can > result in heavy spinlock contention on d_lockref as each thread tries to > grab a

Re: [PATCH -next] tpm: Use kzalloc for allocating only one thing

2021-01-04 Thread Jarkko Sakkinen
On Tue, Dec 29, 2020 at 08:23:49AM -0800, James Bottomley wrote: > On Tue, 2020-12-29 at 21:51 +0800, Zheng Yongjun wrote: > > Use kzalloc rather than kcalloc(1,...) > > > > The semantic patch that makes this change is as follows: > > (http://coccinelle.lip6.fr/) > > What's the reason for

RE: [PATCH v3 2/3] iommu/vt-d: Track device aux-attach with subdevice_domain_info

2021-01-04 Thread Liu, Yi L
Hi Baolu, > From: Lu Baolu > Sent: Tuesday, December 29, 2020 4:38 PM > > Hi Yi, > > On 2020/12/29 11:25, Liu Yi L wrote: > > In the existing code, loop all devices attached to a domain does not > > include sub-devices attached via iommu_aux_attach_device(). > > > > This was found by when I'm

Re: [RFC v3 1/2] vfio/platform: add support for msi

2021-01-04 Thread Vikas Gupta
On Tue, Dec 22, 2020 at 10:57 PM Auger Eric wrote: > > Hi Vikas, > > On 12/14/20 6:45 PM, Vikas Gupta wrote: > > MSI support for platform devices.The MSI block > > is added as an extended IRQ which exports caps > > VFIO_IRQ_INFO_CAP_TYPE and VFIO_IRQ_INFO_CAP_MSI_DESCS. > > > > Signed-off-by:

Re: [PATCH] net: qrtr: fix null-ptr-deref in qrtr_ns_remove

2021-01-04 Thread Qinglang Miao
I sent a v2 on this one because of the redundant braces in qrtr_proto_init, sorry for the noise. 在 2021/1/5 10:40, Qinglang Miao 写道: A null-ptr-deref bug is reported by Hulk Robot like this: -- KASAN: null-ptr-deref in range [0x0128-0x012f] Call Trace:

[PATCH v2] net: qrtr: fix null-ptr-deref in qrtr_ns_remove

2021-01-04 Thread Qinglang Miao
A null-ptr-deref bug is reported by Hulk Robot like this: -- KASAN: null-ptr-deref in range [0x0128-0x012f] Call Trace: qrtr_ns_remove+0x22/0x40 [ns] qrtr_proto_fini+0xa/0x31 [qrtr] __x64_sys_delete_module+0x337/0x4e0 do_syscall_64+0x34/0x80

RE: [PATCH v3 3/3] iommu/vt-d: Fix ineffective devTLB invalidation for subdevices

2021-01-04 Thread Liu, Yi L
Hi Baolu, > From: Lu Baolu > Sent: Tuesday, December 29, 2020 4:42 PM > > Hi Yi, > > On 2020/12/29 11:25, Liu Yi L wrote: > > iommu_flush_dev_iotlb() is called to invalidate caches on device. It only > > loops the devices which are full-attached to the domain. For sub-devices, > > this is

Re: [PATCH] arm64: add pmem module for kernel update

2021-01-04 Thread Dan Williams
Hi Zhuling, On Wed, Dec 30, 2020 at 10:18 PM Zhuling wrote: > > Category: feature > Bugzilla: NA > CVE: NA These tags can be dropped. > > Use reserved memory to create a pmem device to store the > processes information that dumped before kernel update. > When you want to use this feature you

[PATCH v2] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Meng . Li
From: Limeng There will be memory leak if driver probe failed. Trace as below: backtrace: [<2415258f>] kmemleak_alloc+0x3c/0x50 [] __kmalloc+0x208/0x530 [<48bc7b3a>] of_dma_get_range+0xe4/0x1b0 [<41e39065>]

Re: [PATCH] tee: optee: replace might_sleep with cond_resched

2021-01-04 Thread Sumit Garg
On Fri, 25 Sept 2020 at 12:29, Jens Wiklander via OP-TEE wrote: > > On Fri, Sep 18, 2020 at 7:45 PM Rouven Czerwinski > wrote: > > > > On Kernels with CONFIG_PREEMPT_NONE might_sleep() is not enough to force > > rescheduling, replace it with a resched check and cond_resched. Fixes > > the

[PATCH v2 2/2] arm64: dts: mt8192: Add node for the Mali GPU

2021-01-04 Thread Nick Fan
Add a basic GPU node for mt8192. Signed-off-by: Nick Fan --- This patch depends on Mediatek power and regulator support. Listed as following. [1]https://lore.kernel.org/patchwork/patch/1336293/ [2]https://patchwork.kernel.org/project/linux-mediatek/list/?series=374013

Re: [PATCH 31/31] PM / devfreq: convert to devm_pm_opp_register_notifier and remove unused API

2021-01-04 Thread Chanwoo Choi
On Sun, Jan 3, 2021 at 12:59 PM Yangtao Li wrote: > > Use devm_pm_opp_* API to simplify code. > > Signed-off-by: Yangtao Li > --- > drivers/devfreq/devfreq.c | 66 +-- > include/linux/devfreq.h | 23 -- > 2 files changed, 1 insertion(+), 88

[PATCH v2 1/2] dt-bindings: Add DT schema for Arm Mali Valhall GPU

2021-01-04 Thread Nick Fan
Add devicetree schema for Arm Mali Valhall GPU Define a compatible string for the Mali Valhall GPU for Mediatek's SoC platform. Signed-off-by: Nick Fan --- .../bindings/gpu/arm,mali-valhall.yaml| 252 ++ 1 file changed, 252 insertions(+) create mode 100644

Re: uninitialized pmem struct pages

2021-01-04 Thread Dan Williams
On Mon, Jan 4, 2021 at 7:59 AM Michal Hocko wrote: > > On Mon 04-01-21 16:43:49, David Hildenbrand wrote: > > On 04.01.21 16:33, Michal Hocko wrote: > > > On Mon 04-01-21 16:15:23, David Hildenbrand wrote: > > >> On 04.01.21 16:10, Michal Hocko wrote: > > > [...] > > >> Do the physical addresses

Re: [PATCH v9 8/8] selinux: include a consumer of the new IMA critical data hook

2021-01-04 Thread Lakshmi Ramasubramanian
On 1/4/21 6:13 PM, Paul Moore wrote: On Mon, Jan 4, 2021 at 6:30 PM Lakshmi Ramasubramanian wrote: On 12/23/20 1:10 PM, Paul Moore wrote: Hi Paul, Hello. diff --git a/security/selinux/measure.c b/security/selinux/measure.c new file mode 100644 index ..b7e24358e11d --- /dev/null

INVESTMENT BITCOIN FARM

2021-01-04 Thread INVESTMENT BITCOIN FARM
GOOD NEWS TO YOU ALL !!! WE ARE HERE TO INTRODUCE BINARY TRADING TO YOU, A PLATFORM WHERE YOU INVEST A LITTLE AMOUNT OF MONEY AND EARN A FORTUNE (7 TIMES RETURN) IN LESS THAN 48 HOURS TO ALL YOU TRADERS THAT PRIORITIZE LOSING, WE CAN MAKE A FORTUNE AND HELP YOU GROW YOUR INVESTMENT. WITH OUR

[PATCH] [v2] iommu/intel: Fix memleak in intel_irq_remapping_alloc

2021-01-04 Thread Dinghao Liu
When irq_domain_get_irq_data() or irqd_cfg() fails at i == 0, data allocated by kzalloc() has not been freed before returning, which leads to memleak. Fixes: b106ee63abccb ("irq_remapping/vt-d: Enhance Intel IR driver to support hierarchical irqdomains") Signed-off-by: Dinghao Liu ---

Re: uninitialized pmem struct pages

2021-01-04 Thread Dan Williams
On Mon, Jan 4, 2021 at 2:45 AM David Hildenbrand wrote: > > On 04.01.21 11:03, Michal Hocko wrote: > > Hi, > > back in March [1] you have recommended 53cdc1cb29e8 > > ("drivers/base/memory.c: indicate all memory blocks as removable") to be > > backported to stable trees and that has led to a more

Re: [PATCH] dt-bindings: display: Use OF graph schema

2021-01-04 Thread Laurent Pinchart
Hi Rob, Thank you for the patch. On Mon, Jan 04, 2021 at 11:07:23AM -0700, Rob Herring wrote: > Now that we have a graph schema, rework the display related schemas to use > it. Mostly this is adding a reference to graph.yaml and dropping duplicate > parts from schemas. > > In panel-common.yaml,

Re: [PATCH v3] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-04 Thread Vineet Gupta
On 1/4/21 7:44 PM, Randy Dunlap wrote: > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in . > > ../fs/dax.c: In function 'copy_cow_page_dax': > ../fs/dax.c:702:2: error: implicit declaration of function

[GIT PULL] ARC updates for 5.11-rc3

2021-01-04 Thread Vineet Gupta
Hi Linus, Happy New Year. Sorry for the delayed merge window material - holidays got in the way. Things are quieter on upstreaming front as we are mostly focusing on ARCv3/ARC64 port. Please pull. Thx, -Vineet ---> The following changes since commit

Re: [PATCH v4 2/2] dt-bindings: media: Use graph and video-interfaces schemas

2021-01-04 Thread Laurent Pinchart
Hi Rob, Thank you for the patch. On Mon, Jan 04, 2021 at 09:58:08AM -0700, Rob Herring wrote: > Now that we have graph and video-interfaces schemas, rework the media > related schemas to use them. > > Cc: Maxime Ripard > Cc: Mauro Carvalho Chehab > Cc: Jacopo Mondi > Cc: Laurent Pinchart >

[PATCH] arm64: PCI: Enable SMC conduit

2021-01-04 Thread Jeremy Linton
Given that most arm64 platform's PCI implementations needs quirks to deal with problematic config accesses, this is a good place to apply a firmware abstraction. The ARM PCI SMMCCC spec details a standard SMC conduit designed to provide a simple PCI config accessor. This specification enhances the

[PATCH net,stable v3] net: cdc_ncm: correct overhead in delayed_ndp_size

2021-01-04 Thread Jouni Seppänen
From: Jouni K. Seppänen Aligning to tx_ndp_modulus is not sufficient because the next align call can be cdc_ncm_align_tail, which can add up to ctx->tx_modulus + ctx->tx_remainder - 1 bytes. This used to lead to occasional crashes on a Huawei 909s-120 LTE module as follows: - the condition

Re: [PATCH v3 3/3] media: i2c: Introduce a driver for the Techwell TW9900 decoder

2021-01-04 Thread kernel test robot
Hi Maxime, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on robh/for-next linus/master v5.11-rc2 next-20210104] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

回复: KASAN: use-after-free Read in service_outstanding_interrupt

2021-01-04 Thread Zhang, Qiang
发件人: Oliver Neukum 发送时间: 2021年1月5日 0:28 收件人: syzbot; andreyk...@google.com; gre...@linuxfoundation.org; gustavo...@kernel.org; ingras...@epigenesys.com; lee.jo...@linaro.org; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org;

Re: [PATCH] bcache: consider the fragmentation when update the writeback rate

2021-01-04 Thread Coly Li
On 1/5/21 11:44 AM, Dongdong Tao wrote: > Hey Coly, > > This is the second version of the patch, please allow me to explain a > bit for this patch: > > We accelerate the rate in 3 stages with different aggressiveness, the > first stage starts when dirty buckets percent reach above >

Re: [PATCH 30/31] PM / devfreq: exynos: convert to use devm_pm_opp_* API

2021-01-04 Thread Chanwoo Choi
On Sun, Jan 3, 2021 at 12:59 PM Yangtao Li wrote: > > Use devm_pm_opp_* API to simplify code, and remove opp_table > from exynos_bus. > > Signed-off-by: Yangtao Li > --- > drivers/devfreq/exynos-bus.c | 42 > 1 file changed, 9 insertions(+), 33 deletions(-)

RE: [PATCH] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Li, Meng
> -Original Message- > From: Jim Quinlan > Sent: Monday, January 4, 2021 11:56 PM > To: Jim Quinlan ; Li, Meng > ; open list > Cc: Greg Kroah-Hartman ; raf...@kernel.org; > Hao, Kexin ; Jim Quinlan > ; Christoph Hellwig > Subject: Re: [PATCH] drivers core: Free dma_range_map when

Re: mmotm 2021-01-04-16-56 uploaded (drivers/power/supply/max8997_charger.c)

2021-01-04 Thread Randy Dunlap
On 1/4/21 4:57 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2021-01-04-16-56 has been uploaded to > >https://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > https://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

  1   2   3   4   5   6   7   8   9   10   >