[OpenWrt-Devel] [PATCH v3] [netifd] vlan: Buffer overlow in snprintf for vlans

2018-02-01 Thread cshored
From: "Daniel F. Dickinson" Buffer overflow condition can occur because vlan device name is constructed from device name (size IFNAMSIZ) plus the ASCII decimal representation of the vlan id plus a dot, but the target can only be IFNAMSIZ. Note that the generic device name code must also be updat

[OpenWrt-Devel] [PATCH] base-files: quote values when evaluating uevent

2018-02-01 Thread Daniel Golle
When sourcing /sys/class/block/*/uevent values have to be quoted as they may contain spaces (e.g. in PARTNAME). Fix this by pre-processing with sed before sourcing. Signed-off-by: Daniel Golle --- package/base-files/files/lib/upgrade/common.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deleti

[OpenWrt-Devel] [LED-DEV][PATCH 4/4] imx6: remove support for 4.9

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey --- target/linux/imx6/config-4.9 | 497 .../files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts | 19 - .../files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts | 23 - .../arch/arm/boot/dts/imx6qdl-gw5904.dtsi | 629 ---

[OpenWrt-Devel] [LEDE-DEV][PATCH 1/4] kernel: add missing config symbols

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey --- target/linux/generic/config-4.14 | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/linux/generic/config-4.14 b/target/linux/generic/config-4.14 index fa389bf..89f2f43 100644 --- a/target/linux/generic/config-4.14 +++ b/target/linux/ge

[OpenWrt-Devel] [LEDE-DEV][PATCH 2/4] imx6: add support for Linux 4.14

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey --- target/linux/imx6/config-4.14 | 526 + target/linux/imx6/patches-4.14/100-bootargs.patch | 11 + .../linux/imx6/patches-4.14/200-disable-msi.patch | 18 + .../imx6/patches-4.14/300-fix-enumeration.patch| 11 + 4 files

[OpenWrt-Devel] [LEDE-DEV][PATCH 3/4] imx6: switch to kernel 4.14

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey --- target/linux/imx6/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/imx6/Makefile b/target/linux/imx6/Makefile index ae6a9b0..152a58e 100644 --- a/target/linux/imx6/Makefile +++ b/target/linux/imx6/Makefile @@ -14,7 +14,7 @@ CP

[OpenWrt-Devel] [LEDE-DEV][PATCH 0/4] imx6: update to Linux 4.14

2018-02-01 Thread Tim Harvey
Tested on a Gateworks GW54xx Tim Harvey (4): kernel: add missing config symbols imx6: add support for Linux 4.14 imx6: switch to kernel 4.14 imx6: remove support for 4.9 target/linux/generic/config-4.14 | 9 +- target/linux/imx6/Makefile | 2

[OpenWrt-Devel] Openembedded meta-openwrt now actually gives a working system

2018-02-01 Thread Daniel F. Dickinson
Hi all, For folks interested in both Openembedded and Openwrt you might be interested to know that the meta-openwrt layer (https://github.com/kraj/meta-openwrt) can now successfully bring up enough to have a cli + netifd and/or with base luci (depending on which image one builds). I think it

Re: [OpenWrt-Devel] [PATCH] [netifd] vlan: Array out of bounds in snprintf for vlans

2018-02-01 Thread Daniel F. Dickinson
On 01/02/18 02:29 AM, Daniel F. Dickinson wrote: On 31/01/18 06:20 AM, Paul Oranje wrote: Why use a hard coded value 4 in "snprintf(devnum, 4, "%d", vldev->id);" ? Paul Oh I see this also the uglier first throw-together; there is a v2 that isn't as bad (and is actually right; this version a