Skip to contentSkip to conversation

package/wpa_supplicant: bump to version 2.6

PATCH New Jörg Krause 2 participants 3 messages Oct 11, 2016 – Oct 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/wpa_supplicant: bump to version 2.6

Remove all patches as they are applied to or were fetched from upstream.

---
 .../0001-fix-readline-libs-ordering.patch          | 26 -------
 ...Key-Data-in-WNM-Sleep-Mode-Response-frame.patch | 32 --------
 ...-peer-Fix-last-fragment-length-validation.patch | 54 --------------
 ...erver-Fix-last-fragment-length-validation.patch | 51 -------------
 ...r-Fix-error-path-for-unexpected-Confirm-m.patch | 34 ---------
 .../wpa_supplicant/0006-fix-libwpa_client.patch    | 39 ----------
 ...ate-service-files-according-to-dbus-inter.patch | 77 --------------------
 ...ject-a-Credential-with-invalid-passphrase.patch | 85 ----------------------
 ...parameter-set-with-invalid-passphrase-cha.patch | 53 --------------
 ...ines-from-wpa_supplicant-config-network-o.patch | 84 ---------------------
 ...CRED-commands-with-newline-characters-in-.patch | 65 -----------------
 ...commands-with-newline-characters-in-the-s.patch | 53 --------------
 package/wpa_supplicant/wpa_supplicant.hash         |  2 +-
 package/wpa_supplicant/wpa_supplicant.mk           |  2 +-
 14 files changed, 2 insertions(+), 655 deletions(-)
 delete mode 100644 package/wpa_supplicant/0001-fix-readline-libs-ordering.patch
 delete mode 100644 package/wpa_supplicant/0002-WNM-Ignore-Key-Data-in-WNM-Sleep-Mode-Response-frame.patch
 delete mode 100644 package/wpa_supplicant/0003-EAP-pwd-peer-Fix-last-fragment-length-validation.patch
 delete mode 100644 package/wpa_supplicant/0004-EAP-pwd-server-Fix-last-fragment-length-validation.patch
 delete mode 100644 package/wpa_supplicant/0005-EAP-pwd-peer-Fix-error-path-for-unexpected-Confirm-m.patch
 delete mode 100644 package/wpa_supplicant/0006-fix-libwpa_client.patch
 delete mode 100644 package/wpa_supplicant/0007-systemd-Update-service-files-according-to-dbus-inter.patch
 delete mode 100644 package/wpa_supplicant/0008-WPS-Reject-a-Credential-with-invalid-passphrase.patch
 delete mode 100644 package/wpa_supplicant/0009-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
 delete mode 100644 package/wpa_supplicant/0010-Remove-newlines-from-wpa_supplicant-config-network-o.patch
 delete mode 100644 package/wpa_supplicant/0011-Reject-SET_CRED-commands-with-newline-characters-in-.patch
 delete mode 100644 package/wpa_supplicant/0012-Reject-SET-commands-with-newline-characters-in-the-s.patch
package/wpa_supplicant/0001-fix-readline-libs-ordering.patch deleted +0 -26
deleted file mode 100644
index 2a9b832..0000000
@@ -1,26 +0,0 @@
-commit 631f0893038743cebd2def39df61aceb48bd43a9
-Author: David du Colombier <[email protected]>
-Date:   Sun Sep 13 23:40:43 2015 +0200
-
-    wpa_supplicant: fix static link with readline
-    
-    The readline library depends on ncurses, so
-    it should be set before ncurses on the linker
-    command line to be able to be statically linked
-    successfully.
-
-    Signed-off-by: David du Colombier <[email protected]>
-
-diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
-index 1597412..581db02 100644
---- a/wpa_supplicant/Makefile
-+++ b/wpa_supplicant/Makefile
-@@ -1408,7 +1408,7 @@ LIBS += $(DBUS_LIBS)
- 
- ifdef CONFIG_READLINE
- OBJS_c += ../src/utils/edit_readline.o
--LIBS_c += -lncurses -lreadline
-+LIBS_c += -lreadline -lncurses
- else
- ifdef CONFIG_WPA_CLI_EDIT
- OBJS_c += ../src/utils/edit.o
package/wpa_supplicant/0002-WNM-Ignore-Key-Data-in-WNM-Sleep-Mode-Response-frame.patch deleted +0 -32
deleted file mode 100644
index 00e5b7c..0000000
@@ -1,32 +0,0 @@
-From 6b12d93d2c7428a34bfd4b3813ba339ed57b698a Mon Sep 17 00:00:00 2001
-From: Jouni Malinen <[email protected]>
-Date: Sun, 25 Oct 2015 15:45:50 +0200
-Subject: [PATCH] WNM: Ignore Key Data in WNM Sleep Mode Response frame if no
- PMF in use
-
-WNM Sleep Mode Response frame is used to update GTK/IGTK only if PMF is
-enabled. Verify that PMF is in use before using this field on station
-side to avoid accepting unauthenticated key updates. (CVE-2015-5310)
-
-Signed-off-by: Jouni Malinen <[email protected]>
----
- wpa_supplicant/wnm_sta.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
-index 954de67..7d79499 100644
---- a/wpa_supplicant/wnm_sta.c
-+++ b/wpa_supplicant/wnm_sta.c
-@@ -187,6 +187,12 @@ static void wnm_sleep_mode_exit_success(struct wpa_supplicant *wpa_s,
- 	end = ptr + key_len_total;
- 	wpa_hexdump_key(MSG_DEBUG, "WNM: Key Data", ptr, key_len_total);
- 
-+	if (key_len_total && !wpa_sm_pmf_enabled(wpa_s->wpa)) {
-+		wpa_msg(wpa_s, MSG_INFO,
-+			"WNM: Ignore Key Data in WNM-Sleep Mode Response - PMF not enabled");
-+		return;
-+	}
-+
- 	while (ptr + 1 < end) {
- 		if (ptr + 2 + ptr[1] > end) {
- 			wpa_printf(MSG_DEBUG, "WNM: Invalid Key Data element "
package/wpa_supplicant/0003-EAP-pwd-peer-Fix-last-fragment-length-validation.patch deleted +0 -54

54 lines not on this page · raw message

package/wpa_supplicant/0004-EAP-pwd-server-Fix-last-fragment-length-validation.patch deleted +0 -51

51 lines not on this page · raw message

package/wpa_supplicant/0005-EAP-pwd-peer-Fix-error-path-for-unexpected-Confirm-m.patch deleted +0 -34
deleted file mode 100644
index 3088f6a..0000000
@@ -1,34 +0,0 @@
-From 95577884ca4fa76be91344ff7a8d5d1e6dc3da61 Mon Sep 17 00:00:00 2001
-From: Jouni Malinen <[email protected]>
-Date: Sun, 1 Nov 2015 19:35:44 +0200
-Subject: [PATCH] EAP-pwd peer: Fix error path for unexpected Confirm message
-
-If the Confirm message is received from the server before the Identity
-exchange has been completed, the group has not yet been determined and
-data->grp is NULL. The error path in eap_pwd_perform_confirm_exchange()
-did not take this corner case into account and could end up
-dereferencing a NULL pointer and terminating the process if invalid
-message sequence is received. (CVE-2015-5316)
-
-Signed-off-by: Jouni Malinen <[email protected]>
----
- src/eap_peer/eap_pwd.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/eap_peer/eap_pwd.c b/src/eap_peer/eap_pwd.c
-index 75ceef1..892b590 100644
---- a/src/eap_peer/eap_pwd.c
-+++ b/src/eap_peer/eap_pwd.c
-@@ -774,7 +774,8 @@ eap_pwd_perform_confirm_exchange(struct eap_sm *sm, struct eap_pwd_data *data,
- 	wpabuf_put_data(data->outbuf, conf, SHA256_MAC_LEN);
- 
- fin:
--	bin_clear_free(cruft, BN_num_bytes(data->grp->prime));
-+	if (data->grp)
-+		bin_clear_free(cruft, BN_num_bytes(data->grp->prime));
- 	BN_clear_free(x);
- 	BN_clear_free(y);
- 	if (data->outbuf == NULL) {
--- 
-1.9.1
-
package/wpa_supplicant/0006-fix-libwpa_client.patch deleted +0 -39
deleted file mode 100644
index 11c5402..0000000
@@ -1,39 +0,0 @@
-From 6f7e0354a9035ce33742a5f869f817a6b39b2f31 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
-Date: Thu, 29 Oct 2015 11:39:03 +0100
-Subject: [PATCH 1/1] wpa_supplicant/Makefile: fix libwpa_client
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Building libwpa_client requires src/utils/common.c for bin_clear_free() else
-loading the library fails with:
-
-  Error relocating /usr/lib/libwpa_client.so: bin_clear_free: symbol not found
-
-Backported from: 736b7cb2daf877a0cb9ad42ff15a2efbbd65fa42
-
-Signed-off-by: J?rg Krause <[email protected]>
----
- wpa_supplicant/Makefile | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
-index 61f8f18..0c444b0 100644
---- a/wpa_supplicant/Makefile
-+++ b/wpa_supplicant/Makefile
-@@ -1706,9 +1706,11 @@ wpa_cli: $(OBJS_c)
- 
- LIBCTRL += ../src/common/wpa_ctrl.o
- LIBCTRL += ../src/utils/os_$(CONFIG_OS).o
-+LIBCTRL += ../src/utils/common.c
- LIBCTRL += ../src/utils/wpa_debug.o
- LIBCTRLSO += ../src/common/wpa_ctrl.c
- LIBCTRLSO += ../src/utils/os_$(CONFIG_OS).c
-+LIBCTRLSO += ../src/utils/common.c
- LIBCTRLSO += ../src/utils/wpa_debug.c
- 
- libwpa_client.a: $(LIBCTRL)
--- 
-2.6.2
-
package/wpa_supplicant/0007-systemd-Update-service-files-according-to-dbus-inter.patch deleted +0 -77

77 lines not on this page · raw message

package/wpa_supplicant/0008-WPS-Reject-a-Credential-with-invalid-passphrase.patch deleted +0 -85

85 lines not on this page · raw message

package/wpa_supplicant/0009-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch deleted +0 -53

53 lines not on this page · raw message

package/wpa_supplicant/0010-Remove-newlines-from-wpa_supplicant-config-network-o.patch deleted +0 -84

84 lines not on this page · raw message

package/wpa_supplicant/0011-Reject-SET_CRED-commands-with-newline-characters-in-.patch deleted +0 -65

65 lines not on this page · raw message

package/wpa_supplicant/0012-Reject-SET-commands-with-newline-characters-in-the-s.patch deleted +0 -53

53 lines not on this page · raw message

package/wpa_supplicant/wpa_supplicant.hash +1 -1
index 19e4359..22b2e8d 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256	cce55bae483b364eae55c35ba567c279be442ed8bab5b80a3c7fb0d057b9b316  wpa_supplicant-2.5.tar.gz
+sha256  b4936d34c4e6cdd44954beba74296d964bc2c9668ecaa5255e499636fe2b1450  wpa_supplicant-2.6.tar.gz
package/wpa_supplicant/wpa_supplicant.mk +1 -1
index d46328e..e3e6f3a 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-WPA_SUPPLICANT_VERSION = 2.5
+WPA_SUPPLICANT_VERSION = 2.6
 WPA_SUPPLICANT_SITE = http://hostap.epitest.fi/releases
 WPA_SUPPLICANT_LICENSE = BSD-3c
 WPA_SUPPLICANT_LICENSE_FILES = README
Signature · 1 line
2.10.0
#1 lore raw

PATCH 2/2 package/wpa_supplicant: enable interface matching option

The new wpa_supplicant command line argument -M can be used to describe matching rules with a wildcard interface name (e.g., "wlan*").

This is very useful for systems without udev.

---
 package/wpa_supplicant/wpa_supplicant.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/wpa_supplicant/wpa_supplicant.mk +2 -1
index e3e6f3a..3c3317b 100644
@@ -28,7 +28,8 @@ WPA_SUPPLICANT_CONFIG_ENABLE = \
 	CONFIG_IEEE80211N	\
 	CONFIG_IEEE80211R	\
 	CONFIG_INTERNAL_LIBTOMMATH \
-	CONFIG_DEBUG_FILE
+	CONFIG_DEBUG_FILE \
+	CONFIG_MATCH_IFACE
 
 WPA_SUPPLICANT_CONFIG_DISABLE = \
 	CONFIG_SMARTCARD
Signature · 1 line
2.10.0
#2 lore raw

PATCH 1/2 package/wpa_supplicant: bump to version 2.6

In reply to Jörg Krause

Hello,

Quoted 23 lines · J?rg Krause

Remove all patches as they are applied to or were fetched from upstream.

---
 .../0001-fix-readline-libs-ordering.patch          | 26 -------
 ...Key-Data-in-WNM-Sleep-Mode-Response-frame.patch | 32 --------
 ...-peer-Fix-last-fragment-length-validation.patch | 54 --------------
 ...erver-Fix-last-fragment-length-validation.patch | 51 -------------
 ...r-Fix-error-path-for-unexpected-Confirm-m.patch | 34 ---------
 .../wpa_supplicant/0006-fix-libwpa_client.patch    | 39 ----------
 ...ate-service-files-according-to-dbus-inter.patch | 77 --------------------
 ...ject-a-Credential-with-invalid-passphrase.patch | 85 ----------------------
 ...parameter-set-with-invalid-passphrase-cha.patch | 53 --------------
 ...ines-from-wpa_supplicant-config-network-o.patch | 84 ---------------------
 ...CRED-commands-with-newline-characters-in-.patch | 65 -----------------
 ...commands-with-newline-characters-in-the-s.patch | 53 --------------
 package/wpa_supplicant/wpa_supplicant.hash         |  2 +-
 package/wpa_supplicant/wpa_supplicant.mk           |  2 +-
 14 files changed, 2 insertions(+), 655 deletions(-)
 delete mode 100644 package/wpa_supplicant/0001-fix-readline-libs-ordering.patch
 delete mode 100644 package/wpa_supplicant/0002-WNM-Ignore-Key-Data-in-WNM-Sleep-Mode-Response-frame.patch
 delete mode 100644 package/wpa_supplicant/0003-EAP-pwd-peer-Fix-last-fragment-length-validation.patch
 delete mode 100644 package/wpa_supplicant/0004-EAP-pwd-server-Fix-last-fragment-length-validation.patch
Quoted 8 lines
 delete mode 100644 package/wpa_supplicant/0005-EAP-pwd-peer-Fix-error-path-for-unexpected-Confirm-m.patch
 delete mode 100644 package/wpa_supplicant/0006-fix-libwpa_client.patch
 delete mode 100644 package/wpa_supplicant/0007-systemd-Update-service-files-according-to-dbus-inter.patch
 delete mode 100644 package/wpa_supplicant/0008-WPS-Reject-a-Credential-with-invalid-passphrase.patch
 delete mode 100644 package/wpa_supplicant/0009-Reject-psk-parameter-set-with-invalid-passphrase-cha.patch
 delete mode 100644 package/wpa_supplicant/0010-Remove-newlines-from-wpa_supplicant-config-network-o.patch
 delete mode 100644 package/wpa_supplicant/0011-Reject-SET_CRED-commands-with-newline-characters-in-.patch
 delete mode 100644 package/wpa_supplicant/0012-Reject-SET-commands-with-newline-characters-in-the-s.patch

Thanks, both patches applied!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com