Merge Official Source
This commit is contained in:
commit
6ac0acb60f
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=cryptodev-linux
|
||||
PKG_VERSION:=1.10
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/$(PKG_NAME)/$(PKG_NAME)/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
|
||||
@ -0,0 +1,50 @@
|
||||
From f971e0cd4a0ebe59fb2e8e17240399bf6901b09b Mon Sep 17 00:00:00 2001
|
||||
From: "Derald D. Woods" <woods.technical@gmail.com>
|
||||
Date: Sun, 10 Feb 2019 13:22:19 -0600
|
||||
Subject: [PATCH] Fix module loading with Linux v5.0-rc5
|
||||
|
||||
This commit fixes this module load error:
|
||||
[...]
|
||||
[ 29.112091] cryptodev: loading out-of-tree module taints kernel.
|
||||
[ 29.128906] cryptodev: Unknown symbol crypto_givcipher_type (err -2)
|
||||
[ 29.188842] cryptodev: Unknown symbol crypto_givcipher_type (err -2)
|
||||
modprobe: can't load module cryptodev (extra/cryptodev.ko): unknown symbol in module, or unknown parameter
|
||||
[...]
|
||||
|
||||
Upstream Linux support for unused GIVCIPHER, and others, was dropped here:
|
||||
|
||||
c79b411eaa72 (crypto: skcipher - remove remnants of internal IV generators)
|
||||
|
||||
Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
|
||||
---
|
||||
cryptlib.c | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cryptlib.c b/cryptlib.c
|
||||
index 6e66698..4a87037 100644
|
||||
--- a/cryptlib.c
|
||||
+++ b/cryptlib.c
|
||||
@@ -38,7 +38,9 @@
|
||||
#include "cryptodev_int.h"
|
||||
#include "cipherapi.h"
|
||||
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0))
|
||||
extern const struct crypto_type crypto_givcipher_type;
|
||||
+#endif
|
||||
|
||||
static void cryptodev_complete(struct crypto_async_request *req, int err)
|
||||
{
|
||||
@@ -157,8 +159,11 @@ int cryptodev_cipher_init(struct cipher_data *out, const char *alg_name,
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0))
|
||||
tfm = crypto_skcipher_tfm(out->async.s);
|
||||
- if ((tfm->__crt_alg->cra_type == &crypto_ablkcipher_type) ||
|
||||
- (tfm->__crt_alg->cra_type == &crypto_givcipher_type)) {
|
||||
+ if ((tfm->__crt_alg->cra_type == &crypto_ablkcipher_type)
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0))
|
||||
+ || (tfm->__crt_alg->cra_type == &crypto_givcipher_type)
|
||||
+#endif
|
||||
+ ) {
|
||||
struct ablkcipher_alg *alg;
|
||||
|
||||
alg = &tfm->__crt_alg->cra_ablkcipher;
|
||||
@ -7,7 +7,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=hostapd
|
||||
PKG_RELEASE:=7
|
||||
PKG_RELEASE:=8
|
||||
|
||||
PKG_SOURCE_URL:=http://w1.fi/hostap.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
|
||||
@ -181,6 +181,8 @@ void wpas_ubus_add_bss(struct wpa_supplicant *wpa_s)
|
||||
char *name;
|
||||
int ret;
|
||||
|
||||
if (!wpas_ubus_init())
|
||||
return;
|
||||
|
||||
if (asprintf(&name, "wpa_supplicant.%s", wpa_s->ifname) < 0)
|
||||
return;
|
||||
|
||||
@ -14,8 +14,8 @@ config GCC_VERSION
|
||||
string
|
||||
default "5.5.0" if GCC_VERSION_5
|
||||
default "7.5.0" if GCC_VERSION_7
|
||||
default "9.2.0" if GCC_VERSION_9
|
||||
default "8.3.0"
|
||||
default "9.3.0" if GCC_VERSION_9
|
||||
default "8.4.0"
|
||||
|
||||
config GCC_USE_IREMAP
|
||||
bool
|
||||
|
||||
@ -36,12 +36,12 @@ ifeq ($(PKG_VERSION),7.5.0)
|
||||
PKG_HASH:=b81946e7f01f90528a1f7352ab08cc602b9ccc05d4e44da4bd501c5a189ee661
|
||||
endif
|
||||
|
||||
ifeq ($(PKG_VERSION),8.3.0)
|
||||
PKG_HASH:=64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c
|
||||
ifeq ($(PKG_VERSION),8.4.0)
|
||||
PKG_HASH:=e30a6e52d10e1f27ed55104ad233c30bd1e99cfb5ff98ab022dc941edd1b2dd4
|
||||
endif
|
||||
|
||||
ifeq ($(PKG_VERSION),9.2.0)
|
||||
PKG_HASH:=ea6ef08f121239da5695f76c9b33637a118dcf63e24164422231917fa61fb206
|
||||
ifeq ($(PKG_VERSION),9.3.0)
|
||||
PKG_HASH:=71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1
|
||||
endif
|
||||
|
||||
PATCH_DIR=../patches/$(GCC_VERSION)
|
||||
|
||||
@ -1,30 +0,0 @@
|
||||
From 045e60da05ec1d4997864883143a951f152cfc9f Mon Sep 17 00:00:00 2001
|
||||
From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
|
||||
Date: Tue, 30 Apr 2019 20:37:12 +0000
|
||||
Subject: [PATCH] Backported from mainline 2019-03-05 Jakub
|
||||
Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/89587
|
||||
* config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
|
||||
if_multiarch.
|
||||
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@270720 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
---
|
||||
gcc/ChangeLog | 4 ++++
|
||||
gcc/config/rs6000/t-linux | 2 +-
|
||||
2 files changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gcc/config/rs6000/t-linux b/gcc/config/rs6000/t-linux
|
||||
index acfde1f48aec..aeb7440c4920 100644
|
||||
--- a/gcc/config/rs6000/t-linux
|
||||
+++ b/gcc/config/rs6000/t-linux
|
||||
@@ -4,7 +4,7 @@ ifeq (,$(filter $(with_cpu),$(SOFT_FLOAT_CPUS))$(findstring soft,$(with_float)))
|
||||
ifneq (,$(findstring powerpc64,$(target)))
|
||||
MULTILIB_OSDIRNAMES := .=../lib64$(call if_multiarch,:powerpc64-linux-gnu)
|
||||
else
|
||||
-MULTIARCH_DIRNAME := powerpc-linux-gnu
|
||||
+MULTIARCH_DIRNAME := $(call if_multiarch,powerpc-linux-gnu)
|
||||
endif
|
||||
ifneq (,$(findstring powerpcle,$(target)))
|
||||
MULTIARCH_DIRNAME := $(subst -linux,le-linux,$(MULTIARCH_DIRNAME))
|
||||
@ -12,7 +12,7 @@ Date: Tue Feb 26 16:16:33 2013 +0000
|
||||
|
||||
--- a/gcc/Makefile.in
|
||||
+++ b/gcc/Makefile.in
|
||||
@@ -3202,18 +3202,10 @@ doc/gcc.info: $(TEXI_GCC_FILES)
|
||||
@@ -3204,18 +3204,10 @@ doc/gcc.info: $(TEXI_GCC_FILES)
|
||||
doc/gccint.info: $(TEXI_GCCINT_FILES)
|
||||
doc/cppinternals.info: $(TEXI_CPPINT_FILES)
|
||||
|
||||
@ -10,7 +10,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
--- a/gcc/config/mips/mips.c
|
||||
+++ b/gcc/config/mips/mips.c
|
||||
@@ -19834,7 +19834,7 @@ mips_option_override (void)
|
||||
@@ -19847,7 +19847,7 @@ mips_option_override (void)
|
||||
flag_pcc_struct_return = 0;
|
||||
|
||||
/* Decide which rtx_costs structure to use. */
|
||||
@ -1,6 +1,6 @@
|
||||
--- a/gcc/config/rs6000/rs6000.c
|
||||
+++ b/gcc/config/rs6000/rs6000.c
|
||||
@@ -24365,7 +24365,7 @@ rs6000_savres_strategy (rs6000_stack_t *
|
||||
@@ -24780,7 +24780,7 @@ rs6000_savres_strategy (rs6000_stack_t *
|
||||
/* Define cutoff for using out-of-line functions to save registers. */
|
||||
if (DEFAULT_ABI == ABI_V4 || TARGET_ELF)
|
||||
{
|
||||
@ -114,7 +114,7 @@ Date: Tue Jul 31 00:52:27 2007 +0000
|
||||
; On SVR4 targets, it also controls whether or not to emit a
|
||||
--- a/gcc/opts.c
|
||||
+++ b/gcc/opts.c
|
||||
@@ -2065,6 +2065,9 @@ common_handle_option (struct gcc_options
|
||||
@@ -2073,6 +2073,9 @@ common_handle_option (struct gcc_options
|
||||
opts, opts_set, loc, dc);
|
||||
break;
|
||||
|
||||
@ -126,7 +126,7 @@ Date: Tue Jul 31 00:52:27 2007 +0000
|
||||
opts->x_warn_larger_than = value != -1;
|
||||
--- a/gcc/doc/invoke.texi
|
||||
+++ b/gcc/doc/invoke.texi
|
||||
@@ -7014,6 +7014,17 @@ This option is only supported for C and
|
||||
@@ -7013,6 +7013,17 @@ This option is only supported for C and
|
||||
@option{-Wall} and by @option{-Wpedantic}, which can be disabled with
|
||||
@option{-Wno-pointer-sign}.
|
||||
|
||||
@ -48,7 +48,7 @@ sellcey@mips.com
|
||||
|
||||
--- a/gcc/config/mips/mips.c
|
||||
+++ b/gcc/config/mips/mips.c
|
||||
@@ -22627,6 +22627,9 @@ mips_starting_frame_offset (void)
|
||||
@@ -22640,6 +22640,9 @@ mips_starting_frame_offset (void)
|
||||
#undef TARGET_STARTING_FRAME_OFFSET
|
||||
#define TARGET_STARTING_FRAME_OFFSET mips_starting_frame_offset
|
||||
|
||||
@ -1,55 +0,0 @@
|
||||
From d57faea9337ad595d005687247c3322252f70ba1 Mon Sep 17 00:00:00 2001
|
||||
From: rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
|
||||
Date: Sun, 7 Jul 2019 09:49:14 +0000
|
||||
Subject: [PATCH] Fix uninitialised use in mips_split_move
|
||||
|
||||
While testing the fix for PR91068, I hit an rtl checking failure
|
||||
while building newlib. mips_split_move was decomposing an address that
|
||||
happened to be symbolic and then tried to access the REGNO of the base
|
||||
register field, which wasn't initialised but which by chance pointed to
|
||||
valid memory.
|
||||
|
||||
2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
gcc/
|
||||
* config/mips/mips.c (mips_split_move): Zero-initialize addr
|
||||
and check whether addr.reg is nonnull before using it.
|
||||
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@273174 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
---
|
||||
gcc/ChangeLog | 5 +++++
|
||||
gcc/config/mips/mips.c | 4 ++--
|
||||
2 files changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/gcc/ChangeLog
|
||||
+++ b/gcc/ChangeLog
|
||||
@@ -1,3 +1,8 @@
|
||||
+2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
|
||||
+
|
||||
+ * config/mips/mips.c (mips_split_move): Zero-initialize addr
|
||||
+ and check whether addr.reg is nonnull before using it.
|
||||
+
|
||||
2019-08-12 Release Manager
|
||||
|
||||
* GCC 9.2.0 released.
|
||||
--- a/gcc/config/mips/mips.c
|
||||
+++ b/gcc/config/mips/mips.c
|
||||
@@ -4849,7 +4849,7 @@ mips_split_move (rtx dest, rtx src, enum
|
||||
can forward SRC for DEST. This is most useful if the next insn is a
|
||||
simple store. */
|
||||
rtx_insn *insn = (rtx_insn *)insn_;
|
||||
- struct mips_address_info addr;
|
||||
+ struct mips_address_info addr = {};
|
||||
if (insn)
|
||||
{
|
||||
rtx_insn *next = next_nonnote_nondebug_insn_bb (insn);
|
||||
@@ -4862,7 +4862,7 @@ mips_split_move (rtx dest, rtx src, enum
|
||||
{
|
||||
rtx tmp = XEXP (src, 0);
|
||||
mips_classify_address (&addr, tmp, GET_MODE (tmp), true);
|
||||
- if (REGNO (addr.reg) != REGNO (dest))
|
||||
+ if (addr.reg && REGNO (addr.reg) != REGNO (dest))
|
||||
validate_change (next, &SET_SRC (set), src, false);
|
||||
}
|
||||
else
|
||||
@ -1,6 +1,6 @@
|
||||
--- a/gcc/config/rs6000/rs6000.c
|
||||
+++ b/gcc/config/rs6000/rs6000.c
|
||||
@@ -24632,7 +24632,7 @@ rs6000_savres_strategy (rs6000_stack_t *
|
||||
@@ -24474,7 +24474,7 @@ rs6000_savres_strategy (rs6000_stack_t *
|
||||
/* Define cutoff for using out-of-line functions to save registers. */
|
||||
if (DEFAULT_ABI == ABI_V4 || TARGET_ELF)
|
||||
{
|
||||
@ -114,7 +114,7 @@ Date: Tue Jul 31 00:52:27 2007 +0000
|
||||
; On SVR4 targets, it also controls whether or not to emit a
|
||||
--- a/gcc/doc/invoke.texi
|
||||
+++ b/gcc/doc/invoke.texi
|
||||
@@ -7657,6 +7657,17 @@ This option is only supported for C and
|
||||
@@ -7666,6 +7666,17 @@ This option is only supported for C and
|
||||
@option{-Wall} and by @option{-Wpedantic}, which can be disabled with
|
||||
@option{-Wno-pointer-sign}.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user