Merge branch 'openwrt:master' into master
This commit is contained in:
commit
cdb7661a76
57 changed files with 644 additions and 625 deletions
|
@ -387,12 +387,18 @@ config KERNEL_DEBUG_INFO_REDUCED
|
||||||
DEBUG_INFO build and compile times are reduced too.
|
DEBUG_INFO build and compile times are reduced too.
|
||||||
Only works with newer gcc versions.
|
Only works with newer gcc versions.
|
||||||
|
|
||||||
|
# KERNEL_DEBUG_LL symbols must have the default value set as otherwise
|
||||||
|
# KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected
|
||||||
|
# which means that buildroot wont override the DEBUG_LL symbols in target
|
||||||
|
# kernel configurations and lead to devices that dont have working console
|
||||||
config KERNEL_DEBUG_LL_UART_NONE
|
config KERNEL_DEBUG_LL_UART_NONE
|
||||||
bool
|
bool
|
||||||
|
default n
|
||||||
depends on arm
|
depends on arm
|
||||||
|
|
||||||
config KERNEL_DEBUG_LL
|
config KERNEL_DEBUG_LL
|
||||||
bool
|
bool
|
||||||
|
default n
|
||||||
depends on arm
|
depends on arm
|
||||||
select KERNEL_DEBUG_LL_UART_NONE
|
select KERNEL_DEBUG_LL_UART_NONE
|
||||||
help
|
help
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
LINUX_VERSION-5.10 = .166
|
LINUX_VERSION-5.10 = .167
|
||||||
LINUX_KERNEL_HASH-5.10.166 = 0051a1780e5bda0efc68dafab7c728b8283d2b028fedb439418f478be7d3e1af
|
LINUX_KERNEL_HASH-5.10.167 = d807f97812e566410cd13b3170009e0d7552748d4f22d608ffd4dbd7f85bf9c6
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
LINUX_VERSION-5.15 = .91
|
LINUX_VERSION-5.15 = .92
|
||||||
LINUX_KERNEL_HASH-5.15.91 = a63c2bb1beb15f1aea9c63cf80559f5b7ab58afd2da2fa5e7670c515ebe1fe80
|
LINUX_KERNEL_HASH-5.15.92 = 9f420451db99a31a4aade9a46487b39318340d228f5c87c6dc56d83477e6ef91
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/awk -f
|
||||||
|
|
||||||
awk -f - $* <<EOF
|
|
||||||
function bitcount(c) {
|
function bitcount(c) {
|
||||||
c=and(rshift(c, 1),0x55555555)+and(c,0x55555555)
|
c=and(rshift(c, 1),0x55555555)+and(c,0x55555555)
|
||||||
c=and(rshift(c, 2),0x33333333)+and(c,0x33333333)
|
c=and(rshift(c, 2),0x33333333)+and(c,0x33333333)
|
||||||
|
@ -11,14 +10,20 @@ function bitcount(c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function ip2int(ip) {
|
function ip2int(ip) {
|
||||||
for (ret=0,n=split(ip,a,"\."),x=1;x<=n;x++) ret=or(lshift(ret,8),a[x])
|
ret=0
|
||||||
|
n=split(ip,a,"\\.")
|
||||||
|
for (x=1;x<=n;x++)
|
||||||
|
ret=or(lshift(ret,8),a[x])
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
function int2ip(ip,ret,x) {
|
function int2ip(ip,ret,x) {
|
||||||
ret=and(ip,255)
|
ret=and(ip,255)
|
||||||
ip=rshift(ip,8)
|
ip=rshift(ip,8)
|
||||||
for(;x<3;ret=and(ip,255)"."ret,ip=rshift(ip,8),x++);
|
for(;x<3;x++) {
|
||||||
|
ret=and(ip,255)"."ret
|
||||||
|
ip=rshift(ip,8)
|
||||||
|
}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,28 +49,41 @@ BEGIN {
|
||||||
}
|
}
|
||||||
|
|
||||||
network=and(ipaddr,netmask)
|
network=and(ipaddr,netmask)
|
||||||
|
prefix=32-bitcount(compl32(netmask))
|
||||||
broadcast=or(network,compl32(netmask))
|
broadcast=or(network,compl32(netmask))
|
||||||
|
|
||||||
start=or(network,and(ip2int(ARGV[3]),compl32(netmask)))
|
|
||||||
limit=network+1
|
|
||||||
if (start<limit) start=limit
|
|
||||||
|
|
||||||
end=start+ARGV[4]
|
|
||||||
limit=or(network,compl32(netmask))-1
|
|
||||||
if (end>limit) end=limit
|
|
||||||
|
|
||||||
print "IP="int2ip(ipaddr)
|
print "IP="int2ip(ipaddr)
|
||||||
print "NETMASK="int2ip(netmask)
|
print "NETMASK="int2ip(netmask)
|
||||||
print "BROADCAST="int2ip(broadcast)
|
print "BROADCAST="int2ip(broadcast)
|
||||||
print "NETWORK="int2ip(network)
|
print "NETWORK="int2ip(network)
|
||||||
print "PREFIX="32-bitcount(compl32(netmask))
|
print "PREFIX="prefix
|
||||||
|
|
||||||
# range calculations:
|
# range calculations:
|
||||||
# ipcalc <ip> <netmask> <start> <num>
|
# ipcalc <ip> <netmask> <start> <num>
|
||||||
|
|
||||||
if (ARGC > 3) {
|
if (ARGC <= 3)
|
||||||
|
exit(0)
|
||||||
|
|
||||||
|
start=or(network,and(ip2int(ARGV[3]),compl32(netmask)))
|
||||||
|
limit=network+1
|
||||||
|
if (start<limit) start=limit
|
||||||
|
if (start==ipaddr) start=ipaddr+1
|
||||||
|
|
||||||
|
end=start+ARGV[4]
|
||||||
|
limit=or(network,compl32(netmask))-1
|
||||||
|
if (end>limit) end=limit
|
||||||
|
if (end==ipaddr) end=ipaddr-1
|
||||||
|
|
||||||
|
if (start>end) {
|
||||||
|
print "network ("int2ip(network)"/"prefix") too small" > "/dev/stderr"
|
||||||
|
exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ipaddr > start && ipaddr < end) {
|
||||||
|
print "ipaddr inside range" > "/dev/stderr"
|
||||||
|
exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
print "START="int2ip(start)
|
print "START="int2ip(start)
|
||||||
print "END="int2ip(end)
|
print "END="int2ip(end)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
|
@ -535,7 +535,7 @@ define KernelPackage/fs-ntfs3
|
||||||
AUTOLOAD:=$(call AutoLoad,80,ntfs3)
|
AUTOLOAD:=$(call AutoLoad,80,ntfs3)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/fuse/description
|
define KernelPackage/fs-ntfs3/description
|
||||||
Kernel module for fully functional NTFS filesystem support. It allows
|
Kernel module for fully functional NTFS filesystem support. It allows
|
||||||
reading as well as writing.
|
reading as well as writing.
|
||||||
|
|
||||||
|
|
|
@ -584,21 +584,20 @@ dhcp_add() {
|
||||||
limit=$((limit-1))
|
limit=$((limit-1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval "$(ipcalc.sh "${subnet%%/*}" $netmask $start $limit)"
|
# make sure the DHCP range is not empty
|
||||||
|
if [ "$dhcpv4" != "disabled" ] && eval "$(ipcalc.sh "${subnet%%/*}" "$netmask" "$start" "$limit")" ; then
|
||||||
|
[ "$dynamicdhcp" = "0" ] && END="static"
|
||||||
|
|
||||||
|
xappend "--dhcp-range=$tags$nettag$START,$END,$NETMASK,$leasetime${options:+ $options}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$dynamicdhcp" = "0" ] ; then
|
if [ "$dynamicdhcp" = "0" ] ; then
|
||||||
END="static"
|
|
||||||
dhcp6range="::,static"
|
dhcp6range="::,static"
|
||||||
else
|
else
|
||||||
dhcp6range="::1000,::ffff"
|
dhcp6range="::1000,::ffff"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$dhcpv4" != "disabled" ] ; then
|
|
||||||
xappend "--dhcp-range=$tags$nettag$START,$END,$NETMASK,$leasetime${options:+ $options}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ $DNSMASQ_DHCP_VER -eq 6 ] && [ "$ra" = "server" ] ; then
|
if [ $DNSMASQ_DHCP_VER -eq 6 ] && [ "$ra" = "server" ] ; then
|
||||||
# Note: dnsmasq cannot just be a DHCPv6 server (all-in-1)
|
# Note: dnsmasq cannot just be a DHCPv6 server (all-in-1)
|
||||||
# and let some other machine(s) send RA pointing to it.
|
# and let some other machine(s) send RA pointing to it.
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=e2fsprogs
|
PKG_NAME:=e2fsprogs
|
||||||
PKG_VERSION:=1.46.5
|
PKG_VERSION:=1.46.6
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
|
PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
|
||||||
PKG_HASH:=2f16c9176704cf645dc69d5b15ff704ae722d665df38b2ed3cfc249757d8d81e
|
PKG_HASH:=a77517f19ff5e4e97ede63536566865dd5d48654e13fc145f5f2249ef7c4f4fc
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
PKG_LICENSE_FILES:=NOTICE
|
PKG_LICENSE_FILES:=NOTICE
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
From ab51d587bb9b229b1fade1afd02e1574c1ba5c76 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Lukas Czerner <lczerner@redhat.com>
|
|
||||||
Date: Thu, 21 Apr 2022 19:31:48 +0200
|
|
||||||
Subject: libext2fs: add sanity check to extent manipulation
|
|
||||||
|
|
||||||
It is possible to have a corrupted extent tree in such a way that a leaf
|
|
||||||
node contains zero extents in it. Currently if that happens and we try
|
|
||||||
to traverse the tree we can end up accessing wrong data, or possibly
|
|
||||||
even uninitialized memory. Make sure we don't do that.
|
|
||||||
|
|
||||||
Additionally make sure that we have a sane number of bytes passed to
|
|
||||||
memmove() in ext2fs_extent_delete().
|
|
||||||
|
|
||||||
Note that e2fsck is currently unable to spot and fix such corruption in
|
|
||||||
pass1.
|
|
||||||
|
|
||||||
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
|
|
||||||
Reported-by: Nils Bars <nils_bars@t-online.de>
|
|
||||||
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2068113
|
|
||||||
Addresses: CVE-2022-1304
|
|
||||||
Addresses-Debian-Bug: #1010263
|
|
||||||
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
|
||||||
---
|
|
||||||
lib/ext2fs/extent.c | 8 ++++++++
|
|
||||||
1 file changed, 8 insertions(+)
|
|
||||||
|
|
||||||
--- a/lib/ext2fs/extent.c
|
|
||||||
+++ b/lib/ext2fs/extent.c
|
|
||||||
@@ -495,6 +495,10 @@ retry:
|
|
||||||
ext2fs_le16_to_cpu(eh->eh_entries);
|
|
||||||
newpath->max_entries = ext2fs_le16_to_cpu(eh->eh_max);
|
|
||||||
|
|
||||||
+ /* Make sure there is at least one extent present */
|
|
||||||
+ if (newpath->left <= 0)
|
|
||||||
+ return EXT2_ET_EXTENT_NO_DOWN;
|
|
||||||
+
|
|
||||||
if (path->left > 0) {
|
|
||||||
ix++;
|
|
||||||
newpath->end_blk = ext2fs_le32_to_cpu(ix->ei_block);
|
|
||||||
@@ -1630,6 +1634,10 @@ errcode_t ext2fs_extent_delete(ext2_exte
|
|
||||||
|
|
||||||
cp = path->curr;
|
|
||||||
|
|
||||||
+ /* Sanity check before memmove() */
|
|
||||||
+ if (path->left < 0)
|
|
||||||
+ return EXT2_ET_EXTENT_LEAF_BAD;
|
|
||||||
+
|
|
||||||
if (path->left) {
|
|
||||||
memmove(cp, cp + sizeof(struct ext3_extent_idx),
|
|
||||||
path->left * sizeof(struct ext3_extent_idx));
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||||
|
Date: Fri, 10 Jun 2022 13:10:47 +0200
|
||||||
|
Subject: [PATCH] bgmac: reduce max frame size to support just MTU 1500
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
bgmac allocates new replacement buffer before handling each received
|
||||||
|
frame. Allocating & DMA-preparing 9724 B each time consumes a lot of CPU
|
||||||
|
time. Ideally bgmac should just respect currently set MTU but it isn't
|
||||||
|
the case right now. For now just revert back to the old limited frame
|
||||||
|
size.
|
||||||
|
|
||||||
|
This change bumps NAT masquarade speed by ~95%.
|
||||||
|
|
||||||
|
Ref: 8c7da63978f1 ("bgmac: configure MTU and add support for frames beyond 8192 byte size")
|
||||||
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||||
|
---
|
||||||
|
drivers/net/ethernet/broadcom/bgmac.h | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/drivers/net/ethernet/broadcom/bgmac.h
|
||||||
|
+++ b/drivers/net/ethernet/broadcom/bgmac.h
|
||||||
|
@@ -366,8 +366,7 @@
|
||||||
|
#define BGMAC_RX_FRAME_OFFSET 30 /* There are 2 unused bytes between header and real data */
|
||||||
|
#define BGMAC_RX_BUF_OFFSET (NET_SKB_PAD + NET_IP_ALIGN - \
|
||||||
|
BGMAC_RX_FRAME_OFFSET)
|
||||||
|
-/* Jumbo frame size with FCS */
|
||||||
|
-#define BGMAC_RX_MAX_FRAME_SIZE 9724
|
||||||
|
+#define BGMAC_RX_MAX_FRAME_SIZE 1536
|
||||||
|
#define BGMAC_RX_BUF_SIZE (BGMAC_RX_FRAME_OFFSET + BGMAC_RX_MAX_FRAME_SIZE)
|
||||||
|
#define BGMAC_RX_ALLOC_SIZE (SKB_DATA_ALIGN(BGMAC_RX_BUF_SIZE + BGMAC_RX_BUF_OFFSET) + \
|
||||||
|
SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
|
@ -0,0 +1,33 @@
|
||||||
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
||||||
|
Date: Fri, 10 Jun 2022 13:10:47 +0200
|
||||||
|
Subject: [PATCH] bgmac: reduce max frame size to support just MTU 1500
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
bgmac allocates new replacement buffer before handling each received
|
||||||
|
frame. Allocating & DMA-preparing 9724 B each time consumes a lot of CPU
|
||||||
|
time. Ideally bgmac should just respect currently set MTU but it isn't
|
||||||
|
the case right now. For now just revert back to the old limited frame
|
||||||
|
size.
|
||||||
|
|
||||||
|
This change bumps NAT masquarade speed by ~95%.
|
||||||
|
|
||||||
|
Ref: 8c7da63978f1 ("bgmac: configure MTU and add support for frames beyond 8192 byte size")
|
||||||
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
||||||
|
---
|
||||||
|
drivers/net/ethernet/broadcom/bgmac.h | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/drivers/net/ethernet/broadcom/bgmac.h
|
||||||
|
+++ b/drivers/net/ethernet/broadcom/bgmac.h
|
||||||
|
@@ -328,8 +328,7 @@
|
||||||
|
#define BGMAC_RX_FRAME_OFFSET 30 /* There are 2 unused bytes between header and real data */
|
||||||
|
#define BGMAC_RX_BUF_OFFSET (NET_SKB_PAD + NET_IP_ALIGN - \
|
||||||
|
BGMAC_RX_FRAME_OFFSET)
|
||||||
|
-/* Jumbo frame size with FCS */
|
||||||
|
-#define BGMAC_RX_MAX_FRAME_SIZE 9724
|
||||||
|
+#define BGMAC_RX_MAX_FRAME_SIZE 1536
|
||||||
|
#define BGMAC_RX_BUF_SIZE (BGMAC_RX_FRAME_OFFSET + BGMAC_RX_MAX_FRAME_SIZE)
|
||||||
|
#define BGMAC_RX_ALLOC_SIZE (SKB_DATA_ALIGN(BGMAC_RX_BUF_SIZE + BGMAC_RX_BUF_OFFSET) + \
|
||||||
|
SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
|
|
@ -646,7 +646,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reposition in the original skb */
|
/* Reposition in the original skb */
|
||||||
@@ -5189,6 +5210,20 @@ bool skb_try_coalesce(struct sk_buff *to
|
@@ -5188,6 +5209,20 @@ bool skb_try_coalesce(struct sk_buff *to
|
||||||
if (skb_cloned(to))
|
if (skb_cloned(to))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
|
||||||
|
|
||||||
--- a/net/core/skbuff.c
|
--- a/net/core/skbuff.c
|
||||||
+++ b/net/core/skbuff.c
|
+++ b/net/core/skbuff.c
|
||||||
@@ -4166,6 +4166,15 @@ int skb_gro_receive(struct sk_buff *p, s
|
@@ -4165,6 +4165,15 @@ int skb_gro_receive(struct sk_buff *p, s
|
||||||
if (unlikely(p->len + len >= 65536 || NAPI_GRO_CB(skb)->flush))
|
if (unlikely(p->len + len >= 65536 || NAPI_GRO_CB(skb)->flush))
|
||||||
return -E2BIG;
|
return -E2BIG;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
|
||||||
|
|
||||||
--- a/net/core/skbuff.c
|
--- a/net/core/skbuff.c
|
||||||
+++ b/net/core/skbuff.c
|
+++ b/net/core/skbuff.c
|
||||||
@@ -4348,6 +4348,15 @@ int skb_gro_receive(struct sk_buff *p, s
|
@@ -4347,6 +4347,15 @@ int skb_gro_receive(struct sk_buff *p, s
|
||||||
if (unlikely(p->len + len >= 65536 || NAPI_GRO_CB(skb)->flush))
|
if (unlikely(p->len + len >= 65536 || NAPI_GRO_CB(skb)->flush))
|
||||||
return -E2BIG;
|
return -E2BIG;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reserved-memory {
|
||||||
ramoops@42100000 {
|
ramoops@42100000 {
|
||||||
compatible = "ramoops";
|
compatible = "ramoops";
|
||||||
reg = <0x42100000 0x40000>;
|
reg = <0x42100000 0x40000>;
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
ftrace-size = <0x4000>;
|
ftrace-size = <0x4000>;
|
||||||
pmsg-size = <0x4000>;
|
pmsg-size = <0x4000>;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
mdio-gpio0 = &mdio0;
|
mdio-gpio0 = &mdio0;
|
||||||
|
|
|
@ -55,6 +55,7 @@ CONFIG_BLK_MQ_PCI=y
|
||||||
CONFIG_BLK_MQ_VIRTIO=y
|
CONFIG_BLK_MQ_VIRTIO=y
|
||||||
CONFIG_BLK_PM=y
|
CONFIG_BLK_PM=y
|
||||||
CONFIG_CAVIUM_TX2_ERRATUM_219=y
|
CONFIG_CAVIUM_TX2_ERRATUM_219=y
|
||||||
|
CONFIG_CC_HAVE_SHADOW_CALL_STACK=y
|
||||||
CONFIG_CC_HAVE_STACKPROTECTOR_SYSREG=y
|
CONFIG_CC_HAVE_STACKPROTECTOR_SYSREG=y
|
||||||
CONFIG_CLONE_BACKWARDS=y
|
CONFIG_CLONE_BACKWARDS=y
|
||||||
CONFIG_COMMON_CLK=y
|
CONFIG_COMMON_CLK=y
|
||||||
|
@ -257,8 +258,8 @@ CONFIG_NVIDIA_CARMEL_CNP_ERRATUM=y
|
||||||
CONFIG_NVMEM=y
|
CONFIG_NVMEM=y
|
||||||
CONFIG_NVMEM_QCOM_QFPROM=y
|
CONFIG_NVMEM_QCOM_QFPROM=y
|
||||||
# CONFIG_NVMEM_SPMI_SDAM is not set
|
# CONFIG_NVMEM_SPMI_SDAM is not set
|
||||||
CONFIG_NVMEM_U_BOOT_ENV=y
|
|
||||||
CONFIG_NVMEM_SYSFS=y
|
CONFIG_NVMEM_SYSFS=y
|
||||||
|
CONFIG_NVMEM_U_BOOT_ENV=y
|
||||||
CONFIG_OF=y
|
CONFIG_OF=y
|
||||||
CONFIG_OF_ADDRESS=y
|
CONFIG_OF_ADDRESS=y
|
||||||
CONFIG_OF_EARLY_FLATTREE=y
|
CONFIG_OF_EARLY_FLATTREE=y
|
||||||
|
@ -268,6 +269,7 @@ CONFIG_OF_IRQ=y
|
||||||
CONFIG_OF_KOBJ=y
|
CONFIG_OF_KOBJ=y
|
||||||
CONFIG_OF_MDIO=y
|
CONFIG_OF_MDIO=y
|
||||||
CONFIG_PADATA=y
|
CONFIG_PADATA=y
|
||||||
|
# CONFIG_PAGE_POOL is not set
|
||||||
CONFIG_PARTITION_PERCPU=y
|
CONFIG_PARTITION_PERCPU=y
|
||||||
CONFIG_PCI=y
|
CONFIG_PCI=y
|
||||||
CONFIG_PCIEAER=y
|
CONFIG_PCIEAER=y
|
||||||
|
|
|
@ -8,7 +8,7 @@ define Device/avm_fritz7312
|
||||||
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
|
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
|
||||||
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
|
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
|
||||||
ltq-adsl-app ppp-mod-pppoa \
|
ltq-adsl-app ppp-mod-pppoa \
|
||||||
kmod-ltq-deu-ar9 -swconfig
|
kmod-ltq-deu-ar9 fritz-tffs -swconfig
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += avm_fritz7312
|
TARGET_DEVICES += avm_fritz7312
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ define Device/avm_fritz7320
|
||||||
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
|
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
|
||||||
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
|
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
|
||||||
ltq-adsl-app ppp-mod-pppoa \
|
ltq-adsl-app ppp-mod-pppoa \
|
||||||
kmod-ltq-deu-ar9 kmod-usb-dwc2 -swconfig
|
kmod-ltq-deu-ar9 kmod-usb-dwc2 fritz-tffs -swconfig
|
||||||
SUPPORTED_DEVICES += FRITZ7320
|
SUPPORTED_DEVICES += FRITZ7320
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += avm_fritz7320
|
TARGET_DEVICES += avm_fritz7320
|
||||||
|
|
|
@ -152,7 +152,8 @@ define Device/avm_fritz7360sl
|
||||||
$(Device/AVM)
|
$(Device/AVM)
|
||||||
DEVICE_MODEL := FRITZ!Box 7360 SL
|
DEVICE_MODEL := FRITZ!Box 7360 SL
|
||||||
IMAGE_SIZE := 15744k
|
IMAGE_SIZE := 15744k
|
||||||
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls kmod-usb-dwc2
|
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls \
|
||||||
|
kmod-usb-dwc2 fritz-tffs
|
||||||
SUPPORTED_DEVICES += FRITZ7360SL
|
SUPPORTED_DEVICES += FRITZ7360SL
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += avm_fritz7360sl
|
TARGET_DEVICES += avm_fritz7360sl
|
||||||
|
@ -163,7 +164,8 @@ define Device/avm_fritz7360-v2
|
||||||
DEVICE_MODEL := FRITZ!Box 7360
|
DEVICE_MODEL := FRITZ!Box 7360
|
||||||
DEVICE_VARIANT := v2
|
DEVICE_VARIANT := v2
|
||||||
IMAGE_SIZE := 32128k
|
IMAGE_SIZE := 32128k
|
||||||
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls kmod-usb-dwc2
|
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls \
|
||||||
|
kmod-usb-dwc2 fritz-tffs
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += avm_fritz7360-v2
|
TARGET_DEVICES += avm_fritz7360-v2
|
||||||
|
|
||||||
|
@ -174,7 +176,8 @@ define Device/avm_fritz7362sl
|
||||||
DEVICE_MODEL := FRITZ!Box 7362 SL
|
DEVICE_MODEL := FRITZ!Box 7362 SL
|
||||||
KERNEL_SIZE := 4096k
|
KERNEL_SIZE := 4096k
|
||||||
IMAGE_SIZE := 49152k
|
IMAGE_SIZE := 49152k
|
||||||
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls kmod-usb-dwc2 fritz-tffs
|
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls \
|
||||||
|
kmod-usb-dwc2 fritz-tffs
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += avm_fritz7362sl
|
TARGET_DEVICES += avm_fritz7362sl
|
||||||
|
|
||||||
|
@ -186,7 +189,8 @@ define Device/avm_fritz7412
|
||||||
BOARD_NAME := FRITZ7412
|
BOARD_NAME := FRITZ7412
|
||||||
KERNEL_SIZE := 4096k
|
KERNEL_SIZE := 4096k
|
||||||
IMAGE_SIZE := 49152k
|
IMAGE_SIZE := 49152k
|
||||||
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls fritz-tffs-nand fritz-caldata
|
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls \
|
||||||
|
fritz-tffs-nand fritz-caldata
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += avm_fritz7412
|
TARGET_DEVICES += avm_fritz7412
|
||||||
|
|
||||||
|
@ -197,8 +201,8 @@ define Device/avm_fritz7430
|
||||||
DEVICE_MODEL := FRITZ!Box 7430
|
DEVICE_MODEL := FRITZ!Box 7430
|
||||||
KERNEL_SIZE := 4096k
|
KERNEL_SIZE := 4096k
|
||||||
IMAGE_SIZE := 49152k
|
IMAGE_SIZE := 49152k
|
||||||
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader kmod-usb-dwc2 wpad-basic-mbedtls \
|
DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic-mbedtls \
|
||||||
fritz-tffs-nand fritz-caldata
|
kmod-usb-dwc2 fritz-tffs-nand fritz-caldata
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += avm_fritz7430
|
TARGET_DEVICES += avm_fritz7430
|
||||||
|
|
||||||
|
|
|
@ -1,30 +1,43 @@
|
||||||
CONFIG_ARCH_HAS_TICK_BROADCAST=y
|
CONFIG_BLK_DEV_NVME=y
|
||||||
CONFIG_CPU_RMAP=y
|
CONFIG_CPU_RMAP=y
|
||||||
|
CONFIG_DEFAULT_UIMAGE=y
|
||||||
|
CONFIG_FSL_ULI1575=y
|
||||||
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
|
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
|
||||||
CONFIG_GENERIC_IRQ_MIGRATION=y
|
CONFIG_GENERIC_IRQ_MIGRATION=y
|
||||||
|
CONFIG_GENERIC_MSI_IRQ=y
|
||||||
|
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
|
||||||
CONFIG_GENERIC_TBSYNC=y
|
CONFIG_GENERIC_TBSYNC=y
|
||||||
CONFIG_HAVE_RCU_TABLE_FREE=y
|
CONFIG_IRQ_DOMAIN_HIERARCHY=y
|
||||||
CONFIG_LOCK_SPIN_ON_OWNER=y
|
CONFIG_LOCK_SPIN_ON_OWNER=y
|
||||||
|
CONFIG_MDIO_DEVRES=y
|
||||||
CONFIG_MPC85xx_RDB=y
|
CONFIG_MPC85xx_RDB=y
|
||||||
CONFIG_MTD_CFI=y
|
CONFIG_MTD_CFI=y
|
||||||
CONFIG_MTD_NAND_BCH=y
|
|
||||||
CONFIG_MTD_NAND_ECC_BCH=y
|
|
||||||
CONFIG_MTD_NAND_FSL_ELBC=y
|
CONFIG_MTD_NAND_FSL_ELBC=y
|
||||||
CONFIG_MTD_PHYSMAP=y
|
CONFIG_MTD_PHYSMAP=y
|
||||||
CONFIG_MTD_SPLIT_FIRMWARE=y
|
CONFIG_MTD_SPLIT_FIRMWARE=y
|
||||||
CONFIG_MTD_SPLIT_FIT_FW=y
|
CONFIG_MTD_SPLIT_FIT_FW=y
|
||||||
CONFIG_MUTEX_SPIN_ON_OWNER=y
|
CONFIG_MUTEX_SPIN_ON_OWNER=y
|
||||||
|
CONFIG_NEED_DMA_MAP_STATE=y
|
||||||
CONFIG_NET_FLOW_LIMIT=y
|
CONFIG_NET_FLOW_LIMIT=y
|
||||||
CONFIG_NR_CPUS=2
|
CONFIG_NR_CPUS=2
|
||||||
|
CONFIG_NVME_CORE=y
|
||||||
|
# CONFIG_NVME_MULTIPATH is not set
|
||||||
CONFIG_PADATA=y
|
CONFIG_PADATA=y
|
||||||
CONFIG_PCI_MSI=y
|
CONFIG_PCI_MSI=y
|
||||||
|
CONFIG_PCI_MSI_ARCH_FALLBACKS=y
|
||||||
|
CONFIG_PCI_MSI_IRQ_DOMAIN=y
|
||||||
|
CONFIG_PPC_I8259=y
|
||||||
CONFIG_PPC_MSI_BITMAP=y
|
CONFIG_PPC_MSI_BITMAP=y
|
||||||
# CONFIG_PPC_QUEUED_SPINLOCKS is not set
|
CONFIG_REGMAP=y
|
||||||
|
CONFIG_REGMAP_I2C=y
|
||||||
CONFIG_RFS_ACCEL=y
|
CONFIG_RFS_ACCEL=y
|
||||||
CONFIG_RPS=y
|
CONFIG_RPS=y
|
||||||
CONFIG_RTC_DRV_DS1307=y
|
CONFIG_RTC_DRV_DS1307=y
|
||||||
CONFIG_RWSEM_SPIN_ON_OWNER=y
|
CONFIG_RWSEM_SPIN_ON_OWNER=y
|
||||||
CONFIG_SMP=y
|
CONFIG_SMP=y
|
||||||
|
CONFIG_SWIOTLB=y
|
||||||
|
CONFIG_TARGET_CPU="8540"
|
||||||
|
CONFIG_TARGET_CPU_BOOL=y
|
||||||
CONFIG_TREE_RCU=y
|
CONFIG_TREE_RCU=y
|
||||||
CONFIG_TREE_SRCU=y
|
CONFIG_TREE_SRCU=y
|
||||||
CONFIG_XPS=y
|
CONFIG_XPS=y
|
||||||
|
|
|
@ -14,7 +14,7 @@ Signed-off-by: René van Dorst <opensource@vdorst.com>
|
||||||
|
|
||||||
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
||||||
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
||||||
@@ -3998,6 +3998,7 @@ static const struct net_device_ops mtk_n
|
@@ -4227,6 +4227,7 @@ static const struct net_device_ops mtk_n
|
||||||
|
|
||||||
static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
|
static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@ Signed-off-by: René van Dorst <opensource@vdorst.com>
|
||||||
const __be32 *_id = of_get_property(np, "reg", NULL);
|
const __be32 *_id = of_get_property(np, "reg", NULL);
|
||||||
phy_interface_t phy_mode;
|
phy_interface_t phy_mode;
|
||||||
struct phylink *phylink;
|
struct phylink *phylink;
|
||||||
@@ -4126,6 +4127,9 @@ static int mtk_add_mac(struct mtk_eth *e
|
@@ -4355,6 +4356,9 @@ static int mtk_add_mac(struct mtk_eth *e
|
||||||
register_netdevice_notifier(&mac->device_notifier);
|
register_netdevice_notifier(&mac->device_notifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,12 @@ HOST_CONFIGURE_ARGS = \
|
||||||
--host=$(GNU_HOST_NAME) \
|
--host=$(GNU_HOST_NAME) \
|
||||||
--target=$(REAL_GNU_TARGET_NAME) \
|
--target=$(REAL_GNU_TARGET_NAME) \
|
||||||
--with-sysroot=$(TOOLCHAIN_DIR) \
|
--with-sysroot=$(TOOLCHAIN_DIR) \
|
||||||
|
--with-system-zlib \
|
||||||
|
--without-zstd \
|
||||||
--enable-deterministic-archives \
|
--enable-deterministic-archives \
|
||||||
--enable-plugins \
|
--enable-plugins \
|
||||||
|
--enable-lto \
|
||||||
|
--disable-gprofng \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
|
|
|
@ -79,10 +79,6 @@ endif
|
||||||
|
|
||||||
GCC_CONFIGURE:= \
|
GCC_CONFIGURE:= \
|
||||||
SHELL="$(BASH)" \
|
SHELL="$(BASH)" \
|
||||||
$(if $(shell gcc --version 2>&1 | grep -E "Apple.(LLVM|clang)"), \
|
|
||||||
CFLAGS="-O2 -fbracket-depth=512 -pipe" \
|
|
||||||
CXXFLAGS="-O2 -fbracket-depth=512 -pipe" \
|
|
||||||
) \
|
|
||||||
$(HOST_SOURCE_DIR)/configure \
|
$(HOST_SOURCE_DIR)/configure \
|
||||||
--with-bugurl=$(BUGURL) \
|
--with-bugurl=$(BUGURL) \
|
||||||
--with-pkgversion="$(PKGVERSION)" \
|
--with-pkgversion="$(PKGVERSION)" \
|
||||||
|
@ -106,6 +102,8 @@ GCC_CONFIGURE:= \
|
||||||
--with-abi=$(call qstrip,$(CONFIG_MIPS64_ABI))) \
|
--with-abi=$(call qstrip,$(CONFIG_MIPS64_ABI))) \
|
||||||
$(if $(CONFIG_arc),--with-cpu=$(CONFIG_CPU_TYPE)) \
|
$(if $(CONFIG_arc),--with-cpu=$(CONFIG_CPU_TYPE)) \
|
||||||
$(if $(CONFIG_powerpc64), $(if $(CONFIG_USE_MUSL),--with-abi=elfv2)) \
|
$(if $(CONFIG_powerpc64), $(if $(CONFIG_USE_MUSL),--with-abi=elfv2)) \
|
||||||
|
--with-system-zlib=$(STAGING_DIR_HOST) \
|
||||||
|
--without-zstd \
|
||||||
--with-gmp=$(STAGING_DIR_HOST) \
|
--with-gmp=$(STAGING_DIR_HOST) \
|
||||||
--with-mpfr=$(STAGING_DIR_HOST) \
|
--with-mpfr=$(STAGING_DIR_HOST) \
|
||||||
--with-mpc=$(STAGING_DIR_HOST) \
|
--with-mpc=$(STAGING_DIR_HOST) \
|
||||||
|
@ -164,14 +162,22 @@ ifeq ($(CONFIG_TARGET_x86)$(CONFIG_USE_GLIBC)$(CONFIG_INSTALL_GCCGO),yyy)
|
||||||
TARGET_CFLAGS+=-fno-split-stack
|
TARGET_CFLAGS+=-fno-split-stack
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GCC_MAKE:= \
|
CFLAGS:=$(HOST_CFLAGS) -pipe
|
||||||
export SHELL="$(BASH)"; \
|
ifneq ($(shell gcc --version 2>&1 | grep -E "Apple.(LLVM|clang)"),)
|
||||||
$(MAKE) \
|
CFLAGS+= -fbracket-depth=512
|
||||||
CFLAGS="$(HOST_CFLAGS)" \
|
endif
|
||||||
|
|
||||||
|
GCC_CONFIGURE+= \
|
||||||
|
CFLAGS="$(CFLAGS)" \
|
||||||
|
CXXFLAGS="$(CFLAGS)" \
|
||||||
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
|
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
|
||||||
CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
|
CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
|
||||||
GOCFLAGS_FOR_TARGET="$(TARGET_CFLAGS)"
|
GOCFLAGS_FOR_TARGET="$(TARGET_CFLAGS)"
|
||||||
|
|
||||||
|
GCC_MAKE:= \
|
||||||
|
export SHELL="$(BASH)"; \
|
||||||
|
$(MAKE)
|
||||||
|
|
||||||
define Host/SetToolchainInfo
|
define Host/SetToolchainInfo
|
||||||
$(SED) 's,TARGET_CROSS=.*,TARGET_CROSS=$(REAL_GNU_TARGET_NAME)-,' $(TOOLCHAIN_DIR)/info.mk
|
$(SED) 's,TARGET_CROSS=.*,TARGET_CROSS=$(REAL_GNU_TARGET_NAME)-,' $(TOOLCHAIN_DIR)/info.mk
|
||||||
$(SED) 's,GCC_VERSION=.*,GCC_VERSION=$(GCC_VERSION),' $(TOOLCHAIN_DIR)/info.mk
|
$(SED) 's,GCC_VERSION=.*,GCC_VERSION=$(GCC_VERSION),' $(TOOLCHAIN_DIR)/info.mk
|
||||||
|
|
|
@ -8,6 +8,7 @@ GCC_CONFIGURE += \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
--with-slibdir=$(TOOLCHAIN_DIR)/lib \
|
--with-slibdir=$(TOOLCHAIN_DIR)/lib \
|
||||||
|
--enable-plugins \
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
--with-libelf=$(STAGING_DIR_HOST)
|
--with-libelf=$(STAGING_DIR_HOST)
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,6 @@ HOST_CONFIGURE_ARGS := \
|
||||||
--system-zstd \
|
--system-zstd \
|
||||||
--generator=Ninja
|
--generator=Ninja
|
||||||
|
|
||||||
HOST_LDFLAGS += -Wl,-rpath,$(STAGING_DIR_HOST)/lib
|
|
||||||
|
|
||||||
define Host/Compile/Default
|
define Host/Compile/Default
|
||||||
+$(NINJA) -C $(HOST_BUILD_DIR) $(1)
|
+$(NINJA) -C $(HOST_BUILD_DIR) $(1)
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -9,9 +9,9 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=e2fsprogs
|
PKG_NAME:=e2fsprogs
|
||||||
PKG_CPE_ID:=cpe:/a:e2fsprogs_project:e2fsprogs
|
PKG_CPE_ID:=cpe:/a:e2fsprogs_project:e2fsprogs
|
||||||
PKG_VERSION:=1.46.5
|
PKG_VERSION:=1.46.6
|
||||||
PKG_HASH:=2f16c9176704cf645dc69d5b15ff704ae722d665df38b2ed3cfc249757d8d81e
|
PKG_HASH:=a77517f19ff5e4e97ede63536566865dd5d48654e13fc145f5f2249ef7c4f4fc
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
|
PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
--- a/configure
|
--- a/configure
|
||||||
+++ b/configure
|
+++ b/configure
|
||||||
@@ -12538,7 +12538,7 @@ $as_echo_n "checking for system crontab
|
@@ -15259,7 +15259,7 @@ then :
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
|
||||||
$as_echo "${crond_dir}" >&6; }
|
printf "%s\n" "${crond_dir}" >&6; }
|
||||||
- have_crond="yes"
|
- have_crond="yes"
|
||||||
+ have_crond="no"; with_crond_dir=""
|
+ have_crond="no"; with_crond_dir=""
|
||||||
|
|
||||||
else
|
else $as_nop
|
||||||
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
From ab51d587bb9b229b1fade1afd02e1574c1ba5c76 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Lukas Czerner <lczerner@redhat.com>
|
|
||||||
Date: Thu, 21 Apr 2022 19:31:48 +0200
|
|
||||||
Subject: libext2fs: add sanity check to extent manipulation
|
|
||||||
|
|
||||||
It is possible to have a corrupted extent tree in such a way that a leaf
|
|
||||||
node contains zero extents in it. Currently if that happens and we try
|
|
||||||
to traverse the tree we can end up accessing wrong data, or possibly
|
|
||||||
even uninitialized memory. Make sure we don't do that.
|
|
||||||
|
|
||||||
Additionally make sure that we have a sane number of bytes passed to
|
|
||||||
memmove() in ext2fs_extent_delete().
|
|
||||||
|
|
||||||
Note that e2fsck is currently unable to spot and fix such corruption in
|
|
||||||
pass1.
|
|
||||||
|
|
||||||
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
|
|
||||||
Reported-by: Nils Bars <nils_bars@t-online.de>
|
|
||||||
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2068113
|
|
||||||
Addresses: CVE-2022-1304
|
|
||||||
Addresses-Debian-Bug: #1010263
|
|
||||||
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
|
||||||
---
|
|
||||||
lib/ext2fs/extent.c | 8 ++++++++
|
|
||||||
1 file changed, 8 insertions(+)
|
|
||||||
|
|
||||||
--- a/lib/ext2fs/extent.c
|
|
||||||
+++ b/lib/ext2fs/extent.c
|
|
||||||
@@ -495,6 +495,10 @@ retry:
|
|
||||||
ext2fs_le16_to_cpu(eh->eh_entries);
|
|
||||||
newpath->max_entries = ext2fs_le16_to_cpu(eh->eh_max);
|
|
||||||
|
|
||||||
+ /* Make sure there is at least one extent present */
|
|
||||||
+ if (newpath->left <= 0)
|
|
||||||
+ return EXT2_ET_EXTENT_NO_DOWN;
|
|
||||||
+
|
|
||||||
if (path->left > 0) {
|
|
||||||
ix++;
|
|
||||||
newpath->end_blk = ext2fs_le32_to_cpu(ix->ei_block);
|
|
||||||
@@ -1630,6 +1634,10 @@ errcode_t ext2fs_extent_delete(ext2_exte
|
|
||||||
|
|
||||||
cp = path->curr;
|
|
||||||
|
|
||||||
+ /* Sanity check before memmove() */
|
|
||||||
+ if (path->left < 0)
|
|
||||||
+ return EXT2_ET_EXTENT_LEAF_BAD;
|
|
||||||
+
|
|
||||||
if (path->left) {
|
|
||||||
memmove(cp, cp + sizeof(struct ext3_extent_idx),
|
|
||||||
path->left * sizeof(struct ext3_extent_idx));
|
|
|
@ -17,9 +17,9 @@ include $(INCLUDE_DIR)/meson.mk
|
||||||
MESON_HOST_BUILD_DIR:=$(HOST_BUILD_DIR)/build/meson/openwrt-build
|
MESON_HOST_BUILD_DIR:=$(HOST_BUILD_DIR)/build/meson/openwrt-build
|
||||||
|
|
||||||
HOSTCC:= $(HOSTCC_NOCACHE)
|
HOSTCC:= $(HOSTCC_NOCACHE)
|
||||||
HOST_LDFLAGS += -Wl,-rpath,$(STAGING_DIR_HOST)/lib
|
|
||||||
|
|
||||||
MESON_HOST_ARGS += \
|
MESON_HOST_ARGS += \
|
||||||
|
-Ddefault_library=static \
|
||||||
-Dlegacy_level=7 \
|
-Dlegacy_level=7 \
|
||||||
-Ddebug_level=0 \
|
-Ddebug_level=0 \
|
||||||
-Dbacktrace=false \
|
-Dbacktrace=false \
|
||||||
|
|
Loading…
Reference in a new issue