From: Eric Biggers <ebiggers(a)google.com>
The randstruct support released in Clang 15 is unsafe to use due to a
bug that can cause miscompilations: "-frandomize-layout-seed
inconsistently randomizes all-function-pointers structs"
(https://github.com/llvm/llvm-project/issues/60349). It has been fixed
on the Clang 16 release branch, so add a Clang version check.
Fixes: 035f7f87b729 ("randstruct: Enable Clang support")
Cc: stable(a)vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers(a)google.com>
---
security/Kconfig.hardening | 3 +++
1 file changed, 3 insertions(+)
diff --git a/security/Kconfig.hardening b/security/Kconfig.hardening
index 53baa95cb644f..0f295961e7736 100644
--- a/security/Kconfig.hardening
+++ b/security/Kconfig.hardening
@@ -281,6 +281,9 @@ endmenu
config CC_HAS_RANDSTRUCT
def_bool $(cc-option,-frandomize-layout-seed-file=/dev/null)
+ # Randstruct was first added in Clang 15, but it isn't safe to use until
+ # Clang 16 due to https://github.com/llvm/llvm-project/issues/60349
+ depends on !CC_IS_CLANG || CLANG_VERSION >= 160000
choice
prompt "Randomize layout of sensitive kernel structures"
base-commit: 4ec5183ec48656cec489c49f989c508b68b518e3
--
2.39.1
The Alcor Link AK9563 smartcard reader used on some Lenovo platforms
doesn't work. If LPM is enabled the reader will provide an invalid
usb config descriptor. Added quirk to disable LPM.
Verified fix on Lenovo P16 G1 and T14 G3
Tested-by: Miroslav Zatko <mzatko(a)mirexoft.com>
Tested-by: Dennis Wassenberg <dennis.wassenberg(a)secunet.com>
Cc: stable(a)vger.kernel.org
Signed-off-by: Dennis Wassenberg <dennis.wassenberg(a)secunet.com>
Signed-off-by: Mark Pearson <mpearson-lenovo(a)squebb.ca>
---
Changes in v3: Send correct update that should have been in v2
Changes in v2: Put entry in correct position in quirks list.
drivers/usb/core/quirks.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
index 079e183cf3bf..934b3d997702 100644
--- a/drivers/usb/core/quirks.c
+++ b/drivers/usb/core/quirks.c
@@ -526,6 +526,9 @@ static const struct usb_device_id usb_quirk_list[] = {
/* DJI CineSSD */
{ USB_DEVICE(0x2ca3, 0x0031), .driver_info = USB_QUIRK_NO_LPM },
+ /* Alcor Link AK9563 SC Reader used in 2022 Lenovo ThinkPads */
+ { USB_DEVICE(0x2ce3, 0x9563), .driver_info = USB_QUIRK_NO_LPM },
+
/* DELL USB GEN2 */
{ USB_DEVICE(0x413c, 0xb062), .driver_info = USB_QUIRK_NO_LPM | USB_QUIRK_RESET_RESUME },
--
2.39.1
The Alcor Link AK9563 smartcard reader used on some Lenovo platforms
doesn't work. If LPM is enabled the reader will provide an invalid
usb config descriptor. Added quirk to disable LPM.
Verified fix on Lenovo P16 G1 and T14 G3
Tested-by: Miroslav Zatko <mzatko(a)mirexoft.com>
Tested-by: Dennis Wassenberg <dennis.wassenberg(a)secunet.com>
Cc: stable(a)vger.kernel.org
Signed-off-by: Dennis Wassenberg <dennis.wassenberg(a)secunet.com>
Signed-off-by: Mark Pearson <mpearson-lenovo(a)squebb.ca>
---
Changes in v2: Put entry in correct position in quirks list.
drivers/usb/core/quirks.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
index 079e183cf3bf..9b1c56646ac5 100644
--- a/drivers/usb/core/quirks.c
+++ b/drivers/usb/core/quirks.c
@@ -535,6 +535,9 @@ static const struct usb_device_id usb_quirk_list[] = {
/* INTEL VALUE SSD */
{ USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME },
+ /* Alcor Link AK9563 SC Reader used in 2022 Lenovo ThinkPads */
+ { USB_DEVICE(0x2ce3, 0x9563), .driver_info = USB_QUIRK_NO_LPM },
+
{ } /* terminating entry must be last */
};
--
2.39.1
Greetings.
I am Ms Nadage lassou,I have something important to tell before is too late
Thanks, i will send you the details once i hear from you.
Regards.
Ms Nadage Lassou
Sveiciens jums,
Es izsaku to dziļā cieņā un pazemīgā padevībā. Es lūdzu izteikt dažas
turpmākās rindiņas jūsu laipnai izskatīšanai. Es ceru, ka jūs veltīsit
dažas vērtīgās minūtes, lai ar līdzjūtību izlasītu šo aicinājumu. Man
jāatzīst, ka ar lielām cerībām, prieku un entuziasmu rakstu jums šo
e-pasta ziņojumu, kuru zinu un ticībā ticu, ka tam noteikti jāatrod
jūsu veselība.
Es esmu Sandrina Omaru jaunkundze, nelaiķa Viljamsa Omaru meita. Pirms
mana tēva nāves viņš man piezvanīja un informēja, ka viņam ir trīs
miljoni sešsimt tūkstošu eiro. (3 600 000,00 eiro) viņš noguldīja
privātā banka šeit, Abidžanas Kotdivuārā.
Viņš man teica, ka noguldījis naudu uz mana vārda, kā arī iedeva visus
nepieciešamos juridiskos dokumentus par šo noguldījumu bankā, esmu
bakalaura un īsti nezinu, ko darīt. Tagad es vēlos godīgu un DIEVA
baidošu partneri ārzemēs, kuram ar viņa palīdzību varētu pārskaitīt šo
naudu un pēc darījuma es atbraukšu un pastāvīgi dzīvošu jūsu valstī
līdz tikmēr, ka man būs ērti atgriezties mājās, ja es to darīšu.
vēlme. Tas ir tāpēc, ka šeit, Kotdivuāras krastā, nemitīgās politiskās
krīzes dēļ esmu daudz cietis.
Lūdzu, apsveriet to un sazinieties ar mani pēc iespējas ātrāk.
Nekavējoties apstiprināšu jūsu vēlmi, nosūtīšu jums savu attēlu, kā
arī informēšu sīkāku informāciju par šo lietu.
Ar cieņu,
Sandrina Omaru jaunkundze
Patch 1 clears resources earlier if there is no more reasons to keep
MPTCP sockets alive.
Patches 2 and 3 fix some locking issues visible in some rare corner
cases: the linked issues should be quite hard to reproduce.
Patch 4 makes sure subflows are correctly cleaned after the end of a
connection.
Patch 5 and 6 improve the selftests stability when running in a slow
environment by transfering data for a longer period on one hand and by
stopping the tests when all expected events have been observed on the
other hand.
All these patches fix issues introduced before v6.2.
Signed-off-by: Matthieu Baerts <matthieu.baerts(a)tessares.net>
---
Matthieu Baerts (1):
selftests: mptcp: stop tests earlier
Paolo Abeni (5):
mptcp: do not wait for bare sockets' timeout
mptcp: fix locking for setsockopt corner-case
mptcp: fix locking for in-kernel listener creation
mptcp: be careful on subflow status propagation on errors
selftests: mptcp: allow more slack for slow test-case
net/mptcp/pm_netlink.c | 10 ++++++----
net/mptcp/protocol.c | 9 +++++++++
net/mptcp/sockopt.c | 11 +++++++++--
net/mptcp/subflow.c | 12 ++++++++++--
tools/testing/selftests/net/mptcp/mptcp_join.sh | 22 +++++++++++++++++-----
5 files changed, 51 insertions(+), 13 deletions(-)
---
base-commit: 811d581194f7412eda97acc03d17fc77824b561f
change-id: 20230207-upstream-net-20230207-various-fix-6-2-1848a75bbbe6
Best regards,
--
Matthieu Baerts <matthieu.baerts(a)tessares.net>
From: Eric Biggers <ebiggers(a)google.com>
Randstruct with clang is currently unsafe to use in any clang release
that supports it, due to a clang bug that is causing miscompilations:
"-frandomize-layout-seed inconsistently randomizes all-function-pointers
structs" (https://github.com/llvm/llvm-project/issues/60349). Disable
it temporarily until the bug is fixed and the fix is released in a clang
version that can be checked for.
Fixes: 035f7f87b729 ("randstruct: Enable Clang support")
Cc: stable(a)vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers(a)google.com>
---
security/Kconfig.hardening | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/security/Kconfig.hardening b/security/Kconfig.hardening
index 53baa95cb644..aad16187148c 100644
--- a/security/Kconfig.hardening
+++ b/security/Kconfig.hardening
@@ -280,7 +280,8 @@ config ZERO_CALL_USED_REGS
endmenu
config CC_HAS_RANDSTRUCT
- def_bool $(cc-option,-frandomize-layout-seed-file=/dev/null)
+ # Temporarily disabled due to https://github.com/llvm/llvm-project/issues/60349
+ def_bool n
choice
prompt "Randomize layout of sensitive kernel structures"
base-commit: 7b753a909f426f2789d9db6f357c3d59180a9354
--
2.39.1