[PATCH v1] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw

2018-12-24 Thread Ivan Mironov
This happened when I tried to boot normal Fedora 29 system with latest available kernel (from fedora rawhide, plus some unrelated custom patches): BUG: unable to handle kernel NULL pointer dereference at PGD 0 P4D 0 Oops: 0010 [#1] SMP PTI CPU: 6

Re: [PATCH v3 1/9] drm/komeda: komeda_dev/pipeline/component definition and initialzation

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 09:58:55AM +, james qian wang (Arm Technology China) wrote: > 1. Added a brief definition of komeda_dev/pipeline/component, this change >didn't add the detailed component features and capabilities, which will >be added in the following changes. > 2.

Re: [PATCH RFC] mm: vmalloc: do not allow kzalloc to fail

2018-12-24 Thread Nicholas Mc Guire
On Mon, Dec 24, 2018 at 10:38:04AM +0100, Nicholas Mc Guire wrote: > On Mon, Dec 24, 2018 at 09:10:56AM +0100, Michal Hocko wrote: > > On Sat 22-12-18 09:04:21, Nicholas Mc Guire wrote: > > > On Fri, Dec 21, 2018 at 01:58:39PM -0800, David Rientjes wrote: > > > > On Thu, 20 Dec 2018, Nicholas Mc

Re: [PATCH v3 2/9] dt/bindings: drm/komeda: Add DT bindings for ARM display processor D71

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 09:59:12AM +, james qian wang (Arm Technology China) wrote: > Add DT bindings documentation for the ARM display processor D71 and later > IPs. > > Signed-off-by: James (Qian) Wang > > Changes in v3: > - Deleted unnecessary property: interrupt-names. > - Dropped

Re: x86/sgx: uapi change proposal

2018-12-24 Thread Jarkko Sakkinen
On Sun, Dec 23, 2018 at 12:41:49PM -0800, Andy Lutomirski wrote: > Presumably sgx would create a bus and enumerate the devices as needed. > Or I suppose these things could be platform or system devices. I’m not > really a device model expert, and the one time I tried to implement a > character

Re: [PATCH v3 3/9] drm/komeda: Build komeda to be a platform module

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 09:59:28AM +, james qian wang (Arm Technology China) wrote: > Implement a simple wrapper for platform module to build komeda to module, > Also add a very simple D71 layer code to show how to discover a product. > Komeda driver direct bind the product ENTRY function

Re: [PATCH v3 4/9] drm/komeda: Add DT parsing

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 09:59:44AM +, james qian wang (Arm Technology China) wrote: > Parse DT and initialize corresponding dev/pipeline attributes. > > Changes in v3: > - Fixed style problem found by checkpatch.pl --strict. > > Changes in v2: > - Unified abbreviation of "pipeline" to

Re: [PATCH v3 0/3] fat: Added functions to determine the FAT variant (12/16/32bit)

2018-12-24 Thread OGAWA Hirofumi
Carmeli Tamir writes: > Along the FAT FS code, the FAT variant (whether this is FAT12, FAT16 or > FAT32) is > determined by checking the fat_bits field of struct msdos_sb_info. > This is somewhat error prone as it forces the usage of magics (12, 16, 32) > multiple times in the code. > > This

Re: [PATCH v3 5/9] drm/komeda: Add komeda_format_caps for format handling

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 10:00:01AM +, james qian wang (Arm Technology China) wrote: > komeda_format_caps is for describing ARM display specific features and > limitations of a specific format, and format_caps will be linked into > _framebuffer like a extension of _format_info. > And

Re: Bug with report THP eligibility for each vma

2018-12-24 Thread Mike Rapoport
On Mon, Dec 24, 2018 at 08:49:16AM +0100, Michal Hocko wrote: > [Cc-ing mailing list and people involved in the original patch] > > On Fri 21-12-18 13:42:24, Paul Oppenheimer wrote: > > Hello! I've never reported a kernel bug before, and since its on the > > "next" tree I was told to email the

Re: [PATCH] firmware/memmap:Modify memblock_alloc to memblock_alloc_nopanic

2018-12-24 Thread Mike Rapoport
On Mon, Dec 24, 2018 at 04:41:22PM +0800, huang.zijiang wrote: > From: "huang.zijiang" > > memblock_alloc never returns NULL because panic never returns > > Signed-off-by: huang.zijiang Acked-by: Mike Rapoport > --- > drivers/firmware/memmap.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v2] vfat: don't read garbage after last dirent

2018-12-24 Thread OGAWA Hirofumi
Matteo Croce writes: > The FAT32 File System Specification[1] states that: > > If DIR_Name[0] == 0x00, then the directory entry is free, and there > are no allocated directory entries after this one. > > The special 0 value, indicates to FAT file system driver code that > the

Re: [PATCH v3 6/9] drm/komeda: Add komeda_framebuffer

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 10:00:17AM +, james qian wang (Arm Technology China) wrote: > komeda_framebuffer is for extending drm_framebuffer to add komeda own > attributes and komeda specific fb handling. > > Changes in v3: > - Fixed style problem found by checkpatch.pl --strict. > >

[PATCH v2 0/4] Reduce NUMA related overhead in perf record profiling on large server systems

2018-12-24 Thread Alexey Budankov
It has been observed that trace reading thread runs on the same hw thread most of the time during perf record sampling collection. This scheduling layout leads up to 30% profiling overhead in case when some cpu intensive workload fully utilizes a large server system with NUMA. Overhead usually

[PATCH v2 1/4] perf record: allocate affinity masks

2018-12-24 Thread Alexey Budankov
Allocate affinity option and masks for mmap data buffers and record thread as well as initialize allocated objects. Signed-off-by: Alexey Budankov --- Changes in v2: - made debug affinity mode message user friendly - converted affinity mode defines to enum values ---

[PATCH v2 2/4] perf record: bind the AIO user space buffers to nodes

2018-12-24 Thread Alexey Budankov
Allocate and bind AIO user space buffers to the memory nodes that mmap kernel buffers are bound to. Signed-off-by: Alexey Budankov --- Changes in v2: - implemented perf_mmap__aio_alloc, perf_mmap__aio_free, perf_mmap__aio_bind and put HAVE_LIBNUMA_SUPPORT #ifdefs in there ---

Re: [PATCH v4 10/10] sched/fair: Provide idle search schedstats

2018-12-24 Thread Rick Lindsley
On 12/06/2018 01:28 PM, Steve Sistare wrote: Add schedstats to measure the effectiveness of searching for idle CPUs and stealing tasks. This is a temporary patch intended for use during development only. SCHEDSTAT_VERSION is bumped to 16, and the following fields are added to the per-CPU

[PATCH] drm/vc4: Allow fb modifiers early enough to fill IN_FORMATS property

2018-12-24 Thread Paul Kocialkowski
The KMS mode_config elements are currently configured in vc4_kms_load, that is called after all components are binded (component_bind_all). However, the CRTC component (for the Pixel Valve) needs to access the allow_fb_modifiers element at bind time, when initializing its planes through

[PATCH v2 3/4] perf record: apply affinity masks when reading mmap buffers

2018-12-24 Thread Alexey Budankov
Build node cpu masks for mmap data buffers. Apply node cpu masks to tool thread every time it references data buffers cross node or cross cpu. Signed-off-by: Alexey Budankov --- Changes in v2: - separated AIO buffers binding to patch 2/4 --- tools/perf/builtin-record.c | 9 +

[PATCH v2 4/4] perf record: implement --affinity=node|cpu option

2018-12-24 Thread Alexey Budankov
Implement --affinity=node|cpu option for the record mode defaulting to system affinity mask bouncing. Signed-off-by: Alexey Budankov --- tools/perf/Documentation/perf-record.txt | 5 + tools/perf/builtin-record.c | 18 ++ 2 files changed, 23 insertions(+)

Re: [PATCH v3 7/9] drm/komeda: Attach komeda_dev to DRM-KMS

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 10:00:33AM +, james qian wang (Arm Technology China) wrote: > Add komeda_kms abstracton to attach komeda_dev to DRM-KMS > CRTC: according to the komeda_pipeline > PLANE: according to komeda_layer (layer input pipeline) > PRIVATE_OBJS: komeda_pipeline/component

Re: [PATCH v3 8/9] drm/doc: Add initial komeda driver documentation

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 10:00:49AM +, james qian wang (Arm Technology China) wrote: > v2: Some editing changes according to Randy Dunlap's comments > > Signed-off-by: James (Qian) Wang Reviewed-by: Liviu Dudau > --- > Documentation/gpu/drivers.rst| 1 + >

Re: [PATCH v3 9/9] MAINTAINERS: Add maintainer for arm komeda driver

2018-12-24 Thread Liviu Dudau
On Fri, Dec 21, 2018 at 10:01:06AM +, james qian wang (Arm Technology China) wrote: > v2: Adjusted the position of KOMEDA by alphabetical order > > Signed-off-by: James (Qian) Wang Acked-by: Liviu Dudau Best regards, Liviu > --- > MAINTAINERS | 9 + > 1 file changed, 9

Incorrect use IPCB in icmp_send code

2018-12-24 Thread Nazarov Sergey
Hello! icmp_send routine calls ip_option_echo, which uses IPCB to take skbuff compiled IP options. But icmp_send could be called from TCP level too (security_sock_rcv_skb - cipso_v4_error for INET stream connection, for example). After moving IP header data to the end of the struct tcp_skb_cb,

[xarray] b803b42823: BUG:soft_lockup-CPU##stuck_for#s

2018-12-24 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-4.9): commit: b803b42823d0d9e8b6deccf01ffc2aba5d0738df ("xarray: Add XArray iterators") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s

Re: [PATCH] arm64: dts: rockchip: enable analog audio node for rock64

2018-12-24 Thread Katsuhiro Suzuki
Hello Heiko, I understand. Thanks a lot! Best Regards, Katsuhiro Suzuki On 2018/12/24 16:16, Heiko Stuebner wrote: Hi, Am Sonntag, 23. Dezember 2018, 11:10:26 CET schrieb Katsuhiro Suzuki: The Rock64 boards has analog audio jack on it. RK3328 can output analog audio signal using I2S1 and

Re: [xarray] b803b42823: BUG:soft_lockup-CPU##stuck_for#s

2018-12-24 Thread Matthew Wilcox
On Mon, Dec 24, 2018 at 08:56:20PM +0800, kernel test robot wrote: > [ 51.886077] Call Trace: > [ 51.886077] ? xas_find+0x11b/0x240 > [ 51.886077] ? xa_find+0xc2/0xe0 > [ 51.886077] ? check_find+0x11a/0x420 > [ 51.886077] ? check_multi_store+0xa40/0xa40 > [ 51.886077] ?

Re: [PATCH v3 9/9] MAINTAINERS: Add maintainer for arm komeda driver

2018-12-24 Thread Daniel Vetter
On Mon, Dec 24, 2018 at 1:33 PM Liviu Dudau wrote: > > On Fri, Dec 21, 2018 at 10:01:06AM +, james qian wang (Arm Technology > China) wrote: > > v2: Adjusted the position of KOMEDA by alphabetical order > > > > Signed-off-by: James (Qian) Wang > > Acked-by: Liviu Dudau > > Best regards, >

[PATCH] f2fs: fix use-after-free issue with sbi->stat_info

2018-12-24 Thread Sahitya Tummala
iput() on sbi->node_inode can update sbi->stat_info in the below context, if the f2fs_write_checkpoint() has failed with error. f2fs_balance_fs_bg+0x1ac/0x1ec f2fs_write_node_pages+0x4c/0x260 do_writepages+0x80/0xbc __writeback_single_inode+0xdc/0x4ac writeback_single_inode+0x9c/0x144

Re: [PATCH] staging: speakup: Fix coding style

2018-12-24 Thread Samuel Thibault
Daniel Smith, le lun. 24 déc. 2018 10:12:23 +, a ecrit: > Replaced text ---help--- with help as per style check patch recommendation > > Signed-off-by: Daniel Acked-by: Samuel Thibault

[PATCH v5 0/9] Use vm_insert_range

2018-12-24 Thread Souptick Joarder
v1 -> v2: Address review comment on mm/memory.c. Add EXPORT_SYMBOL for vm_insert_range and corrected the documentation part for this API. In drivers/gpu/drm/xen/xen_drm_front_gem.c, replace err with ret as suggested. In drivers/iommu/dma-iommu.c,

[PATCH v5 1/9] mm: Introduce new vm_insert_range API

2018-12-24 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating a new function and use it across the drivers.

[PATCH v5 2/9] arch/arm/mm/dma-mapping.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder --- arch/arm/mm/dma-mapping.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index

[PATCH v5 3/9] drivers/firewire/core-iso.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- drivers/firewire/core-iso.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/firewire/core-iso.c

[PATCH v5 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Tested-by: Heiko Stuebner Acked-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git

[PATCH v5 5/9] drm/xen/xen_drm_front_gem.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Reviewed-by: Oleksandr Andrushchenko --- drivers/gpu/drm/xen/xen_drm_front_gem.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-)

[PATCH v5 6/9] iommu/dma-iommu.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- drivers/iommu/dma-iommu.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/iommu/dma-iommu.c

[PATCH v1 0/4] perf: enable compression of record mode trace to save storage space

2018-12-24 Thread Alexey Budankov
The patch set implements runtime record trace compression accompanied by trace file decompression implemented in the tool report mode. Zstandard library API [1] is used for compression/decompression of data that come from perf_events kernel data buffers. Realized -z,--compression_level=n

[PATCH v5 7/9] videobuf2/videobuf2-dma-sg.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Acked-by: Marek Szyprowski Acked-by: Mauro Carvalho Chehab --- drivers/media/common/videobuf2/videobuf2-dma-sg.c | 23 +++ 1 file changed,

[PATCH v5 8/9] xen/gntdev.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Reviewed-by: Boris Ostrovsky --- drivers/xen/gntdev.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/xen/gntdev.c

[PATCH v5 9/9] xen/privcmd-buf.c: Convert to use vm_insert_range

2018-12-24 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Reviewed-by: Boris Ostrovsky --- drivers/xen/privcmd-buf.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH v1 1/4] feature: build libzstd feature check, LIBZSTD_DIR and NO_LIBZSTD defines

2018-12-24 Thread Alexey Budankov
Build feature check, LIBZSTD_DIR and NO_LIBZSTD defines to have capability of overriding ZStandard library source and disabling of the feature and from the command line: $ make -C tools/perf LIBZSTD_DIR=/root/abudanko/zstd-1.3.7 clean all $ make -C tools/perf NO_LIBZSTD=1 clean all

[PATCH v1 2/4] perf record: introduce z, mmap-flush options and PERF_RECORD_COMPRESSED record

2018-12-24 Thread Alexey Budankov
Introduce --compression_level=n, --mmap-flush options and PERF_RECORD_COMPRESSED event record that contains compressed parts of mmap kernel buffer data. Signed-off-by: Alexey Budankov --- tools/perf/Documentation/perf-record.txt | 11 +++ tools/perf/builtin-record.c | 97

[PATCH v1 3/4] perf record: enable runtime trace compression

2018-12-24 Thread Alexey Budankov
Compression is implemented using Zstandard API and employs AIO buffers as the memory to operate on so memcpy() is substituted by the API call. If the API call fails for some reason copying falls back to memcpy(). Data chunks are split and packed into PERF_RECORD_COMPRESSED records by 64KB at

[PATCH v1 4/4] perf report: support record trace file decompression

2018-12-24 Thread Alexey Budankov
PERF_RECORD_COMPRESSED records are decompressed from trace file into a linked list of mmaped memory regions using Zstandard API. After that the region is loaded fetching uncompressed events. When dumping raw trace like perf report -D file offsets of events from compressed records are set to

[PATCH] kbuild: remove unused cmd_gentimeconst

2018-12-24 Thread Masahiro Yamada
filechk_gentimeconst is always used instead of cmd_gentimeconst. Signed-off-by: Masahiro Yamada --- Kbuild | 4 1 file changed, 4 deletions(-) diff --git a/Kbuild b/Kbuild index 640557d..4455dfd 100644 --- a/Kbuild +++ b/Kbuild @@ -25,10 +25,6 @@ timeconst-file :=

RE: [EXT] [PATCH v1] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw

2018-12-24 Thread Sudarsana Reddy Kalluru
-Original Message- From: Ivan Mironov [mailto:mironov.i...@gmail.com] Sent: 24 December 2018 17:26 To: net...@vger.kernel.org Cc: Ariel Elior ; Sudarsana Kalluru ; everest-linux...@cavium.com; David S. Miller ; linux-kernel@vger.kernel.org; Ivan Mironov Subject: [EXT] [PATCH v1]

[PATCH v2] fs: fix possible Spectre V1 indexing in __close_fd()

2018-12-24 Thread Greg Hackmann
Omer Tripp's analysis of a Spectre V1 gadget in __close_fd(): "1. __close_fd() is reachable via the close() syscall with a user-controlled fd. 2. If said bounds check is mispredicted, then a user-controlled address fdt->fd[fd] is obtained then dereferenced, and the value of a

Re: [PATCH v5 6/9] iommu/dma-iommu.c: Convert to use vm_insert_range

2018-12-24 Thread Russell King - ARM Linux
On Mon, Dec 24, 2018 at 06:55:31PM +0530, Souptick Joarder wrote: > Convert to use vm_insert_range() to map range of kernel > memory to user vma. > > Signed-off-by: Souptick Joarder > Reviewed-by: Matthew Wilcox > --- > drivers/iommu/dma-iommu.c | 13 +++-- > 1 file changed, 3

[PATCH] drm/bridge/panel: Remove duplicate header

2018-12-24 Thread Brajeswar Ghosh
Remove drm/drm_panel.h which is included more than once Signed-off-by: Brajeswar Ghosh --- drivers/gpu/drm/bridge/panel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 7cbaba213ef6..402b318eeeb2 100644 ---

[PATCH] drm/drm_drv.c: Remove duplicate header

2018-12-24 Thread Brajeswar Ghosh
Remove drm_crtc_internal.h which is included more than once Signed-off-by: Brajeswar Ghosh --- drivers/gpu/drm/drm_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 4126bb6e1a4a..75f4e6bf67ca 100644 ---

Re: [PATCH v2 2/3] ASoC: Documentation: Add google,cros-ec-codec

2018-12-24 Thread Guenter Roeck
On Mon, Dec 24, 2018 at 12:39 AM Cheng-Yi Chiang wrote: > > Add documentation for Chrome EC codec driver. > > Signed-off-by: Cheng-Yi Chiang > --- > Change in v2: Fixed name of driver in MAINTAINERS. > > .../bindings/sound/google,cros-ec-codec.txt | 24 +++ Since this is a

Re: [PATCH v2] fs: fix possible Spectre V1 indexing in __close_fd()

2018-12-24 Thread Matthew Wilcox
On Mon, Dec 24, 2018 at 06:26:42AM -0800, Greg Hackmann wrote: > +++ b/fs/file.c > @@ -18,6 +18,7 @@ > #include > #include > #include > +#include > > unsigned int sysctl_nr_open __read_mostly = 1024*1024; > unsigned int sysctl_nr_open_min = BITS_PER_LONG; > @@ -626,6 +627,7 @@ int

Re: [PATCH v2 3/3] ASoC: cros_ec_codec: Add codec driver for Cros EC

2018-12-24 Thread Guenter Roeck
On Mon, Dec 24, 2018 at 12:45 AM Cheng-Yi Chiang wrote: > > Add a codec driver to control ChromeOS EC codec. > > Use EC Host command to enable/disable I2S recording and control other > configurations. > > Signed-off-by: Cheng-Yi Chiang > --- > Addressed Enric's comments. > > Changes in v2: >

Re: [PATCH] drm/fb-helper: fix leaks in error path of drm_fb_helper_fbdev_setup

2018-12-24 Thread Noralf Trønnes
Den 24.12.2018 00.10, skrev Peter Wu: On Sun, Dec 23, 2018 at 02:55:52PM +0100, Noralf Trønnes wrote: Den 23.12.2018 01.55, skrev Peter Wu: After drm_fb_helper_fbdev_setup calls drm_fb_helper_init, "dev->fb_helper" will be initialized (and thus drm_fb_helper_fini will have some effect).

Re: [PATCH V2] SelfTest: KVM: Drop Asserts for madvise MADV_NOHUGEPAGE failure

2018-12-24 Thread Ahmed Soliman
Kind reminder to merge my patch into next thanks. On Fri, Nov 16, 2018 at 2:59 PM Andrew Jones wrote: > > On Fri, Nov 16, 2018 at 01:50:55PM +0200, Ahmed Abd El Mawgood wrote: > > From: Ahmed Abd El Mawgood > > > > madvise() returns -1 without CONFIG_TRANSPARENT_HUGEPAGE=y. That would > >

Re: [PATCH] drm/fb-helper: fix leaks in error path of drm_fb_helper_fbdev_setup

2018-12-24 Thread Peter Wu
On Mon, Dec 24, 2018 at 03:52:55PM +0100, Noralf Trønnes wrote: > > > Den 24.12.2018 00.10, skrev Peter Wu: > > On Sun, Dec 23, 2018 at 02:55:52PM +0100, Noralf Trønnes wrote: > > > > > > > > > Den 23.12.2018 01.55, skrev Peter Wu: > > > > After drm_fb_helper_fbdev_setup calls

[PATCH v2] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw

2018-12-24 Thread Ivan Mironov
This happened when I tried to boot normal Fedora 29 system with latest available kernel (from fedora rawhide, plus some unrelated custom patches): BUG: unable to handle kernel NULL pointer dereference at PGD 0 P4D 0 Oops: 0010 [#1] SMP PTI CPU: 6

[PATCH] firmware_loader: move CONFIG_FW_LOADER_USER_HELPER switch to Makefile

2018-12-24 Thread Masahiro Yamada
The whole code of fallback_table.c is surrounded by #ifdef of CONFIG_FW_LOADER_USER_HELPER. Move the CONFIG_FW_LOADER_USER_HELPER switch to Makefile so that it is not compiled at all when this CONFIG is turned off. I also removed the confusing comment, "Module or buit-in [sic]".

Re: [EXT] [PATCH v1] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw

2018-12-24 Thread Ivan Mironov
On Mon, 2018-12-24 at 14:26 +, Sudarsana Reddy Kalluru wrote: > Thanks a lot for root-causing the issue and the patch. > Another (simpler) way to address this would be to invoke > bnx2x_del_all_vlans() only for the newer chips, e.g., > + if (!CHIP_IS_E1(bp)) { > /* Remove all

Re: You removed Weboob package over political reasons? Whole Internet laughs at you

2018-12-24 Thread vsnsdualce
Debian is not ruled by the men who actually write the software, but instead women. Just like in all the anglo-american conquered world. We, the men who actually do work, are treated as the same worker-slaves everywhere. Opensource was a refuge from the worthless cunts (who ban us from having

Re: [PATCH 1/3] treewide: remove explicit rules for *offsets.s

2018-12-24 Thread Masahiro Yamada
On Sun, Dec 23, 2018 at 7:32 PM Masahiro Yamada wrote: > > These explicit rules are unneeded because scripts/Makefile.build > provides a pattern rule to create %.s from %.c > > Signed-off-by: Masahiro Yamada > --- Series, applied to linux-kbuild. > Kbuild | 9

Re: [PATCH] kconfig: remove unused "file" field of yylval union

2018-12-24 Thread Masahiro Yamada
On Fri, Dec 21, 2018 at 5:59 PM Masahiro Yamada wrote: > > This has never been used. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild/kconfig. > scripts/kconfig/zconf.y | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y

Re: [PATCH 1/5] kconfig: split some C files out of zconf.y

2018-12-24 Thread Masahiro Yamada
On Sat, Dec 22, 2018 at 12:24 AM Masahiro Yamada wrote: > > I want to compile each C file independently instead of including all > of them from zconf.y. > > These 4 files are low hanging fruits. > > Signed-off-by: Masahiro Yamada > --- Series, applied to linux-kbuild/kconfig. >

Re: [PATCH] kconfig: convert to SPDX License Identifier

2018-12-24 Thread Masahiro Yamada
On Tue, Dec 18, 2018 at 9:15 PM Masahiro Yamada wrote: > > All files in lxdialog/ are licensed under GPL-2.0+, and the rest are > under GPL-2.0. I added GPL-2.0 tags to python test scripts in tests/. > > Documentation/process/license-rules.rst does not suggest anything > about the flex/bison

Re: [PATCH v5 0/9] Use vm_insert_range

2018-12-24 Thread Russell King - ARM Linux
Having discussed with Matthew offlist, I think we've come to the following conclusion - there's a number of drivers that buggily ignore vm_pgoff. So, what I proposed is: static int __vm_insert_range(struct vm_struct *vma, struct page *pages, size_t num, unsigned long

Re: [PATCH 3/3] firmware: rewrite Makefile

2018-12-24 Thread Masahiro Yamada
On Fri, Dec 21, 2018 at 5:43 PM Masahiro Yamada wrote: > > Clean up the Makefile. Equivalent *.gen.S files are produced. > > - Use filechk to remove ugly wordsize_deps > > - Get FWNAME, FWSTR, ASM_WORD, ASM_ALIGN, and PROGBITS out of the >recipe for readability > > - Move mkdir into the

general protection fault in xfrm_policy_insert_list

2018-12-24 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ce28bb445388 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=17803ac340 kernel config: https://syzkaller.appspot.com/x/.config?x=67a2081147a23142

INFO: rcu detected stall in snd_pcm_oss_read

2018-12-24 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3c730b1041ae Merge branch 'fixes' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16a6cf1b40 kernel config: https://syzkaller.appspot.com/x/.config?x=861a3573f4e78ba1

Reason for RedHat purchase 30 pct over market cap

2018-12-24 Thread vsnsdualce
Redhat has achieved "governance" over the Linux(TM), via systemd and the Code of Conduct. You, contributors, are now treated as employees. They are confident that you will not assert your property rights, since you attack those who do (See: Netfiter saga), and take it as an honour to sign

2 months and no response from Eben Moglen - Yes you can rescind your grant.

2018-12-24 Thread vsnsdualce
It has been 2 months. Eben Moglen has published no research. Because there is nothing more to say: The GPLv2, as used by linux, is a bare license. It can be rescinded at the will of the grantor. The regime that the FSF used, vis-a-vis the GPLv2, is essential: copyright transfers to a central

Re: [PATCH v5 2/6] media: sun6i: Add mod_rate quirk

2018-12-24 Thread Jagan Teki
On Fri, Dec 21, 2018 at 6:30 PM Maxime Ripard wrote: > > On Thu, Dec 20, 2018 at 06:24:34PM +0530, Jagan Teki wrote: > > Unfortunately default CSI_SCLK rate cannot work properly to > > drive the connected sensor interface, particularly on few > > Allwinner SoC's like A64. > > > > So, add mod_rate

[PATCH] media/lgdt3306a: Add a missing return value check.

2018-12-24 Thread Aditya Pakki
In lgdt3306a.c, lgdt3306a_read_signal_strength() can fail while reading the registers via lgdt3306a_read_reg(). The function can return an error from i2c_transfer(). The fix checks the return value for this failure. Signed-off-by: Aditya Pakki --- drivers/media/dvb-frontends/lgdt3306a.c | 5

Re: [PATCH v5 6/6] net: lorawan: List LORAWAN in menuconfig

2018-12-24 Thread Alexander Aring
Hi, On Tue, Dec 18, 2018 at 02:50:58PM +0100, Xue Liu wrote: > Hello Andreas, > > On Mon, 17 Dec 2018 at 15:19, Andreas Färber wrote: > > > > Hello Xue Liu, > > > > Am 17.12.18 um 09:50 schrieb Xue Liu: > > > I have a question about the architecture of your module. AFAIK LoRaWAN > > > is

Yes: The linux devs can rescind their license grant. GPLv2 is a bare license and is revocable by the grantor.

2018-12-24 Thread vsnsdualce
Bradley M. Kuhn: The SFConservancy's new explanation was refuted 5 hours after it was published: Yes they can, greg. The GPL v2, is a bare license. It is not a contract. It lacks consideration between the licensee and the grantor. (IE: They didn't pay you, Greg, a thing. YOU, Greg,

Re: [PATCH] Revert "serial: 8250: Fix clearing FIFOs in RS485 mode again"

2018-12-24 Thread Paul Burton
Hi Marek, On Fri, Dec 21, 2018 at 11:02:03PM +0100, Marek Vasut wrote: > >> I shared the entire testcase, which now fails on AM335x due to this > >> revert. Is there any progress on a proper fix from your side which does > >> not break the AM335x ? > > > > No. > > > > Let's be clear - I didn't

general protection fault in transparent_hugepage_enabled

2018-12-24 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6a1d293238c1 Add linux-next specific files for 20181224 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=149a2add40 kernel config: https://syzkaller.appspot.com/x/.config?x=c190b602a5d2d731

[PATCH] rts5208: Add a check on the status of ms_send_cmd

2018-12-24 Thread Aditya Pakki
In mspro_stop_seq_mode(), ms_send_cmd() may fail. The patch attempts to detect a failure before flushing the registers via rtsx_write_register. Signed-off-by: Aditya Pakki --- drivers/staging/rts5208/ms.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

RE: [EXT] [PATCH v2] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw

2018-12-24 Thread Sudarsana Reddy Kalluru
-Original Message- From: Ivan Mironov [mailto:mironov.i...@gmail.com] Sent: 24 December 2018 20:43 To: net...@vger.kernel.org Cc: Ariel Elior ; Sudarsana Kalluru ; everest-linux...@cavium.com; David S. Miller ; linux-kernel@vger.kernel.org; Sudarsana Reddy Kalluru ; Ivan Mironov

Re: linux-next: Signed-off-by missing for commit in the cifs tree

2018-12-24 Thread Steve French
Fixed and remerged to cifs-2.6.git for-next On Mon, Dec 24, 2018 at 5:45 AM Stephen Rothwell wrote: > > Hi all, > > Commit > > 87410161a381 ("cifs: check kzalloc return") > > is missing a Signed-off-by from its author. > > -- > Cheers, > Stephen Rothwell -- Thanks, Steve

[PATCH] staging: wlan-ng: prism2fw.c: Fix "Possible unnecessary 'out of memory' message" checkpatch.pl warning"

2018-12-24 Thread Prathamesh Deshpande
This patch removes unnecessary out of memory warning message from wlan-ng prism2fw.c file. Signed-off-by: Prathamesh Deshpande --- drivers/staging/wlan-ng/prism2fw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index

Re: [DNG] 2 months and no response from Eben Moglen - Yes you can rescind your grant. -- The CoC regime is a License violation - Additional restrictive terms

2018-12-24 Thread vnsndalce
Hendrik Boom, are you a lawyer? No? How about you shut your fucking mouth about things you have no clue of? Sound like a plan, ignorant lay person? Below is an explanation of just how it is a violation of the rights-holder's grant. The courts are not fooled by "clever" verbiage written up

[GIT PULL] Audit patches for v4.21

2018-12-24 Thread Paul Moore
in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git tags/audit-pr-20181224 for you to fetch changes up to d406db524c32ca35bd85cada28a547fff3115715: audit: remove duplicated include from audit.c (2018-12-14 12:09:30 -0500

Fwd: Re: [DNG] 2 months and no response from Eben Moglen - Yes you can rescind your grant. -- The CoC regime is a License violation - Additional restrictive terms

2018-12-24 Thread vnsndalce
Original Message Subject: Re: [DNG] 2 months and no response from Eben Moglen - Yes you can rescind your grant. -- The CoC regime is a License violation - Additional restrictive terms Date: 2018-12-24 16:24 From: vnsnda...@memeware.net To: d...@lists.dyne.org Version 2 of

[PATCH] ipv6/route: Add a missing check on proc_dointvec

2018-12-24 Thread Aditya Pakki
While flushing the cache via ipv6_sysctl_rtcache_flush(), the call to proc_dointvec() may fail. The fix adds a check that returns the error, on failure. Signed-off-by: Aditya Pakki --- net/ipv6/route.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/ipv6/route.c

[PATCH] x86/intel-mid: Add pr_warn when platform_device_add() fails

2018-12-24 Thread Aditya Pakki
platform_device_add() may fail in intel_scu_devices_create and sfi_handle_ipc_dev. The fix checks for the return value in these cases and displays the failed device. Signed-off-by: Aditya Pakki --- arch/x86/platform/intel-mid/sfi.c | 16 1 file changed, 12 insertions(+), 4

[PATCH v1 2/2] iio: adc: add NPCM ADC driver

2018-12-24 Thread Tomer Maimon
Add Nuvoton NPCM BMC Analog-to-Digital Converter(ADC) driver. The NPCM ADC is a 10-bit converter for eight channel inputs. Signed-off-by: Tomer Maimon --- drivers/iio/adc/Kconfig| 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/npcm_adc.c | 336

[PATCH v1 1/2] dt-binding: iio: add NPCM ADC documentation

2018-12-24 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Analog-to-Digital Converter(ADC). Signed-off-by: Tomer Maimon --- .../bindings/iio/adc/nuvoton,npcm-adc.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644

[PATCH v1 0/2] iio: adc: npcm: add NPCm ADC driver

2018-12-24 Thread Tomer Maimon
This patch set adds Analog-to-Digital Converter (ADC) support for the Nuvoton NPCM Baseboard Management Controller (BMC). The NPCM ADC is a 10-bit converter for eight channel inputs. The NPCM ADC driver tested on NPCM750 evaluation board. Tomer Maimon (2): dt-binding: iio: add NPCM ADC

[PATCH v2] staging: wlan-ng: prism2fw.c: Fix "Possible unnecessary 'out of memory' message" checkpatch.pl warning"

2018-12-24 Thread Prathamesh Deshpande
This patch removes unnecessary out of memory warning message from wlan-ng prism2fw.c file. Signed-off-by: Prathamesh Deshpande --- drivers/staging/wlan-ng/prism2fw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2fw.c

[PATCH] slimbus: Add a check on the return value of platform_device_add

2018-12-24 Thread Aditya Pakki
In of_qcom_slim_ngd_register, the function platform_device_add() may fail. The fix returns the error value upstream in case of failure. Signed-off-by: Aditya Pakki --- drivers/slimbus/qcom-ngd-ctrl.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[GIT PULL] SELinux patches v4.21

2018-12-24 Thread Paul Moore
kernel/git/pcmoore/selinux.git tags/selinux-pr-20181224 for you to fetch changes up to ee1a84fdfeedfd7362e9a8a8f15fedc3482ade2d: selinux: overhaul sidtab to fix bug and improve performance (2018-12-05 16:12:32 -0500) selinux/stab

Re: [PATCH 1/3] pinctrl: armada-37xx: Correct mpp definitions

2018-12-24 Thread Gregory CLEMENT
Hi Marek, On sam., déc. 22 2018, Marek Behun wrote: > On Fri, 21 Dec 2018 18:32:57 +0100 > Gregory CLEMENT wrote: > >> +PIN_GRP_GPIO("pcie1", 3, 1, BIT(5), "pcie"), >> +PIN_GRP_GPIO("pcie1_clkreq", 4, 1, BIT(9), "pcie"), > > If the pair is split to clkreq and reset, shouldn't the

[GIT PULL] first round of SCSI updates for the 4.20+ merge window

2018-12-24 Thread James Bottomley
This is mostly update of the usual drivers: smarpqi, lpfc, qedi, megaraid_sas, libsas, zfcp, mpt3sas, hisi_sas. Additionally, we have a pile of annotation, unused variable and minor updates. The big API change is the updates for Christoph's DMA rework which include removing the

[PATCH -next] ACPI/IORT: fix build when CONFIG_IOMMU_API=n

2018-12-24 Thread Qian Cai
rivers/acpi/arm64/iort.c:880:1: error: expected identifier or '(' before '{' token { return NULL; } ^ drivers/acpi/arm64/iort.c:879:39: warning: 'iort_fwspec_iommu_ops' used but never defined static inline const struct iommu_ops *iort_fwspec_iommu_ops(struct device *dev);

[PATCH] misc/ics932s401: Add a missing check to i2c_smbus_read_word_data

2018-12-24 Thread Aditya Pakki
ics932s401_update_device may fail reading in i2c_smbus_read_word_data due to error in i2c_smbus_xfer. The fix checks the status and defaults the register to 0. Signed-off-by: Aditya Pakki --- drivers/misc/ics932s401.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: FYI: Userland breakage caused by udev bind commit

2018-12-24 Thread Dmitry Torokhov
On Mon, Dec 24, 2018 at 11:54:07AM +0100, Greg KH wrote: > On Mon, Dec 24, 2018 at 11:15:34AM +0100, Gabriel C wrote: > > Am Mo., 24. Dez. 2018 um 10:17 Uhr schrieb Greg KH > > : > > > > > > On Mon, Dec 24, 2018 at 08:31:27AM +0100, Gabriel C wrote: > > > > Am So., 23. Dez. 2018 um 19:09 Uhr

Re: [PATCH net V2 4/4] vhost: log dirty page correctly

2018-12-24 Thread Michael S. Tsirkin
On Mon, Dec 24, 2018 at 11:43:31AM +0800, Jason Wang wrote: > > On 2018/12/14 下午9:20, Michael S. Tsirkin wrote: > > On Fri, Dec 14, 2018 at 10:43:03AM +0800, Jason Wang wrote: > > > On 2018/12/13 下午10:31, Michael S. Tsirkin wrote: > > > > > Just to make sure I understand this. It looks to me we

[PATCH] dma/mv_xor: Fix a missing check in mv_xor_channel_add

2018-12-24 Thread Aditya Pakki
dma_async_device_register() may fail and return an error. The capabilities checked in mv_xor_channel_add() are not complete. The fix handles the error by freeing the resources. Signed-off-by: Aditya Pakki --- drivers/dma/mv_xor.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[PATCH] batman-adv/main: Fix check on return value of rtnl_link_register

2018-12-24 Thread Aditya Pakki
rtnl_link_register() may fail and can impact registering the device. The fix checks the return value and pushes the error upstream. Signed-off-by: Aditya Pakki --- net/batman-adv/main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/batman-adv/main.c

<    1   2   3   4   >