[OpenWrt-Devel] [PATCH uclient] uclient-http: set data_eof when content-length is 0

2019-05-26 Thread Yousong Zhou
Otherwise uclient-fetch can report "Connection reset prematurely" Fixes FS# Signed-off-by: Yousong Zhou --- uclient-http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uclient-http.c b/uclient-http.c index 3168f4c..c1f7228 100644 --- a/uclient-http.c +++

Re: [OpenWrt-Devel] [PATCH 3/4] base-files: move urandom seed bits into separate package

2019-05-28 Thread Yousong Zhou
On Tue, 28 May 2019 at 05:30, Petr Štetiar wrote: ... > + > +save() { > +touch "$1.tmp" > +chown root:root "$1.tmp" > +chmod 600 "$1.tmp" > +getrandom 512 > "$1.tmp" > +mv "$1.tmp" "$1" > +echo "Seed saved ($1)" > +} Maybe we could prepare the .tmp file in /tmp of tmpfs

Re: [OpenWrt-Devel] [PATCH 4/4] build: add urandom-seed and urngd to default packages set

2019-05-28 Thread Yousong Zhou
On Tue, 28 May 2019 at 05:30, Petr Štetiar wrote: > > urandom-seed content was split from base-files into separate package so > in order to preserve the current functionality and to provide some > fallback mechanism in case jent-rng initialization fails in urngd we > need to add it back. > > urngd

Re: [OpenWrt-Devel] [PATCH 3/4] base-files: move urandom seed bits into separate package

2019-05-28 Thread Yousong Zhou
On Wed, 29 May 2019 at 05:17, Etienne Champetier wrote: > > Hi Yousong, > > Le mar. 28 mai 2019 à 09:01, Yousong Zhou a écrit : >> >> On Tue, 28 May 2019 at 05:30, Petr Štetiar wrote: >> >> ... >> >> > + >> > +save() { >> > +

[OpenWrt-Devel] [PATCH 1/2] generic: support mtd-mac-address-ascii

2019-06-08 Thread Yousong Zhou
It supports formats of both 001122334455 and 00:11:22:33:44:55 Signed-off-by: Yousong Zhou --- ...et-sched-Introduce-act_ctinfo-action.patch | 18 ...et-sched-Introduce-act_ctinfo-action.patch | 20 .../generic/hack-4.9/220-gc_sections.patch| 2 +- .../681-NET-add

[OpenWrt-Devel] [PATCH 2/2] ath79: port HiWiFi HC6361 from ar71xx

2019-06-08 Thread Yousong Zhou
LED name for WLAN changed from hiwifi:blue:wlan2p4 to hiwifi:blue:wlan, to align with other boards Signed-off-by: Yousong Zhou --- .../ath79/base-files/etc/board.d/01_leds | 4 + .../linux/ath79/dts/ar9331_hiwifi_hc6361.dts | 141 ++ target/linux/ath79/image/generic.mk

Re: [OpenWrt-Devel] [PATCH 1/2] generic: support mtd-mac-address-ascii

2019-06-10 Thread Yousong Zhou
On Sun, 9 Jun 2019 at 20:35, Petr Štetiar wrote: > > Yousong Zhou [2019-06-08 15:54:41]: > > Hi, > > > It supports formats of both 001122334455 and 00:11:22:33:44:55 > > mtd-mac-address was rejected upstream[1], so I'm not sure if we should add new > features

[OpenWrt-Devel] [PATCH opkg] alternatives: special-case busybox as alternatives provider

2019-06-11 Thread Yousong Zhou
From: Yousong Zhou Almost all busybox applets are alternatives to some other existing "full" utilities. To lift the maintenance burden of enumerating CONFIG symbols, symlink path of each applet, we special case busybox here as a known alternatives provider. All file pathes provided

Re: [OpenWrt-Devel] [PATCH opkg] alternatives: special-case busybox as alternatives provider

2019-06-13 Thread Yousong Zhou
On Thu, 13 Jun 2019 at 20:45, Jo-Philipp Wich wrote: > > Hi, > > ACK on the patch. I was thinking about whether it makes sense to move out > the hardcoded package "busybox" -> "/bin/busybox" path facts into some kind > of external pkgname => multicall-executable-path mapping configuration but > th

[OpenWrt-Devel] [PATCH v2 opkg] alternatives: special-case busybox as alternatives provider

2019-06-13 Thread Yousong Zhou
From: Yousong Zhou Almost all busybox applets are alternatives to some other existing "full" utilities. To lift the maintenance burden of enumerating CONFIG symbols, symlink path of each applet, we special case busybox here as a known alternatives provider. All file pathes provided

[OpenWrt-Devel] [PATCH] build: do not deref symlinks when INSTALL_XX

2019-06-15 Thread Yousong Zhou
This intends to serve as a guard against future use of the following that may lead to multiple copies of the same binary be packaged and installed to the target system $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyy.so.* $(1) Signed-off-by: Yousong Zhou --- If this got accepted, pull

Re: [OpenWrt-Devel] [PATCH 2/6] scripts/dl_github_archive.py: convert to Python 3 with 2-to-3

2019-06-19 Thread Yousong Zhou
s/dl_github_archive.py b/scripts/dl_github_archive.py > index 4bb7d131bb83..3d1e07e5c551 100755 > --- a/scripts/dl_github_archive.py > +++ b/scripts/dl_github_archive.py > @@ -1,4 +1,4 @@ > -#!/usr/bin/env python > +#!/usr/bin/env python3 > # > # Copyright (c) 2018 Yousong Zhou

Re: [OpenWrt-Devel] [PATCH 1/6] tools/b43-tools/b43-fwsquash: convert to Python 3 with 2-to-3

2019-06-19 Thread Yousong Zhou
On Tue, 18 Jun 2019 at 04:09, Petr Štetiar wrote: > > Let's convert the script to Python 3. > > Signed-off-by: Petr Štetiar > --- > tools/b43-tools/files/b43-fwsquash.py | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/tools/b43-tools/files/b43-fwsquash.p

Re: [OpenWrt-Devel] [PATCH 6/6] build: cleanup possibly dangling Python 2 host symlink

2019-06-19 Thread Yousong Zhou
On Tue, 18 Jun 2019 at 04:10, Petr Štetiar wrote: > > When bumping buildroot to Python 3, we need to assure, that Python > symlink in staging bin directory points to Python >= 3.5 as well. I thought `ln -sf` in previous patch will update that symlink to python3. Isn't that the case? > > Signed-

[OpenWrt-Devel] [PATCH] base-files: apply new sysctl.conf at postinst

2019-06-20 Thread Yousong Zhou
This is mainly for kmod-br-netfilter. To turn off bridge-netfilter-call-xxx immediately after installation While at it - Define filelist="/usr/lib/opkg/info/${pkgname}.list" - Reuse "[ -z "$root" ]" - Grep with "-m1" Fixes FS#2300 Reported-by: Marc

Re: [OpenWrt-Devel] [PATCH] build: rules.mk: allow overriding of HOSTCC and HOSTCXX

2019-07-23 Thread Yousong Zhou
STAGING_DIR_HOST)/bin/pkg-config > > export PKG_CONFIG > > -HOSTCC:=gcc > -HOSTCXX:=g++ > +HOSTCC?=gcc > +HOSTCXX?=g++ Variables specified as command arguments can override `:=` assignment. But the change is still helpful if such HOSTCC and HOS

Re: [OpenWrt-Devel] [PATCH 1/2] base-files: implement generic service_running

2019-07-23 Thread Yousong Zhou
On Tue, 23 Jul 2019 at 18:25, Petr Štetiar wrote: > > DRY is good, otherwise we're going to suffer with a copy&paste disease > in the init scripts. > > Signed-off-by: Petr Štetiar > --- > package/base-files/files/etc/rc.common | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > d

Re: [OpenWrt-Devel] [PATCH 2/2] netifd, lldpd, rpcd, log: use generic service_running

2019-07-23 Thread Yousong Zhou
On Tue, 23 Jul 2019 at 18:25, Petr Štetiar wrote: > > commit eb204d14f75c ("base-files: implement generic service_running") > introduced generic service_running so it's not needed to copy&paste same > 3 lines over and over again. > > Signed-off-by: Petr Štetiar > --- > package/network/config/net

Re: [OpenWrt-Devel] [PATCH] scripts/ubinize-image.sh: fix buildbot breakage

2019-07-27 Thread Yousong Zhou
On Sat, 27 Jul 2019 at 14:02, Petr Štetiar wrote: > > New Docker based buildslaves install just bare minimum of packages, thus > not having bsdmainutils package installed which provides `hexdump` > utility, leading to the following build breakage on buildbots: > > ubinize-image.sh: 12: /builder/s

[OpenWrt-Devel] [PATCH] ramips: add support for Northbound Networks Zodiac GX

2019-08-20 Thread Yousong Zhou
Hardware spec - MT7621A dual-core 880MHz - 16MB Flash - 256MB RAM - 5 GbE ports Vendor device page: https://northboundnetworks.com/products/zodiac-gx Signed-off-by: Yousong Zhou --- .../ramips/base-files/etc/board.d/02_network | 1 + .../dts/mt7621_northbound_zodiac-gx.dts | 97

Re: [OpenWrt-Devel] [PATCH] ramips: add support for Northbound Networks Zodiac GX

2019-08-20 Thread Yousong Zhou
On Tue, 20 Aug 2019 at 23:38, wrote: > > Hi, > > > -Original Message- > > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > > On Behalf Of Yousong Zhou > > Sent: Dienstag, 20. August 2019 15:52 > > To: j...@phrozen.org

Re: [OpenWrt-Devel] [PATCH] ramips: add support for Northbound Networks Zodiac GX

2019-08-20 Thread Yousong Zhou
On Wed, 21 Aug 2019 at 03:52, Enrico Mioso wrote: > > Hello, > thank you for your work guys! It's very good to see vendors helping out in > open-sourcing firmware / support for their devices. > Just a single / simple question: does the device provide for any recovery > procedure? > If so, may yo

Re: [OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20180802

2018-08-03 Thread Yousong Zhou
On Sat, 4 Aug 2018 at 04:13, Jason A. Donenfeld wrote: > > Signed-off-by: Jason A. Donenfeld > --- > package/network/services/wireguard/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/package/network/services/wireguard/Makefile > b/package/network/services/

[OpenWrt-Devel] [PATCH] delta: fix parsing malformed delta lines

2018-08-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- delta.c | 6 ++ test/tests.d/100_changes | 33 + 2 files changed, 39 insertions(+) create mode 100644 test/tests.d/100_changes diff --git a/delta.c b/delta.c index e9c79ab..386167d 100644 --- a/delta.c +++ b

Re: [OpenWrt-Devel] [PATCH] uci: do not access invalid memory when updating an existing section

2018-08-13 Thread Yousong Zhou
On Sun, 12 Aug 2018 at 14:41, Enrico Mioso wrote: > > If a new section with the same name and type of an old one is found, a > memory reallocation happens. Still, the options list for the section is > not reinitialized, hence a stale pointer is being used. > > Signed-off-by: Enrico Mioso > --- >

Re: [OpenWrt-Devel] [PATCH] uci: do not access invalid memory when updating an existing section

2018-08-13 Thread Yousong Zhou
On Tue, 14 Aug 2018 at 04:56, Enrico Mioso wrote: > > Hello, and thank you for your help, and review. > I agree on not changing behaviour. the problem is not actually a memory leak, > but the fact that ptr->s->options seems to not be a valid pointer at that > point. > At least, this is what valg

Re: [OpenWrt-Devel] detecting liblua in CMake

2018-08-30 Thread Yousong Zhou
On Thu, 30 Aug 2018 at 04:39, Lev wrote: > > Hi, > > > > I'm currently developing an application for OpenWRT. IT is written in C, and > uses the LUA libraries. > > The C code is configured by CMake. The question is how can I detect, packages > with CMake. > > At the host system, the application

[OpenWrt-Devel] [PATCH 1/2] scripts/metadata.pm: avoid adding dup names in provides list

2018-09-05 Thread Yousong Zhou
The need arises from building Open vSwitch kernel datapath modules, e.g. - kmod-openvswitch from Linux upstream - kmod-openvswitch-intree from openvswitch source code where both provides virtual package "kmod-openvswitch" for userspace packages to select and depend on Signed-off-b

[OpenWrt-Devel] [PATCH 2/2] scripts/package-metadata.pl: prefer $vdep with the same name as $depend

2018-09-05 Thread Yousong Zhou
The need arises when userspace package "openvswitch" selects "kmod-openvswitch" which will be provided by both "kmod-openvswitch" and "kmod-openvswitch-intree". In this case, we want it to prefer the package with the same name as with virtual package S

Re: [OpenWrt-Devel] [PATCH 2/2] scripts/package-metadata.pl: prefer $vdep with the same name as $depend

2018-09-05 Thread Yousong Zhou
On Thu, 6 Sep 2018 at 04:15, Matthias Schiffer wrote: > > On 9/5/18 5:40 PM, Yousong Zhou wrote: > > The need arises when userspace package "openvswitch" selects > > "kmod-openvswitch" which will be provided by both "kmod-openvswitch" and > >

Re: [OpenWrt-Devel] [PATCH 2/2] scripts/package-metadata.pl: prefer $vdep with the same name as $depend

2018-09-05 Thread Yousong Zhou
On Thu, 6 Sep 2018 at 11:00, Yousong Zhou wrote: > > On Thu, 6 Sep 2018 at 04:15, Matthias Schiffer > wrote: > > > > On 9/5/18 5:40 PM, Yousong Zhou wrote: > > > The need arises when userspace package "openvswitch" selects > > > "kmod-openvsw

[OpenWrt-Devel] [PATCH] scripts/ipkg-build: quash error messages when conffiles.resolved is empty

2018-09-06 Thread Yousong Zhou
s 'CONTROL/conffiles': No such file or directory It will not break the ipkg-build process. The change is merely cosmetic to not cause confusion when reading logs Signed-off-by: Yousong Zhou --- scripts/ipkg-build | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/

Re: [OpenWrt-Devel] [PATCH 2/2] scripts/package-metadata.pl: prefer $vdep with the same name as $depend

2018-09-06 Thread Yousong Zhou
On Fri, 7 Sep 2018 at 04:37, Matthias Schiffer wrote: > > On 9/6/18 5:04 AM, Yousong Zhou wrote: > > On Thu, 6 Sep 2018 at 11:00, Yousong Zhou wrote: > >> > >> On Thu, 6 Sep 2018 at 04:15, Matthias Schiffer > >> wrote: > >>> > >>>

Re: [OpenWrt-Devel] Is printf considered to be guaranteed?

2018-10-19 Thread Yousong Zhou
On Sat, 13 Oct 2018 at 06:48, Sebastian Moeller wrote: > > Dear mhei, > > > > > On Oct 12, 2018, at 20:53, Michael Heimpold wrote: > > > > Am Donnerstag, 11. Oktober 2018, 22:44:53 CEST schrieb Sebastian Moeller: > >> Dear Luiz, > >> > >> thank you very much for this information. By now I have re

Re: [OpenWrt-Devel] Enabling CircleCI for packages repo

2018-10-28 Thread Yousong Zhou
On Mon, 29 Oct 2018 at 11:32, Etienne Champetier wrote: > > Hi Ted, > > Le dim. 28 oct. 2018 à 19:26, Etienne Champetier > a écrit : > > > > Hi again, > > > > Le dim. 28 oct. 2018 à 18:50, Etienne Champetier > > a écrit : > > > > > > Hi Ted, > > > > > > Le dim. 28 oct. 2018 à 17:40, Ted Hess a

Re: [OpenWrt-Devel] [PATCH 1/3] Ensure blob_attr length check does not perform out of bounds reads

2018-11-22 Thread Yousong Zhou
On Thu, 22 Nov 2018 at 10:01, Tobias Schramm wrote: > > Before there might have been as little as one single byte left which would > result > int 3 bytes of blob_attr->id_len being out of bounds > > Signed-off-by: Tobias Schramm > --- > blob.h| 4 ++-- > blobmsg.h | 2 +- > 2 files changed,

Re: [OpenWrt-Devel] [PATCH 2/3] Replace use of blobmsg_check_attr by blobmsg_check_attr_safe

2018-11-22 Thread Yousong Zhou
On Thu, 22 Nov 2018 at 10:01, Tobias Schramm wrote: > > blobmsg_check_attr_safe adds a length limit specifying the max offset from > attr that > can be read safely > > Signed-off-by: Tobias Schramm > --- > blobmsg.c | 27 ++- > blobmsg.h | 2 ++ > 2 files changed, 24 in

Re: [OpenWrt-Devel] [PATCH 0/3] libubox: Enhance robustness of blobmsg parsing

2018-11-22 Thread Yousong Zhou
On Thu, 22 Nov 2018 at 10:00, Tobias Schramm wrote: > > Hi, > > this patch set makes parsing of blobmsg messages more robust against > malformed data. > > Previously blobmsg_parse would crash due to out of bounds reads when > provided with malformed blobs containing invalid blob length specificati

Re: [OpenWrt-Devel] [PATCH 2/3] Replace use of blobmsg_check_attr by blobmsg_check_attr_safe

2018-11-22 Thread Yousong Zhou
On Fri, 23 Nov 2018 at 13:51, Tobias Schramm wrote: > > While I do agree that we could safely call blobmsg_check_attr I think > that - to the uninitiated reader - calling blobmsg_check_attr_safe > shows a lot more clearly that the methods in question are actually > safe to use with potentially bro

Re: [OpenWrt-Devel] [PATCH v3 1/3] Ensure blob_attr length check does not perform out of bounds reads

2018-11-27 Thread Yousong Zhou
On Wed, 28 Nov 2018 at 09:35, Tobias Schramm wrote: > > Before there might have been as little as one single byte left which would > result > in 3 bytes of blob_attr->id_len being out of bounds > > Signed-off-by: Tobias Schramm Acked-by: Yousong Zhou

Re: [OpenWrt-Devel] [RFC 06/27] kernel: Add kmod-phy-realtek

2018-11-27 Thread Yousong Zhou
On Wed, 28 Nov 2018 at 07:17, Hauke Mehrtens wrote: > > 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 > --- > pa

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

2018-11-27 Thread Yousong Zhou
On Wed, 28 Nov 2018 at 07:21, Hauke Mehrtens wrote: > > In kernel commit 0168e8b361 ("netfilter: nat: merge ipv4/ipv6 masquerade > code into main nat module") the CONFIG_NF_NAT_MASQUERADE_IPV4 and > CONFIG_NF_NAT_MASQUERADE_IPV6 kernel configuration option were changed > to bool and the code will

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

2018-11-29 Thread Yousong Zhou
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 ("netfilter: nat: merge ipv4/ipv6 masquerade &

Re: [OpenWrt-Devel] Q: procd: re-evaluation of inittab entries

2018-12-04 Thread Yousong Zhou
On Wed, 5 Dec 2018 at 06:00, Michael Heimpold wrote: > > Hi, > > I'm currently playing with USB gadget stuff. The goal is to run an Ethernet > link and a console over the USB link. I already selected the relevant kernel > modules and ACM device and RNDIS device is created on the USB host > system

Re: [OpenWrt-Devel] [PATCH libubox] hotplug: add hotplug_call() helper

2018-12-06 Thread Yousong Zhou
On Thu, 6 Dec 2018 at 20:42, Rafał Miłecki wrote: > > From: Rafał Miłecki > > This new function imlements common code needed to run /etc/hotplug.d/ > listeners. It allows specifying subsystem and environment strings as > commonly used in the hotplug.d. hotplug-call is currently a OpenWrt-specifi

Re: [OpenWrt-Devel] [RFC] ca-certificates python/host

2018-12-10 Thread Yousong Zhou
On Mon, 10 Dec 2018 at 04:35, Lucian Cristian wrote: > > I would like to propose a patch for ca-certificate to fix the following > error > > Traceback (most recent call last): >File "certdata2pem.py", line 150, in > encoded = base64.b64encode(obj['CKA_VALUE']).decode('utf-8') >File "

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

2018-12-10 Thread Yousong Zhou
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 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/package/kernel/linux

Re: [OpenWrt-Devel] Broken packaging of modules (updating them) when using @lt or @gt

2018-12-14 Thread Yousong Zhou
On Sat, 15 Dec 2018 at 06:00, Rafał Miłecki wrote: > > I've noticed a problem with kmod-phy-bcm-ns-usb2 defined in the > target/linux/bcm53xx/modules.mk > > Steps to reproduce: > 1) Setup .config with: > CONFIG_TARGET_bcm53xx > CONFIG_TARGET_MULTI_PROFILE > TARGET_ALL_PROFILES > CONFIG_TARGET_PER_

Re: [OpenWrt-Devel] Broken packaging of modules (updating them) when using @lt or @gt

2018-12-16 Thread Yousong Zhou
On Mon, 17 Dec 2018 at 12:59, Rafał Miłecki wrote: > > On Sat, 15 Dec 2018 at 08:05, Yousong Zhou wrote: > > > > On Sat, 15 Dec 2018 at 06:00, Rafał Miłecki wrote: > > > > > > I've noticed a problem with kmod-phy-bcm-ns-usb2 defined in the > > >

[OpenWrt-Devel] [PATCH] build: fix build dependency of kmod .ipk with version filtered files

2018-12-17 Thread Yousong Zhou
We need to use resolved file list as prerequisites for repacking kmod .ipk files. Note that currently version_filter uses a Makefile macro KERNEL_PATCHVER that should be available at ipk building time. Reported-by: Rafał Miłecki Signed-off-by: Yousong Zhou --- include/kernel.mk | 2 +- 1 file

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

2018-12-21 Thread Yousong Zhou
On Sat, 22 Dec 2018 at 01:21, Kevin 'ldir' Darbyshire-Bryant wrote: > > Backport > https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?id=adcc81f148d733b7e8e641300c5590a2cdc13bf3 > > "Mapping the delay slot emulation page as both writeable & executable > presents a security ris

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

2018-12-22 Thread Yousong Zhou
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: > >> > >> Backpo

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

2018-12-23 Thread Yousong Zhou
On Sat, 22 Dec 2018 at 01:21, Kevin 'ldir' Darbyshire-Bryant wrote: > > Backport > https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?id=adcc81f148d733b7e8e641300c5590a2cdc13bf3 > > "Mapping the delay slot emulation page as both writeable & executable > presents a security ris

Re: [OpenWrt-Devel] Invalid revision range

2019-01-21 Thread Yousong Zhou
On Mon, 21 Jan 2019 at 18:43, R. Diez via openwrt-devel wrote: > > The sender domain has a DMARC Reject/Quarantine policy which disallows > sending mailing list messages using the original "From" header. > > To mitigate this problem, the original message has been wrapped > automatically by the mai

[OpenWrt-Devel] [PATCH 2/2] dnsmasq: decouple /tmp/resolv.conf from value of option resolvfile

2019-02-14 Thread Yousong Zhou
Option resolvfile should now affect only how dnsmasq itself will run. The implicit effect of its specific value on other parts of the system makes the code unnecessarily hard to follow Signed-off-by: Yousong Zhou --- package/network/services/dnsmasq/Makefile | 2 +- package/network

[OpenWrt-Devel] [PATCH 1/2] dnsmasq: allow using dnsmasq as the sole resolver

2019-02-14 Thread Yousong Zhou
olv.conf.auto Signed-off-by: Yousong Zhou --- package/network/services/dnsmasq/Makefile | 2 +- .../services/dnsmasq/files/dnsmasq.init | 30 +-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package/network/services/dnsmasq/Makefile b/package/network/

Re: [OpenWrt-Devel] ca-certificates: bump to 20190110 and fix compile error

2019-02-15 Thread Yousong Zhou
On Sat, 16 Feb 2019 at 10:21, 紫 昕 wrote: > > Hi, Please properly format and send your patches according to guide at https://openwrt.org/submitting-patches Please also describe the compilation error you encountered and consider fixing that in a separate commit before bumping. Thank you

Re: [OpenWrt-Devel] [PATCH 2/2] dnsmasq: decouple /tmp/resolv.conf from value of option resolvfile

2019-02-17 Thread Yousong Zhou
On Mon, 18 Feb 2019 at 04:00, Hans Dedecker wrote: > > Hi Yousong, > On Thu, Feb 14, 2019 at 1:15 PM Yousong Zhou wrote:Y > > > > Option resolvfile should now affect only how dnsmasq itself will run. > > The implicit effect of its specific value on other parts of th

[OpenWrt-Devel] [PATCH 2/2] armvirt: 32: enable CONFIG_ARM_LPAE

2019-02-18 Thread Yousong Zhou
MU will fail and quit on encounter of unknown flags [1] Armv7 guest fails to boot with qemu-3.0.0-1, https://bugzilla.redhat.com/show_bug.cgi?id=1633328#c5 Signed-off-by: Yousong Zhou --- target/linux/armvirt/32/config-default | 12 ++-- 1 file changed, 10 insertions(+), 2 delet

[OpenWrt-Devel] [PATCH 1/2] armvirt: 32: refresh kernel config

2019-02-18 Thread Yousong Zhou
a default on option for !PREEMPT && SMP system - CONFIG_RCU_NEED_SEGCBLIST Signed-off-by: Yousong Zhou --- target/linux/armvirt/32/config-default | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/target/linux/armvirt/32/config-default b/targ

[OpenWrt-Devel] [PATCH v2] dnsmasq: allow using dnsmasq as the sole resolver

2019-02-18 Thread Yousong Zhou
olv.conf.auto Signed-off-by: Yousong Zhou --- v2 <- v1 - retain /tmp/resolv.conf.auto as the default value of resolvfile when doing config_get, i.e. 2nd patch in the 1st version is now dropped - retain the old behavior of rewriting /tmp/resolv.conf when resolvfile is /tmp/resolv.conf

[OpenWrt-Devel] [PATCH] scripts/qemustart: add option --mach

2019-02-19 Thread Yousong Zhou
Value of the new option will be passed to qemu --machine verbatim. This can be used to set machine options like highmem=off for running old armvirt/32 kernel lacking LPAE support on QEMU version 3.0 or later Signed-off-by: Yousong Zhou --- scripts/qemustart | 18 -- 1 file

[OpenWrt-Devel] [PATCH v2] scripts/qemustart: allow machine selection with new option --machine

2019-02-19 Thread Yousong Zhou
This can be used to set machine options like highmem=off for running old armvirt/32 kernel lacking LPAE support with QEMU version 3.0 or later [1] Armv7 guest fails to boot with qemu-3.0.0-1, https://bugzilla.redhat.com/show_bug.cgi?id=1633328#c5 Signed-off-by: Yousong Zhou --- v2 <-

[OpenWrt-Devel] [PATCH] dnsmasq: prefer localuse over resolvfile guesswork

2019-02-20 Thread Yousong Zhou
This makes it clear that localuse when explicitly specified in the config will have its final say on whether or not the initscript should touch /etc/resolv.conf, no matter whatever the result of previous guesswork would be Signed-off-by: Yousong Zhou --- package/network/services/dnsmasq

Re: [OpenWrt-Devel] [PATCH] [ubox] kmodloader: increase module name length

2019-02-21 Thread Yousong Zhou
On Mon, 18 Feb 2019 at 21:15, Sergiy Kibrik wrote: > > Otherwise modules with long names, e.g. lttng (>32 chars) can't be loaded. > > Signed-off-by: Sergiy Kibrik > --- > kmodloader.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kmodloader.c b/kmodloader.c > index 319

Re: [OpenWrt-Devel] [PATCH] dnsmasq: prefer localuse over resolvfile guesswork

2019-02-21 Thread Yousong Zhou
On Thu, 21 Feb 2019 at 22:14, Paul Oranje wrote: > > > > > Op 21 feb. 2019, om 04:52 heeft Yousong Zhou het > > volgende geschreven: > > > > This makes it clear that localuse when explicitly specified in the > > config will have its final say on whether

Re: [OpenWrt-Devel] [PATCH v2] dnsmasq: allow using dnsmasq as the sole resolver

2019-02-21 Thread Yousong Zhou
On Tue, 19 Feb 2019 at 23:02, Paul Oranje wrote: > > Op 18 feb. 2019, om 21:50 heeft Hans Dedecker het > volgende geschreven: > > > > On Mon, Feb 18, 2019 at 3:18 PM Yousong Zhou wrote: > >> > >> Currently it seems impossible to configure /etc/config/dhcp

Re: [OpenWrt-Devel] [PATCH] MIPS64: add support for MIPS64R6

2019-02-21 Thread Yousong Zhou
On Fri, 22 Feb 2019 at 12:05, zh h wrote: > > From: Hua Zhang > > 1. add support for MIPS64R6 in target.mk > 2. add support for MIPS64R6 in target malta > 3. add support for MIPS64R6 in gcc configuration > > Signed-off-by: Hua Zhang I just checked the code and it looks like the malta mips64 sub

[OpenWrt-Devel] [PATCH 18.06 2/2] dnsmasq: prefer localuse over resolvfile guesswork

2019-02-22 Thread Yousong Zhou
-by: Yousong Zhou --- package/network/services/dnsmasq/Makefile | 2 +- package/network/services/dnsmasq/files/dnsmasq.init | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile

[OpenWrt-Devel] [PATCH 18.06 1/2] dnsmasq: allow using dnsmasq as the sole resolver

2019-02-22 Thread Yousong Zhou
resolv.conf.auto (cherry picked from 2aea1ada65f050d74a064e74466bbe4e8d) Signed-off-by: Yousong Zhou --- package/network/services/dnsmasq/Makefile | 2 +- .../services/dnsmasq/files/dnsmasq.init | 30 +-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a

Re: [OpenWrt-Devel] [PATCH] dnsmasq: prefer localuse over resolvfile guesswork

2019-02-22 Thread Yousong Zhou
On Fri, 22 Feb 2019 at 20:13, Paul Oranje wrote: > > > > Op 22 feb. 2019, om 02:54 heeft Yousong Zhou het > > volgende geschreven: > > > > On Thu, 21 Feb 2019 at 22:14, Paul Oranje wrote: > >> > >> > >> > >>> Op 21 f

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v2 0/4] sunxi: rework image build and sysupgrade support

2017-01-01 Thread Yousong Zhou
On 2 January 2017 at 02:55, Zoltan HERPAI wrote: > Hi Yousong, > > Yousong Zhou wrote: >> >> This series mainly tries achieve the following goals >> >> - use new image generation method >> - squashfs sdcard image support >> - mkfs.f2fs or mkf

Re: [OpenWrt-Devel] [LEDE-DEV] Makefile question

2017-02-13 Thread Yousong Zhou
On 14 February 2017 at 10:51, Philip Prindeville wrote: > >> On Feb 12, 2017, at 10:04 PM, Yousong Zhou wrote: >> >> On 13 February 2017 at 11:23, Philip Prindeville >> wrote: >>> >>>> On Feb 11, 2017, at 8:29 PM, David Lang wrote: >>

Re: [OpenWrt-Devel] [LEDE-DEV] Makefile question

2017-02-14 Thread Yousong Zhou
On 15 February 2017 at 06:33, Philip Prindeville wrote: [...] >>> >>> Part of the problem is making package/Makefile recurse with additional >>> arguments and a different working directory… When I try to do this, the >>> submake of package/Makefile gets run without inherited variables like >

Re: [OpenWrt-Devel] openwrt and lede - remerge proposal

2017-05-10 Thread Yousong Zhou
So many items to vote and work on. I would suggest we sort out those formal things first, e.g. project rules, umbrella project etc. I do not know much about the past history apart from those posts in the public mailing list. But if these formal things were the major cause of the split in the fir

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH 1/9] hwmon-coretemp: add thermal monitor for Core/Core2/Atom

2017-10-22 Thread Yousong Zhou
On 23 October 2017 at 04:21, Zoltan HERPAI wrote: > From: Philip Prindeville > > Signed-off-by: Philip Prindeville > --- > package/kernel/linux/modules/hwmon.mk | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/package/kernel/linux/modules/hwmon.mk > b/package/kernel/li

Re: [OpenWrt-Devel] merge: add OpenWrt branding

2017-10-24 Thread Yousong Zhou
On 24 October 2017 at 19:46, Zoltan HERPAI wrote: > Given that we've decided to sail under the same flag for > the benefit of the whole community, and acknowledge the > achievements of the LEDE project, let's start the final > steps of the merge. > > The git and other sources are untouched until t

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v2] merge: add OpenWrt branding

2017-10-26 Thread Yousong Zhou
On 27 October 2017 at 00:32, Imre Kaloz wrote: > Hi Paul, > > On 2017-10-26 18:16, p...@oranjevos.nl wrote: > > Please, could you add some info on what has changed with the new version of > the patch ? > And, it would be appreciated when the SOB would not use an openwrt.org mail > address (assumin

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v2] merge: add OpenWrt branding

2017-10-29 Thread Yousong Zhou
On 28 October 2017 at 03:54, Florian Fainelli wrote: ... > > Quite frankly, if the goal is just to give Zoltan and Imre a hard time > and nitpick on everything possible just to delay (purposely or not) the > remerge, then you are doing a great job at it, but this goes against > rule #12. > No,

Re: [OpenWrt-Devel] [PATCH v4 2/8] merge: release/banner: drop release name and update banner

2017-11-07 Thread Yousong Zhou
On 7 November 2017 at 16:45, Zoltan HERPAI wrote: > Signed-off-by: Zoltan HERPAI > --- > include/version.mk | 12 ++-- > package/base-files/files/etc/banner | 18 -- > 2 files changed, 10 insertions(+), 20 deletions(-) > > diff --git a/include/version.mk

Re: [OpenWrt-Devel] Question for configuring OVS on OpenWRT

2017-11-29 Thread Yousong Zhou
On 29 November 2017 at 19:00, Nam Bong Ha wrote: > Hi, all > > I am using an OpenWRT device that is configured to use ovs. > > I want to communicate between wireless devices and wired devices. > Is the following connection possible? > > > ONOS >

Re: [OpenWrt-Devel] Collecting issues on github

2018-01-13 Thread Yousong Zhou
On 13/01/2018, Ted Hess wrote: > Hi folks, > > I would like to propose we close the issues tab on the > github/openwrt/openwrt source repository as we did for the > lede-project/source repo. We can continue to re-direct people to our > bug-tracker for the mainline sources. > > The packages repo re

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v1 1/1] openssh: disable passwords for openssh server

2018-02-14 Thread Yousong Zhou
On 14 February 2018 at 11:53, Philip Prindeville wrote: > >> On Feb 11, 2018, at 3:54 AM, Yousong Zhou wrote: >> >> On 9 February 2018 at 08:28, Philip Prindeville >> wrote: >>> From: Philip Prindeville >>> >>> Allowing password login

Re: [OpenWrt-Devel] Remove iptables-1.4.21 packages from openwrt

2018-02-27 Thread Yousong Zhou
On 28 February 2018 at 13:55, Arjav Parikh wrote: > Hi, > > I want to remove support of iptables from my kernel image. For that I > have disabled its support from menuconfig and when I am trying to > build my kernel image again it shows error related to missing files. > > On debugging I identified

Re: [OpenWrt-Devel] Remove iptables-1.4.21 packages from openwrt

2018-02-28 Thread Yousong Zhou
On 28 February 2018 at 17:28, Arjav Parikh wrote: > Hi, > > Thank You for your response. > > Can you share me the detailed steps for building image to be performed > after removing iptables from DEFAULT_PACKAGES.router because I > executed below steps and found below observations: > > 1. Removed D

Re: [OpenWrt-Devel] LEDE 17.01.5 release planning

2018-05-24 Thread Yousong Zhou
On 25 May 2018 at 03:40, Martin Tippmann wrote: > On Thu, May 24, 2018 at 9:06 PM, Hauke Mehrtens wrote: >> Please do not hesitate to re report some request that something should >> be backported from master or some regression compared to lede-17.01, if >> it looks like they got ignored and didn'

Re: [OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-22 Thread Yousong Zhou
On Sun, 17 Jun 2018 at 11:07, Rosen Penev wrote: > > If you run opkg install openssh-client and then remove it, the ssh client > symlink that was initially there goes away. This avoids that problem. > opkg's "alternatives" support fits this situation perfectly. Please take busybox ip and ip-tiny

Re: [OpenWrt-Devel] [PATCH 2/3] rules.mk: replace iremap when using GCC 8

2018-06-22 Thread Yousong Zhou
On Fri, 22 Jun 2018 at 08:22, Syrone Wong wrote: > > HI, > > I'm not sure whether it's the correct way to deal with the flag. When > we add GCC 9 in the future, we have to remember to apply this dirty > overwrite hack as well. > Please feel free to share more elegant ways. How about adding a hidd

Re: [OpenWrt-Devel] [PATCH 2/3] rules.mk: replace iremap when using GCC 8

2018-06-24 Thread Yousong Zhou
gt; > Best Regards, > Syrone Wong > > > On Fri, Jun 22, 2018 at 5:00 PM, Yousong Zhou wrote: > > On Fri, 22 Jun 2018 at 08:22, Syrone Wong wrote: > >> > >> HI, > >> > >> I'm not sure whether it's the correct way to deal with th

[OpenWrt-Devel] [RFC] toolchain: gcc: drop 850-use_shared_libgcc.patch

2018-06-24 Thread Yousong Zhou
ove -lgcc_eh from the default libgcc spec, it breaks packages"), though the actual symptom was not recorded then [1] https://bugs.openwrt.org/index.php?do=details&task_id=1498 Signed-off-by: Yousong Zhou --- .../gcc/patches/5.5.0/850-use_shared_libgcc.patch | 47 --- .

Re: [OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-24 Thread Yousong Zhou
On Sat, 23 Jun 2018 at 00:51, Rosen Penev wrote: > > On Fri, Jun 22, 2018 at 1:53 AM Yousong Zhou wrote: > > > > On Sun, 17 Jun 2018 at 11:07, Rosen Penev wrote: > > > > > > If you run opkg install openssh-client and then remove it, the ssh client > &g

[OpenWrt-Devel] [PATCH] build: download code from github using archive API

2018-06-25 Thread Yousong Zhou
case, the implementation will fallback to using DownloadMethod/git [1] Get archive link, https://developer.github.com/v3/repos/contents/#get-archive-link Signed-off-by: Yousong Zhou --- include/download.mk | 75 +++- scripts/download.py

[OpenWrt-Devel] [PATCH v2] build: download code from github using archive API

2018-06-26 Thread Yousong Zhou
multiple urls with --urls argument - add commit ts cache. can be helpful on retry Signed-off-by: Yousong Zhou --- include/download.mk | 74 +- scripts/download.py | 391 2 files changed, 434 insertions(+), 31 deletions(-) create mod

Re: [OpenWrt-Devel] [PATCH v2] build: download code from github using archive API

2018-06-28 Thread Yousong Zhou
On Fri, 29 Jun 2018 at 13:16, Jo-Philipp Wich wrote: > > Hi Yousong, > > this change seems to introduce serious runtime regressions, see > https://bugs.openwrt.org/index.php?do=details&task_id=1621 > > It seems to be like that script does things even if the tarballs are > already existing locally.

Re: [OpenWrt-Devel] [PATCH v2] build: download code from github using archive API

2018-06-28 Thread Yousong Zhou
On Fri, 29 Jun 2018 at 14:17, Jo-Philipp Wich wrote: > > Hi, > > > Looks like it's caused by the excessive python script call. This is > > indeed unexpected. I just pushed a commit to disable it altogether > > for now. Sorry for the inconvenience ;( > > is there anything preventing you from doi

[OpenWrt-Devel] [PATCH 2/4] download.mk: add more comments

2018-07-03 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/download.mk | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/download.mk b/include/download.mk index 3634e777c9..5cfc542042 100644 --- a/include/download.mk +++ b/include/download.mk @@ -59,7 +59,7 @@ check_escape=$(subst

[OpenWrt-Devel] [PATCH 3/4] scripts/dl_github_archive.py: rename from download.py

2018-07-03 Thread Yousong Zhou
run Signed-off-by: Yousong Zhou --- include/download.mk | 8 +- scripts/{download.py => dl_github_archive.py} | 241 +- 2 files changed, 127 insertions(+), 122 deletions(-) rename scripts/{download.py => dl_github_archive.py} (64%) diff -

[OpenWrt-Devel] [PATCH 1/4] fixup-makefile.pl: fixup when PKG_SOURCE is defined elsewhere

2018-07-03 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- scripts/fixup-makefile.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fixup-makefile.pl b/scripts/fixup-makefile.pl index 9026ddcce4..b6f1c74738 100755 --- a/scripts/fixup-makefile.pl +++ b/scripts/fixup-makefile.pl @@ -26,7 +26,7

[OpenWrt-Devel] [PATCH 4/4] download.mk: enable DownloadMethod/github_archive

2018-07-03 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/download.mk | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/include/download.mk b/include/download.mk index 3851f6c98a..d09ffab579 100644 --- a/include/download.mk +++ b/include/download.mk @@ -19,17 +19,23

[OpenWrt-Devel] [PATCH] ca-certificates: ca-bundle: add symlink for openssl default setting

2018-07-05 Thread Yousong Zhou
OpenSSL defaults X509_CERT_FILE to /etc/ssl/cert.pem. This change is needed for wget-ssl and possibly others to work seamlessly with fresh ca-bundle installation Fixes openwrt/packages#6152 Signed-off-by: Yousong Zhou --- package/system/ca-certificates/Makefile | 2 ++ 1 file changed, 2

<    1   2   3   4   5   6   7   8   >