Re: [PATCH] checkpatch: Avoid missing typo suggestions

2020-06-03 Thread Maxim Uvarov
On Thu, 4 Jun 2020 at 03:39, Joe Perches wrote: > > On Wed, 2020-06-03 at 16:19 -0700, Kees Cook wrote: > > My codespell dictionary has a lot of capitalized words. For example: > > > > MSDOS->MS-DOS > > > > Since checkpatch uses case-insensitive matching, I get an undefined > > variable warning an

Re: [PATCH 1/1] nvme-fcloop: verify wwnn and wwpn format

2020-06-03 Thread Chaitanya Kulkarni
On 6/3/20 11:46 PM, Dongli Zhang wrote: > May I get feedback for this? > > For the first time I use fcloop, I set: > > # echo "wwnn=0x3,wwpn=0x1" > /sys/class/fcloop/ctl/add_target_port > > However, I would not be able to move forward if I use "0x3" or "0x1" for > nvme-fc > target or host furth

[PATCH] dt-bindings: input: Convert imx keypad to json-schema

2020-06-03 Thread Anson Huang
Convert the i.MX KEYPAD binding to DT schema format using json-schema Signed-off-by: Anson Huang --- .../devicetree/bindings/input/imx-keypad.txt | 53 - .../devicetree/bindings/input/imx-keypad.yaml | 89 ++ 2 files changed, 89 insertions(+), 53 deleti

Re: linux-next: fix ups for clashes between akpm and powerpc trees

2020-06-03 Thread Stephen Rothwell
Hi all, On Wed, 3 Jun 2020 20:26:55 +1000 Stephen Rothwell wrote: > > Some things turned up in the powerpc tree today that required some changes > to patches in the akpm tree and also the following fixup patch provided > (mostly) by Michael. I have applied this as a single patch today, but > par

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Herbert Xu
On Thu, Jun 04, 2020 at 02:44:16PM +0800, Zhangfei Gao wrote: > > I think it is fine. > 1. Currently the name size is 64, bigger enough. > Simply grep in driver name, 64 should be enough. > We can make it larger when there is a request. > 2. it does not matter what the name is, since it is just an

Re: [RFC 2/4] regulator: lp87565: dt: remove duplicated section

2020-06-03 Thread Lee Jones
On Thu, 04 Jun 2020, Lee Jones wrote: > On Wed, 03 Jun 2020, Luca Ceresoli wrote: > > > The "Required properties:" section is copied verbatim for each of the two > > supported chips. In preparation to add a new chip variant make it a common > > section and keep the two examples to differentiate b

Re: [RFC 2/4] regulator: lp87565: dt: remove duplicated section

2020-06-03 Thread Lee Jones
On Wed, 03 Jun 2020, Luca Ceresoli wrote: > The "Required properties:" section is copied verbatim for each of the two > supported chips. In preparation to add a new chip variant make it a common > section and keep the two examples to differentiate between the two chips. > > Signed-off-by: Luca Ce

Re: [PATCH 1/1] nvme-fcloop: verify wwnn and wwpn format

2020-06-03 Thread Dongli Zhang
May I get feedback for this? For the first time I use fcloop, I set: # echo "wwnn=0x3,wwpn=0x1" > /sys/class/fcloop/ctl/add_target_port However, I would not be able to move forward if I use "0x3" or "0x1" for nvme-fc target or host further. Instead, the address and port should be 0x0

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

2020-06-03 Thread Stephen Rothwell
Hi all, After merging the akpm tree, today's linux-next build (powerpc allyesconfig) failed like this: arch/powerpc/mm/ptdump/ptdump.c: In function 'walk_pagetables': arch/powerpc/mm/ptdump/ptdump.c:337:25: error: implicit declaration of function 'pgd_is_leaf'; did you mean 'p4d_is_leaf'? [-Wer

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-03 Thread Ira Weiny
> > > ... > > Starting syslogd: BUG: spinlock recursion on CPU#0, S01syslogd/139 > > lock: 0xf53ef350, .magic: dead4ead, .owner: S01syslogd/139, .owner_cpu: 0 > > CPU: 0 PID: 139 Comm: S01syslogd Not tainted 5.7.0-next-20200603 #1 > > [f0067d00 : > > do_

Re: [RFC 4/4] regulator: lp87565: add LP87524-Q1 variant

2020-06-03 Thread Lee Jones
On Wed, 03 Jun 2020, Luca Ceresoli wrote: > Add support for the LP87524B/J/P-Q1 Four 4-MHz Buck Converter. This is a > variant of the LP87565 having 4 single-phase outputs and up to 10 A of > total output current. > > Signed-off-by: Luca Ceresoli > --- > drivers/mfd/lp87565.c | 4 >

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Zhangfei Gao
On 2020/6/4 下午2:18, Herbert Xu wrote: On Thu, Jun 04, 2020 at 02:10:37PM +0800, Zhangfei Gao wrote: Should this even allow truncation? Perhaps it'd be better to fail in case of an overrun? I think we do not need consider overrun, since it at most copy size-1 bytes to dest. From the manual:

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-03 Thread Ira Weiny
> >>> Is there another test I need to run? > > >> > > >> This all petered out, but as I understand it, this patchset still might > > >> have issues on various architectures. > > >> > > >> Can folks please provide an update on t

Re: [PATCH] linux/bits.h: fix unsigned less than zero warnings

2020-06-03 Thread Andy Shevchenko
On Thu, Jun 4, 2020 at 1:03 AM Rikard Falkeborn wrote: > > When calling the GENMASK and GENMASK_ULL macros with zero lower bit and > an unsigned unknown high bit, some gcc versions warn due to the > comparisons of the high and low bit in GENMASK_INPUT_CHECK. > > To silence the warnings, cast the i

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

2020-06-03 Thread Steffen Klassert
On Wed, Jun 03, 2020 at 08:55:01PM -0600, David Ahern wrote: > On 6/3/20 7:26 PM, Stephen Rothwell wrote: > > > > And now the net-next tree has been merged into Linus' tree without this fix > > :-( > > > > I took a look earlier and I think it is fine. Some code was moved around > in ipsec-next

[PATCH v2] crypto: DRBG - always try to free Jitter RNG instance

2020-06-03 Thread Stephan Müller
The Jitter RNG is unconditionally allocated as a seed source follwoing the patch 97f2650e5040. Thus, the instance must always be deallocated. Reported-by: syzbot+2e635807decef724a...@syzkaller.appspotmail.com Fixes: 97f2650e5040 ("crypto: drbg - always seeded with SP800-90B ...") Signed-off-by: St

Re: [PATCH] Documentation: tee: Document TEE kernel interface

2020-06-03 Thread Sumit Garg
On Wed, 3 Jun 2020 at 20:05, Maxim Uvarov wrote: > > Hello Sumit, > > if this doc is for driver developers it might be useful to add some > code examples how to register drivers on tee bus. Sure, will add an example TEE client driver snippet for reference. -Sumit > > Best regards, > Maxim. > >

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-03 Thread Mike Rapoport
gt; lock: 0xf53ef350, .magic: dead4ead, .owner: S01syslogd/139, .owner_cpu: 0 > CPU: 0 PID: 139 Comm: S01syslogd Not tainted 5.7.0-next-20200603 #1 > [f0067d00 : > do_raw_spin_lock+0xa8/0xd8 ] > [f00d598c : > copy_page_range+0x328/0x804 ] > [f0025c34 : > dup_mm+0x334/0x4

Re: [PATCH] can: Replace zero-length array with flexible-array

2020-06-03 Thread Oliver Hartkopp
Hi Gustavo, On 04.06.20 02:58, Gustavo A. R. Silva wrote: Sorry for the late reply. I totally lost track of this thread. :/ NP. At least your workflow seems to work :o) pahole shows exactly the same output either if cf is a zero-length array or a flexible-array member: $ pahole -C 'can_skb

[PATCH] scsi: ufs: Bump supported UFS HCI version to 3.0

2020-06-03 Thread Manivannan Sadhasivam
UFS HCI 3.0 versions are being used in Qcom SM8250 based boards. Hence, adding it to the list of supported versions. I don't have the exact information of the additional registers supported in version 3.0. Hence the change just adds 0x300 to the list of supported versions to remove the below warni

[PATCH] ASoC: fsl-asoc-card: Defer probe when fail to find codec device

2020-06-03 Thread Shengjiu Wang
Defer probe when fail to find codec device, because the codec device maybe probed later than machine driver. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl-asoc-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-c

Re: [PATCH] char_driver_warn_unseeded_randomness: Add null check

2020-06-03 Thread Greg KH
On Wed, Jun 03, 2020 at 10:29:07PM -0400, gaurav singh wrote: > File: drivers/char/random.c > Function: _warn_unseeded_randomness > > There is a check for previous(ptr) before dereferencing: > > if (print_once || > crng_ready() || > (previous && (caller == READ_ONCE(*previous)

[PATCH] leds: mt6360: Add LED driver for MT6360

2020-06-03 Thread Gene Chen
From: Gene Chen Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, and 3-channel RGB LED support Register/Flash/Breath Mode Signed-off-by: Gene Chen base-commit: 098c4adf249c198519a4abebe482b1e6b8c50e47 --- drivers/leds/Kconfig | 11 + drivers/leds/Makefile

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-03 Thread Ira Weiny
s that -next is in pretty bad shape right now. > The summary of my tests says: > > Build results: > total: 151 pass: 130 fail: 21 > Qemu test results: > total: 430 pass: 375 fail: 55 > > sparc32 smp images in next-20200603 still crash for me with a spinlock >

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread Mauro Carvalho Chehab
Em Wed, 3 Jun 2020 21:21:06 -0700 Linus Torvalds escreveu: > On Wed, Jun 3, 2020 at 1:06 AM Mauro Carvalho Chehab > wrote: > > > > - The atomisp staging driver was resurrected. It is meant to work with > > 4 generations of cameras on Atom-based laptops, tablets and cell > > phones. So,

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Herbert Xu
On Thu, Jun 04, 2020 at 02:10:37PM +0800, Zhangfei Gao wrote: > > > Should this even allow truncation? Perhaps it'd be better to fail > > in case of an overrun? > I think we do not need consider overrun, since it at most copy size-1 bytes > to dest. > From the manual: strlcpy() >    This  funct

Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice

2020-06-03 Thread Mike Rapoport
atus? > > > > I believe the tests were failing for Guenter due to another patch set...[1] > > > > My tests with just this series are working. > > > >>From my understanding the other failures were unrelated.[2] > > > > > > I've

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread Mauro Carvalho Chehab
Em Wed, 3 Jun 2020 21:13:21 -0700 Linus Torvalds escreveu: > On Wed, Jun 3, 2020 at 1:06 AM Mauro Carvalho Chehab > wrote: > > > > PS.: The diffstat is so big that I almost dropped it, as it is almost > > useless for humans to read. I ended by not doing it just because perhaps > > you could be u

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Zhangfei Gao
On 2020/6/4 上午11:39, Herbert Xu wrote: On Thu, Jun 04, 2020 at 11:32:04AM +0800, Zhangfei Gao wrote: Use strlcpy to fix the warning warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] Reported-by: kernel test robot Signed-off-by: Zhangfei Gao ---

Re: [PATCH RFC] uaccess: user_access_begin_after_access_ok()

2020-06-03 Thread Jason Wang
On 2020/6/4 上午12:52, Al Viro wrote: On Wed, Jun 03, 2020 at 01:29:00AM -0400, Michael S. Tsirkin wrote: On Wed, Jun 03, 2020 at 02:48:15AM +0100, Al Viro wrote: 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 successi

答复: 答复: [PATCH][v5] KVM: X86: support APERF/MPERF registers

2020-06-03 Thread Li,Rongqing
> IMO, If we really want to ensure the correctness of userspace provided CPUID > settings, we need to return ERROR to userspace instead of fixing it siliently. > Ok , I will make it return a error Thanks -Li > - Xiaoyao

Re: [PATCH] scsi: Fix incorrect usage of shost_for_each_device

2020-06-03 Thread Hannes Reinecke
On 5/18/20 9:44 AM, Ye Bin wrote: shost_for_each_device(sdev, shost) \ for ((sdev) = __scsi_iterate_devices((shost), NULL); \ (sdev); \ (sdev) = __scsi_iterate_devices((shost), (sdev))) When terminating shost_for_each_device() iteration with break or return, scs

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-03 Thread Marco Elver
On Thu, 4 Jun 2020 at 05:34, Paul E. McKenney wrote: > > On Wed, Jun 03, 2020 at 07:13:20PM +0200, Peter Zijlstra wrote: > > On Wed, Jun 03, 2020 at 09:46:00AM -0700, Paul E. McKenney wrote: > > > > > > --- a/kernel/rcu/tree.c > > > > +++ b/kernel/rcu/tree.c > > > > @@ -250,7 +250,7 @@ static noin

Re: [RFC 3/4] regulator: lp87565: dt: add LP87524-Q1 variant

2020-06-03 Thread Lee Jones
On Wed, 03 Jun 2020, Luca Ceresoli wrote: > Add the LP87524-Q1 to the lp87565 bindings document along with an example. Keep the way to describe model numbers consistent. I suggest LP87565 here (even though the filename is in lower case). > Signed-off-by: Luca Ceresoli > --- > .../devicetree/b

Re: [PATCH 0/9] x86/entry fixes

2020-06-03 Thread Marco Elver
On Wed, 3 Jun 2020 at 21:10, Marco Elver wrote: > > On Wed, 3 Jun 2020 at 20:16, Peter Zijlstra wrote: > > > > On Wed, Jun 03, 2020 at 06:07:22PM +0200, Peter Zijlstra wrote: > > > On Wed, Jun 03, 2020 at 04:47:54PM +0200, Marco Elver wrote: > > > > > > With that in mind, you could whitelist "__u

Re: [PATCH -tip 1/2] Kconfig: Bump required compiler version of KASAN and UBSAN

2020-06-03 Thread Marco Elver
On Wed, 3 Jun 2020 at 15:35, 'Andrey Konovalov' via kasan-dev wrote: > > On Tue, Jun 2, 2020 at 8:44 PM Marco Elver wrote: > > > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > > have a compiler that does not fail builds due to no_sanitize functions. > > This does not

Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-06-03 Thread Viresh Kumar
On 03-06-20, 19:17, Sudeep Holla wrote: > I just realised that we have the timing info in the traces and you will > observe the sensor readings take something in order of 100us to 500-600us > or even more based on which sensor is being read. While we have 100us > timeout for cpufreq opp set. Which

Re: Capabilities are list when creating a user namespace

2020-06-03 Thread Idan Yadgar
Hello, sorry for duplicating the previous email, forgot to send it to the mailing lists as well. Did you miss my email? Idan Yadgar. On Fri, May 29, 2020 at 5:48 PM Idan Yadgar wrote: > > Hello, did you miss my mail? > > בתאריך יום א׳, 24 במאי 2020, 15:32, מאת Idan Yadgar ‏: >> >> Hello, >> >> A

Re: [mainline][Oops][bisected 2ba3e6 ] 5.7.0 boot fails with kernel panic on powerpc

2020-06-03 Thread Abdul Haleem
On Wed, 2020-06-03 at 15:32 +0200, Joerg Roedel wrote: > On Wed, Jun 03, 2020 at 04:20:57PM +0530, Abdul Haleem wrote: > > @Joerg, Could you please have a look? > > Can you please try the attached patch? Thanks Joerg, The given patch fixes the boot problem. Please add Reported-by in fix commit.

[PATCH -tip v2 1/2] kasan: Bump required compiler version

2020-06-03 Thread Marco Elver
Adds config variable CC_HAS_WORKING_NOSANITIZE_ADDRESS, which will be true if we have a compiler that does not fail builds due to no_sanitize_address functions. This does not yet mean they work as intended, but for automated build-tests, this is the minimum requirement. For example, we require tha

[PATCH -tip v2 2/2] compiler_types.h: Add __no_sanitize_{address,undefined} to noinstr

2020-06-03 Thread Marco Elver
Adds the portable definitions for __no_sanitize_address, and __no_sanitize_undefined, and subsequently changes noinstr to use the attributes to disable instrumentation via KASAN or UBSAN. Link: https://lore.kernel.org/lkml/d2474c05a6c93...@google.com/ Reported-by: syzbot+dc1fa714cb070b

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-06-03 Thread Michel Lespinasse
On Wed, Jun 3, 2020 at 9:35 PM youling 257 wrote: > I have build error about kernel/sys.c, > > kernel/sys.c: In function ‘prctl_set_vma’: > kernel/sys.c:2392:18: error: > ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean > ‘mmap_base’? > 2392 | down_write(&mm->mmap_sem); >

Re: [PATCH] thunderbolt: Improve USB4 config symbol help text

2020-06-03 Thread Mika Westerberg
Hi, On Tue, Jun 02, 2020 at 02:28:15PM +0200, Geert Uytterhoeven wrote: > Fix the spelling of "specification", and add a missing "the" article. > > Fixes: 690ac0d20d4022bb ("thunderbolt: Update Kconfig entries to USB4") Maybe Fixes tag here is too strong. It is simply fixing a typo :) I will pi

[PATCH 1/1] of: reserved_mem: Fix typo in the too-many-regions message

2020-06-03 Thread Danny Lin
Minor fix for a missing preposition in the error message that appears when there are too many reserved memory regions for the allocated array to store. Signed-off-by: Danny Lin --- drivers/of/of_reserved_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/of_rese

[v2 PATCH] ASoC: max98390: Fix potential crash during param fw loading

2020-06-03 Thread Steve Lee
malformed firmware file can cause out-of-bound access and crash during dsm_param bin loading. - add MIN/MAX param size to avoid out-of-bound access. - read start addr and size of param and check bound. - add condition that fw->size > param_size + _PAYLOAD_OFFSET to confirm enough data.

Re: dmaengine: stm32-mdma: call pm_runtime_put if pm_runtime_get_sync fails

2020-06-03 Thread Markus Elfring
>>> Calling pm_runtime_get_sync increments the counter even in case of >>> failure, causing incorrect ref count. Call pm_runtime_put if >>> pm_runtime_get_sync fails. >> >> Is it appropriate to copy a sentence from the change description >> into the patch subject? >> >> How do you think about a wor

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

2020-06-03 Thread Sargun Dhillon
On Wed, Jun 03, 2020 at 07:22:57PM -0700, Kees Cook wrote: > On Thu, Jun 04, 2020 at 03:24:52AM +0200, Christian Brauner wrote: > > On Tue, Jun 02, 2020 at 06:10:41PM -0700, Sargun Dhillon wrote: > > > Previously there were two chunks of code where the logic to receive file > > > descriptors was du

Re: [PATCH] drm/sun4i: hdmi ddc clk: Fix size of m divider

2020-06-03 Thread Chen-Yu Tsai
On Wed, Apr 22, 2020 at 5:23 PM Maxime Ripard wrote: > > Hi, > > On Wed, Apr 15, 2020 at 07:52:28PM +0200, Jernej Škrabec wrote: > > Dne sreda, 15. april 2020 ob 12:42:14 CEST je Maxime Ripard napisal(a): > > > On Mon, Apr 13, 2020 at 06:09:08PM +0200, Jernej Škrabec wrote: > > > > Dne ponedeljek,

★ smdbobbin --“2018世界复合材料展览及会议”将于“3月”在“法国巴黎”举行 (地右P1-L-Me)

2020-06-03 Thread linux-kernel-owner
尊敬的 smdbobbin@126.comhttp 企业领导/公司负责人/业界专家,您好:       新材料为21世纪三大共性关键技术之一,已成为全球经济迅速增长的源动力和提升核心竞争力的战略焦点。材料作为制造业的基础,特别是新材料研究和产业发展的水平与规模,已经成为衡量一个国家科技进步和综合实力的重要标志。在新材料发展与应用中,复合材料占有相当重要的地位,特别广泛的应用在汽车、交通、风能、航空、航天、兵器、船舶、国防、机械、电子、化工、建筑、农业、渔业、纺织、运动器材等领域,一直是世界各国优先发展和竞争激烈的重要行业。      “JEC世界复合材料展览及会议”(JEC world Co

RE: [EXT] Re: [PATCH v6 2/2] arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo

2020-06-03 Thread Kamlakant Patel
Hi Bhupesh, > -Original Message- > From: Bhupesh Sharma > Sent: Thursday, June 4, 2020 2:05 AM > To: Kamlakant Patel > Cc: linux-arm-ker...@lists.infradead.org; x...@kernel.org; Mark Rutland > ; Kazuhito Hagio ; Steve > Capper ; Catalin Marinas > ; Ard Biesheuvel ; > ke...@lists.infradea

[PATCH] soc: amlogic: meson-gx-socinfo: Fix S905X3 ID

2020-06-03 Thread Christian Hewitt
The current value is taken from Amlogic's 4.9 bsp kernel which appears to use the wrong ID. For comparison, here's before/after: [0.152237] soc soc0: Amlogic Meson SM1 (Unknown) Revision 2b:c (10:2) Detected [0.152463] soc soc0: Amlogic Meson SM1 (S905X3) Revision 2b:c (10:2) Detected F

Re: [PATCH] net/mlx5: DR, Fix freeing in dr_create_rc_qp()

2020-06-03 Thread Saeed Mahameed
On Mon, 2020-06-01 at 19:45 +0300, Denis Efremov wrote: > Variable "in" in dr_create_rc_qp() is allocated with kvzalloc() and > should be freed with kvfree(). > > Fixes: 297cccebdc5a ("net/mlx5: DR, Expose an internal API to issue > RDMA operations") > Cc: sta...@vger.kernel.org > Signed-off-by: D

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

2020-06-03 Thread Viresh Kumar
On 04-06-20, 09:32, Xiongfeng Wang wrote: > On 2020/6/3 21:39, Rafael J. Wysocki wrote: > > The frequency value obtained by kicking the CPU out of idle > > artificially is bogus, though. You may as well return a random number > > instead. > > Yes, it may return a randowm number as well. > > > >

Re: [PATCH V2] dt-bindings: clock: Convert imx7ulp clock to json-schema

2020-06-03 Thread Stephen Boyd
Quoting Anson Huang (2020-06-03 18:33:07) > Convert the i.MX7ULP clock binding to DT schema format using json-schema, > the original binding doc is actually for two clock modules(SCG and PCC), > so split it to two binding docs, and the MPLL(mipi PLL) is NOT supposed > to be in clock module, so remo

Re: [PATCH] x86/umip: Add emulation/spoofing for SLDT and STR instructions

2020-06-03 Thread Andy Lutomirski
On Wed, Jun 3, 2020 at 5:12 PM Ricardo Neri wrote: > > On Tue, Jun 02, 2020 at 11:42:12AM -0700, Brendan Shanks wrote: > > Add emulation/spoofing of SLDT and STR for both 32- and 64-bit > > processes. > > > > Wine users have found a small number of Windows apps using SLDT that > > were crashing wh

Re: [PATCH 06/10] clk: st: Remove uninitialized_var() usage

2020-06-03 Thread Stephen Boyd
Quoting Kees Cook (2020-06-03 16:31:59) > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings (e.g. > "unused variable"). If the compiler thinks it is uninitialized, either > simply initialize the variable or mak

Re: [PATCH v6 03/14] videobuf2: handle V4L2 buffer cache flags

2020-06-03 Thread Sergey Senozhatsky
On (20/06/02 14:24), Hans Verkuil wrote: [..] > For vim2m (but looks the same for vivid/vimc/vicodec): > > Streaming ioctls: > test read/write: OK (Not Supported) > test blocking wait: OK > Video Capture: Captured 8 buffers > test MMAP (no poll): OK > Video

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-06-03 Thread youling 257
I have build error about kernel/sys.c, kernel/sys.c: In function ‘prctl_set_vma’: kernel/sys.c:2392:18: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’? 2392 | down_write(&mm->mmap_sem); | ^~~~ | mmap_

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Jun 2020 10:05:59 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > tags/media/v5.8-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a98f670e41a99f53acb1fb33cee9c6abbb2e6f23 Thank you! -- Deet-doot-dot,

Re: [PATCH 1/3] dt-bindings: spi: Document bcm2711 and bcm7211 SPI compatible

2020-06-03 Thread Lukas Wunner
On Wed, Jun 03, 2020 at 08:46:53PM -0700, Florian Fainelli wrote: > The BCM2711 and BCM7211 chips use the BCM2835 SPI controller, but there > are severl instances of those in the system and they all share the same ^^ Nit: "several" And apparently they do not *all* share the interrupt, bu

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread Linus Torvalds
On Wed, Jun 3, 2020 at 1:06 AM Mauro Carvalho Chehab wrote: > > - The atomisp staging driver was resurrected. It is meant to work with > 4 generations of cameras on Atom-based laptops, tablets and cell > phones. So, it seems worth investing time to cleanup this driver and > making it

Re: [PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-03 Thread Lukas Wunner
On Wed, Jun 03, 2020 at 08:46:54PM -0700, Florian Fainelli wrote: > The BCM2711 SoC features 5 SPI controllers which all share the same > interrupt line, the SPI driver needs to support interrupt sharing, > therefore use the chip specific compatible string to help with that. You're saying above th

Re: [PATCH 3/3] spi: bcm2835: Enable shared interrupt support

2020-06-03 Thread Lukas Wunner
On Wed, Jun 03, 2020 at 08:46:55PM -0700, Florian Fainelli wrote: > +static const struct of_device_id bcm2835_spi_match[] = { > + { .compatible = "brcm,bcm2835-spi", .data = &bcm2835_spi_interrupt }, > + { .compatible = "brcm,bcm2711-spi", .data = &bcm2835_spi_sh_interrupt }, > + { .com

[PATCH v2] KVM: x86: Assign correct value to array.maxnent

2020-06-03 Thread Xiaoyao Li
Delay the assignment of array.maxnent to use correct value for the case cpuid->nent > KVM_MAX_CPUID_ENTRIES. Fixes: e53c95e8d41e ("KVM: x86: Encapsulate CPUID entries and metadata in struct") Signed-off-by: Xiaoyao Li --- v2: - remove "const" of maxnent to fix build error. --- arch/x86/kvm/c

[PATCH v2] usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect

2020-06-03 Thread qiang.zhang
From: Zqiang BUG: memory leak unreferenced object 0x888055046e00 (size 256): comm "kworker/2:9", pid 2570, jiffies 4294942129 (age 1095.500s) hex dump (first 32 bytes): 00 70 04 55 80 88 ff ff 18 bb 5a 81 ff ff ff ff .p.U..Z. f5 96 78 81 ff ff ff ff 37 de 8e 81 ff ff ff f

Re: [GIT PULL for v5.8-rc1] media updates

2020-06-03 Thread Linus Torvalds
On Wed, Jun 3, 2020 at 1:06 AM Mauro Carvalho Chehab wrote: > > PS.: The diffstat is so big that I almost dropped it, as it is almost > useless for humans to read. I ended by not doing it just because perhaps > you could be using some sort of script to check diffstat. No, but I do compare the bas

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

2020-06-03 Thread Alex Williamson
On Wed, 3 Jun 2020 22:42:28 -0400 Yan Zhao wrote: > On Wed, Jun 03, 2020 at 05:04:52PM -0600, Alex Williamson wrote: > > On Tue, 2 Jun 2020 21:40:58 -0400 > > Yan Zhao wrote: > > > > > On Tue, Jun 02, 2020 at 01:34:35PM -0600, Alex Williamson wrote: > > > > I'm not at all happy with this.

Re: [PATCH 09/10] treewide: Remove uninitialized_var() usage

2020-06-03 Thread Kees Cook
On Wed, Jun 03, 2020 at 08:33:15PM -0700, Nathan Chancellor wrote: > On Wed, Jun 03, 2020 at 04:32:02PM -0700, Kees Cook wrote: > > Using uninitialized_var() is dangerous as it papers over real bugs[1] > > (or can in the future), and suppresses unrelated compiler warnings > > (e.g. "unused variable

[PATCH V2] mm/vmstat: Add events for THP migration without split

2020-06-03 Thread Anshuman Khandual
Add the following new VM events which will help in validating THP migration without split. Statistics reported through these new events will help in performance debugging. 1. THP_MIGRATION_SUCCESS 2. THP_MIGRATION_FAILURE THP_MIGRATION_FAILURE in particular represents an event when a THP could no

Re: [PATCH v5 0/3] SELinux support for anonymous inodes and UFFD

2020-06-03 Thread James Morris
On Wed, 1 Apr 2020, Daniel Colascione wrote: > Daniel Colascione (3): > Add a new LSM-supporting anonymous inode interface > Teach SELinux about anonymous inodes > Wire UFFD up to SELinux > > fs/anon_inodes.c| 191 ++-- > fs/userfaultfd.c

Re: [PATCH] KVM: x86: Assign correct value to array.maxnent

2020-06-03 Thread Xiaoyao Li
On 6/4/2020 10:43 AM, Xiaoyao Li wrote: Delay the assignment of array.maxnent to use correct value for the case cpuid->nent > KVM_MAX_CPUID_ENTRIES. Fixes: e53c95e8d41e ("KVM: x86: Encapsulate CPUID entries and metadata in struct") Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 3 ++-

[PATCH] x86/mm: use max memory block size with unaligned memory end

2020-06-03 Thread Daniel Jordan
Some of our servers spend 14 out of the 21 seconds of kernel boot initializing memory block sysfs directories and then creating symlinks between them and the corresponding nodes. The slowness happens because the machines get stuck with the smallest supported memory block size on x86 (128M), which

[PATCH 0/3] spi: bcm2835: Enable shared interrupt support

2020-06-03 Thread Florian Fainelli
Hi Mark, Lukas, This patch series is implementing the approach that was discussed in response to this previous submission: https://lore.kernel.org/linux-arm-kernel/20200528185805.28991-1-nsaenzjulie...@suse.de/ It aims to have dedicated interrupt handlers for 2835 versus 2711/7211 so as to minim

[PATCH 3/3] spi: bcm2835: Enable shared interrupt support

2020-06-03 Thread Florian Fainelli
The SPI controller found in the BCM2711 and BCM7211 SoCs is instantiated 5 times, with all instances sharing the same interrupt line. We specifically match the two compatible strings here to determine whether it is necessary to request the interrupt with the IRQF_SHARED flag and to use an appropria

[PATCH 1/3] dt-bindings: spi: Document bcm2711 and bcm7211 SPI compatible

2020-06-03 Thread Florian Fainelli
The BCM2711 and BCM7211 chips use the BCM2835 SPI controller, but there are severl instances of those in the system and they all share the same interrupt line. Document specific compatible strings such that the driver can take appropriate actions. Signed-off-by: Florian Fainelli --- Documentatio

[PATCH 2/3] ARM: dts: bcm2711: Update SPI nodes compatible strings

2020-06-03 Thread Florian Fainelli
The BCM2711 SoC features 5 SPI controllers which all share the same interrupt line, the SPI driver needs to support interrupt sharing, therefore use the chip specific compatible string to help with that. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm2711.dtsi | 8 1 file chan

Re: [PATCH 08/10] checkpatch: Remove awareness of uninitialized_var() macro

2020-06-03 Thread Kees Cook
On Thu, Jun 04, 2020 at 04:53:34AM +0200, Sedat Dilek wrote: > can you push that change also to kees/linux.git#kspp/uninit/v5.7/macro ? Done! :) -- Kees Cook

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Miles Chen
On Wed, 2020-06-03 at 18:16 +0200, David Hildenbrand wrote: > On 03.06.20 18:11, Miles Chen wrote: > > max_pfn is uesd to get the highest pfn in the system. Drivers like > > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > > its "4GB mode". > > > > This patch exports the max_p

Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Herbert Xu
On Thu, Jun 04, 2020 at 11:32:04AM +0800, Zhangfei Gao wrote: > Use strlcpy to fix the warning > warning: 'strncpy' specified bound 64 equals destination size > [-Wstringop-truncation] > > Reported-by: kernel test robot > Signed-off-by: Zhangfei Gao > --- > drivers/crypto/hisilicon/qm.

Re: [PATCH] mm/memblock: export max_pfn for kernel modules

2020-06-03 Thread Miles Chen
On Wed, 2020-06-03 at 20:06 +0300, Mike Rapoport wrote: > On Thu, Jun 04, 2020 at 12:11:32AM +0800, Miles Chen wrote: > > max_pfn is uesd to get the highest pfn in the system. Drivers like > > drivers/iommu/mtk_iommu.c checks max_pfn to see if it should enable > > its "4GB mode". > > > > This patc

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

2020-06-03 Thread Sargun Dhillon
On Thu, Jun 04, 2020 at 03:24:52AM +0200, Christian Brauner wrote: > On Tue, Jun 02, 2020 at 06:10:41PM -0700, Sargun Dhillon wrote: > > 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

[PATCH v2 1/8] powerpc/watchpoint: Fix 512 byte boundary limit

2020-06-03 Thread Ravi Bangoria
Milton reported that we are aligning start and end address to wrong size SZ_512M. It should be SZ_512. Fix that. While doing this change I also found a case where ALIGN() comparison fails. Within a given aligned range, ALIGN() of two addresses does not match when start address is pointing to the f

[PATCH v2 7/8] powerpc/watchpoint: Return available watchpoints dynamically

2020-06-03 Thread Ravi Bangoria
So far Book3S Powerpc supported only one watchpoint. Power10 is introducing 2nd DAWR. Enable 2nd DAWR support for Power10. Availability of 2nd DAWR will depend on CPU_FTR_DAWR1. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 4 +++- arch/powerpc/include/asm/hw_breakp

[PATCH v2 2/8] powerpc/watchpoint: Enable watchpoint functionality on power10 guest

2020-06-03 Thread Ravi Bangoria
CPU_FTR_DAWR is by default enabled for host via CPU_FTRS_DT_CPU_BASE (controlled by CONFIG_PPC_DT_CPU_FTRS). But cpu-features device-tree node is not PAPR compatible and thus not yet used by kvm or pHyp guests. Enable watchpoint functionality on power10 guest (both kvm and powervm) by adding CPU_FT

[PATCH v2 4/8] powerpc/watchpoint: Set CPU_FTR_DAWR1 based on pa-features bit

2020-06-03 Thread Ravi Bangoria
As per the PAPR, bit 0 of byte 64 in pa-features property indicates availability of 2nd DAWR registers. i.e. If this bit is set, 2nd DAWR is present, otherwise not. Host generally uses "cpu-features", which masks "pa-features". But "cpu-features" are still not used for guests and thus this change i

[PATCH v2 6/8] powerpc/watchpoint: Guest support for 2nd DAWR hcall

2020-06-03 Thread Ravi Bangoria
2nd DAWR can be set/unset using H_SET_MODE hcall with resource value 5. Enable powervm guest support with that. This has no effect on kvm guest because kvm will return error if guest does hcall with resource value 5. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 1

[PATCH v2 3/8] powerpc/dt_cpu_ftrs: Add feature for 2nd DAWR

2020-06-03 Thread Ravi Bangoria
Add new device-tree feature for 2nd DAWR. If this feature is present, 2nd DAWR is supported, otherwise not. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 7 +-- arch/powerpc/kernel/dt_cpu_ftrs.c | 7 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff -

[PATCH v2 8/8] powerpc/watchpoint: Remove 512 byte boundary

2020-06-03 Thread Ravi Bangoria
Power10 has removed 512 bytes boundary from match criteria. i.e. The watch range can cross 512 bytes boundary. Signed-off-by: Ravi Bangoria --- arch/powerpc/kernel/hw_breakpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/hw_breakpoint.c b/arch

[PATCH v2 0/8] powerpc/watchpoint: Enable 2nd DAWR on baremetal and powervm

2020-06-03 Thread Ravi Bangoria
Last series[1] was to add basic infrastructure support for more than one watchpoint on Book3S powerpc. This series actually enables the 2nd DAWR for baremetal and powervm. Kvm guest is still not supported. v1: https://lore.kernel.org/linuxppc-dev/20200602040106.127693-1-ravi.bango...@linux.ibm.c

[PATCH v2 5/8] powerpc/watchpoint: Rename current H_SET_MODE DAWR macro

2020-06-03 Thread Ravi Bangoria
Current H_SET_MODE hcall macro name for setting/resetting DAWR0 is H_SET_MODE_RESOURCE_SET_DAWR. Add suffix 0 to macro name as well. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 2 +- arch/powerpc/include/asm/plpar_wrappers.h | 2 +- arch/powerpc/kvm/book3s_hv.c

Re: [PATCH 00/10] Remove uninitialized_var() macro

2020-06-03 Thread Nathan Chancellor
On Wed, Jun 03, 2020 at 04:31:53PM -0700, Kees Cook wrote: > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings > (e.g. "unused variable"). If the compiler thinks it is uninitialized, > either simply initialize

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-03 Thread Paul E. McKenney
On Wed, Jun 03, 2020 at 07:13:20PM +0200, Peter Zijlstra wrote: > On Wed, Jun 03, 2020 at 09:46:00AM -0700, Paul E. McKenney wrote: > > > > --- a/kernel/rcu/tree.c > > > +++ b/kernel/rcu/tree.c > > > @@ -250,7 +250,7 @@ static noinstr void rcu_dynticks_eqs_ent > > >* next idle sojourn. > > >

Re: [PATCH 09/10] treewide: Remove uninitialized_var() usage

2020-06-03 Thread Nathan Chancellor
On Wed, Jun 03, 2020 at 04:32:02PM -0700, Kees Cook wrote: > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings > (e.g. "unused variable"). If the compiler thinks it is uninitialized, > either simply initialize

[PATCH] crypto: hisilicon - fix strncpy warning with strlcpy

2020-06-03 Thread Zhangfei Gao
Use strlcpy to fix the warning warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] Reported-by: kernel test robot Signed-off-by: Zhangfei Gao --- drivers/crypto/hisilicon/qm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

Re: [PATCH] function:stacktrace/mips: Fix function:stacktrace for mips

2020-06-03 Thread yuanjunqing
在 2020/6/4 上午9:17, Maciej W. Rozycki 写道: > On Fri, 29 May 2020, WANG Xuerui wrote: > >> On 2020/5/29 17:29, yuanjunqing wrote: >> diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S index cff52b283e03..cd5545764e5f 100644 --- a/arch/mips/kernel/mcount.S +++ b/ar

Re: linux-next: manual merge of the kvm tree with the tip tree

2020-06-03 Thread Stephen Rothwell
Hi all, On Tue, 2 Jun 2020 14:53:58 +1000 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the kvm tree got a conflict in: > > arch/x86/kernel/kvm.c > > between commit: > > a707ae1a9bbb ("x86/entry: Switch page fault exception to IDTENTRY_RAW") > > from the tip tree a

Re: [PATCH net-next 5/5] hinic: add support to get eeprom information

2020-06-03 Thread luobin (L)
On 2020/6/4 11:01, Jakub Kicinski wrote: > On Wed, 3 Jun 2020 14:20:15 +0800 Luo bin wrote: >> add support to get eeprom information from the plug-in module >> with ethtool -m cmd. >> >> Signed-off-by: Luo bin > > drivers/net/ethernet/huawei/hinic/hinic_port.c:1386:5: warning: variable > port_id

Re: [PATCH v2 3/7] Bluetooth: Add handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR

2020-06-03 Thread Jakub Kicinski
On Wed, 3 Jun 2020 16:01:46 -0700 Miao-chen Chou wrote: > This adds the request handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR command. > Note that the controller-based monitoring is not yet in place. This tracks > the content of the monitor without sending HCI traffic, so the request > returns immed

Re: linux-next: manual merge of the kvm tree with the s390 tree

2020-06-03 Thread Stephen Rothwell
Hi all, On Fri, 29 May 2020 16:46:13 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the kvm tree got a conflict in: > > arch/s390/kvm/vsie.c > > between commit: > > 0b0ed657fe00 ("s390: remove critical section cleanup from entry.S") > > from the s390 tree and commit: > >

[PATCH v4] usb: host: xhci-mtk: avoid runtime suspend when removing hcd

2020-06-03 Thread Macpaul Lin
When runtime suspend was enabled, runtime suspend might happen when xhci is removing hcd. This might cause kernel panic when hcd has been freed but runtime pm suspend related handle need to reference it. Signed-off-by: Macpaul Lin Reviewed-by: Chunfeng Yun Cc: sta...@vger.kernel.org --- Changes

  1   2   3   4   5   6   7   8   9   10   >