[OpenWrt-Devel] [PATCH 5/9] ppc40x: Remove unmaintained target

2019-03-25 Thread Hauke Mehrtens
it to a recent and supported kernel version. Signed-off-by: Hauke Mehrtens --- target/linux/ppc40x/Makefile | 26 - .../ppc40x/base-files/lib/preinit/01_sysinfo | 12 - .../ppc40x/base-files/lib/upgrade/platform.sh | 35 -- target/linux/ppc40x/config-3.18 | 235

[OpenWrt-Devel] [PATCH 3/9] au1000: Remove unmaintained target

2019-03-25 Thread Hauke Mehrtens
it to a recent and supported kernel version. Signed-off-by: Hauke Mehrtens --- package/boot/yamonenv/Makefile| 41 - .../patches/001-yamonenv_mtd_partition.patch | 11 -- target/linux/au1000/Makefile | 32 target/linux/au1000/au1500/config-default | 5

[OpenWrt-Devel] [PATCH 1/9] adm5120: Remove unmaintained target

2019-03-25 Thread Hauke Mehrtens
it to a recent and supported kernel version. Signed-off-by: Hauke Mehrtens --- package/kernel/acx-mac80211/Makefile |3 +- package/utils/admswconfig/Makefile| 53 - package/utils/admswconfig/files/admswconfig | 68 - .../utils/admswconfig/files/admswswitch.sh| 28

[OpenWrt-Devel] [PATCH 6/9] ppc44x: Remove unmaintained target

2019-03-25 Thread Hauke Mehrtens
it to a recent and supported kernel version. Signed-off-by: Hauke Mehrtens --- target/linux/ppc44x/Makefile | 26 -- target/linux/ppc44x/base-files/etc/inittab| 4 - target/linux/ppc44x/config-3.18 | 250 -- target/linux/ppc44x/image/Makefile

Re: [OpenWrt-Devel] OpenWrt 19.03 plans

2019-03-23 Thread Hauke Mehrtens
On 3/21/19 11:56 AM, Jo-Philipp Wich wrote: > Hi, > >> Is there any kind of "official" roadmap/checklist available what "needs" >> to be done? > > not that I am aware of, but from the top of my head: > > - make sure all targets are ported properly to 4.14 The following targets are still on

[OpenWrt-Devel] [PATCH 4/4] linux: Add kmod-sched-act-vlan

2019-03-21 Thread Hauke Mehrtens
This allows to configure rules to push or pop vlan headers. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netsupport.mk | 16 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk

[OpenWrt-Devel] [PATCH 3/4] linux: Add kmod-sched-flower

2019-03-21 Thread Hauke Mehrtens
This allows to classify packets based on a configurable combination of packet keys and masks. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netsupport.mk | 16 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package

[OpenWrt-Devel] [PATCH 2/4] linux: Add kmod-sched-mqprio

2019-03-21 Thread Hauke Mehrtens
This adds Multi-queue priority scheduler (MQPRIO). Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netsupport.mk | 16 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index

[OpenWrt-Devel] [PATCH 1/4] linux: Add kmod-crxypto-xcbc

2019-03-21 Thread Hauke Mehrtens
This can be used for IPsec. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/crypto.mk | 12 1 file changed, 12 insertions(+) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index d70eb92..1add16e 100644 --- a/package

Re: [OpenWrt-Devel] [PATCH 2/2] mvebu: Add kmod-i2c-mux-pca954x

2019-03-21 Thread Hauke Mehrtens
On 3/21/19 6:25 PM, Tomasz Maciej Nowak wrote: > Hi Hauke, > > W dniu 21.03.2019 o 17:57, Hauke Mehrtens pisze: >> This driver is needed for the I2C mux on the board. > > This symbol CONFIG_I2C_MUX_PCA954x is in > target/linux/mvebu/cortexa72/config-default so i

[OpenWrt-Devel] [PATCH 2/2] mvebu: Add kmod-i2c-mux-pca954x

2019-03-21 Thread Hauke Mehrtens
This driver is needed for the I2C mux on the board. Signed-off-by: Hauke Mehrtens --- target/linux/mvebu/image/cortex-a72.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/mvebu/image/cortex-a72.mk b/target/linux/mvebu/image/cortex-a72.mk index ac5b802

[OpenWrt-Devel] [PATCH 1/2] mvebu: Fix typo in MACCHIATOBin detection

2019-03-21 Thread Hauke Mehrtens
The name in the device tree file is written with two C. Signed-off-by: Hauke Mehrtens --- target/linux/mvebu/base-files/lib/mvebu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/mvebu/base-files/lib/mvebu.sh b/target/linux/mvebu/base-files/lib/mvebu.sh index

Re: [OpenWrt-Devel] [PATCH] archs38: Update linux kernel to 4.19

2019-03-12 Thread Hauke Mehrtens
s/1269 This contained an upgrade of the kernel to version 4.14.104. Hauke > > Signed-off-by: Evgeniy Didin > Cc: Alexey Brodkin > Cc: Hauke Mehrtens > Cc: John Crispin > --- > Patch "95aed87b9e2ed982b24122f46ca506cd8b368677" > (ARC: define ARCH_SLAB_MINALIGN

Re: [OpenWrt-Devel] EU feedback on "Upload of software on radio equipment"

2019-03-11 Thread Hauke Mehrtens
On 3/5/19 12:35 AM, Hauke Mehrtens wrote: > Hi, > > The European commission asked for feedback on the Radio Equipment > Directive (RED) regarding the restrictions on "Upload of software on > radio equipment" > > I posted here a comment in the name of the OpenWrt

[OpenWrt-Devel] EU feedback on "Upload of software on radio equipment"

2019-03-04 Thread Hauke Mehrtens
Hi, The European commission asked for feedback on the Radio Equipment Directive (RED) regarding the restrictions on "Upload of software on radio equipment" I posted here a comment in the name of the OpenWrt project:

[OpenWrt-Devel] [PATCH] mac80211: Activate DRIVER_11W_SUPPORT for more capable drivers

2019-02-28 Thread Hauke Mehrtens
. Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile| 6 +++--- package/kernel/mac80211/ath.mk | 2 +- package/kernel/mac80211/broadcom.mk | 4 ++-- package/kernel/mac80211/intel.mk| 2 +- package/kernel/mac80211/ralink.mk | 2 +- package/kernel/mac80211/realtek.mk

Re: [OpenWrt-Devel] [LEDE-DEV][PATCH 1/1] at91: bump kernel 4.9 to 4.14.67

2019-02-27 Thread Hauke Mehrtens
On 9/6/18 5:48 PM, Sandeep Sheriker Mallikarjun wrote: > Refreshed at91 patches and its configs files. > > Signed-off-by: Sandeep Sheriker Mallikarjun > > --- > target/linux/at91/Makefile | 5 +- > target/linux/at91/{config-4.9 => config-4.14} | 284 ++- >

Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-23 Thread Hauke Mehrtens
On 2/23/19 4:36 PM, Dave Taht wrote: > Hauke Mehrtens writes: > >> On 2/13/19 11:51 PM, Felix Fietkau wrote: >>> On 2019-02-13 23:15, Hauke Mehrtens wrote: >>>> This will build all executable as Position Independent Executables (PIE) >>>> by default

Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-22 Thread Hauke Mehrtens
On 2/13/19 11:51 PM, Felix Fietkau wrote: > On 2019-02-13 23:15, Hauke Mehrtens wrote: >> This will build all executable as Position Independent Executables (PIE) >> by default. PIE executable can make full use of Address Space Layout >> Randomization (ASLR) because all s

Re: [OpenWrt-Devel] [PATCH] mac80211: update to version 4.19.23-1

2019-02-22 Thread Hauke Mehrtens
d also update the stable versions. I plan to update OpenWrt to the wireless system from Linux kernel 5.1 after the 19.03 release. Hauke > > On Fri, Feb 15, 2019 at 09:38:47PM +0100, Hauke Mehrtens wrote: >> This updates mac80211 to backports version 4.19.23-1 which includes all >&g

[OpenWrt-Devel] OpenWrt 19.03 plans

2019-02-22 Thread Hauke Mehrtens
Hi, We missed January to branching off the next release, but we plan to do this in March now. ;-) The next release is planned to be branched off between 7. and 17. March and 19.03-rc3 should be released between 2 and 4 weeks later, the final release will then probably happen sometime in April.

Re: [OpenWrt-Devel] [PATCH] Honour NO_COLOR in include/scan.mk

2019-02-17 Thread Hauke Mehrtens
On 1/30/19 3:01 PM, R. Diez wrote: > >> Could you please send a V2 with the requested change >> to print $(1) without ANSII escape sequences? > > Here it goes: > > Honour NO_COLOR in Makefile function 'progress' in include/scan.mk, in > the same way that include/verbose.mk does. > > >

[OpenWrt-Devel] [PATCH] mac80211: update to version 4.19.23-1

2019-02-15 Thread Hauke Mehrtens
This updates mac80211 to backports version 4.19.23-1 which includes all the stable fixes from kernel 4.19.23. The removed patches are included in this version. Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 8 +- ...fix-tx99-with-monitor-mode-interface.patch

[OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-13 Thread Hauke Mehrtens
:00 0 7fd1c000-7fd3d000 rw-p 00:00 0 [stack] 7fefb000-7fefc000 r-xp 00:00 0 7ff6-7ff61000 r--p 00:00 0 [vvar] 7ff61000-7ff62000 r-xp 00:00 0 [vdso] root@OpenWrt:/# Signed-off-by: Hauke Mehrtens --- I would like to get some comments

Re: [OpenWrt-Devel] [RFC] lantiq: SMP interrupts and ethernet driver backport from vanilla v5

2019-02-10 Thread Hauke Mehrtens
On 2/1/19 12:36 PM, Petr Cvek wrote: > Dne 01. 02. 19 v 10:51 Hauke Mehrtens napsal(a):> On 1/31/19 9:30 PM, > Mathias Kresin wrote: >>> 30/01/2019 11:38, Petr Cvek: >>>> > > Hi, > > thank you both for the answer and sorry for "./" in the patch

Re: [OpenWrt-Devel] [RFC] lantiq: SMP interrupts and ethernet driver backport from vanilla v5

2019-02-10 Thread Hauke Mehrtens
On 2/10/19 5:28 PM, Petr Cvek wrote: > Hi, > > Dne 10. 02. 19 v 16:49 Hauke Mehrtens napsal(a): >> Hi Petr, >> >> Thank you for the tests. >> >> On 2/3/19 9:44 AM, Petr Cvek wrote: >>> I did an exhaustive ethernet measuring. Parameters: no wifi, no

Re: [OpenWrt-Devel] [RFC] lantiq: SMP interrupts and ethernet driver backport from vanilla v5

2019-02-10 Thread Hauke Mehrtens
Hi Petr, Thank you for the tests. On 2/3/19 9:44 AM, Petr Cvek wrote: > I did an exhaustive ethernet measuring. Parameters: no wifi, no running > dsl connection, 1 cable (in 1G port with external phy), no USB, almost > vanilla openwrt (changes for rootfs on NFS, kernel command line and fix > for

Re: [OpenWrt-Devel] Issue with broaband led pppoa-wan device

2019-02-09 Thread Hauke Mehrtens
On 2/9/19 4:00 PM, Mauro Mozzarelli wrote: > I have BT Home Hub 5 routers. > > I have just built release 9290. > > Something happened to the broadband LED configuration between release > 8495 and 9290 > > In 9290 LED associated to device pppoa-wan no longer works (it remains > off once the

Re: [OpenWrt-Devel] [RFC] lantiq: SMP interrupts and ethernet driver backport from vanilla v5

2019-02-01 Thread Hauke Mehrtens
On 1/31/19 9:30 PM, Mathias Kresin wrote: > 30/01/2019 11:38, Petr Cvek: >> Hello, >> >> I discovered the lantiq xrx200 lacks support for interrupts on secondary >> VPE, and I've managed to add this functionality to the kernel, the >> second icu controller lives on base address 0x1f880300 and

Re: [OpenWrt-Devel] [PATCH 6/9] uboot-sunxi: add spi driver for pine64 lts

2019-01-26 Thread Hauke Mehrtens
On 1/14/19 6:54 PM, Oskari Lemmela wrote: > Add support for SPI driver and booting from SPI. > > Signed-off-by: Oskari Lemmela > --- > ...i-allwinner-spi-driver-sun6i-support.patch | 311 ++ > ...er-sunxi-fix-spurious-timeout-issues.patch | 30 ++ >

Re: [OpenWrt-Devel] [PATCH 4/9] sunxi: switch to lzma compressed fit image

2019-01-26 Thread Hauke Mehrtens
On 1/14/19 6:54 PM, Oskari Lemmela wrote: > Use LZMA compressed fit image to load kernel and dtb. > Fit image can be used load kernel and dtb from SPI flash. > > Signed-off-by: Oskari Lemmela > --- > package/boot/uboot-sunxi/uEnv-a64.txt | 5 ++- >

Re: [OpenWrt-Devel] MIPS stack security and other problems

2019-01-22 Thread Hauke Mehrtens
On 1/19/19 2:56 PM, Dave Taht wrote: > Hauke Mehrtens writes: > >> On 12/18/18 12:46 PM, Hauke Mehrtens wrote: >>> On 12/17/18 1:54 AM, Dave Taht wrote: >>>> >>>> A pretty deep look at home MIPS and arm routers, and a surprising bug in >>>&

Re: [OpenWrt-Devel] [PATCH 0/4] Update Gemini to kernel v4.19

2019-01-22 Thread Hauke Mehrtens
On 1/22/19 7:26 AM, Petr Štetiar wrote: > Linus Walleij [2019-01-21 23:17:50]: > > Hi, > >> I pushed it to the branch "gemini-v4.19" (with some more patches, >> but shouldn't make a difference) here: >> https://github.com/linusw/openwrt > > thanks, so I've just tried following build config: >

[OpenWrt-Devel] [PATCH] kernel: Build: Split kmod-regmap

2019-01-11 Thread Hauke Mehrtens
into separate packages to not require all these subsystems to build them, on an unmodified upstream kernel this also causes problems in some situations. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/can.mk| 2 +- package/kernel/linux/modules/hwmon.mk | 10

[OpenWrt-Devel] [PATCH 1/3] bzip2: fix hardening build

2019-01-02 Thread Hauke Mehrtens
Set the LDFLAGS otherwise it will not get the target hardening flags or any other generic flags provided in the LDFLAGS Signed-off-by: Hauke Mehrtens --- package/utils/bzip2/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/utils/bzip2/Makefile b

[OpenWrt-Devel] [PATCH 3/3] musl: Activate hardening features

2019-01-02 Thread Hauke Mehrtens
This activates the hardening features controlled over the LDFLAGS Signed-off-by: Hauke Mehrtens --- toolchain/musl/common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/toolchain/musl/common.mk b/toolchain/musl/common.mk index 234709103c..d48212f625 100644 --- a/toolchain/musl/common.mk

[OpenWrt-Devel] [PATCH 2/3] gcc: Activate hardening features for libgcc

2019-01-02 Thread Hauke Mehrtens
This includes the hardening.mk before the code gets compiled and then also sets the LDFLAGS for the libgcc and other applications. Signed-off-by: Hauke Mehrtens --- include/toolchain-build.mk | 1 + toolchain/gcc/common.mk| 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[OpenWrt-Devel] [PATCH] gdb: The signal definitions of musl and gdb collide

2019-01-02 Thread Hauke Mehrtens
arch64-sve-linux-sigcontext.h does not provide the same headers as the kernel or musl. Fixes: FS#2040 Signed-off-by: Hauke Mehrtens --- .../gdb/patches/010-aarch64-headers.patch | 44 +++ 1 file changed, 44 insertions(+) create mode 100644 package/devel/gdb/patches/0

[OpenWrt-Devel] [PATCH 3/4] x86: Copy for kernel 4.19

2019-01-02 Thread Hauke Mehrtens
This copied to patches and the configuration for kernel 4.14 to kernel 4.19 without any manual modifications. Signed-off-by: Hauke Mehrtens --- target/linux/x86/64/config-4.19 | 433 +++ target/linux/x86/config-4.19 | 522 ++ target

[OpenWrt-Devel] [PATCH 4/4] x86: Make patches 4.19 apply

2019-01-02 Thread Hauke Mehrtens
This refreshed the configuration and the patches on top of kernel 4.19. The legacy and the genode target will not support PAE any more because they use a CPU type which does not support PAE, the generic sub target still supports PAE. Signed-off-by: Hauke Mehrtens --- target/linux/x86/64/config

[OpenWrt-Devel] [PATCH 2/4] x86: Refresh kernel 4.14 configuration

2019-01-02 Thread Hauke Mehrtens
to the generic configuration because it would have been automatically removed. Signed-off-by: Hauke Mehrtens --- target/linux/generic/config-4.14 | 1 + target/linux/x86/64/config-4.14 | 13 + target/linux/x86/config-4.14 | 4 ++-- target/linux/x86/generic/config-4.14 | 13

[OpenWrt-Devel] [PATCH 1/4] x86: Use kernel specific subtarget configurations

2019-01-02 Thread Hauke Mehrtens
This makes it possible to use different sub target configurations for kernel 4.19 for example. To support kernel 4.9 and kernel 4.14 with the same configuration file already needed some extra work. Signed-off-by: Hauke Mehrtens --- target/linux/x86/64/{config-default => config-4.14}

Re: [OpenWrt-Devel] MIPS stack security and other problems

2019-01-01 Thread Hauke Mehrtens
On 12/18/18 12:46 PM, Hauke Mehrtens wrote: On 12/17/18 1:54 AM, Dave Taht wrote: A pretty deep look at home MIPS and arm routers, and a surprising bug in Linux/MIPS - by mudge and co: https://cyber-itl.org/2018/12/07/a-look-at-home-routers-and-linux-mips.html I have no idea if current

[OpenWrt-Devel] [PATCH v2 procd] hotplug.c: Make sure hotplug buffer is NULL terminated

2018-12-27 Thread Hauke Mehrtens
Sets the final byte explicitly to NULL because we later do string operations on this buffer. Fixes Coverity issue 1430926 String not null terminated Signed-off-by: Hauke Mehrtens --- plug/hotplug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plug/hotplug.c b/plug

[OpenWrt-Devel] [PATCH 4/7] sunxi: copy for kernel 4.19

2018-12-27 Thread Hauke Mehrtens
No changes done compare to kernel 4.14. Signed-off-by: Hauke Mehrtens --- target/linux/sunxi/config-4.19| 597 ++ target/linux/sunxi/cortexa53/config-4.19 | 104 +++ target/linux/sunxi/cortexa7/config-4.19 | 10 + target/linux/sunxi/cortexa8/config

[OpenWrt-Devel] [PATCH 5/7] sunxi: Make sunxi patches apply with kernel 4.19

2018-12-27 Thread Hauke Mehrtens
This makes the patches and configuration copied from kernel 4.14 apply and work with kernel 4.19. Signed-off-by: Hauke Mehrtens --- target/linux/sunxi/Makefile | 2 +- target/linux/sunxi/config-4.19| 52 +- target/linux/sunxi/cortexa53/config-4.19 | 45

[OpenWrt-Devel] [PATCH 1/7] sunxi: Remove unneeded patches

2018-12-27 Thread Hauke Mehrtens
close to mainline, so if the device tree files from the mainline Linux kernel need this the mainline kernel will get support for this. Signed-off-by: Hauke Mehrtens --- .../115-musb-ignore-vbus-errors.patch | 26 -- .../131-reset-add-h3-resets.patch | 92 --- 2

[OpenWrt-Devel] [PATCH 6/7] uboot-sunxi: Update to version 2018.11

2018-12-27 Thread Hauke Mehrtens
This updates the uboot for the sunxi target to version 2018.11 The removed patches are applied upstream and not needed any more. Signed-off-by: Hauke Mehrtens --- package/boot/uboot-sunxi/Makefile | 4 +- .../003-add-theobroma-a31-pangolin.patch | 10 +- .../patches/062-A20

[OpenWrt-Devel] [PATCH 2/7] sunxi: Use kernel specific sub target configuration

2018-12-27 Thread Hauke Mehrtens
To make it easier to support multiple kernel versions in parallel also copy the sub target specific kernel configurations into kernel specific files. Signed-off-by: Hauke Mehrtens --- target/linux/sunxi/cortexa53/{config-default => config-4.14} | 0 target/linux/sunxi/cortexa7/{config-defa

[OpenWrt-Devel] [PATCH 3/7] sunxi: Refresh kernel 4.14 configuration

2018-12-27 Thread Hauke Mehrtens
Refresh the sunxi kernel configuration without doing any intentional changes. Signed-off-by: Hauke Mehrtens --- target/linux/sunxi/config-4.14 | 2 ++ target/linux/sunxi/cortexa53/config-4.14 | 7 +-- target/linux/sunxi/cortexa8/config-4.14 | 5 ++--- 3 files changed, 5

[OpenWrt-Devel] [PATCH 7/7] arm-trusted-firmware-sunxi: Replace with official ARM version

2018-12-27 Thread Hauke Mehrtens
Instead of using a fork of the ARM trusted firmware specifically for the Allwinner SoCs, use the official version from ARM now, this version supports the Allwinner SoCs now and the older ATF repository is deprecated. Signed-off-by: Hauke Mehrtens --- package/boot/arm-trusted-firmware-sunxi

[OpenWrt-Devel] [PATCH] hostapd: update to version 2018-12-02 (2.7)

2018-12-24 Thread Hauke Mehrtens
This updates hostapd to version the git version from 2018-12-02 which matches the 2.7 release. The removed patches were are already available in the upstream code, one additional backport is needed to fix a compile problem. Signed-off-by: Hauke Mehrtens --- package/network/services/hostapd

Re: [OpenWrt-Devel] [PATCH] mbedtls: update to 2.14.1 for 18.06

2018-12-23 Thread Hauke Mehrtens
< 6'. Signed-off-by: Daniel Engberg [Update to 2.14.1] Signed-off-by: Hauke Mehrtens [Adapted and squashed for 18.06.1+] Signed-off-by: Stijn Segers Acked-by: Hauke Mehrtens --- package/libs/mbedtls/Makefile | 4 +- package/libs/mbedtls/patches/200-config.patch |

Re: [OpenWrt-Devel] [PATCH] kernel: MIPS: math-emu Write-protect delay slot emulation pages

2018-12-22 Thread Hauke Mehrtens
On 12/22/18 10:26 AM, Yousong Zhou wrote: On Sat, 22 Dec 2018 at 16:03, Kevin 'ldir' Darbyshire-Bryant wrote: On 22 Dec 2018, at 04:04, Yousong Zhou wrote: On Sat, 22 Dec 2018 at 01:21, Kevin 'ldir' Darbyshire-Bryant wrote: Backport

[OpenWrt-Devel] [PATCH] kernel: Add compiler options to generic configuration

2018-12-21 Thread Hauke Mehrtens
With kernel 4.19 new configuration options for the compiler were added. These are automatically selected and set, instead of having them in each target configuration, put them into the generic configuration. Signed-off-by: Hauke Mehrtens --- target/linux/generic/config-4.19 | 6 ++ 1 file

[OpenWrt-Devel] [PATCH] kernel: Fix KERNEL_STACKPROTECTOR on kernel 4.19

2018-12-21 Thread Hauke Mehrtens
. Signed-off-by: Hauke Mehrtens --- config/Config-build.in | 8 target/linux/generic/config-4.19 | 6 ++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config/Config-build.in b/config/Config-build.in index a082a5e0e2..8cbc16b5c8 100644 --- a/config/Config-build.in

[OpenWrt-Devel] [PATCH firewall3 1/2] options.c, redirects.c: Fix possible buffer overflows

2018-12-19 Thread Hauke Mehrtens
This fixes two possible situations where strncpy() produces a not null terminated buffer. Coverity IDs: * 1412247 Buffer not null terminated * 1412279 Buffer not null terminated Signed-off-by: Hauke Mehrtens --- options.c | 2 +- redirects.c | 2 +- 2 files changed, 2 insertions(+), 2

[OpenWrt-Devel] [PATCH firewall3 2/2] utils: Free args in __fw3_command_pipe()

2018-12-19 Thread Hauke Mehrtens
args was not freed after leaving this function. Fixes Coverity issue 1412470 Resource leak Signed-off-by: Hauke Mehrtens --- utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.c b/utils.c index 4f892a7..684b2c3 100644 --- a/utils.c +++ b/utils.c @@ -252,6 +252,7

[OpenWrt-Devel] [PATCH procd] hotplug.c: Make sure hotplug buffer is NULL terminated

2018-12-19 Thread Hauke Mehrtens
Sets the final byte explicitly to NULL because we later do string operations on this buffer. Fixes Coverity issue 1430926 String not null terminated Signed-off-by: Hauke Mehrtens --- plug/hotplug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plug/hotplug.c b/plug

[OpenWrt-Devel] [PATCH] kernel: Deactivate CONFIG_COMPAT_BRK

2018-12-18 Thread Hauke Mehrtens
CONFIG_COMPAT_BRK disables the heap randomization which is only needed for very old and ancient user space applications, I am not aware that we run any of these, just deactivate this option for these targets to allow heap randomization. Signed-off-by: Hauke Mehrtens --- target/linux/at91/config

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-18 Thread Hauke Mehrtens
On 12/18/18 11:02 AM, Andre Heider wrote: > On 18/12/2018 01:44, Rosen Penev wrote: >> On Mon, Dec 17, 2018 at 4:34 PM Rosen Penev wrote: >>> >>> On Mon, Dec 17, 2018 at 3:40 PM Dave Taht wrote: John Crispin writes: > On 17/12/2018 23:18, Dave Taht wrote: >> Rosen Penev

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-18 Thread Hauke Mehrtens
On 12/17/18 1:54 AM, Dave Taht wrote: > > A pretty deep look at home MIPS and arm routers, and a surprising bug in > Linux/MIPS - by mudge and co: > > https://cyber-itl.org/2018/12/07/a-look-at-home-routers-and-linux-mips.html > > I have no idea if current openwrt, or what prior releases...

[OpenWrt-Devel] [PATCH v2] base-files: Fix netdev led trigger

2018-12-16 Thread Hauke Mehrtens
In the upstream netdev led trigger the one mode file was replaced by 3 files named rx, tx and link. Fix the netdev trigger configuration code to use the modified API. Fixes: aa3b6a08c56 ("kernel: Replace ledtrig-netdev with upstream backport") Signed-off-by: Hauke Mehrtens --- pa

[OpenWrt-Devel] [PATCH] base-files: Fix netdev led trigger

2018-12-16 Thread Hauke Mehrtens
In the upstream netdev led trigger the one mode file was replaced by 3 files named rx, tx and link. Fix the netdev trigger configuration code to use the modified API. Fixes: aa3b6a08c56 ("kernel: Replace ledtrig-netdev with upstream backport") Signed-off-by: Hauke Mehrtens --- pa

[OpenWrt-Devel] [PATCH v2] ath10k-ct: Update to 2018-12-11 and use version based on 4.19

2018-12-12 Thread Hauke Mehrtens
This updates the ath10k-ct driver to the version from 2018-12-11 and selects the ath10k-ct version based on kernel 4.19 by default. CONFIG_ATH10K_CE was introduced between kernel 4.16 and 4.19 and is a mandatory option. Signed-off-by: Hauke Mehrtens --- changes since v1: * Add description

Re: [OpenWrt-Devel] hostapd 2.7 released

2018-12-12 Thread Hauke Mehrtens
On 12/12/18 10:39 AM, Daniel Golle wrote: > Hi! > > hostapd 2.7 has been released on December 2nd: > http://w1.fi/cgit/hostap/plain/hostapd/ChangeLog > > I've updated the hostapd package to use the hostapd_2_7 tag with our > patches on top, find it in my staging tree: >

[OpenWrt-Devel] [PATCH] gcc: update to version 7.4.0

2018-12-10 Thread Hauke Mehrtens
This updates the GCC to the next minor release which fixes 178 bugs. The two removed patches are included in gcc 7.4.0 Signed-off-by: Hauke Mehrtens --- toolchain/gcc/Config.version | 2 +- toolchain/gcc/common.mk| 4 +- ...81797-Add

Re: [OpenWrt-Devel] [PATCH 23/29] kernel: tg3: Do not depend on kmod-hwmon-core on kernel 4.19

2018-12-10 Thread Hauke Mehrtens
On 12/10/18 10:16 AM, Yousong Zhou wrote: > On Sun, 9 Dec 2018 at 23:21, Hauke Mehrtens wrote: >> >> Like on kernel 4.14 this dependency is deactivated in OpenWrt. >> >> Signed-off-by: Hauke Mehrtens >> --- >> package/kernel/linux/modules/netdevices.mk

Re: [OpenWrt-Devel] [PATCH] ath10k-ct: update and use version based on 4.19

2018-12-10 Thread Hauke Mehrtens
On 12/10/18 10:46 PM, Ben Greear wrote: > On 12/10/18 1:35 PM, Hauke Mehrtens wrote: >> --- >>   package/kernel/ath10k-ct/Makefile  |  10 +- >>   ...h-all-IEs-for-variant-before-falling-back.patch |   8 +- >>   ...-controlling-support-for-v

[OpenWrt-Devel] [PATCH] ath10k-ct: update and use version based on 4.19

2018-12-10 Thread Hauke Mehrtens
--- package/kernel/ath10k-ct/Makefile | 10 +- ...h-all-IEs-for-variant-before-falling-back.patch | 8 +- ...-controlling-support-for-various-chipsets.patch | 544 - ...02-ath10k-4.16-use-tpt-trigger-by-default.patch | 39 +- 4 files changed, 580

[OpenWrt-Devel] [PATCH 02/29] kernel: Replace ledtrig-netdev with upstream backport

2018-12-09 Thread Hauke Mehrtens
version with kernel 4.19, by just not applying this patch. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/leds.mk | 2 +- .../009-adm5120_leds_switch_trigger.patch | 4 +- ...6-leds-trigger-Introduce-a-NETDEV-trigger.patch | 588

[OpenWrt-Devel] [PATCH 29/29] kernel: netfilter: chain filters merged into nf_tables.ko

2018-12-09 Thread Hauke Mehrtens
Mark them as build-in in the kernel 4.19 specific kernel configuration file which will then not be overwritten by the package specific settings which try to make them modular again. Signed-off-by: Hauke Mehrtens --- include/netfilter.mk | 10 +- package/kernel/lin

[OpenWrt-Devel] [PATCH 22/29] kernel: Add missing dependency to kmod-regmap

2018-12-09 Thread Hauke Mehrtens
Like on kernel 4.14 some kernel modules depend now on regmap. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/other.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index

[OpenWrt-Devel] [PATCH 12/29] kernel: add missing dependency to kmod-crypto-acompress

2018-12-09 Thread Hauke Mehrtens
Like kernel on 4.14 some modules need the dependency to kmod-crypto-acompress on kernel 4.19. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/crypto.mk | 2 +- package/kernel/linux/modules/lib.mk| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package

[OpenWrt-Devel] [PATCH 10/29] kernel: Use kmod-dax on kernel 4.19

2018-12-09 Thread Hauke Mehrtens
Like on kernel 4.14 kmod-dax is needed by kmod-dm also in kernel 4.19. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/block.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/kernel/linux/modules/block.mk b/package/kernel/linux/modules/block.mk

[OpenWrt-Devel] [PATCH 19/29] kernel: Make kmod-mpls depend on iptunnel in kernel 4.19

2018-12-09 Thread Hauke Mehrtens
This new dependency is needed with kernel 4.19. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netsupport.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index

[OpenWrt-Devel] [PATCH 28/29] kernel: netfilter: Adapt merge ipv4/ipv6 masquerade code

2018-12-09 Thread Hauke Mehrtens
figuration will not be overwritten. Signed-off-by: Hauke Mehrtens --- include/netfilter.mk | 4 ++-- target/linux/generic/config-4.19 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/netfilter.mk b/include/netfilter.mk index 2d232b5f5c..4b9cc20622 100644 --- a/include/ne

[OpenWrt-Devel] [PATCH 25/29] kernel: netfilter: Add nf_defrag_ipv6.ko to NF_CONNTRACK on 4.19

2018-12-09 Thread Hauke Mehrtens
f the main netfilter packages, so add nf_defrag_ipv6.ko also to the default netfilter packages on kernel 4.19 and later. Signed-off-by: Hauke Mehrtens --- include/netfilter.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/netfilter.mk b/include/netfilter.mk index

[OpenWrt-Devel] [PATCH 23/29] kernel: tg3: Do not depend on kmod-hwmon-core on kernel 4.19

2018-12-09 Thread Hauke Mehrtens
Like on kernel 4.14 this dependency is deactivated in OpenWrt. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netdevices.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules

[OpenWrt-Devel] [PATCH 17/29] kernel: Adapt to new location of video-videobuf2 in kernel 4.19

2018-12-09 Thread Hauke Mehrtens
The video-videobuf2 kernel modules were moved to a new folder in kernel 4.19. videobuf2-v4l2.ko is only available since kernel 4.4, blacklist this kmod completely on kernel 3.18. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/video.mk | 14 +- 1 file changed, 9

[OpenWrt-Devel] [PATCH 26/29] kernel: netfilter: Add nf_tproxy_ipv{4, 6} and nf_socket_ipv{4, 6}

2018-12-09 Thread Hauke Mehrtens
Pv4 and an IPv6 part. Signed-off-by: Hauke Mehrtens --- include/netfilter.mk | 4 1 file changed, 4 insertions(+) diff --git a/include/netfilter.mk b/include/netfilter.mk index 5bf3dbdb02..b73cc794b6 100644 --- a/include/netfilter.mk +++ b/include/netfilter.mk @@ -259,7 +259,11 @@ $(eval $(ca

[OpenWrt-Devel] [PATCH 20/29] kernel: Always activate CONFIG_HW_RANDOM_TPM

2018-12-09 Thread Hauke Mehrtens
CONFIG_HW_RANDOM_TPM does not activate a separate kernel module any more, but it only activates the random code in the tpm.ko. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/other.mk | 2 +- target/linux/generic/config-4.19 | 2 +- 2 files changed, 2 insertions(+), 2

[OpenWrt-Devel] [PATCH 27/29] kernel: netfilter: Add nf_conncount.ko

2018-12-09 Thread Hauke Mehrtens
Some kernel modules from kmod-ipt-conntrack-extra depend on nf_conncount.ko, which was added in kernel 4.16, add it to the kmod. Signed-off-by: Hauke Mehrtens --- include/netfilter.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/include/netfilter.mk b/include/netfilter.mk index

[OpenWrt-Devel] [PATCH 11/29] kernel: Adapt to moved kvaser_usb.ko in kernel 4.19

2018-12-09 Thread Hauke Mehrtens
In kernel 4.19 the kvaser_usb.ko file moved into its own directory. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/can.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/can.mk b/package/kernel/linux/modules/can.mk index

[OpenWrt-Devel] [PATCH 08/29] kernel: Deactivate *-gpio-custom drivers for 4.19

2018-12-09 Thread Hauke Mehrtens
Kernel interface changed with kernel 4.19, it does not accept raw GPIO numbers any more. Deactivate these drivers on kernel 4.19 for now. Signed-off-by: Hauke Mehrtens --- package/kernel/i2c-gpio-custom/Makefile | 2 +- package/kernel/spi-gpio-custom/Makefile | 2 +- package/kernel/w1-gpio

[OpenWrt-Devel] [PATCH 18/29] kernel: Adapt to move of autofs4 in kernel 4.19

2018-12-09 Thread Hauke Mehrtens
autofs4 is now in the fs/autofs/ folder in kernel 4.19 Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/fs.mk | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk index 7080d9e4ae

[OpenWrt-Devel] [PATCH 24/29] kernel: Make CONFIG_NVMEM tristate

2018-12-09 Thread Hauke Mehrtens
NVMEM back to tristate we just have to make sure to build this in for all targets which select CONFIG_OF_NET. Signed-off-by: Hauke Mehrtens --- ...90-nvmem-make-CONFIG_NVMEM-tristate-again.patch | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 target/linux/generic

[OpenWrt-Devel] [PATCH 21/29] kernel: Make video-gspca-core depend on vidobuf2

2018-12-09 Thread Hauke Mehrtens
This new dependency is needed for kernel 4.19. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/video.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index 37b3cc0bc7..7e300bf486

[OpenWrt-Devel] [PATCH 00/29] Add support for kernel 4.19

2018-12-09 Thread Hauke Mehrtens
this patch: * target/linux/generic/pending-4.19/161-mtd-part-add-generic-parsing-of-linux-part-probe.patch * removed dependency to kmod-libphy from r8169 * fixed kmod-cryto-mics package for x86_64 Hauke Mehrtens (29): kernel: Reorder configuration kernel: Replace ledtrig-netdev with upstream

[OpenWrt-Devel] [PATCH 14/29] kernel: Remove crypto/ablk_helper.ko on kernel 4.19

2018-12-09 Thread Hauke Mehrtens
This module was removed in kernel 4.17, all users are refactored to not need this any more. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/crypto.mk | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/kernel/linux/modules/crypto.mk b/package

[OpenWrt-Devel] [PATCH 06/29] kernel: Remove deprecated generic linux, part-probe patch

2018-12-09 Thread Hauke Mehrtens
This is now replaced by some other mtd partition parsing which was merged into upstream. Signed-off-by: Hauke Mehrtens --- ...t-add-generic-parsing-of-linux-part-probe.patch | 172 - .../400-mtd-add-rootfs-split-support.patch | 11 +- ...port-for-different-partition

[OpenWrt-Devel] [PATCH 16/29] kernel: Add dependencies for kernel 4.19

2018-12-09 Thread Hauke Mehrtens
These dependencies are needed on kernel 4.14 and kernel 4.19. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/crypto.mk | 2 +- package/kernel/linux/modules/fs.mk | 2 +- package/kernel/linux/modules/other.mk | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff

[OpenWrt-Devel] [PATCH 13/29] kernel: extract asn1_decoder.ko

2018-12-09 Thread Hauke Mehrtens
The asn1_decoder.ko module is needed by the kmod-nf-nathelper-extra package in kernel 4.19, extract it and add the missing dependencies. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/crypto.mk| 3 +-- package/kernel/linux/modules/lib.mk | 11 +++ package

[OpenWrt-Devel] [PATCH 01/29] kernel: Reorder configuration

2018-12-09 Thread Hauke Mehrtens
pts/kconfig.pl '+' target/linux/generic/config-4.9 /dev/null > target/linux/generic/config-4.9-new $ mv target/linux/generic/config-4.9-new target/linux/generic/config-4.9 Signed-off-by: Hauke Mehrtens --- target/linux/generic/config-4.14 | 4 ++-- target/linux/generic/config-4.9 | 4 ++-- 2

[OpenWrt-Devel] [PATCH 03/29] kernel: Move modifications of b53.h into patch

2018-12-09 Thread Hauke Mehrtens
. Signed-off-by: Hauke Mehrtens --- .../files/include/linux/platform_data/b53.h| 36 .../hack-4.14/700-swconfig_switch_drivers.patch| 12 +++ .../hack-4.9/700-swconfig_switch_drivers.patch | 12 +++ .../linux/generic/pending-3.18/730-phy_b53.patch | 39

[OpenWrt-Devel] [PATCH 07/29] kernel: Add kmod-phy-realtek

2018-12-09 Thread Hauke Mehrtens
The r8169 driver uses the phy lib with the realtek phy driver in kernel 4.19 instead of integrating the phy driver into the mac driver. Add the new phy driver and add this missing dependency. Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netdevices.mk | 18 +- 1

[OpenWrt-Devel] [PATCH 09/29] i2c-gpio-custom: Adapt to moved include file

2018-12-09 Thread Hauke Mehrtens
The i2c-gpio.h file was moved in kernel 4.18. Signed-off-by: Hauke Mehrtens --- package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c | 5 + 1 file changed, 5 insertions(+) diff --git a/package/kernel/i2c-gpio-custom/src/i2c-gpio-custom.c b/package/kernel/i2c-gpio-custom/src/i2c-gpio

Re: [OpenWrt-Devel] Add support for kernel 4.19

2018-12-09 Thread Hauke Mehrtens
Hi Daniel, On 12/3/18 11:22 AM, Daniel Engberg wrote: > Hi Hauke! > > First of all, great work and also thanks to the others who contributed! Thanks for testing this Daniel, The target code still needs some work, I only added this to test the generic code. > I gave this a try on my Orange Pi

[OpenWrt-Devel] [PATCH] mac80211: Update to version 4.19.7-1

2018-12-07 Thread Hauke Mehrtens
or in backports 4.19.7-1. Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 6 +- .../patches/ath/080-ath10k_thermal_config.patch| 2 +- .../patches/ath/402-ath_regd_optional.patch| 2 +- .../patches/ath/404-regd_no_assoc_hints.patch | 4

Re: [OpenWrt-Devel] [RFC 26/27] kernel: netfilter: Adapt merge ipv4/ipv6 masquerade code

2018-12-02 Thread Hauke Mehrtens
On 11/30/18 3:15 AM, Yousong Zhou wrote: > On Fri, 30 Nov 2018 at 06:26, Hauke Mehrtens wrote: >> >> On 11/28/18 6:53 AM, Yousong Zhou wrote: >>> On Wed, 28 Nov 2018 at 07:21, Hauke Mehrtens wrote: >>>> >>>> In kernel commit 0168e8b361 ("

<    6   7   8   9   10   11   12   13   14   15   >