[PATCH v2] lib: Convert test_uuid.c to KUnit

2020-08-02 Thread Arpitha Raghunandan
Converts test lib/test_uuid.c to KUnit. More information about KUnit can be found at https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. This change is beneficial as KUnit provides a common framework for unit tests in the kernel. KUnit is fast as well. Signed-off-by: Arpitha

Re: [PATCH] acpi: fix 'return' with no value build warning

2020-08-02 Thread Neal Liu
On Fri, 2020-07-31 at 13:33 +0200, Rafael J. Wysocki wrote: > On Fri, Jul 31, 2020 at 5:39 AM Neal Liu wrote: > > > > Fixing CFI issue which introduced by commit efe9711214e6 is > > incomplete. > > Add return value to fix return-type build warning. > > > > Signed-off-by: Neal Liu > > Applied

Re: [PATCH] iommu/vt-d:Add support for ACPI device in RMRR

2020-08-02 Thread Lu Baolu
Hi, On 8/2/20 6:07 PM, FelixCuioc wrote: Some ACPI devices require access to the specified reserved memory region.BIOS report the specified reserved memory region through RMRR structures.Add analysis of ACPI device in RMRR and establish identity mapping for ACPI device. Can you please add

[PATCH] dt-bindings: regulator: Convert pfuze100 to json-schema

2020-08-02 Thread Anson Huang
Convert the pfuze100 regulator binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/regulator/pfuze100.txt | 394 - .../devicetree/bindings/regulator/pfuze100.yaml| 186 ++ 2 files changed, 186 insertions(+),

Re: [PATCH v3 3/4] iommu: Add iommu_aux_get_domain_for_dev()

2020-08-02 Thread Lu Baolu
Hi Alex, On 8/1/20 2:14 AM, Alex Williamson wrote: On Fri, 31 Jul 2020 14:30:03 +0800 Lu Baolu wrote: Hi Alex, On 2020/7/30 4:25, Alex Williamson wrote: On Tue, 14 Jul 2020 13:57:02 +0800 Lu Baolu wrote: The device driver needs an API to get its aux-domain. A typical usage scenario

[PATCH v3] ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function

2020-08-02 Thread Shengjiu Wang
With this case: aplay -Dhw:x 16khz.wav 24khz.wav There is sound distortion for 24khz.wav. The reason is that setting PLL of WM8962 with set_bias_level function, the bias level is not changed when 24khz.wav is played, then the PLL won't be reset, the clock is not correct, so distortion happens.

[PATCH 3/3] media: Add support for the AM/FM radio chip KT0913 from KT Micro.

2020-08-02 Thread Santiago Hormazabal
This chip requires almost no support components and can used over I2C. The driver uses the I2C bus and exposes the controls as a V4L2 radio. Tested with a module that contains this chip (from SZZSJDZ.com, part number ZJ-801B, even tho the company seems defunct now), and an H2+ AllWinner SoC

[PATCH 0/3] KT0913 FM/AM driver

2020-08-02 Thread Santiago Hormazabal
media: adds support for kt0913 FM/AM tuner chip Adds a driver for the KT0913 FM/AM tuner chip from KT Micro. This chip can be found on many low cost FM/AM radios and DVD/Home Theaters. The chip provides two ways of usage, a manual mode (requiring only a few buttons) or complete control via I2C.

[PATCH 2/3] media: kt0913: device tree binding

2020-08-02 Thread Santiago Hormazabal
Document bindings for the kt0913 AM/FM radio tuner. Signed-off-by: Santiago Hormazabal --- .../bindings/media/i2c/ktm,kt0913.yaml| 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ktm,kt0913.yaml diff --git

[PATCH 1/3] dt-bindings: vendor-prefixes: Add KT Micro

2020-08-02 Thread Santiago Hormazabal
Adds ktm as the prefix of KT Micro, Inc. Signed-off-by: Santiago Hormazabal --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

Re: [PATCH v3 2/4] iommu: Add iommu_aux_at(de)tach_group()

2020-08-02 Thread Lu Baolu
Hi Alex, On 8/1/20 2:05 AM, Alex Williamson wrote: On Fri, 31 Jul 2020 13:47:57 +0800 Lu Baolu wrote: Hi Alex, On 2020/7/31 3:46, Alex Williamson wrote: On Wed, 29 Jul 2020 23:34:40 + "Tian, Kevin" wrote: From: Alex Williamson Sent: Thursday, July 30, 2020 4:04 AM On Thu, 16

Re: [PATCH] ubi: check kthread_should_stop() after the setting of task state

2020-08-02 Thread Zhihao Cheng
在 2020/8/3 5:25, Richard Weinberger 写道: On Mon, Jun 1, 2020 at 11:13 AM Zhihao Cheng wrote: A detach hung is possible when a race occurs between the detach process and the ubi background thread. The following sequences outline the race: ubi thread: if (list_empty(>works)... ubi detach:

[PATCH net-next] tipc: Use is_broadcast_ether_addr() instead of memcmp()

2020-08-02 Thread Huang Guobin
Using is_broadcast_ether_addr() instead of directly use memcmp() to determine if the ethernet address is broadcast address. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Huang Guobin --- net/tipc/eth_media.c | 4 +--- 1 file changed, 1

Re: [PATCH bpf-next 5/5] selftests/bpf: add benchmark for uprobe vs. user_prog

2020-08-02 Thread Andrii Nakryiko
On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: > > Add a benchmark to compare performance of > 1) uprobe; > 2) user program w/o args; > 3) user program w/ args; > 4) user program w/ args on random cpu. > Can you please add it to the existing benchmark runner instead, e.g., along the

Re: [PATCH bpf-next 4/5] selftests/bpf: move two functions to test_progs.c

2020-08-02 Thread Andrii Nakryiko
On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: > > Move time_get_ns() and get_base_addr() to test_progs.c, so they can be > used in other tests. > > Signed-off-by: Song Liu > --- > .../selftests/bpf/prog_tests/attach_probe.c | 21 - > .../selftests/bpf/prog_tests/test_overhead.c

Re: [PATCH bpf-next 3/5] selftests/bpf: add selftest for BPF_PROG_TYPE_USER

2020-08-02 Thread Andrii Nakryiko
On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: > > This test checks the correctness of BPF_PROG_TYPE_USER program, including: > running on the right cpu, passing in correct args, returning retval, and > being able to call bpf_get_stack|stackid. > > Signed-off-by: Song Liu > --- >

Re: [PATCH bpf-next 2/5] libbpf: support BPF_PROG_TYPE_USER programs

2020-08-02 Thread Andrii Nakryiko
On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: > > Add cpu_plus to bpf_prog_test_run_attr. Add BPF_PROG_SEC "user" for > BPF_PROG_TYPE_USER programs. > > Signed-off-by: Song Liu > --- > tools/lib/bpf/bpf.c | 1 + > tools/lib/bpf/bpf.h | 3 +++ > tools/lib/bpf/libbpf.c

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

2020-08-02 Thread Stephen Rothwell
Hi all, After merging the pci tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/pci/controller/pcie-xilinx-cpm.c: In function 'xilinx_cpm_pcie_probe': drivers/pci/controller/pcie-xilinx-cpm.c:553:8: error: implicit declaration of function

回复: [PATCH] ALSA: seq: KASAN: use-after-free Read in delete_and_unsubscribe_port

2020-08-02 Thread Zhang, Qiang
发件人: Takashi Iwai 发送时间: 2020年8月1日 17:39 收件人: Zhang, Qiang 抄送: pe...@perex.cz; ti...@suse.com; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org 主题: Re: [PATCH] ALSA: seq: KASAN: use-after-free Read in delete_and_unsubscribe_port On Sat, 01 Aug

Re: [BUG] crypto: hisilicon: accessing the data mapped to streaming DMA

2020-08-02 Thread Jia-Ju Bai
On 2020/8/3 9:12, Zhou Wang wrote: On 2020/8/2 22:52, Jia-Ju Bai wrote: In qm_qp_ctx_cfg(), "sqc" and "aeqc" are mapped to streaming DMA: eqc_dma = dma_map_single(..., eqc, ...); .. aeqc_dma = dma_map_single(..., aeqc, ...); Only sqc, cqc will be configured in qm_qp_ctx_cfg.

Re: [PATCH v2] ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function

2020-08-02 Thread Shengjiu Wang
On Sun, Aug 2, 2020 at 2:44 PM Nicolin Chen wrote: > > On Sun, Aug 02, 2020 at 10:22:35AM +0800, Shengjiu Wang wrote: > > > > > + /* Specific configuration for PLL */ > > > > + if (codec_priv->pll_id && codec_priv->fll_id) { > > > > + if (priv->sample_format ==

Re: [v2] ceph: use frag's MDS in either mode

2020-08-02 Thread Yanhu Cao
On Fri, Jul 31, 2020 at 7:57 PM Jeff Layton wrote: > > On Fri, 2020-07-31 at 16:25 +0800, Yanhu Cao wrote: > > When doing some tests with multiple mds, there are many > > mds forwarding requests between them and then the client request > > is resent. > > > > If the request is a modification

Re: [PATCH] tools/bpf/bpftool: Fix wrong return value in do_dump()

2020-08-02 Thread Andrii Nakryiko
On Sun, Aug 2, 2020 at 4:16 AM Tianjia Zhang wrote: > > In case of btf_id does not exist, a negative error code -ENOENT > should be returned. > > Fixes: c93cc69004df3 ("bpftool: add ability to dump BTF types") > Cc: Andrii Nakryiko > Signed-off-by: Tianjia Zhang > --- Acked-by: Andrii

[PATCH 1/1] x86/kaslr: Replace strlen with strnlen

2020-08-02 Thread Arvind Sankar
strnlen is safer in case the command line is not NUL-terminated. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/kaslr.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index

[PATCH 0/1] x86/kaslr: Replace strlen with strnlen

2020-08-02 Thread Arvind Sankar
Hi, I'd like to add one more patch to the series if that's ok. Thanks. Arvind Sankar (1): x86/kaslr: Replace strlen with strnlen arch/x86/boot/compressed/kaslr.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- 2.26.2

RE: [PATCH v18 3/3] Input: new da7280 haptic driver

2020-08-02 Thread Roy Im
On Sun, August 2, 2020 8:54 PM, Pavel Machek wrote: > Hi! > > > > +static DEVICE_ATTR_RW(ps_seq_id); > > > +static DEVICE_ATTR_RW(ps_seq_loop); static > > > +DEVICE_ATTR_RW(gpi_seq_id0); static DEVICE_ATTR_RW(gpi_seq_id1); > > > +static DEVICE_ATTR_RW(gpi_seq_id2); static > > >

Re: [BUG] crypto: hisilicon: accessing the data mapped to streaming DMA

2020-08-02 Thread Zhou Wang
On 2020/8/2 22:52, Jia-Ju Bai wrote: > In qm_qp_ctx_cfg(), "sqc" and "aeqc" are mapped to streaming DMA: > eqc_dma = dma_map_single(..., eqc, ...); > .. > aeqc_dma = dma_map_single(..., aeqc, ...); Only sqc, cqc will be configured in qm_qp_ctx_cfg. > > Then "sqc" and "aeqc" are

Re: ..and its build and boots well!! Linux 5.8

2020-08-02 Thread Bhaskar Chowdhury
On 14:50 Sun 02 Aug 2020, Linus Torvalds wrote: So I considered making an rc8 all the way to the last minute, but decided it's not just worth waiting another week when there aren't any big looming worries around. Because despite the merge window having been very large, there really hasn't been

[PATCH v2 -next] tools build: Check return value of fwrite_unlocked in jvmti_agent.c

2020-08-02 Thread Wang ShaoBo
Function jvmti_write_code called by compiled_method_load_cb may return error in using fwrite_unlocked, this failure should be captured and warned. Signed-off-by: Wang ShaoBo --- tools/perf/jvmti/jvmti_agent.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff

Re: [RFT PATCH v4 3/9] RISC-V: Implement late mapping page table allocation functions

2020-08-02 Thread Atish Patra
On Thu, Jul 30, 2020 at 2:14 AM Mike Rapoport wrote: > > Hi, > > On Wed, Jul 29, 2020 at 04:36:29PM -0700, Atish Patra wrote: > > Currently, page table setup is done during setup_va_final where fixmap can > > be used to create the temporary mappings. The physical frame is allocated > > from

Re: KASAN: use-after-free Write in __sco_sock_close

2020-08-02 Thread syzbot
syzbot has bisected this issue to: commit 43ea43b9d8b27b7acd443ec59319faa3cdb8a616 Author: Mauro Carvalho Chehab Date: Wed Oct 12 11:21:43 2016 + [media] radio-bcm2048: don't ignore errors bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1036e6a490 start commit:

net/dccp/ccid.c:69:13: sparse: sparse: incorrect type in initializer (different address spaces)

2020-08-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 142c3326b055a278c303bfef8dc6a105fff18ca6 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 6 weeks ago config: openrisc-randconfig-s031-20200802

[PATCH drm/hisilicon v2 0/3] hibmc clean up and code refactoring

2020-08-02 Thread Tian Tao
patch #1 and #3 is clean up, patch #2 is for code refactoring Changes since v1: - Rewrite the commits messages and patch name in #1 - Rewrite the commits message in #2. - Add the new patch #3 Tian Tao (3): drm/hisilicon: Remove the unused include statements drm/hisilicon: Code refactoring

[PATCH drm/hisilicon v2 2/3] drm/hisilicon: Code refactoring for hibmc_drv_de

2020-08-02 Thread Tian Tao
The memory used to be allocated with devres helpers and released automatically. In rare circumstances, the memory's release could have happened before the DRM device got released, which would have caused memory corruption of some kind. Now we're embedding the data structures in struct

[PATCH drm/hisilicon v2 3/3] drm/hisilicon: Rename variables to represent the correct meaning

2020-08-02 Thread Tian Tao
Rename plane to primary_plane in the structure hibmc_drm_private. so it's clear which plane it represents. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[PATCH drm/hisilicon v2 1/3] drm/hisilicon: Remove the unused include statements

2020-08-02 Thread Tian Tao
Remove some unused include statements. v2: edit patch name and commit message. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 3 --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 - drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 2 -- 3 files

Re: [PATCH] khugepaged: retract_page_tables() remember to test exit

2020-08-02 Thread Hugh Dickins
On Mon, 3 Aug 2020, Kirill A. Shutemov wrote: > On Sun, Aug 02, 2020 at 12:16:53PM -0700, Hugh Dickins wrote: > > Only once have I seen this scenario (and forgot even to notice what > > forced the eventual crash): a sequence of "BUG: Bad page map" alerts > > from vm_normal_page(), from

How i got cured of Genital Herpes Virus

2020-08-02 Thread Mrs Charlotte Albert
-- Hi!! I want to especially thank Dr. Godsent .J. Yare for helping me get cured of the Genital Herpes Virus. I was diagnosed last 2 summers and my doctor said no cure for the virus. I was in big trouble until I saw this sincere sounding YouTube post-https://youtu.be/Uw-l6rfcOl4 online

[PATCH 3/3] ALSA: hda/ca0132 - Fix AE-5 microphone selection commands.

2020-08-02 Thread Connor McAdams
The ca0113 command had the wrong group_id, 0x48 when it should've been 0x30. The front microphone selection should now work. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/pci/hda/patch_ca0132.c

[PATCH 2/3] ALSA: hda/ca0132 - Add new quirk ID for Recon3D.

2020-08-02 Thread Connor McAdams
Add a new quirk ID for the Recon3D, as tested by me. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 2cbe01d59c16..40fa9d82ef95 100644 ---

[PATCH 1/3] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.

2020-08-02 Thread Connor McAdams
When the ZxR headphone gain control was added, the ca0132_switch_get function was not updated, which meant that the changes to the control state were not saved when entering/exiting alsamixer. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 5 + 1 file changed, 5

RE: [PATCH v4 0/2] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-08-02 Thread Doug Smythies
Hi Srinivas, Thanks for your help. I was missing several needed patches. On 2020.08.02 11:39 Srinivas Pandruvada wrote: > On Sun, 2020-08-02 at 07:00 -0700, Doug Smythies wrote: > > On 2020.08.01 09:40 Srinivas Pandruvada wrote: > > > > On Monday, July 27, 2020 5:13:40 PM CEST Rafael J. Wysocki

Re: [kbuild-all] Re: [RFC PATCH linux-next] platform/x86: thinkpad_acpi: dev_attr_charge_start_threshold can be static

2020-08-02 Thread Rong Chen
On 8/1/20 7:45 PM, Andy Shevchenko wrote: On Sat, Aug 1, 2020 at 11:38 AM kernel test robot wrote: Thanks and sorry folks, Hulk robot was faster, and TBH their patch looks much better (proper commit message applied). Perhaps something LKP should work on? Hi Andy, Thanks for the advice,

How i got cured of Genital Herpes Virus

2020-08-02 Thread Mrs Charlotte Albert
-- Hi!! I want to especially thank Dr. Godsent .J. Yare for helping me get cured of the Genital Herpes Virus. I was diagnosed last 2 summers and my doctor said no cure for the virus. I was in big trouble until I saw this sincere sounding YouTube post-https://youtu.be/Uw-l6rfcOl4 online

Re: Re: [PATCH v2 1/5] drm/mediatek: config component output by device node port

2020-08-02 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月2日 週日 下午4:06寫道: > > > Gesendet: Sonntag, 02. August 2020 um 02:03 Uhr > > Von: "Chun-Kuang Hu" > > An: "Frank Wunderlich" > > Cc: "Chun-Kuang Hu" , "Philipp Zabel" > > , "David Airlie" , "linux-kernel" > > , "DRI Development" > > , "moderated

Re: [PATCH v2 2/5] drm/mediatek: fix boot up for 720 and 480 but 1080

2020-08-02 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月2日 週日 下午12:44寫道: > > Hi, > > Am 2. August 2020 02:08:44 MESZ schrieb Chun-Kuang Hu > : > >Hi, Frank: > >> - disable tmds on phy on mt2701 > >> - support other resolutions like 1280x1024 > > > >If this patch does two things, it should be broken into two

Re: sparse warnings in vop

2020-08-02 Thread Dixit, Ashutosh
On Sun, 02 Aug 2020 03:48:33 -0700, Arnd Bergmann wrote: > > On Sun, Aug 2, 2020 at 9:25 AM Andy Shevchenko > wrote: > > On Sunday, August 2, 2020, Michael S. Tsirkin wrote: > >> > >> Hi! > >> Building vop with make C=1 produces the following: > >> > >> CHECK drivers/misc/mic/vop/vop_main.c >

[PATCH] vop: Add missing __iomem annotation in vop_dc_to_vdev()

2020-08-02 Thread Ashutosh Dixit
Fix the following sparse warnings in drivers/misc/mic/vop//vop_main.c: 551:58: warning: incorrect type in argument 1 (different address spaces) 551:58:expected void const volatile [noderef] __iomem *addr 551:58:got restricted __le64 * 560:49: warning: incorrect type in argument 1

Re: [RFC 1/1] pmem: Add cond_resched() in bio_for_each_segment loop in pmem_make_request

2020-08-02 Thread Dave Chinner
On Wed, Jul 29, 2020 at 02:15:18PM +0530, Ritesh Harjani wrote: > For systems which do not have CONFIG_PREEMPT set and > if there is a heavy multi-threaded load/store operation happening > on pmem + sometimes along with device latencies, softlockup warnings like > this could trigger. This was seen

Re: BUG: unable to handle kernel NULL pointer dereference in bpf_prog_ADDR

2020-08-02 Thread Eric Dumazet
On 8/2/20 3:45 PM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1323497090 > kernel config:

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-02 Thread Madhavan T. Venkataraman
On 8/2/20 3:00 PM, Andy Lutomirski wrote: > On Sun, Aug 2, 2020 at 11:54 AM Madhavan T. Venkataraman > wrote: >> More responses inline.. >> >> On 7/28/20 12:31 PM, Andy Lutomirski wrote: On Jul 28, 2020, at 6:11 AM, madve...@linux.microsoft.com wrote: From: "Madhavan T.

Re: [PATCH] nvme-fc: Fix wrong return value in __nvme_fc_init_request()

2020-08-02 Thread Chaitanya Kulkarni
On 8/2/20 04:22, Tianjia Zhang wrote: > On an error exit path, a negative error code should be returned > instead of a positive return value. > > Fixes: e399441de9115 ("nvme-fabrics: Add host support for FC transport") > Cc: James Smart > Signed-off-by: Tianjia Zhang Looks good. Reviewed-by:

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-08-02 Thread Joe Perches
On Sun, 2020-08-02 at 19:28 -0300, Jason Gunthorpe wrote: > On Sun, Aug 02, 2020 at 03:23:58PM -0700, Joe Perches wrote: > > On Sun, 2020-08-02 at 19:10 -0300, Jason Gunthorpe wrote: > > > On Sat, Aug 01, 2020 at 08:38:33AM +0300, Leon Romanovsky wrote: > > > > > > > I'm using {} instead of {0}

BUG: unable to handle kernel NULL pointer dereference in bpf_prog_ADDR

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1323497090 kernel config: https://syzkaller.appspot.com/x/.config?x=c0cfcf935bcc94d2

[PATCH] staging: most: dim2: Add missing identifier name to function argument

2020-08-02 Thread Nícolas F . R . A . Prado
A function definition argument should have an identifier name according to checkpatch: WARNING: function definition argument 'struct platform_device *' should also have an identifier name Name it pdev as that name is already used throughout the code. Signed-off-by: Nícolas F. R. A. Prado ---

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-08-02 Thread Jason Gunthorpe
On Sun, Aug 02, 2020 at 03:23:58PM -0700, Joe Perches wrote: > On Sun, 2020-08-02 at 19:10 -0300, Jason Gunthorpe wrote: > > On Sat, Aug 01, 2020 at 08:38:33AM +0300, Leon Romanovsky wrote: > > > > > I'm using {} instead of {0} because of this GCC bug. > > >

RE: [PATCH] hv_netvsc: Add validation for untrusted Hyper-V values

2020-08-02 Thread Haiyang Zhang
> -Original Message- > From: Andres Beltran > Sent: Tuesday, July 28, 2020 6:53 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > wei@kernel.org > Cc: linux-hyp...@vger.kernel.org; linux-kernel@vger.kernel.org; Michael > Kelley ; parri.and...@gmail.com; Saruhan >

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-08-02 Thread Joe Perches
On Sun, 2020-08-02 at 19:10 -0300, Jason Gunthorpe wrote: > On Sat, Aug 01, 2020 at 08:38:33AM +0300, Leon Romanovsky wrote: > > > I'm using {} instead of {0} because of this GCC bug. > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 > > This is why the {} extension exists.. There is no

Re: KASAN: use-after-free Read in netdevice_event_work_handler

2020-08-02 Thread Jason Gunthorpe
On Fri, Jul 31, 2020 at 02:11:22PM -0700, Rustam Kovhaev wrote: > IB roce driver receives NETDEV_UNREGISTER event, calls dev_hold() and > schedules work item to execute, and before wq gets a chance to complete > it, we return to ip_tunnel.c:274 and call free_netdev(), and then later > we get UAF

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-08-02 Thread Jason Gunthorpe
On Sat, Aug 01, 2020 at 08:38:33AM +0300, Leon Romanovsky wrote: > I'm using {} instead of {0} because of this GCC bug. > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 This is why the {} extension exists.. Jason

linux-next: Fixes tag needs some work in the wireless-drivers-next tree

2020-08-02 Thread Stephen Rothwell
Hi all, In commit 4c7e1711cf4c ("mt76: mt7915: fix potential memory leak in mcu message handler") Fixes tag Fixes: c6b002bcdfa6 ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") has these problem(s): - Target SHA1 does not exist Maybe you meant Fixes: e57b7901469f

[GIT PULL] EDAC for 5.9

2020-08-02 Thread Luck, Tony
Hi Linus, Boris is on vacation and aske me to send you the pull request for EDAC changes that are queued for v5.9 -Tony --- The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at:

Re: Linux 5.8

2020-08-02 Thread Bhaskar Chowdhury
On 14:50 Sun 02 Aug 2020, Linus Torvalds wrote: So I considered making an rc8 all the way to the last minute, but decided it's not just worth waiting another week when there aren't any big looming worries around. Because despite the merge window having been very large, there really hasn't been

[PATCH v20 04/12] landlock: Add ptrace restrictions

2020-08-02 Thread Mickaël Salaün
Using ptrace(2) and related debug features on a target process can lead to a privilege escalation. Indeed, ptrace(2) can be used by an attacker to impersonate another task and to remain undetected while performing malicious activities. Thanks to ptrace_may_access(), various part of the kernel

[PATCH v20 03/12] landlock: Set up the security framework and manage credentials

2020-08-02 Thread Mickaël Salaün
A process credentials point to a Landlock domain, which is underneath implemented with a ruleset. In the following commits, this domain is used to check and enforce the ptrace and filesystem security policies. A domain is inherited from a parent to its child the same way a thread inherits a

[PATCH v20 08/12] landlock: Add syscall implementations

2020-08-02 Thread Mickaël Salaün
These 4 system calls are designed to be used by unprivileged processes to sandbox themselves: * landlock_get_features(2): Gets the supported features (required for backward and forward compatibility, and best-effort security). * landlock_create_ruleset(2): Creates a ruleset and returns its file

[PATCH v20 11/12] samples/landlock: Add a sandbox manager example

2020-08-02 Thread Mickaël Salaün
Add a basic sandbox tool to launch a command which can only access a whitelist of file hierarchies in a read-only or read-write way. Signed-off-by: Mickaël Salaün Cc: James Morris Cc: Jann Horn Cc: Kees Cook Cc: Serge E. Hallyn --- Changes since v19: * Update with the new Landlock syscalls.

[PATCH v20 06/12] fs,security: Add sb_delete hook

2020-08-02 Thread Mickaël Salaün
The sb_delete security hook is called when shutting down a superblock, which may be useful to release kernel objects tied to the superblock's lifetime (e.g. inodes). This new hook is needed by Landlock to release (ephemerally) tagged struct inodes. This comes from the unprivileged nature of

[PATCH v20 02/12] landlock: Add ruleset and domain management

2020-08-02 Thread Mickaël Salaün
A Landlock ruleset is mainly a red-black tree with Landlock rules as nodes. This enables quick update and lookup to match a requested access e.g., to a file. A ruleset is usable through a dedicated file descriptor (cf. following commit implementing the syscall) which enables a process to create

[PATCH v20 12/12] landlock: Add user and kernel documentation

2020-08-02 Thread Mickaël Salaün
This documentation can be built with the Sphinx framework. Signed-off-by: Mickaël Salaün Reviewed-by: Vincent Dagonneau Cc: James Morris Cc: Jann Horn Cc: Kees Cook Cc: Serge E. Hallyn --- Changes since v19: * Update examples and documentation with the new syscalls. Changes since v15: *

[PATCH v20 10/12] selftests/landlock: Add initial tests

2020-08-02 Thread Mickaël Salaün
Test landlock syscall, ptrace hooks semantic and filesystem access-control. Test coverage for security/landlock/ is 93.6% of lines. The code not covered only deals with internal kernel errors (e.g. memory allocation) and race conditions. Signed-off-by: Mickaël Salaün Reviewed-by: Vincent

[PATCH v20 09/12] arch: Wire up Landlock syscalls

2020-08-02 Thread Mickaël Salaün
Wire up the following system calls for all architectures: * landlock_get_features(2) * landlock_create_ruleset(2) * landlock_add_rule(2) * landlock_enforce_ruleset(2) Signed-off-by: Mickaël Salaün Cc: Arnd Bergmann Cc: James Morris Cc: Jann Horn Cc: Kees Cook Cc: Serge E. Hallyn ---

[PATCH v20 05/12] LSM: Infrastructure management of the superblock

2020-08-02 Thread Mickaël Salaün
From: Casey Schaufler Move management of the superblock->sb_security blob out of the individual security modules and into the security infrastructure. Instead of allocating the blobs from within the modules the modules tell the infrastructure how much space is required, and the space is

[PATCH v20 07/12] landlock: Support filesystem access-control

2020-08-02 Thread Mickaël Salaün
Thanks to the Landlock objects and ruleset, it is possible to identify inodes according to a process's domain. To enable an unprivileged process to express a file hierarchy, it first needs to open a directory (or a file) and pass this file descriptor to the kernel through landlock(2). When

[PATCH v20 01/12] landlock: Add object management

2020-08-02 Thread Mickaël Salaün
A Landlock object enables to identify a kernel object (e.g. an inode). A Landlock rule is a set of access rights allowed on an object. Rules are grouped in rulesets that may be tied to a set of processes (i.e. subjects) to enforce a scoped access-control (i.e. a domain). Because Landlock's goal

[PATCH v20 00/12] Landlock LSM

2020-08-02 Thread Mickaël Salaün
Hi, This new patch series mainly replace the landlock(2) command multiplexor with 4 new dedicated syscalls: * landlock_get_features(2) * landlock_create_ruleset(2) * landlock_add_rule(2) * landlock_enforce_ruleset(2) The SLOC count is 1264 for security/landlock/ and 1712 for

Linux 5.8

2020-08-02 Thread Linus Torvalds
So I considered making an rc8 all the way to the last minute, but decided it's not just worth waiting another week when there aren't any big looming worries around. Because despite the merge window having been very large, there really hasn't been anything scary going on in the release candidates.

Re: [PATCH v4 1/5] dt-bindings: irqchip: Add PRU-ICSS interrupt controller bindings

2020-08-02 Thread Grzegorz Jaszczyk
On Fri, 31 Jul 2020 at 23:09, Rob Herring wrote: > > On Fri, Jul 31, 2020 at 01:48:57PM +0200, Grzegorz Jaszczyk wrote: > > On Wed, 29 Jul 2020 at 19:34, David Lechner wrote: > > > > > > On 7/28/20 4:18 AM, Grzegorz Jaszczyk wrote: > > > > From: Suman Anna > > > > > > > > The Programmable

Re: [PATCH] MIPS: Provide Kconfig option for default IEEE754 conformance mode

2020-08-02 Thread Maciej W. Rozycki
On Fri, 31 Jul 2020, Serge Semin wrote: > > Requested by downstream distros, a Kconfig option for default > > IEEE754 conformance mode allows them to set their mode to > > relaxed by default. > > That's what should have been here in the first place. Thanks! Well, originally plans were there to

Re: [PATCH] khugepaged: retract_page_tables() remember to test exit

2020-08-02 Thread Kirill A. Shutemov
On Sun, Aug 02, 2020 at 12:16:53PM -0700, Hugh Dickins wrote: > Only once have I seen this scenario (and forgot even to notice what > forced the eventual crash): a sequence of "BUG: Bad page map" alerts > from vm_normal_page(), from zap_pte_range() servicing exit_mmap(); > pmd:, pte values

Re: [PATCH 0/6] Add TI PRUSS platform driver

2020-08-02 Thread Grzegorz Jaszczyk
Hi On Sun, 2 Aug 2020 at 13:57, Pavel Machek wrote: > > On Sun 2020-08-02 13:53:30, Pavel Machek wrote: > > Hi! > > > > > A typical usage scenario would be to load the application firmware into > > > one or > > > more of the PRU cores, initialize one or more of the peripherals and > > >

[GIT PULL] io_uring changes for 5.9-rc1

2020-08-02 Thread Jens Axboe
changes since commit 4ae6dbd683860b9edc254ea8acf5e04b5ae242e5: io_uring: fix lockup in io_fail_links() (2020-07-24 12:51:33 -0600) are available in the Git repository at: git://git.kernel.dk/linux-block.git tags/for-5.9/io_uring-20200802 for you to fetch changes up

WARNING: ODEBUG bug in bt_host_release

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11e1da9290 kernel config: https://syzkaller.appspot.com/x/.config?x=e59ee776d5aa8d55

Re: [PATCH] ubi: check kthread_should_stop() after the setting of task state

2020-08-02 Thread Richard Weinberger
On Mon, Jun 1, 2020 at 11:13 AM Zhihao Cheng wrote: > > A detach hung is possible when a race occurs between the detach process > and the ubi background thread. The following sequences outline the race: > > ubi thread: if (list_empty(>works)... > > ubi detach: set_bit(KTHREAD_SHOULD_STOP,

Re: [PATCH] khugepaged: collapse_pte_mapped_thp() protect the pmd lock

2020-08-02 Thread Kirill A. Shutemov
On Sun, Aug 02, 2020 at 12:15:24PM -0700, Hugh Dickins wrote: > When retract_page_tables() removes a page table to make way for a huge > pmd, it holds huge page lock, i_mmap_lock_write, mmap_write_trylock and > pmd lock; but when collapse_pte_mapped_thp() does the same (to handle > the case when

Re: [PATCH v4 3/5] counter: Add character device interface

2020-08-02 Thread William Breathitt Gray
On Thu, Jul 30, 2020 at 05:49:37PM -0500, David Lechner wrote: > On 7/28/20 7:20 PM, David Lechner wrote: > > On 7/21/20 2:35 PM, William Breathitt Gray wrote: > >> This patch introduces a character device interface for the Counter > >> subsystem. Device data is exposed through standard character

Re: [PATCH] khugepaged: collapse_pte_mapped_thp() flush the right range

2020-08-02 Thread Kirill A. Shutemov
On Sun, Aug 02, 2020 at 12:12:42PM -0700, Hugh Dickins wrote: > pmdp_collapse_flush() should be given the start address at which the huge > page is mapped, haddr: it was given addr, which at that point has been > used as a local variable, incremented to the end address of the extent. > > Found by

Re: [PATCH] MTD: mtd-abi.h: drop a duplicated word

2020-08-02 Thread Richard Weinberger
On Sun, Jul 19, 2020 at 2:35 AM Randy Dunlap wrote: > > Drop the repeated word "mode" in a comment. > > Signed-off-by: Randy Dunlap > Cc: Miquel Raynal > Cc: Richard Weinberger > Cc: Vignesh Raghavendra > Cc: linux-...@lists.infradead.org > --- > include/uapi/mtd/mtd-abi.h |2 +- > 1

Re: [PATCH] ubifs: misc.h: delete a duplicated word

2020-08-02 Thread Richard Weinberger
On Mon, Jul 20, 2020 at 2:16 AM Randy Dunlap wrote: > > Drop the repeated word "as" in a comment. > > Signed-off-by: Randy Dunlap > Cc: Richard Weinberger > Cc: linux-...@lists.infradead.org > --- > fs/ubifs/misc.h |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied! --

KMSAN: uninit-value in process_adv_report

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:93f54a72 instrumented.h: fix KMSAN support git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=13238a4290 kernel config:

KASAN: use-after-free Read in hci_send_acl

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1348290490 kernel config: https://syzkaller.appspot.com/x/.config?x=c0cfcf935bcc94d2

general protection fault in hci_phy_link_complete_evt

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15ab47ca90 kernel config: https://syzkaller.appspot.com/x/.config?x=c0cfcf935bcc94d2

KASAN: use-after-free Write in __sco_sock_close

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1708290490 kernel config: https://syzkaller.appspot.com/x/.config?x=e59ee776d5aa8d55

general protection fault in hci_event_packet

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11af867090 kernel config: https://syzkaller.appspot.com/x/.config?x=e59ee776d5aa8d55

KASAN: use-after-free Read in hci_chan_del

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11b8d57090 kernel config: https://syzkaller.appspot.com/x/.config?x=e59ee776d5aa8d55

Re: [PATCH] ARM: s3c24xx: demote kerneldoc comment

2020-08-02 Thread Randy Dunlap
On 8/2/20 1:36 PM, Krzysztof Kozlowski wrote: > Remove kerneldoc annotation to fix warning: > > arch/arm/mach-s3c24xx/mach-h1940.c:185: warning: > cannot understand function prototype: 'struct s3c2410fb_display > h1940_lcd __initdata = ' > > Signed-off-by: Krzysztof Kozlowski > ---

[PATCH] ARM: s3c24xx: demote kerneldoc comment

2020-08-02 Thread Krzysztof Kozlowski
Remove kerneldoc annotation to fix warning: arch/arm/mach-s3c24xx/mach-h1940.c:185: warning: cannot understand function prototype: 'struct s3c2410fb_display h1940_lcd __initdata = ' Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-s3c24xx/mach-h1940.c | 4 ++-- 1 file changed,

arm: dts: allwinner: a20: Add Drejo DS167 initial support

2020-08-02 Thread stulluk
From: Sertac TULLUK Drejo DS167 is an Allwinner A20 based IoT device, which support - Allwinner A20 Cortex-A7 - Mali-400MP2 GPU - AXP209 PMIC - 1GB DDR3 RAM - 8GB eMMC - 10/100M Ethernet - SATA - HDMI - 10.1inch and 7.0inch LVDS LCD and Touch screens - CSI: OV5640 sensor - USB OTG - 2x USB2.0

arm: dts: allwinner: a20: Add Drejo DS167 initial support

2020-08-02 Thread stulluk
From: Sertac TULLUK Drejo DS167 is an Allwinner A20 based IoT device, which support - Allwinner A20 Cortex-A7 - Mali-400MP2 GPU - AXP209 PMIC - 1GB DDR3 RAM - 8GB eMMC - 10/100M Ethernet - SATA - HDMI - 10.1inch and 7.0inch LVDS LCD and Touch screens - CSI: OV5640 sensor - USB OTG - 2x USB2.0

Re: [PATCH v3 4/6] pwm: cros-ec: Accept more error codes from cros_ec_cmd_xfer_status

2020-08-02 Thread Uwe Kleine-König
Hello Guenter, On Sat, Aug 01, 2020 at 09:32:19AM -0700, Guenter Roeck wrote: > > If I understand correctly this surprising calling convention (output > > parameter is filled even though the function returned an error) is the > > old one that is to be fixed. > > Sorry, I don't get your point.

<    1   2   3   4   5   >