Re: [OpenWrt-Devel] [PATCH] gemini: Bring up DSA switches

2019-07-12 Thread Hauke Mehrtens
On 7/12/19 8:07 AM, Linus Walleij wrote: > First group the interfaces on the DSA switch into the > right LAN/WAN groups. Tested successfully on the Itian > Square One SQ201 and the SL93512 reference design > with the Vitesse DSA switches. > > The RTL8366RB on the DIR-685 is still under

[OpenWrt-Devel] OpenWrt endorses Battlemesh v12

2019-07-02 Thread Hauke Mehrtens
The OpenWrt project supports this year's "Wireless Battle of the Mesh - Building Community Networks for Fun and Non-Profit". The event aims to bring together people from across the globe who are interested in community networks, including wireless mesh network technologies, fiber infrastructure,

Re: [OpenWrt-Devel] [at91][patch v2 00/11] at91 patch series

2019-07-08 Thread Hauke Mehrtens
On 6/22/19 1:02 AM, Sandeep Sheriker M wrote: > > Hi, > This patch series contains > > 1. rework in creating sdcard images for different subtarget. > 2. creating a fit images. > 3. add support for sam9x5ek soc > 4. add uboot env file. > 5. bump uboot & at91bootstrap to latest versions > >

Re: [OpenWrt-Devel] [PATCH] lantiq: use gpio_hog instead of gpio-export

2019-08-02 Thread Hauke Mehrtens
e-direction functionality > to using gpio_hog instead > > Signed-off-by: Birger Koblitz Reviewed-by: Hauke Mehrtens I only reviewed this, it would be nice if someone could test this at least on one of the affected devices. Hauke ___ openwrt-devel

Re: [OpenWrt-Devel] atomic sleep bugs - 19.07 (and probably Master too)

2019-08-02 Thread Hauke Mehrtens
On 8/2/19 10:40 AM, Koen Vandeputte wrote: > > On 01.08.19 17:27, Koen Vandeputte wrote: >> Hi All, >> >> I've been playing around the last few days stresstesting latest 19.07 >> on different targets (ar71xx, cns3xxx, imx6, ...) with extra kernel >> debug features enabled. >> >> I'll post some

Re: [OpenWrt-Devel] [PATCH 1/2] base-files: make USE_PROCD=1 default

2019-08-02 Thread Hauke Mehrtens
fected most, but I think we do not have to care and there were many years to convert. Acked-by: Hauke Mehrtens Hauke signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.o

Re: [OpenWrt-Devel] [PATCH] wireless-regdb: fix build when python2 from package feeds exists

2019-08-02 Thread Hauke Mehrtens
symlink) which leads to the build > failure of wireless-regdb, so this patch makes it explicit which python > should be used. > > Reported-by: Hauke Mehrtens > Tested-by: Kevin Darbyshire-Bryant > Signed-off-by: Petr Štetiar Tested-by: Hauke Mehrtens > --- > packa

Re: [OpenWrt-Devel] [PATCH] scons: move to packages feed

2019-08-02 Thread Hauke Mehrtens
which would need > scons, yet scons is build always as part of host tools, just in order to > satisfy host build dependency of few packages in the packages feeds. > > Signed-off-by: Petr Štetiar Acked-by: Hauke Mehrtens > --- > tools/Makefile

Re: [OpenWrt-Devel] [PATCH v2 2/2] mac80211: Update to version 4.19.66-1

2019-08-15 Thread Hauke Mehrtens
On 8/15/19 3:24 PM, Hauke Mehrtens wrote: > Signed-off-by: Hauke Mehrtens > --- > package/kernel/mac80211/Makefile | 6 +++--- > .../350-ath9k_hw-reset-AHB-WMAC-interface-on-AR91xx.patch | 2 +- > .../351-ath9k_hw-issue-external-reset-for-QCA9

[OpenWrt-Devel] [PATCH 2/2] mac80211: Update to mac80211 5.3-rc4-1

2019-08-15 Thread Hauke Mehrtens
The removed patches were applied upstream. The type of the RT2X00_LIB_EEPROM config option was changed to bool, because boolean is an invalid value and the new kconfig system complained about this. Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile |8

[OpenWrt-Devel] [PATCH 1/2] mac80211: Update to version 5.2.8-1

2019-08-15 Thread Hauke Mehrtens
This contains multiple fixes from the upstream kernel. The removed patch was merged upstream. Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 6 +-- ...w-reset-AHB-WMAC-interface-on-AR91xx.patch | 2 +- ..._hw-issue-external-reset-for-QCA955x.patch | 4

[OpenWrt-Devel] [PATCH v2 2/2] mac80211: Update to version 4.19.66-1

2019-08-15 Thread Hauke Mehrtens
Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 6 +++--- .../350-ath9k_hw-reset-AHB-WMAC-interface-on-AR91xx.patch | 2 +- .../351-ath9k_hw-issue-external-reset-for-QCA955x.patch | 4 ++-- ...rt-ath9k-interpret-requested-txpower-in-EIRP-dom.patch

[OpenWrt-Devel] [PATCH 1/2] tools/mkimage: Update U-Boot to version 2019.07

2019-09-01 Thread Hauke Mehrtens
-by: Hauke Mehrtens --- tools/mkimage/Makefile| 6 +- .../patches/010-freebsd-ulong-fix.patch | 13 -- .../patches/020-include_compile_fix.patch | 10 - .../030-allow-to-use-different-magic.patch| 18 +- .../patches/050-image_h_portability.patch | 182

[OpenWrt-Devel] [PATCH 2/2] uboot-envtools: Update to U-Boot version 2019.07

2019-09-01 Thread Hauke Mehrtens
Signed-off-by: Hauke Mehrtens --- package/boot/uboot-envtools/Makefile | 8 package/boot/uboot-envtools/patches/001-compile.patch | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot

Re: [OpenWrt-Devel] [lantiq] general help on AR10 platform

2019-09-02 Thread Hauke Mehrtens
On 9/2/19 6:26 AM, Enrico Mioso wrote: > BTW, in vendor's cgu_init, seems the "enablement" part is commented out. > > static int __init cgu_init(void) > { >     int ret; >     char ver_str[128] = {0}; > >     ret = register_chrdev(IFX_CGU_MAJOR, "ifx_cgu", _fops); >     if ( ret != 0 ) { >   

Re: [OpenWrt-Devel] [lantiq] general help on AR10 platform

2019-09-02 Thread Hauke Mehrtens
On 9/2/19 5:38 AM, Enrico Mioso wrote: > Hello guys, > Hello Hauke, > > Sorry for the amount of mails. Did you had a look at this vendor device tree file:

[OpenWrt-Devel] [PATCH] odhcpd: router: Fix out of scope memory access

2019-09-02 Thread Hauke Mehrtens
A pointer to search_buf is accessed by search_domain outside of the if branch which defines search_buf. The compiler could already reuse this memory. Coverity: #1445747 Signed-off-by: Hauke Mehrtens --- src/router.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src

[OpenWrt-Devel] [PATCH] usign: fix some resource leaks

2019-09-02 Thread Hauke Mehrtens
This fixes some resources leaks mostly in error patches. Coverity: #1330236, #1330237, #1330238 Signed-off-by: Hauke Mehrtens --- main.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 3536443..ef47b28 100644 --- a/main.c +++ b/main.c

[OpenWrt-Devel] [PATCH] fstools: mkdev: Avoid out of bounds read

2019-09-02 Thread Hauke Mehrtens
readlink() truncates and does not null terminate the string when more bytes would be written than available. Just increase the char array by one and assume that there is a problem when all bytes are needed. Coverity: #1330087, #1329991 Signed-off-by: Hauke Mehrtens --- libblkid-tiny/mkdev.c | 4

[OpenWrt-Devel] [PATCH] firewall3: Fix some format string problems

2019-09-02 Thread Hauke Mehrtens
This adds annotations for the format strings to the print functions and fixes the newly found problems. One of them is a format security problem. Coverity: #1412532 Signed-off-by: Hauke Mehrtens --- defaults.c | 2 +- includes.c | 2 +- redirects.c | 5 ++--- utils.h | 15

Re: [OpenWrt-Devel] AR10 GPHYs (WAS: Re: [lantiq] general help on AR10 platform)

2019-09-04 Thread Hauke Mehrtens
Hi Enrico, On 9/4/19 6:48 PM, Martin Blumenstingl wrote: > Hi Enrico, > > On Wed, Sep 4, 2019 at 12:07 PM Enrico Mioso wrote: >> >> Hi there! >> >> So I am trying to get ethernet working on this AR10 device. >> It has 3 GPHYs: I did some fixes for the reset bits,, the rest is ok. >> >>

Re: [OpenWrt-Devel] Memory leak related to OpenWrt patch of hostapd

2019-09-10 Thread Hauke Mehrtens
On 8/2/19 6:23 PM, Nick Schaf wrote: > > >> Nick Schaf [2019-07-31 16:34:36]: >> >> Hi, >> >>> I've noticed the wpa_supplicant process on my mesh interfaces leaking >>> memory to the point that the kernel kills the process. It was >>> discovered in 18.06.2, but I've reproduced it with 18.06.4

Re: [OpenWrt-Devel] Bumping net/wireless it s buggy ! 5.3-rc4-1 => 5.3 ( rc9) ?

2019-09-16 Thread Hauke Mehrtens
Hi Sven, On 9/16/19 8:10 PM, sven falempin wrote: > Dear openWRT gurus, > > the patch : > https://github.com/torvalds/linux/commit/b67fd72e84a88cae64cea8ab47ccdaab3bb3094d#diff-35454f3f0395271a0e34581e160bea5f > > Is missing from my build : >

Re: [OpenWrt-Devel] Lantiq xrx200: Access to ethernet phy registers (MDIO) from userspace

2019-09-16 Thread Hauke Mehrtens
On 9/16/19 7:09 PM, Martin Blumenstingl wrote: > Hi Martin, > > On Mon, Sep 16, 2019 at 12:54 PM Martin Schiller wrote: >> >> Hi! >> >> I am searching for a possibility to disable Auto Negotiation of an >> PEF7072 which is attached to MAC1 of the Lantiq xrx200 switch. >> >> The xrx200-net driver

[OpenWrt-Devel] [PATCH 0/7] hostapd: Update to version 2.9

2019-09-08 Thread Hauke Mehrtens
This updates hostapd to version 2.9 release. I tested AP mode and also mesh on 5GHz. Hauke Mehrtens (7): hostapd: Update to version 2.8 hostapd: backport some Fixes from upstream hostapd hostapd: update to version 2.9 hostapd: use config option CONFIG_NO_LINUX_PACKET_SOCKET_WAR hostapd

[OpenWrt-Devel] [PATCH 0/7] hostapd: Update to version 2.9

2019-09-08 Thread Hauke Mehrtens
This updates hostapd to version 2.9 release. I tested AP mode and also mesh on 5GHz. Hauke Mehrtens (7): hostapd: Update to version 2.8 hostapd: backport some Fixes from upstream hostapd hostapd: update to version 2.9 hostapd: use config option CONFIG_NO_LINUX_PACKET_SOCKET_WAR hostapd

[OpenWrt-Devel] [PATCH 6/7] hostapd: use getrandom syscall

2019-09-08 Thread Hauke Mehrtens
hostapd will not use the getrandom() syscall and as a fallback use /dev/random, the syscall is supported since Linux 3.17 and in the musl, glibc and uclibc version used by OpenWrt. Signed-off-by: Hauke Mehrtens --- package/network/services/hostapd/files/hostapd-basic.config | 2 +- package

[OpenWrt-Devel] [PATCH 2/7] hostapd: backport some Fixes from upstream hostapd

2019-09-08 Thread Hauke Mehrtens
These two patches are fixing some problems which are fixed in hostapd master, but not in version 2.8. Signed-off-by: Hauke Mehrtens --- ...-in-storing-of-external_auth-SSID-BS.patch | 82 +++ ...-Fix-ENGINE-support-with-OpenSSL-1.1.patch | 39 + 2 files changed, 121

[OpenWrt-Devel] [PATCH 3/7] hostapd: update to version 2.9

2019-09-08 Thread Hauke Mehrtens
Signed-off-by: Hauke Mehrtens --- package/network/services/hostapd/Makefile | 6 +- .../hostapd/files/hostapd-basic.config| 16 +- .../hostapd/files/hostapd-full.config | 16 +- .../hostapd/files/hostapd-mini.config | 16 +- .../hostapd/files/wpa_supplicant

[OpenWrt-Devel] [PATCH 4/7] hostapd: use config option CONFIG_NO_LINUX_PACKET_SOCKET_WAR

2019-09-08 Thread Hauke Mehrtens
Instead of patching the workaround away, just use the config option. Signed-off-by: Hauke Mehrtens --- .../hostapd/files/wpa_supplicant-basic.config| 2 +- .../hostapd/files/wpa_supplicant-full.config | 2 +- .../hostapd/files/wpa_supplicant-mini.config | 2

[OpenWrt-Devel] [PATCH 5/7] hostapd: Remove unneeded patch

2019-09-08 Thread Hauke Mehrtens
All the content of this function is proceeded by IEEE8021X_EAPOL no code accesses the ssid variable outside of this ifdef. Signed-off-by: Hauke Mehrtens --- .../hostapd/patches/110-no_eapol_fix.patch | 14 -- .../services/hostapd/patches/200-multicall.patch | 6

[OpenWrt-Devel] [PATCH 7/7] hostapd: Add mesh support for wpad full

2019-09-08 Thread Hauke Mehrtens
Signed-off-by: Hauke Mehrtens --- package/network/services/hostapd/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index a723af2c5f..4f6420f503 100644 --- a/package/network/services

[OpenWrt-Devel] [PATCH 19.07 2/2] hostapd: SAE/EAP-pwd side-channel attack update

2019-09-08 Thread Hauke Mehrtens
Fixes this security problem: * SAE/EAP-pwd side-channel attack update https://w1.fi/security/2019-6/sae-eap-pwd-side-channel-attack-update.txt Signed-off-by: Hauke Mehrtens --- ...-ECC-groups-with-a-prime-under-256-b.patch | 40 ...itable-groups-based-on-REVmd-changes.patch | 54

[OpenWrt-Devel] [PATCH 19.07 1/2] hostapd: Fix security problem in EAP-pwd

2019-09-08 Thread Hauke Mehrtens
This fixes: CVE-2019-11555 "EAP-pwd message reassembly issue with unexpected fragment" https://w1.fi/security/2019-5/eap-pwd-message-reassembly-issue-with-unexpected-fragment.txt This should not affect OpenWrt in the default settings as we do not use EAP-pwd. Signed-off-by: Hauk

Re: [OpenWrt-Devel] ipq40xx: fails to boot with SMP on Mikrotik hAP ac² / RBD52G-5HacD2HnD (WIP)

2019-07-29 Thread Hauke Mehrtens
On 7/29/19 11:25 AM, Baptiste Jonglez wrote: > Hi, > > I am trying to finish the port of Mikrotik hAP ac², but I still can't get > it to boot properly with SMP. Adding "nosmp" to the cmdline makes the > initramfs boot fine. > > Here is the work-in-progress tree that Hauke based on the RB450Gx4

[OpenWrt-Devel] hostapd: Allow CONFIG_IEEE80211W for all but mini variant

2019-08-09 Thread Hauke Mehrtens
This commit will activate CONFIG_IEEE80211W for all, but the mini variant when at least one driver supports it. This will add ieee80211w support for the mesh variant for example. Fixes: FS#2397 Signed-off-by: Hauke Mehrtens --- package/network/services/hostapd/Makefile | 8 ++-- 1 file

[OpenWrt-Devel] [PATCH] toolchain: fix gcc depends on kernel headers

2019-07-23 Thread Hauke Mehrtens
be that the gcc already wants to use the kernel headers before they are available. This patch fixes this problem by adding the missing dependency. Signed-off-by: Hauke Mehrtens --- toolchain/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/Makefile b/toolchain/Makefile

Re: [OpenWrt-Devel] "mac80211: Update to version 5.2-rc7" breaks batman-adv

2019-07-22 Thread Hauke Mehrtens
On 7/22/19 6:44 AM, Jeff Kletsky wrote: > > On 7/21/19 4:16 PM, Jeff Kletsky wrote: >> >> git bisect suggests  >> >> commit 0b2c42ced2 (HEAD, refs/bisect/bad) >> >>     mac80211: Update to version 5.2-rc7 >> >> as the problem behind the failure to compile batman-adv on July 21, >> 2019 and

Re: [OpenWrt-Devel] [PATCH] usign: fix some resource leaks

2019-09-20 Thread Hauke Mehrtens
On 9/2/19 11:27 PM, Rosen Penev wrote: > On Mon, Sep 2, 2019 at 1:29 PM Hauke Mehrtens wrote: >> >> This fixes some resources leaks mostly in error patches. >> >> Coverity: #1330236, #1330237, #1330238 >> Signed-off-by: Hauke Mehrtens >> --- >> ma

Re: [OpenWrt-Devel] [PATCH ustream-ssl v2 3/3] wolfssl: enable CN validation

2019-09-20 Thread Hauke Mehrtens
On 9/19/19 4:18 AM, Eneas U de Queiroz wrote: > WolfSSL added a wolfSSL_X509_check_host function to perform CN > validation in v3.10.4, depending on the build-time configure options: > --enable-nginx enables it for all supported versions; > --enable-opensslextra, since v3.14.2. > > If the

[OpenWrt-Devel] [PATCH procd] system: Fix possible integer overflows

2019-09-19 Thread Hauke Mehrtens
This multiplication was done on 32 bit integers before, explicitly cast them to 64 bit values before to make sure the multiplication is done on 64 bit numbers. Coverity: #1412417, #1412410, #1412409, #1412411, #1412424, #1412407 Signed-off-by: Hauke Mehrtens --- system.c | 18

[OpenWrt-Devel] [PATCH] gcc: Fix ICE in GCC 9.2.0

2019-09-19 Thread Hauke Mehrtens
This backports a fix from GCC master to fix a internal compiler exception seen when compiling libjson-c with mips16 activated. Fixes: FS#2455 Signed-off-by: Hauke Mehrtens --- ...uninitialised_use_in_mips_split_move.patch | 55 +++ 1 file changed, 55 insertions(+) create mode

Re: [OpenWrt-Devel] [PATCH v2 1/3] kernel: rtl8366_smi: explicitly set phy addr for switch

2019-09-29 Thread Hauke Mehrtens
Hi Serge, On 8/27/19 11:49 AM, Serge Vailugin wrote: > By default rtl8366_smi use phy addr 0 at mii-bus to access switch > registers. > This patch allow to set it explicitly in dts-file: > > rtl8367 { >     compatible = "realtek,rtl8367b"; >     phy_id = <29>; /* switch address at

[OpenWrt-Devel] [PATCH] iw: Update to version 5.3

2019-09-22 Thread Hauke Mehrtens
: 34446 iw_5.0.1-1_mipsel_24kc.ipk new: 35064 iw_5.3-1_mipsel_24kc.ipk Signed-off-by: Hauke Mehrtens --- package/network/utils/iw/Makefile | 9 +- .../utils/iw/patches/001-nl80211_h_sync.patch | 370 +++--- .../utils/iw/patches/120-antenna_gain.patch | 2 +- .../utils

Re: [OpenWrt-Devel] [PATCH 1/3] kernel: rtl8366_smi: explicitly set phy addr for switch

2019-10-01 Thread Hauke Mehrtens
On 10/1/19 4:36 PM, Linus Walleij wrote: > On Thu, Aug 15, 2019 at 10:27 AM Serge Vasilugin wrote: > >> By default rtl8366_smi use phy addr 0 at mii-bus to access switch registers. >> This patch allow to set it explicitly in dts-file: >> >> rtl8367 { >> compatible =

[OpenWrt-Devel] [PATCH 1/4] dnsmasq: Activate LTO

2019-11-01 Thread Hauke Mehrtens
This decreases the binary size when PIE ASLR is activated by 8% on MIPS BE. old: 202,020 /usr/sbin/dnsmasq new: 185,676 /usr/sbin/dnsmasq Signed-off-by: Hauke Mehrtens --- package/network/services/dnsmasq/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package

[OpenWrt-Devel] [PATCH 2/4] mtd: Activate LTO compile option

2019-11-01 Thread Hauke Mehrtens
This decreases the size of the mtd application by 25% on MIPS BE. old: 20,597 /sbin/mtd new: 16,421 /sbin/mtd Signed-off-by: Hauke Mehrtens --- package/system/mtd/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/system/mtd/Makefile b/package/system/mtd

[OpenWrt-Devel] [PATCH 3/4] swconfig: Activate LTO compile option

2019-11-01 Thread Hauke Mehrtens
This decreases the size of the swconfig application by 25% on MIPS BE. old: 16,916 /sbin/swconfig new: 12,565 /sbin/swconfig Signed-off-by: Hauke Mehrtens --- package/network/config/swconfig/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/network/config/swconfig

[OpenWrt-Devel] [PATCH 4/4] usign: Activate LTO compile option

2019-11-01 Thread Hauke Mehrtens
This decreases the size of the usign application by 16% on MIPS BE. old: 24,597 /usr/bin/usign new: 20,501 /usr/bin/usign Signed-off-by: Hauke Mehrtens --- package/system/usign/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/system/usign/Makefile b/package/system/usign

Re: [OpenWrt-Devel] [PATCH 1/4] dnsmasq: Activate LTO

2019-11-02 Thread Hauke Mehrtens
On 11/1/19 10:08 PM, Rosen Penev wrote: > On Fri, Nov 1, 2019 at 1:55 PM Hauke Mehrtens wrote: >> >> This decreases the binary size when PIE ASLR is activated by 8% on MIPS BE. > A small note on LTO: > > These packages do not generate libraries, but sometimes, LTO mes

Re: [OpenWrt-Devel] [PATCH uci 2/2] build: Add -Wclobbered to detect problems with longjmp

2019-11-04 Thread Hauke Mehrtens
On 11/4/19 4:29 AM, Yousong Zhou wrote: > Hi Hauke > > On Sat, 2 Nov 2019 at 00:07, Hauke Mehrtens wrote: >> >> When we jump back to a save point in UCI_THROW() with longjmp all the >> registers will be reset to the old values when we called UCI_TRAP_SAVE() &

Re: [OpenWrt-Devel] [PATCH v2 1/1] rpcd: add respawn param

2019-11-09 Thread Hauke Mehrtens
On 11/7/19 2:31 PM, Florian Eckert wrote: > The rpcd service is an important service, but if the service stops > working for any reason, no one will ever respawn that service. With this > commit, the procd service will monitor if the rpcd service > is running. If the rpcd service has crashed, then

[OpenWrt-Devel] [PATCH 1/3] ath10-ct: Update to version 2019-11-07

2019-11-09 Thread Hauke Mehrtens
This version adds support for ath10k-ct based on kernel 5.4. The patches are now also covering ath10k-ct based on kernel 5.4. Signed-off-by: Hauke Mehrtens --- package/kernel/ath10k-ct/Makefile | 6 +- ...rt-for-configuring-management-packet.patch | 4 +- ...ble-out-of-bound

[OpenWrt-Devel] [PATCH 2/3] mac80211: Allow ADHOC mode and different beacon intervals

2019-11-09 Thread Hauke Mehrtens
ath10k-ct supports the combination to select ADHOC (IBSS) mode and different beacon intervals together. mac80211 does not like this combination, but Ben says this is ok, so remove this check. Signed-off-by: Hauke Mehrtens --- As an alternative we can also remove the beacon_int_min_gcd setting

[OpenWrt-Devel] [PATCH 3/3] ath10k-ct: Use ath10k-ct version 5.4

2019-11-09 Thread Hauke Mehrtens
This makes ath10k-ct use the version based on kernel 5.4 by default. Signed-off-by: Hauke Mehrtens --- This was only tested in AP mode on a IPQ4019 device so far. package/kernel/ath10k-ct/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/kernel/ath10k-ct

[OpenWrt-Devel] [PATCH] uboot-envtools: Add TARGET_LDFLAGS to fix PIE and RELRO

2019-11-07 Thread Hauke Mehrtens
Forward the OpenWrt TARGET_LDFLAGS to the linker of the fw_printenv tool. In addition also use the more standard make invocation script. With this change the fw_printenv tool is built with PIE and Full RELRO support when activated globally in OpenWrt. Signed-off-by: Hauke Mehrtens --- package

Re: [OpenWrt-Devel] v5.4 as next kernel

2019-10-30 Thread Hauke Mehrtens
On 10/29/19 6:37 AM, John Crispin wrote: > Hi, > should we use v5.4 as our next kernel ? > John I also agree to have kernel 5.4 as the next kernel, it will be finally released in about 1 months and it is a long term kernel. If we are lucky it will be supported for 6 years for Android. What

Re: [OpenWrt-Devel] [PATCH-19.07] build: fix module strip invalid

2019-10-30 Thread Hauke Mehrtens
On 10/30/19 11:14 AM, daxiong wrote: > Current modpost cannot reduce the module size. > > Use $(STRIP) command to replace the modpost patch, > I think to be compatibility will be better. > > Signed-off-by: daxiong Please base this against master, then we can backport it to 19.07. Could you

Re: [OpenWrt-Devel] v5.4 as next kernel

2019-10-30 Thread Hauke Mehrtens
On 10/30/19 5:29 PM, Adrian Schmutzler wrote: > Hi, > >> -Original Message- >> From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] On >> Behalf Of Hauke Mehrtens >> Sent: Mittwoch, 30. Oktober 2019 16:54 >> To: John Crispin ; OpenWrt

Re: [OpenWrt-Devel] [PATCH 0/6] buildsystem: Activate PIE ASLR for some packages

2019-10-30 Thread Hauke Mehrtens
On 10/28/19 10:14 AM, Daniel Engberg wrote: > On 2019-10-27 18:44, Hauke Mehrtens wrote: >> This is a follow up patch on this discussion on the mailing list: >> https://patchwork.ozlabs.org/patch/1041647/ >> >> This allows to activate PIE only for some packages where

Re: [OpenWrt-Devel] v5.4 as next kernel

2019-10-30 Thread Hauke Mehrtens
On 10/30/19 6:25 PM, Piotr Dymacz wrote: > Hi Hauke, John, > > On 30.10.2019 16:54, Hauke Mehrtens wrote: >> On 10/29/19 6:37 AM, John Crispin wrote: >>> Hi, >>> should we use v5.4 as our next kernel ? >>> John >> >> I also agree to

Re: [OpenWrt-Devel] [PATCH] hostapd: enable PMKSA and OK caching for WPA3-Personal

2019-10-30 Thread Hauke Mehrtens
On 10/29/19 11:42 PM, David Bauer wrote: > This enables PMKSA and opportunistic key caching by default for > WPA2/WPA3-Personal, WPA3-Personal and OWE auth types. > Otherwise, Apple devices won't connect to the WPA3 network. > > This should not degrade security, as there's no external

[OpenWrt-Devel] Security Advisory 2019-11-05-3 - ustream-ssl information disclosure (CVE-2019-5101, CVE-2019-5102)

2019-11-13 Thread Hauke Mehrtens
Security Advisory 2019-11-05-3 - ustream-ssl information disclosure (CVE-2019-5101, CVE-2019-5102) DESCRIPTION An exploitable information leak vulnerability exists in the ustream-ssl library of OpenWrt. When connecting to a remote server, the server's SSL certificate is checked but no action is

[OpenWrt-Devel] Security Advisory 2019-11-05-2 - LuCI CSRF vulnerability (CVE-2019-17367)

2019-11-13 Thread Hauke Mehrtens
Security Advisory 2019-11-05-2 - LuCI CSRF vulnerability (CVE-2019-17367) DESCRIPTION A logic flaw in LuCI's HTTP routing component led to ineffective CSRF token testing for various request endpoints, specifically ones using the `arcombine()` dispatch action. This allows 3rd party web pages

[OpenWrt-Devel] Security Advisory 2019-11-05-1 - LuCI stored XSS

2019-11-13 Thread Hauke Mehrtens
Security Advisory 2019-11-05-1 - LuCI stored XSS DESCRIPTION A vulnerability has been reported in LuCI which allows injection of script code through maliciously crafted wireless network SSIDs. When joining a wireless network by clicking Network -> Wireless -> Join, the subsequent configuration

[OpenWrt-Devel] [PATCH] wireless-regdb: Make it build with python2

2019-11-17 Thread Hauke Mehrtens
This backports a patch to build it work with python2 in addition to python3. Signed-off-by: Hauke Mehrtens --- After this patch went into master I would like to backport all the changes for wireless-regdb from master to OpenWrt 19.07. There are already some changes to the regulatory rules

[OpenWrt-Devel] [PATCH] mac80211: Adapt to changes to skb_get_hash_perturb()

2019-11-17 Thread Hauke Mehrtens
The skb_get_hash_perturb() function now takes a siphash_key_t instead of an u32. This was changed in commit 55667441c84f ("net/flow_dissector: switch to siphash"). Use the correct type in the fq header file depending on the kernel version. Signed-off-by: Hauke Mehrtens --- Koen

Re: [OpenWrt-Devel] [PATCH] mac80211: switch to upstream owl-loader driver

2019-11-17 Thread Hauke Mehrtens
ckage will be called ath9k_pci_owl_loader.ko > though. > > Signed-off-by: Christian Lamparter Acked-by: Hauke Mehrtens > --- > package/kernel/linux/modules/wireless.mk | 21 -- > package/kernel/mac80211/ath.mk| 20 +- > .../patches/ath/120-owl-loader

Re: [OpenWrt-Devel] [PATCH] kernel: nf_conntrack_rtcache: fix cleanup on netns delete and rmmod

2019-11-17 Thread Hauke Mehrtens
On 11/13/19 6:12 PM, Yousong Zhou wrote: > Fixes FS#1472, FS#2353, FS#2426 > > Fixes: b3f95490 ("kernel: generic: Add kernel 4.14 support") > Signed-off-by: Yousong Zhou Acked-by: Hauke Mehrtens Thanks for fixing this problem, this should also go into 19.07 and 18

Re: [OpenWrt-Devel] [PATCH 19.07 09/14] hostapd: Update to version 2.8 (2019-04-21)

2019-11-06 Thread Hauke Mehrtens
On 11/6/19 12:05 PM, Petr Štetiar wrote: > From: Hauke Mehrtens > > This also syncs the configuration files with the default configuration > files, but no extra options are activated or deactivated. > > The mesh patches were partially merged into hostapd 2.8, the remain

Re: [OpenWrt-Devel] [PATCH v2 19.07 00/12] bump hostap to latest stable release

2019-11-06 Thread Hauke Mehrtens
rg/cover/1190274/ > 2. > https://git.openwrt.org/?p=openwrt/staging/ynezz.git;a=shortlog;h=refs/heads/upstream/19.07/hostapd-backports > > Eneas U de Queiroz (1): > hostapd: adjust removed wolfssl options > > Hauke Mehrtens (6): > hostapd: Update to version 2.8 (2019-04

Re: [OpenWrt-Devel] [PATCH 19.07 02/14] hostapd: Allow CONFIG_IEEE80211W for all but mini variant

2019-11-06 Thread Hauke Mehrtens
On 11/6/19 12:46 PM, Petr Štetiar wrote: > Daniel Golle [2019-11-06 12:15:47]: > > Hi, > >>> Signed-off-by: Hauke Mehrtens >>> (cherry picked from commit 1d4df52c215874a5238ddef7bccf0139f7758c24) >> >> Looks like you forgot to `git add`, also in pat

Re: [OpenWrt-Devel] [PATCH uci 2/2] build: Add -Wclobbered to detect problems with longjmp

2019-11-06 Thread Hauke Mehrtens
On 11/5/19 1:27 AM, Petr Štetiar wrote: > Hi, > > Hauke Mehrtens [2019-11-01 17:06:34]: > >> +ADD_DEFINITIONS(-Os -Wall -Werror -Wclobbered --std=gnu99 -g3 -I. >> -DUCI_PREFIX="${CMAKE_INSTALL_PREFIX}") > > is there any reason to not use -Wextra

Re: [OpenWrt-Devel] [PATCH uci 2/2] build: Add -Wclobbered to detect problems with longjmp

2019-11-07 Thread Hauke Mehrtens
On 11/7/19 9:51 AM, Petr Štetiar wrote: > Hauke Mehrtens [2019-11-07 00:26:23]: > > Hi, > >>> I didn't looked deeper, but GCC 6,7,8,9 on x86/64 reports following: >>> >>> list.c:626:21: error: variable ‘prev’ might be clobbered by ‘longjmp’ or &g

[OpenWrt-Devel] [PATCH] mac80211: update to version 5.4-rc8

2019-11-21 Thread Hauke Mehrtens
This updates mac80211 to backports based on kernel 5.4-rc8. The delete patches were applied upstream. Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 8 +- ...21-ath10k_init_devices_synchronously.patch | 2 +- ...rolling-support-for-various-chipsets.patch

[OpenWrt-Devel] [PATCH 19.07] mac80211: update to version 4.19.85

2019-11-21 Thread Hauke Mehrtens
Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 6 +- ...fix-tx99-with-monitor-mode-interface.patch | 92 -- ...upport-for-using-active-monitor-inte.patch | 96 --- .../patches/ath/404-regd_no_assoc_hints.patch | 10 +- ...21

[OpenWrt-Devel] OpenWrt 19.07.0 second release candidate

2019-12-02 Thread Hauke Mehrtens
Hi, The OpenWrt community is proud to announce the second release candidate of the upcoming OpenWrt 19.07 stable version series. It incorporates 126 commits since the previous release candidate 19.07.0-rc1. With this release, the OpenWrt project brings all supported targets back to a single

Re: [OpenWrt-Devel] OpenWrt 19.07 status

2019-12-09 Thread Hauke Mehrtens
On 12/6/19 12:23 AM, Hauke Mehrtens wrote: > On 11/26/19 10:44 AM, Stijn Tintel wrote: >> On 26/11/2019 00:34, Hauke Mehrtens wrote: >>> It looks like there is a throughput problem with ath10k-ct on QCA9984, >>> https://bugs.openwrt.org/index.php?do=details_id=2593 >

Re: [OpenWrt-Devel] Lantiq DTS rename

2019-12-15 Thread Hauke Mehrtens
On 12/15/19 2:27 PM, Daniel Golle wrote: > Hi Adrian, > > On Sun, Dec 15, 2019 at 02:10:14PM +0100, m...@adrianschmutzler.de wrote: >> Hi, >> >> I consider doing a DTS rename for lantiq target similar to what it's like on >> ath79 and what I did for ramips earlier that year. >> >> However, I

Re: [OpenWrt-Devel] Lantiq DTS rename

2019-12-15 Thread Hauke Mehrtens
_SOC_FALCON I would use these as a config options like CONFIG_ATH79 for the ath790 target. as SOC names you can use these: amazonse_ danube_ ar9_ vr9_ falcon_ Hauke > >> -Original Message- >> From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] >> On

Re: [OpenWrt-Devel] OpenWrt 19.07 status

2019-12-05 Thread Hauke Mehrtens
On 11/26/19 10:44 AM, Stijn Tintel wrote: > On 26/11/2019 00:34, Hauke Mehrtens wrote: >> It looks like there is a throughput problem with ath10k-ct on QCA9984, >> https://bugs.openwrt.org/index.php?do=details_id=2593 >> there are multiple reports in the Forum. >> &g

Re: [OpenWrt-Devel] ath10k memory leak on 19.07 branch and mikrotik RB952Ui-5ac2nD?

2019-12-07 Thread Hauke Mehrtens
On 12/6/19 7:02 PM, Ben Greear wrote: > On 12/6/19 9:44 AM, Joe Ayers wrote: >>> >>> Possibly the same symptoms don't exist on 128MB RAM devices. >>> >>> Like there is some if condition, which is doing some nasty things on 64M >>> devices? I admit, that I don't have ath10k-ct source code

Re: [OpenWrt-Devel] [PATCH 1/1] build: fix select uClibc

2019-10-19 Thread Hauke Mehrtens
On 10/15/19 12:52 PM, daxiong wrote: > Signed-off-by: daxiong > --- > toolchain/Config.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/toolchain/Config.in b/toolchain/Config.in > index 95087b7..0d288aa 100644 > --- a/toolchain/Config.in > +++ b/toolchain/Config.in >

Re: [OpenWrt-Devel] [PATCH] kmodloader: added -v and -a args to modeprobe

2019-10-19 Thread Hauke Mehrtens
On 10/13/19 6:03 AM, Gerard Ryan wrote: > This is primarily to satiate the usage by docker/libnetwork. > Behaviour mirrors /tools/modprobe.c from https://git.kernel.org > > Signed-off-by: Gerard Ryan > --- > Compile tested: x86_x64, Hyper-V, OpenWrt Master > Run tested: x86_x64, Hyper-V, OpenWrt

Re: [OpenWrt-Devel] [PATCH] octeontx: fix thunderx BGX underflow irq name

2019-10-27 Thread Hauke Mehrtens
On 10/25/19 11:27 PM, Tim Harvey wrote: > request_irq requires irq names to be static/allocated and not on the stack It would be nice if this patch could also go to the mainline Linux kernel, so we do not have to maintain it any more. John already applied it to OpenWrt. > > Signed-off-by: Tim

[OpenWrt-Devel] [PATCH 1/6] buildsystem: Make PIE ASLR option tristate

2019-10-27 Thread Hauke Mehrtens
should contain the none PIE applications, but the images for the normal targets should use PIE. The shared packages should always use PIE when it should be normally activated. Signed-off-by: Hauke Mehrtens --- I hope this !SDK option works. I haven't fully tested this. I want to make sure

[OpenWrt-Devel] [PATCH 5/6] uhttpd: Activate PIE by default

2019-10-27 Thread Hauke Mehrtens
-6b03f960-4_mips_24kc.ipk Signed-off-by: Hauke Mehrtens --- package/network/services/uhttpd/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile index 85b7be7607..a9a7ae769f 100644 --- a/package/network

[OpenWrt-Devel] [PATCH 2/6] dnsmasq: Activate PIE by default

2019-10-27 Thread Hauke Mehrtens
-14_mips_24kc.ipk Signed-off-by: Hauke Mehrtens --- package/network/services/dnsmasq/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index dc20ada292..5c114eb1c6 100644 --- a/package/network/services/dnsmasq

[OpenWrt-Devel] [PATCH 4/6] hostapd: Activate PIE by default

2019-10-27 Thread Hauke Mehrtens
-basic_2019-08-08-ca8c2bd2-1_mips_24kc.ipk Signed-off-by: Hauke Mehrtens --- package/network/services/hostapd/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index 4f6420f503..2d383ac629 100644 --- a/package

[OpenWrt-Devel] [PATCH 3/6] dropbear: Activate PIE by default

2019-10-27 Thread Hauke Mehrtens
-2_mips_24kc.ipk Signed-off-by: Hauke Mehrtens --- package/network/services/dropbear/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/services/dropbear/Makefile b/package/network/services/dropbear/Makefile index 63204042f7..fae1c9587d 100644 --- a/package/network/services

[OpenWrt-Devel] [PATCH 6/6] lantiq: Allow PKG_ASLR_PIE for DSL and voice drivers

2019-10-27 Thread Hauke Mehrtens
get is now on Linux 4.19 only and these exceptions are not needed any more. Signed-off-by: Hauke Mehrtens --- package/kernel/lantiq/ltq-adsl/Makefile | 1 - package/kernel/lantiq/ltq-ifxos/Makefile | 1 - package/kernel/lantiq/ltq-tapi/Makefile | 1 - package/kernel/lantiq/ltq-vdsl-me

[OpenWrt-Devel] [PATCH 0/6] buildsystem: Activate PIE ASLR for some packages

2019-10-27 Thread Hauke Mehrtens
This is a follow up patch on this discussion on the mailing list: https://patchwork.ozlabs.org/patch/1041647/ This allows to activate PIE only for some packages where we thing it is necessary and not only globally for all of them. Hauke Mehrtens (6): buildsystem: Make PIE ASLR option tristate

Re: [OpenWrt-Devel] [PATCH 1/6] buildsystem: Make PIE ASLR option tristate

2019-10-27 Thread Hauke Mehrtens
On 10/27/19 8:05 PM, Rosen Penev wrote: > On Sun, Oct 27, 2019 at 10:46 AM Hauke Mehrtens wrote: >> >> This tristate choose allows to select to build only some applications >> with PIE enabled. On MIPS binaries are getting about 30% bigger when PIE >> is activat

Re: [OpenWrt-Devel] [PATCH v2] mac80211: add rtw88 driver

2019-10-21 Thread Hauke Mehrtens
On 10/21/19 10:47 PM, David Bauer wrote: > This commits adds packaging for the new RTW88 driver from Realtek. > It supports the Realtek 8822BE/8822CE PCIe wireless chips. > > For operation, the complementary firmware has to be loaded. > > Signed-off-by: David Bauer > --- >

Re: [OpenWrt-Devel] Network broken with kernels 5.2+

2019-10-28 Thread Hauke Mehrtens
On 10/28/19 11:01 PM, Rafał Miłecki wrote: > Using OpenWrt with kernels 5.2+ results in broken network. Interfaces > seem OK but I cannot ping my router anymore. > > This regression is caused by the upstream commit > > commit b424e432e770d6dd572765459d5b6a96a19c5286 (refs/bisect/bad) > Author:

Re: [OpenWrt-Devel] OpenWrt 19.07 release schedule ?

2019-10-22 Thread Hauke Mehrtens
On 10/11/19 12:59 PM, Jo-Philipp Wich wrote: > Hi Bjørn, > >> Or: Start discussing the release blockers here and now. Thanks. > > 1) Blocker: LuCI master needs to be backported to 19.07 >Time estimate: 2-3 weeks > > 2) Blocker: All relevant sub-components for WPA-3 + GUI support, such as >

[OpenWrt-Devel] [RFC PATCH] hostapd: Remove mesh DFS patches

2019-10-23 Thread Hauke Mehrtens
these patches again, but I would prefer if they are all in upstream hostapd. Cc: Daniel Golle Signed-off-by: Hauke Mehrtens --- ...ompletion-callback-to-complete-mesh-.patch | 124 -- ...-frequency-as-pri-sec-channel-switch.patch | 26 ...rnel-driver-DFS-handler

[OpenWrt-Devel] [PATCH] kernel: Fix arm64 include files

2019-10-19 Thread Hauke Mehrtens
This patch fixes the build of gdb and strace on arm64 targets with kernel 4.19. Signed-off-by: Hauke Mehrtens --- ...angle-uapi-asm-ptrace.h-from-uapi-as.patch | 280 ++ 1 file changed, 280 insertions(+) create mode 100644 target/linux/generic/backport-4.19/210-arm64-sve

Re: [OpenWrt-Devel] [PATCH v2] mac80211: Adapt to changes to skb_get_hash_perturb()

2019-11-18 Thread Hauke Mehrtens
On 11/18/19 7:05 AM, Stefan Lippers-Hollmann wrote: > From: Hauke Mehrtens > > The skb_get_hash_perturb() function now takes a siphash_key_t instead of > an u32. This was changed in commit 55667441c84f ("net/flow_dissector: > switch to siphash"). Use the correct t

Re: [OpenWrt-Devel] [PATCH 05/17] ar71xx: disable Netgear WNR2000v4 by default

2019-11-29 Thread Hauke Mehrtens
On 11/16/19 9:23 PM, Jo-Philipp Wich wrote: > Disable the Netgear WNR2000v4 image by default as the device has > insufficient flash space for release build images. > > Ref: https://forum.openwrt.org/t/devices-too-big-to-save-overlay/18161/11 > Signed-off-by: Jo-Philipp Wich > --- >

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