[arch-commits] Commit in linux-lts/trunk (3 files)

2020-11-05 Thread Jan Steffens via arch-commits
Date: Thursday, November 5, 2020 @ 14:01:27
  Author: heftig
Revision: 399302

5.4.75-1

Modified:
  
linux-lts/trunk/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/config

-+
 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch |4 ++--
 PKGBUILD|8 
 config  |5 +
 3 files changed, 7 insertions(+), 10 deletions(-)

Modified: 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
===
--- 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 
2020-11-05 13:57:18 UTC (rev 399301)
+++ 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 
2020-11-05 14:01:27 UTC (rev 399302)
@@ -13,10 +13,10 @@
  4 files changed, 50 insertions(+)
 
 diff --git a/init/Kconfig b/init/Kconfig
-index 6db3e310a5e4..2dd7dd1b6b0d 100644
+index 96fc45d1b686..3bc58f03a2cd 100644
 --- a/init/Kconfig
 +++ b/init/Kconfig
-@@ -1083,6 +1083,22 @@ config USER_NS
+@@ -1084,6 +1084,22 @@ config USER_NS
  
  If unsure, say N.
  

Modified: PKGBUILD
===
--- PKGBUILD2020-11-05 13:57:18 UTC (rev 399301)
+++ PKGBUILD2020-11-05 14:01:27 UTC (rev 399302)
@@ -1,7 +1,7 @@
 # Maintainer: Andreas Radke 
 
 pkgbase=linux-lts
-pkgver=5.4.74
+pkgver=5.4.75
 pkgrel=1
 pkgdesc='LTS Linux'
 url="https://www.kernel.org/;
@@ -25,10 +25,10 @@
   '647F28654894E3BD457199BE38DBBDC86092693E'  # Greg Kroah-Hartman
 )
 # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
-sha256sums=('ec04f4ade1146a3b458a1ac3dc2059188cbb62cd51d2e66fcd8397fcec153ab7'
+sha256sums=('d2466fd6eb5433e7bf287b617b11b2640c65a7ea93a57eb7a80d7f537cbc1470'
 'SKIP'
-'6a2ee8f822810f594921aa85087e4cf0a17c68518d395586fd9c56b6c7e63dad'
-'239c842020931f10c7a01b857bae9e24ed75661293555de6a9b0033de8942628'
+'760ec068a7a1d8e6d4af17c2a77bd0bcec6198ba31e003f6304313d43e3632a0'
+'0160432bb1a8e695aac2b389852fb2fa0967b4e56633d3af21232d62292195c2'
 '4fd74bb2a7101d700fba91806141339d8c9e46a14f8fc1fe276cfb68f1eec0f5'
 'b7c814c8183e4645947a6dcc3cbf80431de8a8fd4e895b780f9a5fd92f82cb8e')
 

Modified: config
===
--- config  2020-11-05 13:57:18 UTC (rev 399301)
+++ config  2020-11-05 14:01:27 UTC (rev 399302)
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.4.62 Kernel Configuration
+# Linux/x86 5.4.75 Kernel Configuration
 #
 
 #
@@ -6600,9 +6600,6 @@
 # Console display driver support
 #
 CONFIG_VGA_CONSOLE=y
-CONFIG_VGACON_SOFT_SCROLLBACK=y
-CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
-# CONFIG_VGACON_SOFT_SCROLLBACK_PERSISTENT_ENABLE_BY_DEFAULT is not set
 CONFIG_DUMMY_CONSOLE=y
 CONFIG_DUMMY_CONSOLE_COLUMNS=80
 CONFIG_DUMMY_CONSOLE_ROWS=25


[arch-commits] Commit in linux-lts/trunk (3 files)

2020-10-29 Thread Jan Steffens via arch-commits
Date: Thursday, October 29, 2020 @ 18:12:22
  Author: heftig
Revision: 399009

5.4.73-1

Modified:
  
linux-lts/trunk/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
  linux-lts/trunk/PKGBUILD
Deleted:
  
linux-lts/trunk/0003-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch

-+
 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch |6 
 0003-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch |   70 
--
 PKGBUILD|8 -
 3 files changed, 6 insertions(+), 78 deletions(-)

Modified: 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
===
--- 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 
2020-10-29 18:11:55 UTC (rev 399008)
+++ 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 
2020-10-29 18:12:22 UTC (rev 399009)
@@ -40,7 +40,7 @@
bool "PID Namespaces"
default y
 diff --git a/kernel/fork.c b/kernel/fork.c
-index 594272569a80..96a55931654c 100644
+index e3d5963d8c6f..26bca4170e37 100644
 --- a/kernel/fork.c
 +++ b/kernel/fork.c
 @@ -106,6 +106,11 @@
@@ -55,7 +55,7 @@
  
  /*
   * Minimum number of threads to boot the kernel
-@@ -1780,6 +1785,10 @@ static __latent_entropy struct task_struct 
*copy_process(
+@@ -1799,6 +1804,10 @@ static __latent_entropy struct task_struct 
*copy_process(
if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == 
(CLONE_NEWUSER|CLONE_FS))
return ERR_PTR(-EINVAL);
  
@@ -66,7 +66,7 @@
/*
 * Thread groups must share signals as well, and detached threads
 * can only be started up within the thread group.
-@@ -2838,6 +2847,12 @@ int ksys_unshare(unsigned long unshare_flags)
+@@ -2859,6 +2868,12 @@ int ksys_unshare(unsigned long unshare_flags)
if (unshare_flags & CLONE_NEWNS)
unshare_flags |= CLONE_FS;
  

Deleted: 0003-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch
===
--- 0003-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch 
2020-10-29 18:11:55 UTC (rev 399008)
+++ 0003-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch 
2020-10-29 18:12:22 UTC (rev 399009)
@@ -1,70 +0,0 @@
-From  Mon Sep 17 00:00:00 2001
-From: Hans de Goede 
-Date: Wed, 14 Oct 2020 16:41:58 +0200
-Subject: [PATCH] i2c: core: Restore acpi_walk_dep_device_list() getting called
- after registering the ACPI i2c devs
-
-Commit 21653a4181ff ("i2c: core: Call i2c_acpi_install_space_handler()
-before i2c_acpi_register_devices()")'s intention was to only move the
-acpi_install_address_space_handler() call to the point before where
-the ACPI declared i2c-children of the adapter where instantiated by
-i2c_acpi_register_devices().
-
-But i2c_acpi_install_space_handler() had a call to
-acpi_walk_dep_device_list() hidden (that is I missed it) at the end
-of it, so as an unwanted side-effect now acpi_walk_dep_device_list()
-was also being called before i2c_acpi_register_devices().
-
-Move the acpi_walk_dep_device_list() call to the end of
-i2c_acpi_register_devices(), so that it is once again called *after*
-the i2c_client-s hanging of the adapter have been created.
-
-This fixes the Microsoft Surface Go 2 hanging at boot.
-
-Fixes: 21653a4181ff ("i2c: core: Call i2c_acpi_install_space_handler() before 
i2c_acpi_register_devices()")
-Suggested-by: Maximilian Luz 
-Reported-and-tested-by: Kieran Bingham 
-Signed-off-by: Hans de Goede 

- drivers/i2c/i2c-core-acpi.c | 11 ++-
- 1 file changed, 10 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/i2c/i2c-core-acpi.c b/drivers/i2c/i2c-core-acpi.c
-index ce70b5288472..c70983780ae7 100644
 a/drivers/i2c/i2c-core-acpi.c
-+++ b/drivers/i2c/i2c-core-acpi.c
-@@ -264,16 +264,26 @@ static acpi_status i2c_acpi_add_device(acpi_handle 
handle, u32 level,
- void i2c_acpi_register_devices(struct i2c_adapter *adap)
- {
-   acpi_status status;
-+  acpi_handle handle;
- 
-   if (!has_acpi_companion(>dev))
-   return;
- 
-   status = acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
-I2C_ACPI_MAX_SCAN_DEPTH,
-i2c_acpi_add_device, NULL,
-adap, NULL);
-   if (ACPI_FAILURE(status))
-   dev_warn(>dev, "failed to enumerate I2C slaves\n");
-+
-+  if (!adap->dev.parent)
-+  return;
-+
-+  handle = ACPI_HANDLE(adap->dev.parent);
-+  if (!handle)
-+  return;
-+
-+  acpi_walk_dep_device_list(handle);
- }
- 
- const struct acpi_device_id *
-@@ -737,7 +747,6 @@ int i2c_acpi_install_space_handler(struct i2c_adapter 
*adapter)
-   return -ENOMEM;
-   }
- 
--  

[arch-commits] Commit in linux-lts/trunk (3 files)

2020-07-16 Thread Jan Steffens via arch-commits
Date: Thursday, July 16, 2020 @ 20:52:23
  Author: heftig
Revision: 391979

5.4.52-1

Added:
  
linux-lts/trunk/0002-virt-vbox-Add-support-for-the-new-VBG_IOCTL_ACQUIRE_.patch
Modified:
  linux-lts/trunk/PKGBUILD
Deleted:
  
linux-lts/trunk/0002-Revert-ath9k-Fix-general-protection-fault-in-ath9k_h.patch

-+
 0002-Revert-ath9k-Fix-general-protection-fault-in-ath9k_h.patch |  254 ---
 0002-virt-vbox-Add-support-for-the-new-VBG_IOCTL_ACQUIRE_.patch |  784 
++
 PKGBUILD|8 
 3 files changed, 788 insertions(+), 258 deletions(-)

Deleted: 0002-Revert-ath9k-Fix-general-protection-fault-in-ath9k_h.patch
===
--- 0002-Revert-ath9k-Fix-general-protection-fault-in-ath9k_h.patch 
2020-07-16 20:24:10 UTC (rev 391978)
+++ 0002-Revert-ath9k-Fix-general-protection-fault-in-ath9k_h.patch 
2020-07-16 20:52:23 UTC (rev 391979)
@@ -1,254 +0,0 @@
-From  Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Viktor=20J=C3=A4gersk=C3=BCpper?=
- 
-Date: Wed, 1 Jul 2020 23:32:28 +0200
-Subject: [PATCH] Revert "ath9k: Fix general protection fault in
- ath9k_hif_usb_rx_cb"
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This reverts commit 2bbcaaee1fcb ("ath9k: Fix general protection fault
-in ath9k_hif_usb_rx_cb") because the driver gets stuck like this:
-
-  [5.778803] usb 1-5: Manufacturer: ATHEROS
-  [   21.697488] usb 1-5: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw 
requested
-  [   21.701377] usbcore: registered new interface driver ath9k_htc
-  [   22.053705] usb 1-5: ath9k_htc: Transferred FW: 
ath9k_htc/htc_9271-1.4.0.fw, size: 51008
-  [   22.306182] ath9k_htc 1-5:1.0: ath9k_htc: HTC initialized with 33 credits
-  [  115.708513] ath9k_htc: Failed to initialize the device
-  [  115.708683] usb 1-5: ath9k_htc: USB layer deinitialized
-
-Reported-by: Roman Mamedov 
-Ref: https://bugzilla.kernel.org/show_bug.cgi?id=208251
-Fixes: 2bbcaaee1fcb ("ath9k: Fix general protection fault in 
ath9k_hif_usb_rx_cb")
-Tested-by: Viktor Jägersküpper 
-Signed-off-by: Viktor Jägersküpper 

- drivers/net/wireless/ath/ath9k/hif_usb.c | 48 ++--
- drivers/net/wireless/ath/ath9k/hif_usb.h |  5 ---
- 2 files changed, 11 insertions(+), 42 deletions(-)
-
-diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c 
b/drivers/net/wireless/ath/ath9k/hif_usb.c
-index 4ed21dad6a8e..6049d3766c64 100644
 a/drivers/net/wireless/ath/ath9k/hif_usb.c
-+++ b/drivers/net/wireless/ath/ath9k/hif_usb.c
-@@ -643,9 +643,9 @@ static void ath9k_hif_usb_rx_stream(struct hif_device_usb 
*hif_dev,
- 
- static void ath9k_hif_usb_rx_cb(struct urb *urb)
- {
--  struct rx_buf *rx_buf = (struct rx_buf *)urb->context;
--  struct hif_device_usb *hif_dev = rx_buf->hif_dev;
--  struct sk_buff *skb = rx_buf->skb;
-+  struct sk_buff *skb = (struct sk_buff *) urb->context;
-+  struct hif_device_usb *hif_dev =
-+  usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0));
-   int ret;
- 
-   if (!skb)
-@@ -685,15 +685,14 @@ static void ath9k_hif_usb_rx_cb(struct urb *urb)
-   return;
- free:
-   kfree_skb(skb);
--  kfree(rx_buf);
- }
- 
- static void ath9k_hif_usb_reg_in_cb(struct urb *urb)
- {
--  struct rx_buf *rx_buf = (struct rx_buf *)urb->context;
--  struct hif_device_usb *hif_dev = rx_buf->hif_dev;
--  struct sk_buff *skb = rx_buf->skb;
-+  struct sk_buff *skb = (struct sk_buff *) urb->context;
-   struct sk_buff *nskb;
-+  struct hif_device_usb *hif_dev =
-+  usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0));
-   int ret;
- 
-   if (!skb)
-@@ -751,7 +750,6 @@ static void ath9k_hif_usb_reg_in_cb(struct urb *urb)
-   return;
- free:
-   kfree_skb(skb);
--  kfree(rx_buf);
-   urb->context = NULL;
- }
- 
-@@ -797,7 +795,7 @@ static int ath9k_hif_usb_alloc_tx_urbs(struct 
hif_device_usb *hif_dev)
-   init_usb_anchor(_dev->mgmt_submitted);
- 
-   for (i = 0; i < MAX_TX_URB_NUM; i++) {
--  tx_buf = kzalloc(sizeof(*tx_buf), GFP_KERNEL);
-+  tx_buf = kzalloc(sizeof(struct tx_buf), GFP_KERNEL);
-   if (!tx_buf)
-   goto err;
- 
-@@ -834,146 +832,122 @@ static void ath9k_hif_usb_dealloc_rx_urbs(struct 
hif_device_usb *hif_dev)
- 
- static int ath9k_hif_usb_alloc_rx_urbs(struct hif_device_usb *hif_dev)
- {
--  struct rx_buf *rx_buf = NULL;
--  struct sk_buff *skb = NULL;
-   struct urb *urb = NULL;
-+  struct sk_buff *skb = NULL;
-   int i, ret;
- 
-   init_usb_anchor(_dev->rx_submitted);
-   spin_lock_init(_dev->rx_lock);
- 
-   for (i = 0; i < MAX_RX_URB_NUM; i++) {
- 
--  rx_buf = kzalloc(sizeof(*rx_buf), GFP_KERNEL);
--  if (!rx_buf) {
--  ret 

[arch-commits] Commit in linux-lts/trunk (3 files)

2020-07-01 Thread Jan Steffens via arch-commits
Date: Wednesday, July 1, 2020 @ 15:39:37
  Author: heftig
Revision: 390694

5.4.50-1

Added:
  linux-lts/trunk/0002-ALSA-usb-audio-Fix-packet-size-calculation.patch
  
linux-lts/trunk/0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch
Modified:
  linux-lts/trunk/PKGBUILD

-+
 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch   |   35 
 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch |   43 
++
 PKGBUILD|8 +
 3 files changed, 84 insertions(+), 2 deletions(-)

Added: 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch
===
--- 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch   
(rev 0)
+++ 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch   2020-07-01 
15:39:37 UTC (rev 390694)
@@ -0,0 +1,35 @@
+From f28f67e0c17c11790c8795e7f727d3e39c4d5c92 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy 
+Date: Mon, 29 Jun 2020 05:59:33 +0300
+Subject: [PATCH 1/2] ALSA: usb-audio: Fix packet size calculation
+
+Commit f0bd62b64016 ("ALSA: usb-audio: Improve frames size computation")
+introduced a regression for devices which have playback endpoints with
+bInterval > 1. Fix this by taking ep->datainterval into account.
+
+Note that frame and fps are actually mean packet and packets per second
+in the code introduces by the mentioned commit. This will be fixed in a
+follow-up patch.
+
+Fixes: f0bd62b64016 ("ALSA: usb-audio: Improve frames size computation")
+BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208353
+Signed-off-by: Alexander Tsoy 
+---
+ sound/usb/endpoint.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
+index 9bea7d3f99f8..11f23778f0a5 100644
+--- a/sound/usb/endpoint.c
 b/sound/usb/endpoint.c
+@@ -1093,6 +1093,7 @@ int snd_usb_endpoint_set_params(struct snd_usb_endpoint 
*ep,
+   ep->freqn = get_usb_high_speed_rate(rate);
+   ep->fps = 8000;
+   }
++  ep->fps >>= ep->datainterval;
+ 
+   ep->sample_rem = rate % ep->fps;
+   ep->framesize[0] = rate / ep->fps;
+-- 
+2.27.0
+

Added: 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch
===
--- 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch 
(rev 0)
+++ 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch 
2020-07-01 15:39:37 UTC (rev 390694)
@@ -0,0 +1,43 @@
+From e140fa77c6a3f6b5282553ac91be3dae6cc7cc0b Mon Sep 17 00:00:00 2001
+From: Nicholas Kazlauskas 
+Date: Mon, 29 Jun 2020 13:03:52 -0400
+Subject: [PATCH 2/2] drm/amd/display: Only revalidate bandwidth on medium and
+ fast updates
+
+[Why]
+Changes that are fast don't require updating DLG parameters making
+this call unnecessary. Considering this is an expensive call it should
+not be done on every flip.
+
+[How]
+Guard the validation to only happen if update type isn't FAST.
+
+Signed-off-by: Nicholas Kazlauskas 
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 10 ++
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c 
b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 47e7d11ca0c9..68d56a91d44b 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
 b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -2226,10 +2226,12 @@ void dc_commit_updates_for_stream(struct dc *dc,
+ 
+   copy_stream_update_to_stream(dc, context, stream, stream_update);
+ 
+-  if (!dc->res_pool->funcs->validate_bandwidth(dc, context, false)) {
+-  DC_ERROR("Mode validation failed for stream update!\n");
+-  dc_release_state(context);
+-  return;
++  if (update_type > UPDATE_TYPE_FAST) {
++  if (!dc->res_pool->funcs->validate_bandwidth(dc, context, 
false)) {
++  DC_ERROR("Mode validation failed for stream update!\n");
++  dc_release_state(context);
++  return;
++  }
+   }
+ 
+   commit_planes_for_stream(
+-- 
+2.27.0
+

Modified: PKGBUILD
===
--- PKGBUILD2020-07-01 15:39:32 UTC (rev 390693)
+++ PKGBUILD2020-07-01 15:39:37 UTC (rev 390694)
@@ -1,7 +1,7 @@
 # Maintainer: Andreas Radke 
 
 pkgbase=linux-lts
-pkgver=5.4.49
+pkgver=5.4.50
 pkgrel=1
 pkgdesc='LTS Linux'
 url="https://www.kernel.org/;
@@ -17,6 +17,8 @@
   
https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
   config # the main kernel config file
   0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
+  0002-ALSA-usb-audio-Fix-packet-size-calculation.patch
+  0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch
   

[arch-commits] Commit in linux-lts/trunk (3 files)

2020-05-27 Thread Jan Steffens via arch-commits
Date: Thursday, May 28, 2020 @ 00:24:01
  Author: heftig
Revision: 387736

5.4.43-1

Modified:
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/config
Deleted:
  linux-lts/trunk/0002-gcc-common.h-Update-for-GCC-10.patch

---+
 0002-gcc-common.h-Update-for-GCC-10.patch |   92 
 PKGBUILD  |8 --
 config|7 --
 3 files changed, 6 insertions(+), 101 deletions(-)

Deleted: 0002-gcc-common.h-Update-for-GCC-10.patch
===
--- 0002-gcc-common.h-Update-for-GCC-10.patch   2020-05-28 00:23:48 UTC (rev 
387735)
+++ 0002-gcc-common.h-Update-for-GCC-10.patch   2020-05-28 00:24:01 UTC (rev 
387736)
@@ -1,92 +0,0 @@
-From 3651deb9b0421f9f3f88d95c9be02b15517927cf Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?=
- 
-Date: Tue, 7 Apr 2020 13:32:59 +0200
-Subject: [PATCH] gcc-common.h: Update for GCC 10
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Remove "params.h" include, which has been dropped in GCC 10.
-
-Remove is_a_helper() macro, which is now defined in gimple.h, as seen
-when running './scripts/gcc-plugin.sh g++ g++ gcc':
-
-In file included from :1:
-./gcc-plugins/gcc-common.h:852:13: error: redefinition of ‘static bool 
is_a_helper::test(U*) [with U = const gimple; T = const ggoto*]’
-  852 | inline bool is_a_helper::test(const_gimple gs)
-  | ^~
-In file included from ./gcc-plugins/gcc-common.h:125,
- from :1:
-/usr/lib/gcc/x86_64-redhat-linux/10/plugin/include/gimple.h:1037:1: note: 
‘static bool is_a_helper::test(U*) [with U = const gimple; T = const 
ggoto*]’ previously declared here
- 1037 | is_a_helper ::test (const gimple *gs)
-  | ^~~
-
-Add -Wno-format-diag to scripts/gcc-plugins/Makefile to avoid
-meaningless warnings from error() formats used by plugins:
-
-scripts/gcc-plugins/structleak_plugin.c: In function ‘int 
plugin_init(plugin_name_args*, plugin_gcc_version*)’:
-scripts/gcc-plugins/structleak_plugin.c:253:12: warning: unquoted sequence of 
2 consecutive punctuation characters ‘'-’ in format [-Wformat-diag]
-  253 |   error(G_("unknown option '-fplugin-arg-%s-%s'"), plugin_name, 
argv[i].key);
-  |^
-
-Signed-off-by: Frédéric Pierret (fepitre) 
-Link: 
https://lore.kernel.org/r/20200407113259.270172-1-frederic.pier...@qubes-os.org
-[kees: include -Wno-format-diag for plugin builds]
-Signed-off-by: Kees Cook 

- scripts/gcc-plugins/Makefile | 1 +
- scripts/gcc-plugins/gcc-common.h | 4 
- 2 files changed, 5 insertions(+)
-
-diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile
-index aa0d0ec6936d..9e95862f2788 100644
 a/scripts/gcc-plugins/Makefile
-+++ b/scripts/gcc-plugins/Makefile
-@@ -11,6 +11,7 @@ else
-   HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 
-fno-rtti
-   HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
-   HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable
-+  HOST_EXTRACXXFLAGS += -Wno-format-diag
-   export HOST_EXTRACXXFLAGS
- endif
- 
-diff --git a/scripts/gcc-plugins/gcc-common.h 
b/scripts/gcc-plugins/gcc-common.h
-index 17f06079a712..9ad76b7f3f10 100644
 a/scripts/gcc-plugins/gcc-common.h
-+++ b/scripts/gcc-plugins/gcc-common.h
-@@ -35,7 +35,9 @@
- #include "ggc.h"
- #include "timevar.h"
- 
-+#if BUILDING_GCC_VERSION < 1
- #include "params.h"
-+#endif
- 
- #if BUILDING_GCC_VERSION <= 4009
- #include "pointer-set.h"
-@@ -847,19 +849,21 @@ static inline gimple gimple_build_assign_with_ops(enum 
tree_code subcode, tree l
-   return gimple_build_assign(lhs, subcode, op1, op2 PASS_MEM_STAT);
- }
- 
-+#if BUILDING_GCC_VERSION < 1
- template <>
- template <>
- inline bool is_a_helper::test(const_gimple gs)
- {
-   return gs->code == GIMPLE_GOTO;
- }
- 
- template <>
- template <>
- inline bool is_a_helper::test(const_gimple gs)
- {
-   return gs->code == GIMPLE_RETURN;
- }
-+#endif
- 
- static inline gasm *as_a_gasm(gimple stmt)
- {
--- 
-2.26.2
-

Modified: PKGBUILD
===
--- PKGBUILD2020-05-28 00:23:48 UTC (rev 387735)
+++ PKGBUILD2020-05-28 00:24:01 UTC (rev 387736)
@@ -1,7 +1,7 @@
 # Maintainer: Andreas Radke 
 
 pkgbase=linux-lts
-pkgver=5.4.42
+pkgver=5.4.43
 pkgrel=1
 pkgdesc='LTS Linux'
 url="https://www.kernel.org/;
@@ -17,7 +17,6 @@
   
https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
   config # the main kernel config file
   0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
-  0002-gcc-common.h-Update-for-GCC-10.patch
   sphinx-workaround.patch
 )
 validpgpkeys=(
@@ -25,11 +24,10 @@
   

[arch-commits] Commit in linux-lts/trunk (3 files)

2020-04-21 Thread Jan Steffens via arch-commits
Date: Tuesday, April 21, 2020 @ 11:48:34
  Author: heftig
Revision: 380667

5.4.34-1

Modified:
  linux-lts/trunk/PKGBUILD
Deleted:
  
linux-lts/trunk/drm-amdgpu-fix-the-hw-hang-during-perform-system-reboot-and-reset.patch
  
linux-lts/trunk/revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch

-+
 PKGBUILD|   14 
--
 drm-amdgpu-fix-the-hw-hang-during-perform-system-reboot-and-reset.patch |   37 
---
 revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch|   50 
--
 3 files changed, 4 insertions(+), 97 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-04-21 11:06:49 UTC (rev 380666)
+++ PKGBUILD2020-04-21 11:48:34 UTC (rev 380667)
@@ -1,8 +1,8 @@
 # Maintainer: Andreas Radke 
 
 pkgbase=linux-lts
-pkgver=5.4.33
-pkgrel=3
+pkgver=5.4.34
+pkgrel=1
 pkgdesc='LTS Linux'
 url="https://www.kernel.org/;
 arch=(x86_64)
@@ -18,10 +18,6 @@
   config # the main kernel config file
   0001-add-sysctl-and-CONFIG-for-unprivileged_userns_clone.patch
   sphinx-workaround.patch
-
-  # From stable-queue
-  revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
-  drm-amdgpu-fix-the-hw-hang-during-perform-system-reboot-and-reset.patch
 )
 validpgpkeys=(
   'ABAF11C65A2970B130ABE3C479BE3E4300411886'  # Linus Torvalds
@@ -28,13 +24,11 @@
   '647F28654894E3BD457199BE38DBBDC86092693E'  # Greg Kroah-Hartman
 )
 # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
-sha256sums=('b5579621302a6169b389b64dd9ef084df3bb2f11d91dd73273f76e2323223861'
+sha256sums=('903ec1334daba6a626688f799cc947b420cf6fc8ce83055313dc4e9978d64cd2'
 'SKIP'
 '8b202067f6f0adbe2f8d4290624005f4fa1fff32aaa42f979c9ab03f6b74b62f'
 'a13581d3c6dc595206e4fe7fcf6b542e7a1bdbe96101f0f010fc5be49f99baf2'
-'b7c814c8183e4645947a6dcc3cbf80431de8a8fd4e895b780f9a5fd92f82cb8e'
-'9fd93b899e03accd31ab357a70e538220c424ce8769e63a8b961fa627ab27c0a'
-'3015cbbcd0527bef418c45febed7b18a97e1783901ecf9b3693024a9ee867138')
+'b7c814c8183e4645947a6dcc3cbf80431de8a8fd4e895b780f9a5fd92f82cb8e')
 
 export KBUILD_BUILD_HOST=archlinux
 export KBUILD_BUILD_USER=$pkgbase

Deleted: drm-amdgpu-fix-the-hw-hang-during-perform-system-reboot-and-reset.patch
===
--- drm-amdgpu-fix-the-hw-hang-during-perform-system-reboot-and-reset.patch 
2020-04-21 11:06:49 UTC (rev 380666)
+++ drm-amdgpu-fix-the-hw-hang-during-perform-system-reboot-and-reset.patch 
2020-04-21 11:48:34 UTC (rev 380667)
@@ -1,37 +0,0 @@
-From b2a7e9735ab2864330be9d00d7f38c961c28de5d Mon Sep 17 00:00:00 2001
-From: Prike Liang 
-Date: Mon, 13 Apr 2020 21:41:14 +0800
-Subject: drm/amdgpu: fix the hw hang during perform system reboot and reset
-
-From: Prike Liang 
-
-commit b2a7e9735ab2864330be9d00d7f38c961c28de5d upstream.
-
-The system reboot failed as some IP blocks enter power gate before perform
-hw resource destory. Meanwhile use unify interface to set device CGPG to ungate
-state can simplify the amdgpu poweroff or reset ungate guard.
-
-Fixes: 487eca11a321ef ("drm/amdgpu: fix gfx hang during suspend with video 
playback (v2)")
-Signed-off-by: Prike Liang 
-Tested-by: Mengbing Wang 
-Tested-by: Paul Menzel 
-Acked-by: Alex Deucher 
-Signed-off-by: Alex Deucher 
-Cc: sta...@vger.kernel.org
-Signed-off-by: Greg Kroah-Hartman 
-

- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |2 ++
- 1 file changed, 2 insertions(+)
-
 a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
-@@ -2176,6 +2176,8 @@ static int amdgpu_device_ip_suspend_phas
- {
-   int i, r;
- 
-+  amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
-+  amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
- 
-   for (i = adev->num_ip_blocks - 1; i >= 0; i--) {
-   if (!adev->ip_blocks[i].status.valid)

Deleted: revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
===
--- revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
2020-04-21 11:06:49 UTC (rev 380666)
+++ revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
2020-04-21 11:48:34 UTC (rev 380667)
@@ -1,50 +0,0 @@
-From df541c011f5d731447d5c99fd77d77c2191d0c6d Mon Sep 17 00:00:00 2001
-From: Greg Kroah-Hartman 
-Date: Sat, 18 Apr 2020 11:29:04 +0200
-Subject: Revert "ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()"
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Greg Kroah-Hartman 
-
-This reverts commit ce7a61a0d57d2dd613941d8aef82a5b54fb2e396 which is
-commit 65a691f5f8f0bb63d6a82eec7b0ffd193d8d8a5f upstream.
-
-Rafael writes:
-   It has 

[arch-commits] Commit in linux-lts/trunk (3 files)

2020-04-18 Thread Jan Steffens via arch-commits
Date: Saturday, April 18, 2020 @ 23:08:22
  Author: heftig
Revision: 380506

5.4.33-2

Added:
  
linux-lts/trunk/revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
Modified:
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/config

--+
 PKGBUILD |8 +
 config   |4 
 revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch |   50 
++
 3 files changed, 57 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-04-18 23:08:05 UTC (rev 380505)
+++ PKGBUILD2020-04-18 23:08:22 UTC (rev 380506)
@@ -2,7 +2,7 @@
 
 pkgbase=linux-lts
 pkgver=5.4.33
-pkgrel=1
+pkgrel=2
 pkgdesc='LTS Linux'
 url="https://www.kernel.org/;
 arch=(x86_64)
@@ -18,6 +18,7 @@
   config # the main kernel config file
   0001-add-sysctl-and-CONFIG-for-unprivileged_userns_clone.patch
   sphinx-workaround.patch
+  revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
 )
 validpgpkeys=(
   'ABAF11C65A2970B130ABE3C479BE3E4300411886'  # Linus Torvalds
@@ -26,9 +27,10 @@
 # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
 sha256sums=('b5579621302a6169b389b64dd9ef084df3bb2f11d91dd73273f76e2323223861'
 'SKIP'
-'0c318ec33c82b4ea41117b4d0ab464775e13dc6e8b20aea6c655eb4887eafa0e'
+'8b202067f6f0adbe2f8d4290624005f4fa1fff32aaa42f979c9ab03f6b74b62f'
 'a13581d3c6dc595206e4fe7fcf6b542e7a1bdbe96101f0f010fc5be49f99baf2'
-'b7c814c8183e4645947a6dcc3cbf80431de8a8fd4e895b780f9a5fd92f82cb8e')
+'b7c814c8183e4645947a6dcc3cbf80431de8a8fd4e895b780f9a5fd92f82cb8e'
+'9fd93b899e03accd31ab357a70e538220c424ce8769e63a8b961fa627ab27c0a')
 
 export KBUILD_BUILD_HOST=archlinux
 export KBUILD_BUILD_USER=$pkgbase

Modified: config
===
--- config  2020-04-18 23:08:05 UTC (rev 380505)
+++ config  2020-04-18 23:08:22 UTC (rev 380506)
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.4.30 Kernel Configuration
+# Linux/x86 5.4.33 Kernel Configuration
 #
 
 #
@@ -4440,7 +4440,7 @@
 CONFIG_I2C_FSI=m
 # end of I2C Hardware Bus support
 
-# CONFIG_I2C_STUB is not set
+CONFIG_I2C_STUB=m
 CONFIG_I2C_SLAVE=y
 CONFIG_I2C_SLAVE_EEPROM=m
 # CONFIG_I2C_DEBUG_CORE is not set

Added: revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
===
--- revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
(rev 0)
+++ revert-acpi-ec-do-not-clear-boot_ec_is_ecdt-in-acpi_ec_add.patch
2020-04-18 23:08:22 UTC (rev 380506)
@@ -0,0 +1,50 @@
+From df541c011f5d731447d5c99fd77d77c2191d0c6d Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman 
+Date: Sat, 18 Apr 2020 11:29:04 +0200
+Subject: Revert "ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Greg Kroah-Hartman 
+
+This reverts commit ce7a61a0d57d2dd613941d8aef82a5b54fb2e396 which is
+commit 65a691f5f8f0bb63d6a82eec7b0ffd193d8d8a5f upstream.
+
+Rafael writes:
+   It has not been marked for -stable or otherwise requested to be
+   included AFAICS.  Also it depends on other mainline commits that
+   have not been included into 5.6.5.
+
+Reported-by: Toralf Förster 
+Reported-by: Rafael J. Wysocki 
+Cc: Sasha Levin 
+Signed-off-by: Greg Kroah-Hartman 
+---
+ drivers/acpi/ec.c |6 ++
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+--- a/drivers/acpi/ec.c
 b/drivers/acpi/ec.c
+@@ -1573,6 +1573,7 @@ static int acpi_ec_add(struct acpi_devic
+ 
+   if (boot_ec && ec->command_addr == boot_ec->command_addr &&
+   ec->data_addr == boot_ec->data_addr) {
++  boot_ec_is_ecdt = false;
+   /*
+* Trust PNP0C09 namespace location rather than
+* ECDT ID. But trust ECDT GPE rather than _GPE
+@@ -1592,12 +1593,9 @@ static int acpi_ec_add(struct acpi_devic
+ 
+   if (ec == boot_ec)
+   acpi_handle_info(boot_ec->handle,
+-   "Boot %s EC initialization complete\n",
++   "Boot %s EC used to handle transactions and 
events\n",
+boot_ec_is_ecdt ? "ECDT" : "DSDT");
+ 
+-  acpi_handle_info(ec->handle,
+-   "EC: Used to handle transactions and events\n");
+-
+   device->driver_data = ec;
+ 
+   ret = !!request_region(ec->data_addr, 1, "EC data");


[arch-commits] Commit in linux-lts/trunk (3 files)

2020-03-05 Thread Levente Polyak via arch-commits
Date: Thursday, March 5, 2020 @ 20:49:00
  Author: anthraxx
Revision: 376802

upgpkg: linux-lts 5.4.24-1: add back 
sysctl-and-CONFIG-for-unprivileged_userns_clone

Added:
  linux-lts/trunk/0001-add-sysctl-and-CONFIG-for-unprivileged_userns_clone.patch
Modified:
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/config

+
 0001-add-sysctl-and-CONFIG-for-unprivileged_userns_clone.patch |  132 
++
 PKGBUILD   |8 
 config |1 
 3 files changed, 138 insertions(+), 3 deletions(-)

Added: 0001-add-sysctl-and-CONFIG-for-unprivileged_userns_clone.patch
===
--- 0001-add-sysctl-and-CONFIG-for-unprivileged_userns_clone.patch  
(rev 0)
+++ 0001-add-sysctl-and-CONFIG-for-unprivileged_userns_clone.patch  
2020-03-05 20:49:00 UTC (rev 376802)
@@ -0,0 +1,132 @@
+From 6136ffb3d88e9f044260f8288d2d0a1edd64379e Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" 
+Date: Mon, 16 Sep 2019 04:53:20 +0200
+Subject: [PATCH] ZEN: Add sysctl and CONFIG to disallow unprivileged
+ CLONE_NEWUSER
+
+Our default behavior continues to match the vanilla kernel.
+---
+ init/Kconfig| 16 
+ kernel/fork.c   | 15 +++
+ kernel/sysctl.c | 12 
+ kernel/user_namespace.c |  7 +++
+ 4 files changed, 50 insertions(+)
+
+diff --git a/init/Kconfig b/init/Kconfig
+index bd7d650d4a99..658f9c052151 100644
+--- a/init/Kconfig
 b/init/Kconfig
+@@ -1091,6 +1091,22 @@ config USER_NS
+ 
+ If unsure, say N.
+ 
++config USER_NS_UNPRIVILEGED
++  bool "Allow unprivileged users to create namespaces"
++  default y
++  depends on USER_NS
++  help
++When disabled, unprivileged users will not be able to create
++new namespaces. Allowing users to create their own namespaces
++has been part of several recent local privilege escalation
++exploits, so if you need user namespaces but are
++paranoid^Wsecurity-conscious you want to disable this.
++
++This setting can be overridden at runtime via the
++kernel.unprivileged_userns_clone sysctl.
++
++If unsure, say Y.
++
+ config PID_NS
+   bool "PID Namespaces"
+   default y
+diff --git a/kernel/fork.c b/kernel/fork.c
+index 541fd805fb88..ffd57c812153 100644
+--- a/kernel/fork.c
 b/kernel/fork.c
+@@ -106,6 +106,11 @@
+ 
+ #define CREATE_TRACE_POINTS
+ #include 
++#ifdef CONFIG_USER_NS
++extern int unprivileged_userns_clone;
++#else
++#define unprivileged_userns_clone 0
++#endif
+ 
+ /*
+  * Minimum number of threads to boot the kernel
+@@ -1788,6 +1793,10 @@ static __latent_entropy struct task_struct 
*copy_process(
+   if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == 
(CLONE_NEWUSER|CLONE_FS))
+   return ERR_PTR(-EINVAL);
+ 
++  if ((clone_flags & CLONE_NEWUSER) && !unprivileged_userns_clone)
++  if (!capable(CAP_SYS_ADMIN))
++  return ERR_PTR(-EPERM);
++
+   /*
+* Thread groups must share signals as well, and detached threads
+* can only be started up within the thread group.
+@@ -2819,6 +2828,12 @@ int ksys_unshare(unsigned long unshare_flags)
+   if (unshare_flags & CLONE_NEWNS)
+   unshare_flags |= CLONE_FS;
+ 
++  if ((unshare_flags & CLONE_NEWUSER) && !unprivileged_userns_clone) {
++  err = -EPERM;
++  if (!capable(CAP_SYS_ADMIN))
++  goto bad_unshare_out;
++  }
++
+   err = check_unshare_flags(unshare_flags);
+   if (err)
+   goto bad_unshare_out;
+diff --git a/kernel/sysctl.c b/kernel/sysctl.c
+index 078950d9605b..baead3605bbe 100644
+--- a/kernel/sysctl.c
 b/kernel/sysctl.c
+@@ -110,6 +110,9 @@ extern int core_uses_pid;
+ extern char core_pattern[];
+ extern unsigned int core_pipe_limit;
+ #endif
++#ifdef CONFIG_USER_NS
++extern int unprivileged_userns_clone;
++#endif
+ extern int pid_max;
+ extern int pid_max_min, pid_max_max;
+ extern int percpu_pagelist_fraction;
+@@ -545,6 +548,15 @@ static struct ctl_table kern_table[] = {
+   .proc_handler   = proc_dointvec,
+   },
+ #endif
++#ifdef CONFIG_USER_NS
++  {
++  .procname   = "unprivileged_userns_clone",
++  .data   = _userns_clone,
++  .maxlen = sizeof(int),
++  .mode   = 0644,
++  .proc_handler   = proc_dointvec,
++  },
++#endif
+ #ifdef CONFIG_PROC_SYSCTL
+   {
+   .procname   = "tainted",
+diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
+index 8eadadc478f9..c36ecd19562c 100644
+--- a/kernel/user_namespace.c
 b/kernel/user_namespace.c
+@@ -21,6 +21,13 @@
+ #include 
+ #include 
+ 
++/* sysctl */

[arch-commits] Commit in linux-lts/trunk (3 files)

2020-02-05 Thread Andreas Radke via arch-commits
Date: Wednesday, February 5, 2020 @ 20:11:28
  Author: andyrtr
Revision: 374689

upgpkg: linux-lts 5.4.17-1: upstream update 5.4.17

Modified:
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/config
Deleted:
  
linux-lts/trunk/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch

-+
 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch |  132 
 PKGBUILD|   16 
 config  | 1856 
+++---
 3 files changed, 1323 insertions(+), 681 deletions(-)

Deleted: 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
===
--- 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 
2020-02-05 19:05:12 UTC (rev 374688)
+++ 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 
2020-02-05 20:11:28 UTC (rev 374689)
@@ -1,132 +0,0 @@
-From 6136ffb3d88e9f044260f8288d2d0a1edd64379e Mon Sep 17 00:00:00 2001
-From: "Jan Alexander Steffens (heftig)" 
-Date: Mon, 16 Sep 2019 04:53:20 +0200
-Subject: [PATCH] ZEN: Add sysctl and CONFIG to disallow unprivileged
- CLONE_NEWUSER
-
-Our default behavior continues to match the vanilla kernel.

- init/Kconfig| 16 
- kernel/fork.c   | 15 +++
- kernel/sysctl.c | 12 
- kernel/user_namespace.c |  7 +++
- 4 files changed, 50 insertions(+)
-
-diff --git a/init/Kconfig b/init/Kconfig
-index bd7d650d4a99..658f9c052151 100644
 a/init/Kconfig
-+++ b/init/Kconfig
-@@ -1091,6 +1091,22 @@ config USER_NS
- 
- If unsure, say N.
- 
-+config USER_NS_UNPRIVILEGED
-+  bool "Allow unprivileged users to create namespaces"
-+  default y
-+  depends on USER_NS
-+  help
-+When disabled, unprivileged users will not be able to create
-+new namespaces. Allowing users to create their own namespaces
-+has been part of several recent local privilege escalation
-+exploits, so if you need user namespaces but are
-+paranoid^Wsecurity-conscious you want to disable this.
-+
-+This setting can be overridden at runtime via the
-+kernel.unprivileged_userns_clone sysctl.
-+
-+If unsure, say Y.
-+
- config PID_NS
-   bool "PID Namespaces"
-   default y
-diff --git a/kernel/fork.c b/kernel/fork.c
-index 541fd805fb88..ffd57c812153 100644
 a/kernel/fork.c
-+++ b/kernel/fork.c
-@@ -106,6 +106,11 @@
- 
- #define CREATE_TRACE_POINTS
- #include 
-+#ifdef CONFIG_USER_NS
-+extern int unprivileged_userns_clone;
-+#else
-+#define unprivileged_userns_clone 0
-+#endif
- 
- /*
-  * Minimum number of threads to boot the kernel
-@@ -1788,6 +1793,10 @@ static __latent_entropy struct task_struct 
*copy_process(
-   if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == 
(CLONE_NEWUSER|CLONE_FS))
-   return ERR_PTR(-EINVAL);
- 
-+  if ((clone_flags & CLONE_NEWUSER) && !unprivileged_userns_clone)
-+  if (!capable(CAP_SYS_ADMIN))
-+  return ERR_PTR(-EPERM);
-+
-   /*
-* Thread groups must share signals as well, and detached threads
-* can only be started up within the thread group.
-@@ -2819,6 +2828,12 @@ int ksys_unshare(unsigned long unshare_flags)
-   if (unshare_flags & CLONE_NEWNS)
-   unshare_flags |= CLONE_FS;
- 
-+  if ((unshare_flags & CLONE_NEWUSER) && !unprivileged_userns_clone) {
-+  err = -EPERM;
-+  if (!capable(CAP_SYS_ADMIN))
-+  goto bad_unshare_out;
-+  }
-+
-   err = check_unshare_flags(unshare_flags);
-   if (err)
-   goto bad_unshare_out;
-diff --git a/kernel/sysctl.c b/kernel/sysctl.c
-index 078950d9605b..baead3605bbe 100644
 a/kernel/sysctl.c
-+++ b/kernel/sysctl.c
-@@ -110,6 +110,9 @@ extern int core_uses_pid;
- extern char core_pattern[];
- extern unsigned int core_pipe_limit;
- #endif
-+#ifdef CONFIG_USER_NS
-+extern int unprivileged_userns_clone;
-+#endif
- extern int pid_max;
- extern int pid_max_min, pid_max_max;
- extern int percpu_pagelist_fraction;
-@@ -545,6 +548,15 @@ static struct ctl_table kern_table[] = {
-   .proc_handler   = proc_dointvec,
-   },
- #endif
-+#ifdef CONFIG_USER_NS
-+  {
-+  .procname   = "unprivileged_userns_clone",
-+  .data   = _userns_clone,
-+  .maxlen = sizeof(int),
-+  .mode   = 0644,
-+  .proc_handler   = proc_dointvec,
-+  },
-+#endif
- #ifdef CONFIG_PROC_SYSCTL
-   {
-   .procname   = "tainted",
-diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
-index 8eadadc478f9..c36ecd19562c 100644
 a/kernel/user_namespace.c
-+++ b/kernel/user_namespace.c
-@@ -21,6 +21,13 @@
- #include 
- #include 
- 
-+/* sysctl */
-+#ifdef 

[arch-commits] Commit in linux-lts/trunk (3 files)

2018-12-25 Thread Andreas Radke via arch-commits
Date: Tuesday, December 25, 2018 @ 12:56:20
  Author: andyrtr
Revision: 342726

upgpkg: linux-lts 4.19.12-1

upstream update 4.19.12 - move to 4.19 longterm support branch

Modified:
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/config
Deleted:
  
linux-lts/trunk/0003-Revert-drm-i915-edp-Allow-alternate-fixed-mode-for-e.patch

-+
 0003-Revert-drm-i915-edp-Allow-alternate-fixed-mode-for-e.patch |  230 
 PKGBUILD|   22 
 config  | 4778 
++
 3 files changed, 3039 insertions(+), 1991 deletions(-)

The diff is longer than the limit of 200KB.
Use svn diff -r 342725:342726 to see the changes.


[arch-commits] Commit in linux-lts/trunk (3 files)

2018-05-28 Thread Christian Hesse via arch-commits
Date: Monday, May 28, 2018 @ 10:46:47
  Author: eworm
Revision: 325070

upgpkg: linux-lts 4.14.44-1

* new upstream release
* use upstream i915 fix

Added:
  
linux-lts/trunk/0003-Revert-drm-i915-edp-Allow-alternate-fixed-mode-for-e.patch
Modified:
  linux-lts/trunk/PKGBUILD
Deleted:
  
linux-lts/trunk/0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch

-+
 0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch |   42 -
 0003-Revert-drm-i915-edp-Allow-alternate-fixed-mode-for-e.patch |  230 
++
 PKGBUILD|   10 
 3 files changed, 235 insertions(+), 47 deletions(-)

Deleted: 0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch
===
--- 0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch 
2018-05-28 07:45:19 UTC (rev 325069)
+++ 0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch 
2018-05-28 10:46:47 UTC (rev 325070)
@@ -1,42 +0,0 @@
-From e722c8d112f0aa9621d7d4da5223cfc7aeb45e88 Mon Sep 17 00:00:00 2001
-Message-Id: 

-In-Reply-To: 
<4e54373158caa50df5402fdd3db1794c5394026b.1516188238.git.jan.steff...@gmail.com>
-References: 
<4e54373158caa50df5402fdd3db1794c5394026b.1516188238.git.jan.steff...@gmail.com>
-From: Jim Bride 
-Date: Mon, 6 Nov 2017 13:38:57 -0800
-Subject: [PATCH 4/4] drm/i915/edp: Only use the alternate fixed mode if it's
- asked for
-
-In commit dc911f5bd8aa ("drm/i915/edp: Allow alternate fixed mode for
-eDP if available."), the patch allows for the use of an alternate fixed
-mode if it is available, but the patch was not ensuring that the only
-time the alternate mode is used is when it is specifically requested.
-This patch adds an additional comparison to intel_edp_compare_alt_mode
-to ensure that we only use the alternate mode if it is directly
-requested.
-
-Fixes: dc911f5bd8aac ("Allow alternate fixed mode for eDP if available.")
-Cc: David Weinehall 
-Cc: Rodrigo Vivi 
-Signed-off-by: Jim Bride 

- drivers/gpu/drm/i915/intel_dp.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
-index 09f274419eea..838cee312e8e 100644
 a/drivers/gpu/drm/i915/intel_dp.c
-+++ b/drivers/gpu/drm/i915/intel_dp.c
-@@ -1632,7 +1632,8 @@ static bool intel_edp_compare_alt_mode(struct 
drm_display_mode *m1,
-   m1->vdisplay == m2->vdisplay &&
-   m1->vsync_start == m2->vsync_start &&
-   m1->vsync_end == m2->vsync_end &&
--  m1->vtotal == m2->vtotal);
-+  m1->vtotal == m2->vtotal &&
-+  m1->vrefresh == m2->vrefresh);
-   return bres;
- }
- 
--- 
-2.15.1
-

Added: 0003-Revert-drm-i915-edp-Allow-alternate-fixed-mode-for-e.patch
===
--- 0003-Revert-drm-i915-edp-Allow-alternate-fixed-mode-for-e.patch 
(rev 0)
+++ 0003-Revert-drm-i915-edp-Allow-alternate-fixed-mode-for-e.patch 
2018-05-28 10:46:47 UTC (rev 325070)
@@ -0,0 +1,230 @@
+From 2a620025cea05fd4fc3bbf840b67df35e5ecbb8a Mon Sep 17 00:00:00 2001
+From: Jani Nikula 
+Date: Wed, 16 May 2018 11:01:10 +0300
+Subject: [PATCH] Revert "drm/i915/edp: Allow alternate fixed mode for eDP
+ if available."
+
+This reverts commit dc911f5bd8aacfcf8aabd5c26c88e04c837a938e.
+
+Per the report, no matter what display mode you select with xrandr, the
+i915 driver will always select the alternate fixed mode. For the
+reporter this means that the display will always run at 40Hz which is
+quite annoying. This may be due to the mode comparison.
+
+But there are some other potential issues. The choice of alt_fixed_mode
+seems dubious. It's the first non-preferred mode, but there are no
+guarantees that the only difference would be refresh rate. Similarly,
+there may be more than one preferred mode in the probed modes list, and
+the commit changes the preferred mode selection to choose the last one
+on the list instead of the first.
+
+(Note that the probed modes list is the raw, unfiltered, unsorted list
+of modes from drm_add_edid_modes(), not the pretty result after a
+drm_helper_probe_single_connector_modes() call.)
+
+Finally, we already have eerily similar code in place to find the
+downclock mode for DRRS that seems like could be reused here.
+
+Back to the drawing board.
+
+Note: This is a hand-crafted revert due to conflicts. If it fails to
+backport, please just try reverting the original commit directly.
+
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105469
+Reported-by: Rune Petersen 

[arch-commits] Commit in linux-lts/trunk (3 files)

2015-06-06 Thread Andreas Radke
Date: Saturday, June 6, 2015 @ 20:54:42
  Author: andyrtr
Revision: 240381

upgpkg: linux-lts 3.14.44-1

upstream update 3.14.44

Modified:
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/gcc5_buildfixes.diff
Deleted:
  linux-lts/trunk/md-raid0-fix-restore-to-sector-variable-in-raid0_mak.patch

+
 PKGBUILD   |   13 --
 gcc5_buildfixes.diff   |   66 ---
 md-raid0-fix-restore-to-sector-variable-in-raid0_mak.patch |   50 
 3 files changed, 4 insertions(+), 125 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-06-06 18:47:17 UTC (rev 240380)
+++ PKGBUILD2015-06-06 18:54:42 UTC (rev 240381)
@@ -4,8 +4,8 @@
 
 pkgbase=linux-lts
 _srcname=linux-3.14
-pkgver=3.14.43
-pkgrel=2
+pkgver=3.14.44
+pkgrel=1
 arch=('i686' 'x86_64')
 url=http://www.kernel.org/;
 license=('GPL2')
@@ -22,13 +22,12 @@
 '0002-module-allow-multiple-calls-to-MODULE_DEVICE_TABLE-p.patch'
 '0003-module-remove-MODULE_GENERIC_TABLE.patch'
 '0006-genksyms-fix-typeof-handling.patch'
-'md-raid0-fix-restore-to-sector-variable-in-raid0_mak.patch'
 'gcc5_buildfixes.diff'
 )
 # https://www.kernel.org/pub/linux/kernel/v3.x/sha256sums.asc
 sha256sums=('61558aa490855f42b6340d1a1596be47454909629327c49a5e4e10268065dffa'
 'SKIP'
-'cd6b9f6c9634605db129030ee2f5082903d59a21381fb2c00bbb25e7931432fd'
+'5af4e26194d3195e5a7c9235b0e6b60f577e7948ba2e1f653341d6263ef2ffc0'
 'SKIP'
 '9f0caf74d70599ac4eda356a42c7d9cb116f0cf42e87f165a383e4d215ae212d'
 'f40e1c54f53feaf3b35a8fca19a98c0f48d83cb8f9738eb8f97fc860b3a93e46'
@@ -38,8 +37,7 @@
 '52dec83a8805a8642d74d764494acda863e0aa23e3d249e80d4b457e20a3fd29'
 '65d58f63215ee3c5f9c4fc6bce36fc5311a6c7dbdbe1ad29de40647b47ff9c0d'
 'cf2e7a2d00787f754028e7459688c2755a406e632ce48b60952fa4ff7ed6f4b7'
-'bc83293e64653d60793708a0e277741f57c018f5ea3551a8aff3a220df917ceb'
-'470d6d019d288dce02b4a9758a34ea71d41715663a19a164749212a470a131e7')
+'9c89039a0f876888fda3be6f574bca5a120e3587d8342747bbc0723b0b4cde7a')
 validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds 
torva...@linux-foundation.org
   '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman 
(Linux kernel stable release signing key) g...@kroah.com
  )
@@ -58,9 +56,6 @@
   # add upstream patch
   patch -p1 -i ${srcdir}/patch-${pkgver}
 
-  # https://bugzilla.kernel.org/show_bug.cgi?id=98501
-  patch -Np1 -i 
${srcdir}/md-raid0-fix-restore-to-sector-variable-in-raid0_mak.patch
-
   # buildfixes for gcc5
   # 
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/scsi/qla2xxx/qla_nx2.c?id=9493c2422cae272d6f1f567cbb424195defe4176
   # https://lkml.org/lkml/2014/11/9/27

Modified: gcc5_buildfixes.diff
===
--- gcc5_buildfixes.diff2015-06-06 18:47:17 UTC (rev 240380)
+++ gcc5_buildfixes.diff2015-06-06 18:54:42 UTC (rev 240381)
@@ -1,69 +1,3 @@
-From 9493c2422cae272d6f1f567cbb424195defe4176 Mon Sep 17 00:00:00 2001
-From: Chen Gang gang.chen.5...@gmail.com
-Date: Sat, 1 Nov 2014 19:46:12 +0800
-Subject: qla2xxx: remove redundant declaration in 'qla_gbl.h'
-
-Remove 2 redundant extern inline functions: qla8044_set_qsnt_ready() and
-qla8044_need_reset_handler(). At present, within upstream next kernel
-source code, they are only used within drivers/scsi/qla2xxx/qla_nx2.c.
-
-The related error and warnings (with allmodconfig under tile):
-
-CC [M]  drivers/scsi/qla2xxx/qla_nx2.o
-  drivers/scsi/qla2xxx/qla_nx2.c:1633:1: error: static declaration of 
'qla8044_need_reset_handler' follows non-static declaration
-   qla8044_need_reset_handler(struct scsi_qla_host *vha)
-   ^
-  In file included from drivers/scsi/qla2xxx/qla_def.h:3706:0,
-   from drivers/scsi/qla2xxx/qla_nx2.c:11:
-  drivers/scsi/qla2xxx/qla_gbl.h:756:20: note: previous declaration of 
'qla8044_need_reset_handler' was here
-   extern inline void qla8044_need_reset_handler(struct scsi_qla_host *vha);
-  ^
-  drivers/scsi/qla2xxx/qla_gbl.h:756:20: warning: inline function 
'qla8044_need_reset_handler' declared but never defined
-  make[3]: *** [drivers/scsi/qla2xxx/qla_nx2.o] Error 1
-  make[2]: *** [drivers/scsi/qla2xxx] Error 2
-  make[1]: *** [drivers/scsi] Error 2
-  make: *** [drivers] Error 2
-
-CC [M]  drivers/scsi/qla2xxx/qla_tmpl.o
-  In file included from drivers/scsi/qla2xxx/qla_def.h:3706:0,
-   from drivers/scsi/qla2xxx/qla_tmpl.c:7:
-  drivers/scsi/qla2xxx/qla_gbl.h:755:20: warning: inline function 
'qla8044_set_qsnt_ready' declared but never defined
-   extern inline void 

[arch-commits] Commit in linux-lts/trunk (3 files)

2013-04-06 Thread Tobias Powalowski
Date: Saturday, April 6, 2013 @ 11:14:10
  Author: tpowa
Revision: 182062

upgpkg: linux-lts 3.0.72-1

bump to latest version

Added:
  
linux-lts/trunk/ext4-use-atomic64_t-for-the-per-flexbg-free_clusters-count.patch
Modified:
  linux-lts/trunk/PKGBUILD
  linux-lts/trunk/linux-lts.install

--+
 PKGBUILD |   18 
 ext4-use-atomic64_t-for-the-per-flexbg-free_clusters-count.patch |  187 
++
 linux-lts.install|2 
 3 files changed, 200 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-04-06 09:01:34 UTC (rev 182061)
+++ PKGBUILD2013-04-06 09:14:10 UTC (rev 182062)
@@ -5,7 +5,7 @@
 pkgbase=linux-lts   # Build stock -lts kernel
 #pkgbase=linux-custom   # Build kernel with a different name
 _srcname=linux-3.0
-pkgver=3.0.71
+pkgver=3.0.72
 pkgrel=1
 arch=('i686' 'x86_64')
 url=http://www.kernel.org/;
@@ -22,17 +22,19 @@
 'i915-fix-ghost-tv-output.patch'
 'ext4-options.patch'
 'module-symbol-waiting-3.0.patch'
-'module-init-wait-3.0.patch')
+'module-init-wait-3.0.patch'
+'ext4-use-atomic64_t-for-the-per-flexbg-free_clusters-count.patch')
 md5sums=('ecf932280e2441bdd992423ef3d55f8f'
- '33df614a5ee70e5aa2d39fc8afd16a1d'
- 'a8c2f7618f3cc6689e1bea32692b72f5'
- '4925d736212481eb1f7b318ef9e8b95f'
+ 'b8255a58fbdf50cea9a0fa5069e41427'
+ '8f430189023f071f2be6aa7d3bc747d5'
+ '879c8a04d02530f902ef3d6d3fc80933'
  '232b52576a62c7a333e9fe7a1e1ca359'
  'f3def2cefdcbb954c21d8505d23cc83c'
  '263725f20c0b9eb9c353040792d644e5'
  'c8299cf750a84e12d60b372c8ca7e1e8'
  '670931649c60fcb3ef2e0119ed532bd4'
- '8a71abc4224f575008f974a099b5cf6f')
+ '8a71abc4224f575008f974a099b5cf6f'
+ 'ee587972bbd35841cc0efe82db9caa7c')
 
 _kernelname=${pkgbase#linux}
 
@@ -45,6 +47,10 @@
   # add latest fixes from stable queue, if needed
   # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
 
+  # revert i686 build breaker 3.0.72 kernel
+  if [ ${CARCH} = i686 ]; then  
+patch -Rp1 -i 
${srcdir}/ext4-use-atomic64_t-for-the-per-flexbg-free_clusters-count.patch
+  fi
   # Some chips detect a ghost TV output
   # mailing list discussion: 
http://lists.freedesktop.org/archives/intel-gfx/2011-April/010371.html
   # Arch Linux bug report: FS#19234

Added: ext4-use-atomic64_t-for-the-per-flexbg-free_clusters-count.patch
===
--- ext4-use-atomic64_t-for-the-per-flexbg-free_clusters-count.patch
(rev 0)
+++ ext4-use-atomic64_t-for-the-per-flexbg-free_clusters-count.patch
2013-04-06 09:14:10 UTC (rev 182062)
@@ -0,0 +1,187 @@
+From 90ba983f6889e65a3b506b30dc606aa9d1d46cd2 Mon Sep 17 00:00:00 2001
+From: Theodore Ts'o ty...@mit.edu
+Date: Mon, 11 Mar 2013 23:39:59 -0400
+Subject: ext4: use atomic64_t for the per-flexbg free_clusters count
+
+From: Theodore Ts'o ty...@mit.edu
+
+commit 90ba983f6889e65a3b506b30dc606aa9d1d46cd2 upstream.
+
+A user who was using a 8TB+ file system and with a very large flexbg
+size ( 65536) could cause the atomic_t used in the struct flex_groups
+to overflow.  This was detected by PaX security patchset:
+
+http://forums.grsecurity.net/viewtopic.php?f=3t=3289p=12551#p12551
+
+This bug was introduced in commit 9f24e4208f7e, so it's been around
+since 2.6.30.  :-(
+
+Fix this by using an atomic64_t for struct orlav_stats's
+free_clusters.
+
+[Backported for 3.0-stable. Renamed free_clusters back to free_blocks;
+fixed a few more atomic_read's of free_blocks left in 3.0.]
+
+Signed-off-by: Theodore Ts'o ty...@mit.edu
+Reviewed-by: Lukas Czerner lczer...@redhat.com
+Signed-off-by: Lingzhu Xiang lxi...@redhat.com
+Reviewed-by: CAI Qian caiq...@redhat.com
+Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org
+
+--- a/fs/ext4/ext4.h
 b/fs/ext4/ext4.h
+@@ -288,9 +288,9 @@ struct ext4_group_desc
+  */
+ 
+ struct flex_groups {
+-  atomic_t free_inodes;
+-  atomic_t free_blocks;
+-  atomic_t used_dirs;
++  atomic64_t  free_blocks;
++  atomic_tfree_inodes;
++  atomic_tused_dirs;
+ };
+ 
+ #define EXT4_BG_INODE_UNINIT  0x0001 /* Inode table/bitmap not in use */
+diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
+index 29272de..dd732c7 100644
+--- a/fs/ext4/ialloc.c
 b/fs/ext4/ialloc.c
+@@ -345,8 +345,8 @@ static int find_group_flex(struct super_block *sb, struct 
inode *parent,
+   ext4_group_t ngroups = ext4_get_groups_count(sb);
+   int flex_size = ext4_flex_bg_size(sbi);
+   ext4_group_t best_flex = parent_fbg_group;
+-  int blocks_per_flex = sbi-s_blocks_per_group * flex_size;
+-  int flexbg_free_blocks;
++