4.19.2-stable review
Subsystems (7)
Greg Kroah-Hartman
maintainerPATCH 239/361 PCI: Add Device IDs for Intel GPU "spurious interrupt" quirk
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bin Meng <[email protected]>
commit d0c9606b31a21028fb5b753c8ad79626292accfd upstream.
Add Device IDs to the Intel GPU "spurious interrupt" quirk table.
For these devices, unplugging the VGA cable and plugging it in again causes spurious interrupts from the IGD. Linux eventually disables the interrupt, but of course that disables any other devices sharing the interrupt.
The theory is that this is a VGA BIOS defect: it should have disabled the IGD interrupt but failed to do so.
See f67fd55fa96f ("PCI: Add quirk for still enabled interrupts on Intel Sandy Bridge GPUs") and 7c82126a94e6 ("PCI: Add new ID for Intel GPU "spurious interrupt" quirk") for some history.
[bhelgaas: See link below for discussion about how to fix this more generically instead of adding device IDs for every new Intel GPU. I hope this is the last patch to add device IDs.]
--- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/pci/quirks.c +4 -0
@@ -3190,7 +3190,11 @@ static void disable_igfx_irq(struct pci_pci_iounmap (dev, regs); } +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x0042 , disable_igfx_irq); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x0046 , disable_igfx_irq); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x004a , disable_igfx_irq);DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x0102 , disable_igfx_irq); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x0106 , disable_igfx_irq);DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x010a , disable_igfx_irq);DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x0152 , disable_igfx_irq);
Greg Kroah-Hartman
maintainerPATCH 238/361 PCI/ASPM: Fix link_state teardown on device removal
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lukas Wunner <[email protected]>
commit aeae4f3e5c38d47bdaef50446dc0ec857307df68 upstream.
Upon removal of the last device on a bus, the link_state of the bridge leading to that bus is sought to be torn down by having pci_stop_dev() call pcie_aspm_exit_link_state().
When ASPM was originally introduced by commit 7d715a6c1ae5 ("PCI: add PCI Express ASPM support"), it determined whether the device being removed is the last one by calling list_empty() on the bridge's subordinate devices list. That didn't work because the device is only removed from the list slightly later in pci_destroy_dev().
Commit 3419c75e15f8 ("PCI: properly clean up ASPM link state on device remove") attempted to fix it by calling list_is_last(), but that's not correct either because it checks whether the device is at the *end* of the list, not whether it's the last one *left* in the list. If the user removes the device which happens to be at the end of the list via sysfs but other devices are preceding the device in the list, the link_state is torn down prematurely.
The real fix is to move the invocation of pcie_aspm_exit_link_state() to pci_destroy_dev() and reinstate the call to list_empty(). Remove a duplicate check for dev->bus->self because pcie_aspm_exit_link_state() already contains an identical check.
--- drivers/pci/pcie/aspm.c | 2 +- drivers/pci/remove.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/pci/pcie/aspm.c +1 -1
@@ -991,7 +991,7 @@ void pcie_aspm_exit_link_state(struct pc* All PCIe functions are in one slot, remove one function will remove * the whole slot, so just wait until we are the last function left. */ -if (!list_is_last (&pdev->bus_list, &parent->subordinate->devices)) +if (!list_empty (&parent->subordinate->devices)) goto out; link = parent->link_state;
drivers/pci/remove.c +1 -3
@@ -25,9 +25,6 @@ static void pci_stop_dev(struct pci_devpci_dev_assign_added (dev, false); } - -if (dev->bus->self) -pcie_aspm_exit_link_state (dev); }static void pci_destroy_dev (struct pci_dev *dev)
@@ -41,6 +38,7 @@ static void pci_destroy_dev(struct pci_dlist_del (&dev->bus_list);up_write (&pci_bus_sem); +pcie_aspm_exit_link_state (dev);pci_bridge_d3_update (dev);pci_free_resources (dev);put_device (&dev->dev);
Greg Kroah-Hartman
maintainerPATCH 233/361 HID: hiddev: fix potential Spectre v1
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Breno Leitao <[email protected]>
commit f11274396a538b31bc010f782e05c2ce3f804c13 upstream.
uref->usage_index can be indirectly controlled by userspace, hence leading to a potential exploitation of the Spectre variant 1 vulnerability.
This field is used as an array index by the hiddev_ioctl_usage() function, when 'cmd' is either HIDIOCGCOLLECTIONINDEX, HIDIOCGUSAGES or HIDIOCSUSAGES.
For cmd == HIDIOCGCOLLECTIONINDEX case, uref->usage_index is compared to field->maxusage and then used as an index to dereference field->usage array. The same thing happens to the cmd == HIDIOC{G,S}USAGES cases, where uref->usage_index is checked against an array maximum value and then it is used as an index in an array.
This is a summary of the HIDIOCGCOLLECTIONINDEX case, which matches the traditional Spectre V1 first load:
copy_from_user(uref, user_arg, sizeof(*uref)) if (uref->usage_index >= field->maxusage) goto inval; i = field->usage[uref->usage_index].collection_index; return i;
This patch fixes this by sanitizing field uref->usage_index before using it to index field->usage (HIDIOCGCOLLECTIONINDEX) or field->value in HIDIOC{G,S}USAGES arrays, thus, avoiding speculation in the first load.
v2: Contemplate cmd == HIDIOC{G,S}USAGES case
--- drivers/hid/usbhid/hiddev.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
drivers/hid/usbhid/hiddev.c +14 -4
@@ -512,14 +512,24 @@ static noinline int hiddev_ioctl_usage(sif (cmd ==HIDIOCGCOLLECTIONINDEX ) {if (uref->usage_index >= field->maxusage) goto inval; + uref->usage_index = +array_index_nospec (uref->usage_index, + field->maxusage); }else if (uref->usage_index >= field->report_count) goto inval; } -if ((cmd ==HIDIOCGUSAGES || cmd ==HIDIOCSUSAGES ) && - (uref_multi->num_values >HID_MAX_MULTI_USAGES || - uref->usage_index + uref_multi->num_values > field->report_count)) - goto inval; +if (cmd ==HIDIOCGUSAGES || cmd ==HIDIOCSUSAGES ) { +if (uref_multi->num_values >HID_MAX_MULTI_USAGES || + uref->usage_index + uref_multi->num_values > + field->report_count) + goto inval; + + uref->usage_index = +array_index_nospec (uref->usage_index, + field->report_count - + uref_multi->num_values); + }switch (cmd) {case HIDIOCGUSAGE :
Greg Kroah-Hartman
maintainerPATCH 232/361 HID: wacom: Work around HID descriptor bug in DTK-2451 and DTH-2452
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jason Gerecke <[email protected]>
commit 11db8173dbab7a94cf5ba5225fcedbfc0f3b7e54 upstream.
The DTK-2451 and DTH-2452 have a buggy HID descriptor which incorrectly contains a Cintiq-like report, complete with pen tilt, rotation, twist, serial number, etc. The hardware doesn't actually support this data but our driver duitifully sets up the device as though it does. To ensure userspace has a correct view of devices without updated firmware, we clean up this incorrect data in wacom_setup_device_quirks.
We're also careful to clear the WACOM_QUIRK_TOOLSERIAL flag since its presence causes the driver to wait for serial number information (via wacom_wac_pen_serial_enforce) that never comes, resulting in
the pen being non-responsive.
--- drivers/hid/wacom_wac.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
drivers/hid/wacom_wac.c +19 -0
@@ -3335,6 +3335,7 @@ static void wacom_setup_intuos(struct wavoid wacom_setup_device_quirks (struct wacom *wacom) { +struct wacom_wac *wacom_wac = &wacom->wacom_wac;struct wacom_features *features = &wacom->wacom_wac.features;/* The pen and pad share the same interface on most devices */
@@ -3464,6 +3465,24 @@ void wacom_setup_device_quirks(struct waif (features->type ==REMOTE ) features->device_type |=WACOM_DEVICETYPE_WL_MONITOR ; + +/* HID descriptor for DTK-2451 / DTH-2452 claims to report lots +* of things it shouldn't. Lets fix up the damage... +*/ +if (wacom->hdev->product ==0x382 || wacom->hdev->product ==0x37d ) { + features->quirks &= ~WACOM_QUIRK_TOOLSERIAL ; +__clear_bit (BTN_TOOL_BRUSH , wacom_wac->pen_input->keybit); +__clear_bit (BTN_TOOL_PENCIL , wacom_wac->pen_input->keybit); +__clear_bit (BTN_TOOL_AIRBRUSH , wacom_wac->pen_input->keybit); +__clear_bit (ABS_Z , wacom_wac->pen_input->absbit); +__clear_bit (ABS_DISTANCE , wacom_wac->pen_input->absbit); +__clear_bit (ABS_TILT_X , wacom_wac->pen_input->absbit); +__clear_bit (ABS_TILT_Y , wacom_wac->pen_input->absbit); +__clear_bit (ABS_WHEEL , wacom_wac->pen_input->absbit); +__clear_bit (ABS_MISC , wacom_wac->pen_input->absbit); +__clear_bit (MSC_SERIAL , wacom_wac->pen_input->mscbit); +__clear_bit (EV_MSC , wacom_wac->pen_input->evbit); + } } int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
Greg Kroah-Hartman
maintainerPATCH 225/361 gfs2_meta: ->mount() can get NULL dev_name
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Al Viro <[email protected]>
commit 3df629d873f8683af6f0d34dfc743f637966d483 upstream.
get in sync with mount_bdev() handling of the same
--- fs/gfs2/ops_fstype.c | 3 +++ 1 file changed, 3 insertions(+)
fs/gfs2/ops_fstype.c +3 -0
@@ -1333,6 +1333,9 @@ static struct dentry *gfs2_mount_meta(ststruct path path;int error; +if (!dev_name || !*dev_name) +return ERR_PTR (-EINVAL ); + error =kern_path (dev_name,LOOKUP_FOLLOW , &path);if (error) { pr_warn("path_lookup on %s returned error %d\n",
Greg Kroah-Hartman
maintainerPATCH 231/361 selinux: fix mounting of cgroup2 under older policies
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Stephen Smalley <[email protected]>
commit 7bb185edb0306bb90029a5fa6b9cff900ffdbf4b upstream.
commit 901ef845fa2469c ("selinux: allow per-file labeling for cgroupfs") broke mounting of cgroup2 under older SELinux policies which lacked a genfscon rule for cgroup2. This prevents mounting of cgroup2 even when SELinux is permissive.
Change the handling when there is no genfscon rule in policy to just mark the inode unlabeled and not return an error to the caller. This permits mounting and access if allowed by policy, e.g. to unconfined domains.
I also considered changing the behavior of security_genfs_sid() to never return -ENOENT, but the current behavior is relied upon by other callers to perform caller-specific handling.
--- security/selinux/hooks.c | 5 +++++ 1 file changed, 5 insertions(+)
security/selinux/hooks.c +5 -0
@@ -1508,6 +1508,11 @@ static int selinux_genfs_get_sid(struct } rc =security_genfs_sid (&selinux_state, sb->s_type->name, path, tclass, sid); +if (rc == -ENOENT ) { +/* No match in policy, mark as unlabeled. */ + *sid =SECINITSID_UNLABELED ; + rc =0 ; + } }free_page ((unsigned long )buffer);return rc;
Greg Kroah-Hartman
maintainerPATCH 229/361 ext4: propagate error from dquot_initialize() in EXT4_IOC_FSSETXATTR
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Wang Shilong <[email protected]>
commit 182a79e0c17147d2c2d3990a9a7b6b58a1561c7a upstream.
We return most failure of dquota_initialize() except inode evict, this could make a bit sense, for example we allow file removal even quota files are broken?
But it dosen't make sense to allow setting project if quota files etc are broken.
--- fs/ext4/ioctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/ext4/ioctl.c +3 -1
@@ -380,7 +380,9 @@ static int ext4_ioctl_setproject(structbrelse (iloc.bh); } -dquot_initialize (inode); + err =dquot_initialize (inode); +if (err) +return err; handle = ext4_journal_start(inode, EXT4_HT_QUOTA, EXT4_QUOTA_INIT_BLOCKS(sb) +
Greg Kroah-Hartman
maintainerPATCH 228/361 ext4: fix setattr project check in fssetxattr ioctl
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Wang Shilong <[email protected]>
commit dc7ac6c4cae3b58724c2f1e21a7c05ce19ecd5a8 upstream.
Currently, project quota could be changed by fssetxattr ioctl, and existed permission check inode_owner_or_capable() is obviously not enough, just think that common users could change project id of file, that could make users to break project quota easily.
This patch try to follow same regular of xfs project quota:
"Project Quota ID state is only allowed to change from within the init namespace. Enforce that restriction only if we are trying to change the quota ID state. Everything else is allowed in user namespaces."
Besides that, check and set project id'state should be an atomic operation, protect whole operation with inode lock, ext4_ioctl_setproject() is only used for ioctl EXT4_IOC_FSSETXATTR, we have held mnt_want_write_file() before ext4_ioctl_setflags(), and ext4_ioctl_setproject() is called after ext4_ioctl_setflags(), we could share codes, so remove it inside ext4_ioctl_setproject().
--- fs/ext4/ioctl.c | 60 ++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 23 deletions(-)
fs/ext4/ioctl.c +37 -23
@@ -360,19 +360,14 @@ static int ext4_ioctl_setproject(structif (projid_eq (kprojid,EXT4_I (inode)->i_projid))return 0 ; - err =mnt_want_write_file (filp); -if (err) -return err; - err = -EPERM ; -inode_lock (inode);/* Is it quota file? Do not allow user to mess with it */ if (ext4_is_quota_file (inode)) - goto out_unlock; +return err; err =ext4_get_inode_loc (inode, &iloc);if (err) - goto out_unlock; +return err; raw_inode =ext4_raw_inode (&iloc);if (!EXT4_FITS_IN_INODE (raw_inode, ei, i_projid)) {
@@ -380,7 +375,7 @@ static int ext4_ioctl_setproject(structEXT4_SB (sb)->s_want_extra_isize, &iloc);if (err) - goto out_unlock; +return err; }else {brelse (iloc.bh); }
@@ -390,10 +385,8 @@ static int ext4_ioctl_setproject(struct handle =ext4_journal_start (inode,EXT4_HT_QUOTA ,EXT4_QUOTA_INIT_BLOCKS (sb) +EXT4_QUOTA_DEL_BLOCKS (sb) +3 ); -if (IS_ERR (handle)) { - err =PTR_ERR (handle); - goto out_unlock; - } +if (IS_ERR (handle)) +return PTR_ERR (handle); err =ext4_reserve_inode_write (handle, inode, &iloc);if (err)
@@ -421,9 +414,6 @@ out_dirty: err = rc; out_stop:ext4_journal_stop (handle); -out_unlock: -inode_unlock (inode); -mnt_drop_write_file (filp); return err; }#else
@@ -647,6 +637,30 @@ group_add_out:return err; } +static int ext4_ioctl_check_project (struct inode *inode,struct fsxattr *fa) +{ +/* +* Project Quota ID state is only allowed to change from within the init +* namespace. Enforce that restriction only if we are trying to change +* the quota ID state. Everything else is allowed in user namespaces. +*/ +if (current_user_ns () == &init_user_ns) +return 0 ; + +if (__kprojid_val (EXT4_I (inode)->i_projid) != fa->fsx_projid) +return -EINVAL ; + +if (ext4_test_inode_flag (inode,EXT4_INODE_PROJINHERIT )) { +if (!(fa->fsx_xflags &FS_XFLAG_PROJINHERIT )) +return -EINVAL ; + }else { +if (fa->fsx_xflags &FS_XFLAG_PROJINHERIT ) +return -EINVAL ; + } + +return 0 ; +} +long ext4_ioctl (struct file *filp,unsigned int cmd,unsigned long arg) {struct inode *inode =file_inode (filp);
@@ -1046,19 +1060,19 @@ resizefs_out:return err;inode_lock (inode); + err =ext4_ioctl_check_project (inode, &fa); +if (err) + goto out; flags = (ei->i_flags & ~EXT4_FL_XFLAG_VISIBLE ) | (flags &EXT4_FL_XFLAG_VISIBLE ); err =ext4_ioctl_setflags (inode, flags); -inode_unlock (inode); -mnt_drop_write_file (filp);if (err) -return err; - + goto out; err =ext4_ioctl_setproject (filp, fa.fsx_projid); -if (err) -return err; - -return 0 ; +out: +inode_unlock (inode); +mnt_drop_write_file (filp); +return err; }case EXT4_IOC_SHUTDOWN :return ext4_shutdown (sb, arg);
Greg Kroah-Hartman
maintainerPATCH 210/361 usb: gadget: udc: renesas_usb3: Fix b-device mode for "workaround"
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yoshihiro Shimoda <[email protected]>
commit afc92514a34c7414b28047b1205a6b709103c699 upstream.
If the "workaround_for_vbus" is true, the driver will not call usb_disconnect(). So, since the controller keeps some registers' value, the driver doesn't re-enumarate suitable speed after the b-device mode is disabled. To fix the issue, this patch adds usb_disconnect() calling in renesas_usb3_b_device_write() if workaround_for_vbus is true.
--- drivers/usb/gadget/udc/renesas_usb3.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/gadget/udc/renesas_usb3.c +3 -0
@@ -2437,6 +2437,9 @@ static ssize_t renesas_usb3_b_device_wrielse usb3->forced_b_device = false; +if (usb3->workaround_for_vbus) +usb3_disconnect (usb3); +/* Let this driver call usb3_connect() anyway */ usb3_check_id (usb3);
Greg Kroah-Hartman
maintainerPATCH 220/361 ASoC: intel: skylake: Add missing break in skl_tplg_get_token()
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
commit 9c80c5a8831471e0a3e139aad1b0d4c0fdc50b2f upstream.
skl_tplg_get_token() misses a break in the big switch() block for SKL_TKN_U8_CORE_ID entry.
Spotted nicely by -Wimplicit-fallthrough compiler option.
--- sound/soc/intel/skylake/skl-topology.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/skylake/skl-topology.c +1 -0
@@ -2461,6 +2461,7 @@ static int skl_tplg_get_token(struct devcase SKL_TKN_U8_CORE_ID : mconfig->core_id = tkn_elem->value; +break ;case SKL_TKN_U8_MOD_TYPE : mconfig->m_type = tkn_elem->value;
Greg Kroah-Hartman
maintainerPATCH 219/361 libnvdimm, pmem: Fix badblocks population for raw namespaces
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dan Williams <[email protected]>
commit 91ed7ac444ef749603a95629a5ec483988c4f14b upstream.
The driver is only initializing bb_res in the devm_memremap_pages() paths, but the raw namespace case is passing an uninitialized bb_res to nvdimm_badblocks_populate().
--- drivers/nvdimm/pmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/nvdimm/pmem.c +3 -1
@@ -421,9 +421,11 @@ static int pmem_attach_disk(struct devic addr =devm_memremap_pages (dev, &pmem->pgmap); pmem->pfn_flags |=PFN_MAP ;memcpy (&bb_res, &pmem->pgmap.res,sizeof (bb_res)); - }else + }else { addr =devm_memremap (dev, pmem->phys_addr, pmem->size,ARCH_MEMREMAP_PMEM ); +memcpy (&bb_res, &nsio->res,sizeof (bb_res)); + }/* * At release time the queue must be frozen before
Greg Kroah-Hartman
maintainerPATCH 209/361 usb: typec: tcpm: Fix APDO PPS order checking to be based on voltage
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adam Thomson <[email protected]>
commit 1b6af2f58c2b1522e0804b150ca95e50a9e80ea7 upstream.
Current code mistakenly checks against max current to determine order but this should be max voltage. This commit fixes the issue so order is correctly determined, thus avoiding failure based on a higher voltage PPS APDO having a lower maximum current output, which is actually valid.
--- drivers/usb/typec/tcpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/typec/tcpm.c +2 -2
@@ -1430,8 +1430,8 @@ static enum pdo_err tcpm_caps_err(structif (pdo_apdo_type (pdo[i]) !=APDO_TYPE_PPS )break ; -if (pdo_pps_apdo_max_current (pdo[i]) < -pdo_pps_apdo_max_current (pdo[i -1 ])) +if (pdo_pps_apdo_max_voltage (pdo[i]) < +pdo_pps_apdo_max_voltage (pdo[i -1 ]))return PDO_ERR_PPS_APDO_NOT_SORTED ; else if (pdo_pps_apdo_min_voltage(pdo[i]) == pdo_pps_apdo_min_voltage(pdo[i - 1]) &&
Greg Kroah-Hartman
maintainerPATCH 207/361 libertas: dont set URB_ZERO_PACKET on IN USB transfer
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lubomir Rintel <[email protected]>
commit 6528d88047801b80d2a5370ad46fb6eff2f509e0 upstream.
The USB core gets rightfully upset:
usb 1-1: BOGUS urb flags, 240 --> 200
WARNING: CPU: 0 PID: 60 at drivers/usb/core/urb.c:503 usb_submit_urb+0x2f8/0x3ed Modules linked in: CPU: 0 PID: 60 Comm: kworker/0:3 Not tainted 4.19.0-rc6-00319-g5206d00a45c7 #39 Hardware name: OLPC XO/XO, BIOS OLPC Ver 1.00.01 06/11/2014 Workqueue: events request_firmware_work_func EIP: usb_submit_urb+0x2f8/0x3ed Code: 75 06 8b 8f 80 00 00 00 8d 47 78 89 4d e4 89 55 e8 e8 35 1c f6 ff 8b 55 e8 56 52 8b 4d e4 51 50 68 e3 ce c7 c0 e8 ed 18 c6 ff <0f> 0b 83 c4 14 80 7d ef 01 74 0a 80 7d ef 03 0f 85 b8 00 00 00 8b EAX: 00000025 EBX: ce7d4980 ECX: 00000000 EDX: 00000001 ESI: 00000200 EDI: ce7d8800 EBP: ce7f5ea8 ESP: ce7f5e70 DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 EFLAGS: 00210292 CR0: 80050033 CR2: 00000000 CR3: 00e80000 CR4: 00000090 Call Trace: ? if_usb_fw_timeo+0x64/0x64 __if_usb_submit_rx_urb+0x85/0xe6 ? if_usb_fw_timeo+0x64/0x64 if_usb_submit_rx_urb_fwload+0xd/0xf if_usb_prog_firmware+0xc0/0x3db ? _request_firmware+0x54/0x47b ? _request_firmware+0x89/0x47b ? if_usb_probe+0x412/0x412 lbs_fw_loaded+0x55/0xa6 ? debug_smp_processor_id+0x12/0x14 helper_firmware_cb+0x3c/0x3f request_firmware_work_func+0x37/0x6f process_one_work+0x164/0x25a worker_thread+0x1c4/0x284 kthread+0xec/0xf1 ? cancel_delayed_work_sync+0xf/0xf ? kthread_create_on_node+0x1a/0x1a ret_from_fork+0x2e/0x38 ---[ end trace 3ef1e3b2dd53852f ]---
--- drivers/net/wireless/marvell/libertas/if_usb.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/wireless/marvell/libertas/if_usb.c +0 -2
@@ -456,8 +456,6 @@ static int __if_usb_submit_rx_urb(structMRVDRV_ETH_RX_PACKET_BUFFER_SIZE , callbackfn, cardp); - cardp->rx_urb->transfer_flags |=URB_ZERO_PACKET ; -lbs_deb_usb2 (&cardp->udev->dev,"Pointer for rx_urb %p\n" , cardp->rx_urb);if ((ret =usb_submit_urb (cardp->rx_urb,GFP_ATOMIC ))) {lbs_deb_usbd (&cardp->udev->dev,"Submit Rx URB failed: %d\n" , ret);
Greg Kroah-Hartman
maintainerPATCH 203/361 xen: fix race in xen_qlock_wait()
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Juergen Gross <[email protected]>
commit 2ac2a7d4d9ff4e01e36f9c3d116582f6f655ab47 upstream.
In the following situation a vcpu waiting for a lock might not be woken up from xen_poll_irq():
CPU 1: CPU 2: CPU 3:
takes a spinlock
tries to get lock
-> xen_qlock_wait()
frees the lock
-> xen_qlock_kick(cpu2)
-> xen_clear_irq_pending()
takes lock again
tries to get lock
-> *lock = _Q_SLOW_VAL
-> *lock == _Q_SLOW_VAL ?
-> xen_poll_irq()frees the lock
-> xen_qlock_kick(cpu3)
And cpu 2 will sleep forever.
This can be avoided easily by modifying xen_qlock_wait() to call xen_poll_irq() only if the related irq was not pending and to call xen_clear_irq_pending() only if it was pending.
--- arch/x86/xen/spinlock.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
arch/x86/xen/spinlock.c +5 -10
@@ -45,17 +45,12 @@ static void xen_qlock_wait(u8 *byte, u8if (irq ==-1 )return ; -/* clear pending */ -xen_clear_irq_pending (irq); -barrier (); +/* If irq pending already clear it and return. */ +if (xen_test_irq_pending (irq)) { +xen_clear_irq_pending (irq); +return ; + } -/* -* We check the byte value after clearing pending IRQ to make sure -* that we won't miss a wakeup event because of the clearing. -* -* The sync_clear_bit() call in xen_clear_irq_pending() is atomic. -* So it is effectively a memory barrier for x86. -*/ if (READ_ONCE (*byte) != val)return ;
Greg Kroah-Hartman
maintainerPATCH 206/361 xen/pvh: dont try to unplug emulated devices
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Juergen Gross <[email protected]>
commit e6111161c0a02d58919d776eec94b313bb57911f upstream.
A Xen PVH guest has no associated qemu device model, so trying to unplug any emulated devices is making no sense at all.
Bail out early from xen_unplug_emulated_devices() when running as PVH guest. This will avoid issuing the boot message:
[ 0.000000] Xen Platform PCI: unrecognised magic value
--- arch/x86/xen/platform-pci-unplug.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/x86/xen/platform-pci-unplug.c +4 -0
@@ -146,6 +146,10 @@ void xen_unplug_emulated_devices(void) {int r; +/* PVH guests don't have emulated devices. */ +if (xen_pvh_domain ()) +return ; +/* user explicitly requested no unplug */ if (xen_emul_unplug &XEN_UNPLUG_NEVER )return ;
Greg Kroah-Hartman
maintainerPATCH 205/361 xen/pvh: increase early stack size
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Roger Pau Monne <[email protected]>
commit 7deecbda3026f5e2a8cc095d7ef7261a920efcf2 upstream.
While booting on an AMD EPYC box the stack canary would detect stack overflows when using the current PVH early stack size (256). Switch to using the value defined by BOOT_STACK_SIZE, which prevents the stack overflow.
--- arch/x86/xen/xen-pvh.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/xen/xen-pvh.S +1 -1
@@ -181,7 +181,7 @@ canary: .fill 48, 1, 0 early_stack: - .fill 256, 1, 0 + .fill BOOT_STACK_SIZE, 1, 0 early_stack_end: ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY,
Greg Kroah-Hartman
maintainerPATCH 200/361 tpm: Restore functionality to xen vtpm driver.
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dr. Greg Wettstein <[email protected]>
commit e487a0f52301293152a6f8c4e217f2a11dd808e3 upstream.
Functionality of the xen-tpmfront driver was lost secondary to the introduction of xenbus multi-page support in commit ccc9d90a9a8b ("xenbus_client: Extend interface to support multi-page ring").
In this commit pointer to location of where the shared page address is stored was being passed to the xenbus_grant_ring() function rather then the address of the shared page itself. This resulted in a situation where the driver would attach to the vtpm-stubdom but any attempt to send a command to the stub domain would timeout.
A diagnostic finding for this regression is the following error message being generated when the xen-tpmfront driver probes for a device:
<3>vtpm vtpm-0: tpm_transmit: tpm_send: error -62
<3>vtpm vtpm-0: A TPM error (-62) occurred attempting to determine the timeouts
This fix is relevant to all kernels from 4.1 forward which is the release in which multi-page xenbus support was introduced.
Daniel De Graaf formulated the fix by code inspection after the regression point was located.
--- drivers/char/tpm/xen-tpmfront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/xen-tpmfront.c +1 -1
@@ -264,7 +264,7 @@ static int setup_ring(struct xenbus_devireturn -ENOMEM ; } - rv =xenbus_grant_ring (dev, &priv->shr,1 , &gref); + rv =xenbus_grant_ring (dev, priv->shr,1 , &gref);if (rv <0 )return rv;
Greg Kroah-Hartman
maintainerPATCH 201/361 xen/blkfront: avoid NULL blkfront_info dereference on device removal
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vasilis Liaskovitis <[email protected]>
commit f92898e7f32e3533bfd95be174044bc349d416ca upstream.
If a block device is hot-added when we are out of grants, gnttab_grant_foreign_access fails with -ENOSPC (log message "28 granting access to ring page") in this code path:
talk_to_blkback ->
setup_blkring -> xenbus_grant_ring -> gnttab_grant_foreign_access
and the failing path in talk_to_blkback sets the driver_data to NULL:
destroy_blkring:
blkif_free(info, 0);
mutex_lock(&blkfront_mutex);
free_info(info);
mutex_unlock(&blkfront_mutex);
dev_set_drvdata(&dev->dev, NULL);This results in a NULL pointer BUG when blkfront_remove and blkif_free try to access the failing device's NULL struct blkfront_info.
--- drivers/block/xen-blkfront.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/block/xen-blkfront.c +3 -0
@@ -2493,6 +2493,9 @@ static int blkfront_remove(struct xenbusdev_dbg (&xbdev->dev,"%s removed" , xbdev->nodename); +if (!info) +return 0 ; +blkif_free (info,0 );mutex_lock (&info->mutex);
Greg Kroah-Hartman
maintainerPATCH 202/361 xen/balloon: Support xend-based toolstack
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Boris Ostrovsky <[email protected]>
commit 3aa6c19d2f38be9c6e9a8ad5fa8e3c9d29ee3c35 upstream.
Xend-based toolstacks don't have static-max entry in xenstore. The equivalent node for those toolstacks is memory_static_max.
--- drivers/xen/xen-balloon.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
drivers/xen/xen-balloon.c +8 -5
@@ -76,12 +76,15 @@ static void watch_target(struct xenbus_wif (!watch_fired) { watch_fired = true; - err =xenbus_scanf (XBT_NIL ,"memory" ,"static-max" ,"%llu" , - &static_max); -if (err !=1 ) - static_max = new_target; -else + +if ((xenbus_scanf (XBT_NIL ,"memory" ,"static-max" , +"%llu" , &static_max) ==1 ) || + (xenbus_scanf (XBT_NIL ,"memory" ,"memory_static_max" , +"%llu" , &static_max) ==1 )) static_max >>=PAGE_SHIFT -10 ; +else + static_max = new_target; + target_diff = (xen_pv_domain () ||xen_initial_domain ()) ?0 : static_max - balloon_stats.target_pages; }
Greg Kroah-Hartman
maintainerPATCH 197/361 ARM: dts: exynos: Convert exynos5250.dtsi to opp-v2 bindings
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marek Szyprowski <[email protected]>
commit eb9e16d8573e243f8175647f851eb5085dbe97a4 upstream.
Convert Exynos5250 to OPP-v2 bindings. This is a preparation to add proper support for suspend operation point, which cannot be marked in opp-v1.
--- arch/arm/boot/dts/exynos5250.dtsi | 130 +++++++++++++++++++++++++------------- 1 file changed, 88 insertions(+), 42 deletions(-)
arch/arm/boot/dts/exynos5250.dtsi +88 -42
@@ -54,62 +54,108 @@ device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0>; - clock-frequency = <1700000000>; clocks = <&clock CLK_ARM_CLK>; clock-names = "cpu"; - clock-latency = <140000>; - - operating-points = < - 1700000 1300000 - 1600000 1250000 - 1500000 1225000 - 1400000 1200000 - 1300000 1150000 - 1200000 1125000 - 1100000 1100000 - 1000000 1075000 - 900000 1050000 - 800000 1025000 - 700000 1012500 - 600000 1000000 - 500000 975000 - 400000 950000 - 300000 937500 - 200000 925000 - >; + operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; /* min followed by max */ }; cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <1>; - clock-frequency = <1700000000>; clocks = <&clock CLK_ARM_CLK>; clock-names = "cpu"; - clock-latency = <140000>; - - operating-points = < - 1700000 1300000 - 1600000 1250000 - 1500000 1225000 - 1400000 1200000 - 1300000 1150000 - 1200000 1125000 - 1100000 1100000 - 1000000 1075000 - 900000 1050000 - 800000 1025000 - 700000 1012500 - 600000 1000000 - 500000 975000 - 400000 950000 - 300000 937500 - 200000 925000 - >; + operating-points-v2 = <&cpu0_opp_table>; #cooling-cells = <2>; /* min followed by max */ }; }; + cpu0_opp_table: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <925000>; + clock-latency-ns = <140000>; + }; + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <937500>; + clock-latency-ns = <140000>; + }; + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <950000>; + clock-latency-ns = <140000>; + }; + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <975000>; + clock-latency-ns = <140000>; + }; + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <140000>; + }; + opp-700000000 { + opp-hz = /bits/ 64 <700000000>; + opp-microvolt = <1012500>; + clock-latency-ns = <140000>; + }; + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <1025000>; + clock-latency-ns = <140000>; + }; + opp-900000000 { + opp-hz = /bits/ 64 <900000000>; + opp-microvolt = <1050000>; + clock-latency-ns = <140000>; + }; + opp-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <1075000>; + clock-latency-ns = <140000>; + }; + opp-1100000000 { + opp-hz = /bits/ 64 <1100000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <140000>; + }; + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1125000>; + clock-latency-ns = <140000>; + }; + opp-1300000000 { + opp-hz = /bits/ 64 <1300000000>; + opp-microvolt = <1150000>; + clock-latency-ns = <140000>; + }; + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-microvolt = <1200000>; + clock-latency-ns = <140000>; + }; + opp-1500000000 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <1225000>; + clock-latency-ns = <140000>; + }; + opp-1600000000 { + opp-hz = /bits/ 64 <1600000000>; + opp-microvolt = <1250000>; + clock-latency-ns = <140000>; + }; + opp-1700000000 { + opp-hz = /bits/ 64 <1700000000>; + opp-microvolt = <1300000>; + clock-latency-ns = <140000>; + }; + }; + soc: soc { sysram@2020000 { compatible = "mmio-sram";
Greg Kroah-Hartman
maintainerPATCH 199/361 xen-swiotlb: use actually allocated size on check physical continuous
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Joe Jin <[email protected]>
commit 7250f422da0480d8512b756640f131b9b893ccda upstream.
xen_swiotlb_{alloc,free}_coherent() allocate/free memory based on the order of the pages and not size argument (bytes). This is inconsistent with range_straddles_page_boundary and memset which use the 'size' value, which may lead to not exchanging memory with Xen (range_straddles_page_boundary() returned true). And then the call to xen_swiotlb_free_coherent() would actually try to exchange the memory with Xen, leading to the kernel hitting an BUG (as the hypercall returned an error).
This patch fixes it by making the 'size' variable be of the same size as the amount of memory allocated.
--- drivers/xen/swiotlb-xen.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/xen/swiotlb-xen.c +6 -0
@@ -303,6 +303,9 @@ xen_swiotlb_alloc_coherent(struct device*/ flags &= ~(__GFP_DMA | __GFP_HIGHMEM); +/* Convert the size to actually allocated. */ + size =1UL << (order +XEN_PAGE_SHIFT ); +/* On ARM this function returns an ioremap'ped virtual address for * which virt_to_phys doesn't return the corresponding physical * address. In fact on ARM virt_to_phys only works for kernel direct
@@ -351,6 +354,9 @@ xen_swiotlb_free_coherent(struct device* physical address */ phys =xen_bus_to_phys (dev_addr); +/* Convert the size to actually allocated. */ + size =1UL << (order +XEN_PAGE_SHIFT ); +if (((dev_addr + size -1 <= dma_mask)) ||range_straddles_page_boundary (phys, size))xen_destroy_contiguous_region (phys, order);
Greg Kroah-Hartman
maintainerPATCH 194/361 f2fs: fix to recover cold bit of inode block during POR
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chao Yu <[email protected]>
commit ef2a007134b4eaa39264c885999f296577bc87d2 upstream.
Testcase to reproduce this bug:
1. mkfs.f2fs /dev/sdd
2. mount -t f2fs /dev/sdd /mnt/f2fs
3. touch /mnt/f2fs/file
4. sync
5. chattr +A /mnt/f2fs/file
6. xfs_io -f /mnt/f2fs/file -c "fsync"
7. godown /mnt/f2fs
8. umount /mnt/f2fs
9. mount -t f2fs /dev/sdd /mnt/f2fs
10. chattr -A /mnt/f2fs/file
11. xfs_io -f /mnt/f2fs/file -c "fsync"
12. umount /mnt/f2fs
13. mount -t f2fs /dev/sdd /mnt/f2fs
14. lsattr /mnt/f2fs/file
-----------------N- /mnt/f2fs/file
But actually, we expect the corrct result is:
-------A---------N- /mnt/f2fs/file
The reason is in step 9) we missed to recover cold bit flag in inode block, so later, in fsync, we will skip write inode block due to below condition check, result in lossing data in another SPOR.
f2fs_fsync_node_pages()
if (!IS_DNODE(page) || !is_cold_node(page)) continue;
Note that, I guess that some non-dir inode has already lost cold bit during POR, so in order to reenable recovery for those inode, let's try to recover cold bit in f2fs_iget() to save more fsynced data.
--- fs/f2fs/inode.c | 6 ++++++ fs/f2fs/node.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
fs/f2fs/inode.c +6 -0
@@ -368,6 +368,12 @@ static int do_read_inode(struct inode *iif (f2fs_has_inline_data (inode) && !f2fs_exist_data (inode))__recover_inline_status (inode, node_page); +/* try to recover cold bit for non-dir inode */ +if (!S_ISDIR (inode->i_mode) && !is_cold_node (node_page)) { +set_cold_node (node_page, false); +set_page_dirty (node_page); + } +/* get rdev by using inline_info */ __get_inode_rdev (inode, ri);
fs/f2fs/node.c +1 -1
@@ -2539,7 +2539,7 @@ retry:if (!PageUptodate (ipage))SetPageUptodate (ipage);fill_node_footer (ipage, ino, ino,0 , true); -set_cold_node (page, false); +set_cold_node (ipage, false); src =F2FS_INODE (page); dst =F2FS_INODE (ipage);
Greg Kroah-Hartman
maintainerPATCH 193/361 f2fs: fix missing up_read
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jaegeuk Kim <[email protected]>
commit 89d13c38501df730cbb2e02c4499da1b5187119d upstream.
This patch fixes missing up_read call.
--- fs/f2fs/node.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/f2fs/node.c +3 -1
@@ -1542,8 +1542,10 @@ static int __write_node_page(struct page }if (__is_valid_data_blkaddr (ni.blk_addr) && - !f2fs_is_valid_blkaddr (sbi, ni.blk_addr,DATA_GENERIC )) + !f2fs_is_valid_blkaddr (sbi, ni.blk_addr,DATA_GENERIC )) { +up_read (&sbi->node_write); goto redirty_out; + }if (atomic && !test_opt (sbi,NOBARRIER )) fio.op_flags |=REQ_PREFLUSH |REQ_FUA ;
Greg Kroah-Hartman
maintainerPATCH 133/361 f2fs: fix to account IO correctly for cgroup writeback
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chao Yu <[email protected]>
[ Upstream commit 78efac537de33faab9a4302cc05a70bb4a8b3b63 ]
Now, we have supported cgroup writeback, it depends on correctly IO account of specified filesystem.
But in commit d1b3e72d5490 ("f2fs: submit bio of in-place-update pages"), we split write paths from f2fs_submit_page_mbio() to two:
- f2fs_submit_page_bio() for IPU path
- f2fs_submit_page_bio() for OPU path
But still we account write IO only in f2fs_submit_page_mbio(), result in incorrect IO account, fix it by adding missing IO account in IPU path.
--- fs/f2fs/data.c | 4 ++++ 1 file changed, 4 insertions(+)
fs/f2fs/data.c +4 -0
@@ -456,6 +456,10 @@ int f2fs_submit_page_bio(struct f2fs_io_bio_put (bio);return -EFAULT ; } + +if (fio->io_wbc && !is_read_io (fio->op)) +wbc_account_io (fio->io_wbc, page,PAGE_SIZE ); +bio_set_op_attrs (bio, fio->op, fio->op_flags);__submit_bio (fio->sbi, bio, fio->type);
Greg Kroah-Hartman
maintainerPATCH 119/361 rsi: fix memory alignment issue in ARM32 platforms
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Siva Rebbagondla <[email protected]>
[ Upstream commit baa8caf4ab7af2d9e84b566b99fe919a4e9e7562 ]
During testing in ARM32 platforms, observed below kernel panic, as driver accessing data beyond the allocated memory while submitting URB to USB.
Fix: Resolved this by specifying correct length by considering 64 bit alignment. so that, USB bus driver will access only allocated memory.
Unit-test: Tested and confirm that driver bring up and scanning, connection and data transfer works fine with this fix.
...skipping...
[ 25.389450] Unable to handle kernel paging request at virtual address 5aa11422 [ 25.403078] Internal error: Oops: 5 [#1] SMP ARM [ 25.407703] Modules linked in: rsi_usb [ 25.411473] CPU: 1 PID: 317 Comm: RX-Thread Not tainted 4.18.0-rc7 #1 [ 25.419221] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [ 25.425764] PC is at skb_release_data+0x90/0x168 [ 25.430393] LR is at skb_release_all+0x28/0x2c [ 25.434842] pc : [<807435b0>] lr : [<80742ba0>] psr: 200e0013 5aa1141e [ 25.464633] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 25.477524] Process RX-Thread (pid: 317, stack limit = 0x(ptrval)) [ 25.483709] Stack: (0xedf69ed8 to 0xedf6a000) [ 25.569907] Backtrace: [ 25.572368] [<80743520>] (skb_release_data) from [<80742ba0>] (skb_release_all+0x28/0x2c) [ 25.580555] r9:7f00258c r8:00000001 r7:ee355000 r6:eddab0d0 r5:eddab000 r4:eddbb840 [ 25.588308] [<80742b78>] (skb_release_all) from [<807432cc>] (consume_skb+0x30/0x50) [ 25.596055] r5:eddab000 r4:eddbb840 [ 25.599648] [<8074329c>] (consume_skb) from [<7f00117c>] (rsi_usb_rx_thread+0x64/0x12c [rsi_usb]) [ 25.608524] r5:eddab000 r4:eddbb840 [ 25.612116] [<7f001118>] (rsi_usb_rx_thread [rsi_usb]) from [<80142750>] (kthread+0x11c/0x15c) [ 25.620735] r10:ee9ff9e0 r9:edcde3b8 r8:ee355000 r7:edf68000 r6:edd3a780 r5:00000000 [ 25.628567] r4:edcde380 [ 25.631110] [<80142634>] (kthread) from [<801010e8>] (ret_from_fork+0x14/0x2c) [ 25.638336] Exception stack(0xedf69fb0 to 0xedf69ff8) [ 25.682929] ---[ end trace 8236a5496f5b5d3b ]---
--- drivers/net/wireless/rsi/rsi_91x_usb.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/net/wireless/rsi/rsi_91x_usb.c +7 -4
@@ -266,15 +266,17 @@ static void rsi_rx_done_handler(struct uif (urb->status) goto out; -if (urb->actual_length <=0 ) { -rsi_dbg (INFO_ZONE ,"%s: Zero length packet\n" , __func__); +if (urb->actual_length <=0 || + urb->actual_length > rx_cb->rx_skb->len) { +rsi_dbg (INFO_ZONE ,"%s: Invalid packet length = %d\n" , + __func__, urb->actual_length); goto out; }if (skb_queue_len (&dev->rx_q) >=RSI_MAX_RX_PKTS ) {rsi_dbg (INFO_ZONE ,"Max RX packets reached\n" ); goto out; } -skb_put (rx_cb->rx_skb, urb->actual_length); +skb_trim (rx_cb->rx_skb, urb->actual_length);skb_queue_tail (&dev->rx_q, rx_cb->rx_skb);rsi_set_event (&dev->rx_thread.event);
@@ -308,6 +310,7 @@ static int rsi_rx_urb_submit(struct rsi_if (!skb)return -ENOMEM ;skb_reserve (skb,MAX_DWORD_ALIGN_BYTES ); +skb_put (skb,RSI_MAX_RX_USB_PKT_SIZE -MAX_DWORD_ALIGN_BYTES ); dword_align_bytes = (unsigned long )skb->data &0x3f ;if (dword_align_bytes >0 )skb_push (skb, dword_align_bytes);
@@ -319,7 +322,7 @@ static int rsi_rx_urb_submit(struct rsi_usb_rcvbulkpipe (dev->usbdev, dev->bulkin_endpoint_addr[ep_num -1 ]), urb->transfer_buffer, -RSI_MAX_RX_USB_PKT_SIZE , + skb->len, rsi_rx_done_handler, rx_cb);
Greg Kroah-Hartman
maintainerPATCH 36/361 ALSA: hda/realtek - Fix the problem of the front MIC on the Lenovo M715
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hui Wang <[email protected]>
commit d06fb562bff5d14defdacbd92449bacbaedd5cdf upstream.
The front MIC on the Lenovo M715 can't record sound, after applying the ALC294_FIXUP_LENOVO_MIC_LOCATION, the problem is fixed. So add the pin configuration of this machine to the pin quirk table.
--- sound/pci/hda/patch_realtek.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/pci/hda/patch_realtek.c +6 -0
@@ -6843,6 +6843,12 @@ static const struct snd_hda_pin_quirk al {0x21, 0x0221101f}),SND_HDA_PIN_QUIRK (0x10ec0235 ,0x17aa ,"Lenovo" ,ALC294_FIXUP_LENOVO_MIC_LOCATION , {0x14, 0x90170110}, + {0x19, 0x02a11030}, + {0x1a, 0x02a11040}, + {0x1b, 0x01011020}, + {0x21, 0x0221101f}), +SND_HDA_PIN_QUIRK (0x10ec0235 ,0x17aa ,"Lenovo" ,ALC294_FIXUP_LENOVO_MIC_LOCATION , + {0x14, 0x90170110}, {0x19, 0x02a11020}, {0x1a, 0x02a11030}, {0x21, 0x0221101f}),
Greg Kroah-Hartman
maintainerPATCH 35/361 ALSA: hda - Fix headphone pin config for ASUS G751
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
commit 5b7c5e1f4c36b99d0f694f38b9ad910f520cb7ef upstream.
BIOS on ASUS G751 doesn't seem to map the headphone pin (NID 0x16) correctly. Add a quirk to address it, as well as chaining to the previous fix for the microphone.
--- sound/pci/hda/patch_realtek.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
sound/pci/hda/patch_realtek.c +11 -1
@@ -7738,6 +7738,7 @@ enum { ALC662_FIXUP_ASUS_Nx50, ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, ALC668_FIXUP_ASUS_Nx51, +ALC668_FIXUP_MIC_COEF ,ALC668_FIXUP_ASUS_G751 ,ALC891_FIXUP_HEADSET_MODE , ALC891_FIXUP_DELL_MIC_NO_PRESENCE,
@@ -8008,7 +8009,7 @@ static const struct hda_fixup alc662_fix .chained = true, .chain_id = ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, }, - [ALC668_FIXUP_ASUS_G751] = { + [ALC668_FIXUP_MIC_COEF] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb []) { { 0x20, AC_VERB_SET_COEF_INDEX, 0xc3 },
@@ -8016,6 +8017,15 @@ static const struct hda_fixup alc662_fix {} }, }, + [ALC668_FIXUP_ASUS_G751] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl []) { + {0x16 ,0x0421101f },/* HP */ + {} + }, + .chained = true, + .chain_id =ALC668_FIXUP_MIC_COEF + }, [ALC891_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode,
Greg Kroah-Hartman
maintainerPATCH 34/361 ALSA: hda - Add quirk for ASUS G751 laptop
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
commit 11ba6111160290ccd35562f4e05cec08942a6c4c upstream.
ASUS G751 requires the extra COEF initialization to make it microphone working properly.
--- sound/pci/hda/patch_realtek.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
sound/pci/hda/patch_realtek.c +10 -0
@@ -7738,6 +7738,7 @@ enum { ALC662_FIXUP_ASUS_Nx50, ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, ALC668_FIXUP_ASUS_Nx51, +ALC668_FIXUP_ASUS_G751 ,ALC891_FIXUP_HEADSET_MODE ,ALC891_FIXUP_DELL_MIC_NO_PRESENCE , ALC662_FIXUP_ACER_VERITON,
@@ -8007,6 +8008,14 @@ static const struct hda_fixup alc662_fix .chained = true, .chain_id = ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, }, + [ALC668_FIXUP_ASUS_G751] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb []) { + {0x20 ,AC_VERB_SET_COEF_INDEX ,0xc3 }, + {0x20 ,AC_VERB_SET_PROC_COEF ,0x4000 }, + {} + }, + }, [ALC891_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode,
@@ -8080,6 +8089,7 @@ static const struct snd_pci_quirk alc662SND_PCI_QUIRK (0x1043 ,0x11cd ,"Asus N550" , ALC662_FIXUP_ASUS_Nx50),SND_PCI_QUIRK (0x1043 ,0x13df ,"Asus N550JX" ,ALC662_FIXUP_BASS_1A ),SND_PCI_QUIRK (0x1043 ,0x129d ,"Asus N750" , ALC662_FIXUP_ASUS_Nx50), +SND_PCI_QUIRK (0x1043 ,0x12ff ,"ASUS G751" ,ALC668_FIXUP_ASUS_G751 ),SND_PCI_QUIRK (0x1043 ,0x1477 ,"ASUS N56VZ" ,ALC662_FIXUP_BASS_MODE4_CHMAP ),SND_PCI_QUIRK (0x1043 ,0x15a7 ,"ASUS UX51VZH" ,ALC662_FIXUP_BASS_16 ), SND_PCI_QUIRK(0x1043, 0x177d, "ASUS N551", ALC668_FIXUP_ASUS_Nx51),
Greg Kroah-Hartman
maintainerPATCH 32/361 parisc: Fix map_pages() to not overwrite existing pte entries
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Helge Deller <[email protected]>
commit 3c229b3f2dd8133f61bb81d3cb018be92f4bba39 upstream.
Fix a long-existing small nasty bug in the map_pages() implementation which leads to overwriting already written pte entries with zero, *if* map_pages() is called a second time with an end address which isn't aligned on a pmd boundry. This happens for example if we want to remap only the text segment read/write in order to run alternative patching on the code. Exiting the loop when we reach the end address fixes this.
--- arch/parisc/mm/init.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
arch/parisc/mm/init.c +2 -6
@@ -494,12 +494,8 @@ static void __init map_pages(unsigned lo pte =pte_mkhuge (pte); } -if (address >= end_paddr) { -if (force) -break ; -else -pte_val (pte) =0 ; - } +if (address >= end_paddr) +break ;set_pte (pg_table, pte);
Greg Kroah-Hartman
maintainerPATCH 31/361 parisc: Fix address in HPMC IVA
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: John David Anglin <[email protected]>
commit 1138b6718ff74d2a934459643e3754423d23b5e2 upstream.
Helge noticed that the address of the os_hpmc handler was not being correctly calculated in the hpmc macro. As a result, PDCE_CHECK would fail to call os_hpmc:
<Cpu2> e800009802e00000 0000000000000000 CC_ERR_CHECK_HPMC <Cpu2> 37000f7302e00000 8040004000000000 CC_ERR_CPU_CHECK_SUMMARY <Cpu2> f600105e02e00000 fffffff0f0c00000 CC_MC_HPMC_MONARCH_SELECTED <Cpu2> 140003b202e00000 000000000000000b CC_ERR_HPMC_STATE_ENTRY <Cpu2> 5600100b02e00000 00000000000001a0 CC_MC_OS_HPMC_LEN_ERR <Cpu2> 5600106402e00000 fffffff0f0438e70 CC_MC_BR_TO_OS_HPMC_FAILED <Cpu2> e800009802e00000 0000000000000000 CC_ERR_CHECK_HPMC <Cpu2> 37000f7302e00000 8040004000000000 CC_ERR_CPU_CHECK_SUMMARY <Cpu2> 4000109f02e00000 0000000000000000 CC_MC_HPMC_INITIATED <Cpu2> 4000101902e00000 0000000000000000 CC_MC_MULTIPLE_HPMCS <Cpu2> 030010d502e00000 0000000000000000 CC_CPU_STOP
The address problem can be seen by dumping the fault vector:
0000000040159000 <fault_vector_20>:
40159000: 63 6f 77 73 stb r15,-2447(dp)
40159004: 20 63 61 6e ldil L%b747000,r3
40159008: 20 66 6c 79 ldil L%-1c3b3000,r3
...
40159020: 08 00 02 40 nop
40159024: 20 6e 60 02 ldil L%15d000,r3
40159028: 34 63 00 00 ldo 0(r3),r3
4015902c: e8 60 c0 02 bv,n r0(r3)
40159030: 08 00 02 40 nop
40159034: 00 00 00 00 break 0,0
40159038: c0 00 70 00 bb,*< r0,sar,40159840 <fault_vector_20+0x840>
4015903c: 00 00 00 00 break 0,0Location 40159038 should contain the physical address of os_hpmc:
000000004015d000 <os_hpmc>:
4015d000: 08 1a 02 43 copy r26,r3
4015d004: 01 c0 08 a4 mfctl iva,r4
4015d008: 48 85 00 68 ldw 34(r4),r5This patch moves the address setup into initialize_ivt to resolve the above problem. I tested the change by dumping the HPMC entry after setup:
0000000040209020: 8000240
0000000040209024: 206a2004
0000000040209028: 34630ac0000000004020902c: e860c002
0000000040209030: 8000240
0000000040209034: 1bdddce6
0000000040209038: 15d000000000004020903c: 1a0
--- arch/parisc/kernel/entry.S | 2 +- arch/parisc/kernel/traps.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
arch/parisc/kernel/entry.S +1 -1
@@ -186,7 +186,7 @@ bv,n 0(%r3) nop .word 0 /* checksum (will be patched) */ - .word PA(os_hpmc) /* address of handler */ + .word 0 /* address of handler */ .word 0 /* length of handler */ .endm
arch/parisc/kernel/traps.c +2 -1
@@ -802,7 +802,8 @@ void __init initialize_ivt(const void *i* the Length/4 words starting at Address is zero. */ -/* Compute Checksum for HPMC handler */ +/* Setup IVA and compute checksum for HPMC handler */ + ivap[6 ] = (u32 )__pa (os_hpmc); length = os_hpmc_size; ivap[7 ] = length;
Greg Kroah-Hartman
maintainerPATCH 30/361 mailbox: PCC: handle parse error
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Arcari <[email protected]>
commit afd0b1fb22269f48d68fdf269891c653818c8047 upstream.
acpi_pcc_probe() calls acpi_table_parse_entries_array() but fails to check for an error return. This in turn can result in calling kcalloc() with a negative count as well as emitting the following misleading erorr message:
[ 2.642015] Could not allocate space for PCC mbox channels
--- drivers/mailbox/pcc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/mailbox/pcc.c +5 -2
@@ -461,8 +461,11 @@ static int __init acpi_pcc_probe(void) count =acpi_table_parse_entries_array (ACPI_SIG_PCCT ,sizeof (struct acpi_table_pcct ), proc,ACPI_PCCT_TYPE_RESERVED ,MAX_PCC_SUBSPACES ); -if (count ==0 || count >MAX_PCC_SUBSPACES ) { -pr_warn ("Invalid PCCT: %d PCC subspaces\n" , count); +if (count <=0 || count >MAX_PCC_SUBSPACES ) { +if (count <0 ) +pr_warn ("Error parsing PCC subspaces from PCCT\n" ); +else +pr_warn ("Invalid PCCT: %d PCC subspaces\n" , count);return -EINVAL ; }
Greg Kroah-Hartman
maintainerPATCH 44/361 x86/kvm/nVMX: allow bare VMXON state migration
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vitaly Kuznetsov <[email protected]>
commit a1b0c1c64dfef0cff8555bb708bfc5d7c66c6ca4 upstream.
It is perfectly valid for a guest to do VMXON and not do VMPTRLD. This state needs to be preserved on migration.
--- arch/x86/kvm/vmx.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
arch/x86/kvm/vmx.c +8 -7
@@ -14010,13 +14010,6 @@ static int vmx_set_nested_state(struct kif (!page_address_valid (vcpu, kvm_state->vmx.vmxon_pa))return -EINVAL ; -if (kvm_state->size <sizeof (kvm_state) +sizeof (*vmcs12)) -return -EINVAL ; - -if (kvm_state->vmx.vmcs_pa == kvm_state->vmx.vmxon_pa || - !page_address_valid (vcpu, kvm_state->vmx.vmcs_pa)) -return -EINVAL ; -if ((kvm_state->vmx.smm.flags &KVM_STATE_NESTED_SMM_GUEST_MODE ) && (kvm_state->flags &KVM_STATE_NESTED_GUEST_MODE ))return -EINVAL ;
@@ -14046,6 +14039,14 @@ static int vmx_set_nested_state(struct kif (ret)return ret; +/* Empty 'VMXON' state is permitted */ +if (kvm_state->size <sizeof (kvm_state) +sizeof (*vmcs12)) +return 0 ; + +if (kvm_state->vmx.vmcs_pa == kvm_state->vmx.vmxon_pa || + !page_address_valid (vcpu, kvm_state->vmx.vmcs_pa)) +return -EINVAL ; +set_current_vmptr (vmx, kvm_state->vmx.vmcs_pa);if (kvm_state->vmx.smm.flags &KVM_STATE_NESTED_SMM_VMXON ) {
Greg Kroah-Hartman
maintainerPATCH 46/361 x86/numa_emulation: Fix uniform-split numa emulation
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dave Jiang <[email protected]>
commit c6ee7a548e2c291398b4f32c1f741c66b9f98e1c upstream.
The numa_emulation() routine in the 'uniform' case walks through all the physical 'memblk' instances and divides them into N emulated nodes with split_nodes_size_interleave_uniform(). As each physical node is consumed it is removed from the physical memblk array in the numa_remove_memblk_from() helper.
Since split_nodes_size_interleave_uniform() handles advancing the array as the 'memblk' is consumed it is expected that the base of the array is always specified as the argument.
Otherwise, on multi-socket (> 2) configurations the uniform-split capability can generate an invalid numa configuration leading to boot failures with signatures like the following:
rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
Sending NMI from CPU 0 to CPUs 2:
NMI backtrace for cpu 2
CPU: 2 PID: 1332 Comm: pgdatinit0 Not tainted 4.19.0-rc8-next-20181019-baseline #59
RIP: 0010:__init_single_page.isra.74+0x81/0x90
[..]
Call Trace:
deferred_init_pages+0xaa/0xe3
deferred_init_memmap+0x18f/0x318
kthread+0xf8/0x130
? deferred_free_pages.isra.105+0xc9/0xc9
? kthread_stop+0x110/0x110
ret_from_fork+0x35/0x40--- arch/x86/mm/numa_emulation.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
arch/x86/mm/numa_emulation.c +10 -2
@@ -400,9 +400,17 @@ void __init numa_emulation(struct numa_m n =simple_strtoul (emu_cmdline, &emu_cmdline,0 ); ret =-1 ;for_each_node_mask (i, physnode_mask) { +/* +* The reason we pass in blk[0] is due to +* numa_remove_memblk_from() called by +* emu_setup_memblk() will delete entry 0 +* and then move everything else up in the pi.blk +* array. Therefore we should always be looking +* at blk[0]. +*/ ret =split_nodes_size_interleave_uniform (&ei, &pi, - pi.blk[i].start, pi.blk[i].end,0 , - n, &pi.blk[i], nid); + pi.blk[0 ].start, pi.blk[0 ].end,0 , + n, &pi.blk[0 ], nid);if (ret <0 )break ;if (ret < n) {
Greg Kroah-Hartman
maintainerPATCH 29/361 ipmi: Fix timer race with module unload
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jan Glauber <[email protected]>
commit 0711e8c1b4572d076264e71b0002d223f2666ed7 upstream.
Please note that below oops is from an older kernel, but the same race seems to be present in the upstream kernel too.
---8<---
The following panic was encountered during removing the ipmi_ssif module:
[ 526.352555] Unable to handle kernel paging request at virtual address ffff000006923090 [ 526.360464] Mem abort info: [ 526.363257] ESR = 0x86000007 [ 526.366304] Exception class = IABT (current EL), IL = 32 bits [ 526.372221] SET = 0, FnV = 0 [ 526.375269] EA = 0, S1PTW = 0 [ 526.378405] swapper pgtable: 4k pages, 48-bit VAs, pgd = 000000008ae60416 [ 526.385185] [ffff000006923090] *pgd=000000bffcffe803, *pud=000000bffcffd803, *pmd=0000009f4731a003, *pte=0000000000000000 [ 526.396141] Internal error: Oops: 86000007 [#1] SMP [ 526.401008] Modules linked in: nls_iso8859_1 ipmi_devintf joydev input_leds ipmi_msghandler shpchp sch_fq_codel ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear i2c_smbus hid_generic usbhid uas hid usb_storage ast aes_ce_blk i2c_algo_bit aes_ce_cipher qede ttm crc32_ce ptp crct10dif_ce drm_kms_helper ghash_ce syscopyarea sha2_ce sysfillrect sysimgblt pps_core fb_sys_fops sha256_arm64 sha1_ce mpt3sas qed drm raid_class ahci scsi_transport_sas libahci gpio_xlp i2c_xlp9xx aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64 [last unloaded: ipmi_ssif] [ 526.468085] CPU: 125 PID: 0 Comm: swapper/125 Not tainted 4.15.0-35-generic #38~lp1775396+build.1 [ 526.476942] Hardware name: To be filled by O.E.M. Saber/Saber, BIOS 0ACKL022 08/14/2018 [ 526.484932] pstate: 00400009 (nzcv daif +PAN -UAO) [ 526.489713] pc : 0xffff000006923090 [ 526.493198] lr : call_timer_fn+0x34/0x178 [ 526.497194] sp : ffff000009b0bdd0 [ 526.500496] x29: ffff000009b0bdd0 x28: 0000000000000082 [ 526.505796] x27: 0000000000000002 x26: ffff000009515188 [ 526.511096] x25: ffff000009515180 x24: ffff0000090f1018 [ 526.516396] x23: ffff000009519660 x22: dead000000000200 [ 526.521696] x21: ffff000006923090 x20: 0000000000000100 [ 526.526995] x19: ffff809eeb466a40 x18: 0000000000000000 [ 526.532295] x17: 000000000000000e x16: 0000000000000007 [ 526.537594] x15: 0000000000000000 x14: 071c71c71c71c71c [ 526.542894] x13: 0000000000000000 x12: 0000000000000000 [ 526.548193] x11: 0000000000000001 x10: ffff000009b0be88 [ 526.553493] x9 : 0000000000000000 x8 : 0000000000000005 [ 526.558793] x7 : ffff80befc1f8528 x6 : 0000000000000020 [ 526.564092] x5 : 0000000000000040 x4 : 0000000020001b20 [ 526.569392] x3 : 0000000000000000 x2 : ffff809eeb466a40 [ 526.574692] x1 : ffff000006923090 x0 : ffff809eeb466a40 [ 526.579992] Process swapper/125 (pid: 0, stack limit = 0x000000002eb50acc) [ 526.586854] Call trace: [ 526.589289] 0xffff000006923090 [ 526.592419] expire_timers+0xc8/0x130 [ 526.596070] run_timer_softirq+0xec/0x1b0 [ 526.600070] __do_softirq+0x134/0x328 [ 526.603726] irq_exit+0xc8/0xe0 [ 526.606857] __handle_domain_irq+0x6c/0xc0 [ 526.610941] gic_handle_irq+0x84/0x188 [ 526.614679] el1_irq+0xe8/0x180 [ 526.617822] cpuidle_enter_state+0xa0/0x328 [ 526.621993] cpuidle_enter+0x34/0x48 [ 526.625564] call_cpuidle+0x44/0x70 [ 526.629040] do_idle+0x1b8/0x1f0 [ 526.632256] cpu_startup_entry+0x2c/0x30 [ 526.636174] secondary_start_kernel+0x11c/0x130 [ 526.640694] Code: bad PC value [ 526.643800] ---[ end trace d020b0b8417c2498 ]--- [ 526.648404] Kernel panic - not syncing: Fatal exception in interrupt [ 526.654778] SMP: stopping secondary CPUs [ 526.658734] Kernel Offset: disabled [ 526.662211] CPU features: 0x5800c38 [ 526.665688] Memory Limit: none [ 526.668768] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
Prevent mod_timer from arming a timer that was already removed by del_timer during module unload.
--- drivers/char/ipmi/ipmi_ssif.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/char/ipmi/ipmi_ssif.c +6 -4
@@ -606,8 +606,9 @@ static void msg_done_handler(struct ssif flags =ipmi_ssif_lock_cond (ssif_info, &oflags); ssif_info->waiting_alert = true; ssif_info->rtc_us_timer =SSIF_MSG_USEC ; -mod_timer (&ssif_info->retry_timer, - jiffies +SSIF_MSG_JIFFIES ); +if (!ssif_info->stopping) +mod_timer (&ssif_info->retry_timer, + jiffies +SSIF_MSG_JIFFIES );ipmi_ssif_unlock_cond (ssif_info, flags);return ; }
@@ -939,8 +940,9 @@ static void msg_written_handler(struct s ssif_info->waiting_alert = true; ssif_info->retries_left =SSIF_RECV_RETRIES ; ssif_info->rtc_us_timer =SSIF_MSG_PART_USEC ; -mod_timer (&ssif_info->retry_timer, - jiffies +SSIF_MSG_PART_JIFFIES ); +if (!ssif_info->stopping) +mod_timer (&ssif_info->retry_timer, + jiffies +SSIF_MSG_PART_JIFFIES );ipmi_ssif_unlock_cond (ssif_info, flags); } }
Greg Kroah-Hartman
maintainerPATCH 47/361 ARM: dts: exynos: Disable pull control for MAX8997 interrupts on Origen
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marek Szyprowski <[email protected]>
commit f5e758b8358f6c27e8a351ddf0b441a64cdabb94 upstream.
PMIC_IRQB and PMIC_KEYINB lines on Exynos4210-based Origen board have external pull-up resistors, so disable any pull control for those lines in respective pin controller node. This fixes support for MAX8997 interrupts and enables operation of wakeup from MAX8997 RTC alarm.
--- arch/arm/boot/dts/exynos4210-origen.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/exynos4210-origen.dts +9 -0
@@ -151,6 +151,8 @@ reg = <0x66>; interrupt-parent = <&gpx0>; interrupts = <4 IRQ_TYPE_NONE>, <3 IRQ_TYPE_NONE>; + pinctrl-names = "default"; + pinctrl-0 = <&max8997_irq>; max8997,pmic-buck1-dvs-voltage = <1350000>; max8997,pmic-buck2-dvs-voltage = <1100000>;
@@ -288,6 +290,13 @@ }; }; +&pinctrl_1 { + max8997_irq: max8997-irq { + samsung,pins = "gpx0-3", "gpx0-4"; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; +}; + &sdhci_0 { bus-width = <4>; pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_cd>;
Greg Kroah-Hartman
maintainerPATCH 38/361 ALSA: hda: Add 2 more models to the power_save blacklist
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hans de Goede <[email protected]>
commit 5cb6b5fc013ee711d19bfc4e9deb8d6ae80741db upstream.
Power-saving is causing plops on audio start/stop on Dell Precision T3600 laptops and Intel DZ77BH boards, add these to the power_save blacklist.
--- sound/pci/hda/hda_intel.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/pci/hda/hda_intel.c +4 -0
@@ -2257,8 +2257,12 @@ static struct snd_pci_quirk power_save_b/* https://bugzilla.redhat.com/show_bug.cgi?id=1581607 */ SND_PCI_QUIRK (0x1558 ,0x3501 ,"Clevo W35xSS_370SS" ,0 ),/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ +SND_PCI_QUIRK (0x1028 ,0x0497 ,"Dell Precision T3600" ,0 ), +/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ /* Note the P55A-UD3 and Z87-D3HP share the subsys id for the HDA dev */ SND_PCI_QUIRK (0x1458 ,0xa002 ,"Gigabyte P55A-UD3 / Z87-D3HP" ,0 ), +/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ +SND_PCI_QUIRK (0x8086 ,0x2040 ,"Intel DZ77BH-55K" ,0 ),/* https://bugzilla.kernel.org/show_bug.cgi?id=199607 */ SND_PCI_QUIRK(0x8086, 0x2057, "Intel NUC5i7RYB", 0),/* https://bugzilla.redhat.com/show_bug.cgi?id=1520902 */
Greg Kroah-Hartman
maintainerPATCH 40/361 ALSA: hda - Fix incorrect clearance of thinkpad_acpi hooks
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
commit 5e93a125f521efd00d71af31c2a301f3d46af48c upstream.
Since the commit c647f806b8c2 ("ALSA: hda - Allow multiple ADCs for mic mute LED controls") we allow enabling the mic mute LED with multiple ADCs. The commit changed the function return value to be zero or a negative error, while this change was overlooked in the thinkpad_acpi helper code where it still expects a positive return value for success. This eventually leads to a NULL dereference on a system that has only a mic mute LED.
This patch corrects the return value check in the corresponding code as well.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=201621
--- sound/pci/hda/thinkpad_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/pci/hda/thinkpad_helper.c +2 -2
@@ -58,8 +58,8 @@ static void hda_fixup_thinkpad_acpi(stru removefunc = false; }if (led_set_func (TPACPI_LED_MICMUTE , false) >=0 && -snd_hda_gen_add_micmute_led (codec, - update_tpacpi_micmute) >0 ) + !snd_hda_gen_add_micmute_led (codec, + update_tpacpi_micmute)) removefunc = false; }
Greg Kroah-Hartman
maintainerPATCH 43/361 x86/corruption-check: Fix panic in memory_corruption_check() when boot option without value is provided
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: He Zhe <[email protected]>
commit ccde460b9ae5c2bd5e4742af0a7f623c2daad566 upstream.
memory_corruption_check[{_period|_size}]()'s handlers do not check input argument before passing it to kstrtoul() or simple_strtoull(). The argument would be a NULL pointer if each of the kernel parameters, without its value, is set in command line and thus cause the following panic.
PANIC: early exception 0xe3 IP 10:ffffffff73587c22 error 0 cr2 0x0
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.18-rc8+ #2 [ 0.000000] RIP: 0010:kstrtoull+0x2/0x10 ... [ 0.000000] Call Trace [ 0.000000] ? set_corruption_check+0x21/0x49 [ 0.000000] ? do_early_param+0x4d/0x82 [ 0.000000] ? parse_args+0x212/0x330 [ 0.000000] ? rdinit_setup+0x26/0x26 [ 0.000000] ? parse_early_options+0x20/0x23 [ 0.000000] ? rdinit_setup+0x26/0x26 [ 0.000000] ? parse_early_param+0x2d/0x39 [ 0.000000] ? setup_arch+0x2f7/0xbf4 [ 0.000000] ? start_kernel+0x5e/0x4c2 [ 0.000000] ? load_ucode_bsp+0x113/0x12f [ 0.000000] ? secondary_startup_64+0xa5/0xb0
This patch adds checks to prevent the panic.
--- arch/x86/kernel/check.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/x86/kernel/check.c +15 -0
@@ -31,6 +31,11 @@ static __init int set_corruption_check(cssize_t ret;unsigned long val; +if (!arg) { +pr_err ("memory_corruption_check config string not provided\n" ); +return -EINVAL ; + } + ret =kstrtoul (arg,10 , &val);if (ret)return ret;
@@ -45,6 +50,11 @@ static __init int set_corruption_check_pssize_t ret;unsigned long val; +if (!arg) { +pr_err ("memory_corruption_check_period config string not provided\n" ); +return -EINVAL ; + } + ret =kstrtoul (arg,10 , &val);if (ret)return ret;
@@ -59,6 +69,11 @@ static __init int set_corruption_check_schar *end;unsigned size; +if (!arg) { +pr_err ("memory_corruption_check_size config string not provided\n" ); +return -EINVAL ; + } + size =memparse (arg, &end);if (*end =='\0' )
Greg Kroah-Hartman
maintainerPATCH 39/361 ALSA: ca0106: Disable IZD on SB0570 DAC to fix audio pops
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alex Stanoev <[email protected]>
commit ac237c28d5ac1b241d58b1b7b4b9fa10efb22fb5 upstream.
The Creative Audigy SE (SB0570) card currently exhibits an audible pop whenever playback is stopped or resumed, or during silent periods of an audio stream. Initialise the IZD bit to the 0 to eliminate these pops.
The Infinite Zero Detection (IZD) feature on the DAC causes the output to be shunted to Vcap after 2048 samples of silence. This discharges the AC coupling capacitor through the output and causes the aforementioned pop/click noise.
The behaviour of the IZD bit is described on page 15 of the WM8768GEDS
datasheet: "With IZD=1, applying MUTE for 1024 consecutive input samples will cause all outputs to be connected directly to VCAP. This also happens if 2048 consecutive zero input samples are applied to all 6 channels, and IZD=0. It will be removed as soon as any channel receives a non-zero input". I believe the second sentence might be referring to IZD=1 instead of IZD=0 given the observed behaviour of the card.
This change should make the DAC initialisation consistent with Creative's Windows driver, as this popping persists when initialising the card in Linux and soft rebooting into Windows, but is not present on a cold boot to Windows.
--- sound/pci/ca0106/ca0106.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/ca0106/ca0106.h +1 -1
@@ -582,7 +582,7 @@#define SPI_PL_BIT_R_R (2<<7)/* right channel = right */ #define SPI_PL_BIT_R_C (3<<7)/* right channel = (L+R)/2 */ #define SPI_IZD_REG 2 -#define SPI_IZD_BIT (1<<4)/* infinite zero detect */ +#define SPI_IZD_BIT (0<<4)/* infinite zero detect */ #define SPI_FMT_REG 3#define SPI_FMT_BIT_RJ (0<<0)/* right justified mode */
Greg Kroah-Hartman
maintainerPATCH 26/361 ACPICA: AML Parser: fix parse loop to correctly skip erroneous extended opcodes
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Erik Schmauss <[email protected]>
commit c64baa3a6fa207d112706bc5e7fd645cd8a8663f upstream.
AML opcodes come in two lengths: 1-byte opcodes and 2-byte, extended opcodes. If an error occurs due to illegal opcodes during table load, the AML parser needs to continue loading the table. In order to do this, it needs to skip parsing of the offending opcode and operands associated with that opcode.
This change fixes the AML parse loop to correctly skip parsing of incorrect extended opcodes. Previously, only the short opcodes were skipped correctly.
--- drivers/acpi/acpica/psloop.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/acpi/acpica/psloop.c +13 -1
@@ -417,6 +417,7 @@ acpi_status acpi_ps_parse_loop(struct acunion acpi_parse_object *op =NULL ;/* current op */ struct acpi_parse_state *parser_state;u8 *aml_op_start =NULL ; +u8 opcode_length;ACPI_FUNCTION_TRACE_PTR (ps_parse_loop, walk_state);
@@ -540,8 +541,19 @@ acpi_status acpi_ps_parse_loop(struct ac"Skip parsing opcode %s" ,acpi_ps_get_opcode_name (walk_state->opcode))); + +/* +* Determine the opcode length before skipping the opcode. +* An opcode can be 1 byte or 2 bytes in length. +*/ + opcode_length =1 ; +if ((walk_state->opcode &0xFF00 ) == +AML_EXTENDED_OPCODE ) { + opcode_length =2 ; + } walk_state->parser_state.aml = - walk_state->aml +1 ; + walk_state->aml + opcode_length; + walk_state->parser_state.aml =acpi_ps_get_next_package_end (&walk_state->parser_state);
Greg Kroah-Hartman
maintainerPATCH 37/361 ALSA: hda - Add mic quirk for the Lenovo G50-30 (17aa:3905)
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeremy Cline <[email protected]>
commit e7bb6ad5685f05685dd8a6a5eda7bfcd14d5f95b upstream.
The Lenovo G50-30, like other G50 models, has a Conexant codec that requires a quirk for its inverted stereo dmic.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1249364
--- sound/pci/hda/patch_conexant.c | 1 + 1 file changed, 1 insertion(+)
sound/pci/hda/patch_conexant.c +1 -0
@@ -943,6 +943,7 @@ static const struct snd_pci_quirk cxt506SND_PCI_QUIRK (0x17aa ,0x21da ,"Lenovo X220" ,CXT_PINCFG_LENOVO_TP410 ),SND_PCI_QUIRK (0x17aa ,0x21db ,"Lenovo X220-tablet" ,CXT_PINCFG_LENOVO_TP410 ),SND_PCI_QUIRK (0x17aa ,0x38af ,"Lenovo IdeaPad Z560" ,CXT_FIXUP_MUTE_LED_EAPD ), +SND_PCI_QUIRK (0x17aa ,0x3905 ,"Lenovo G50-30" ,CXT_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x17aa ,0x390b ,"Lenovo G50-80" ,CXT_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x17aa ,0x3975 ,"Lenovo U300s" ,CXT_FIXUP_STEREO_DMIC ), SND_PCI_QUIRK(0x17aa, 0x3977, "Lenovo IdeaPad U310", CXT_FIXUP_STEREO_DMIC),
Greg Kroah-Hartman
maintainerPATCH 28/361 kprobes/x86: Use preempt_enable() in optimized_callback()
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Masami Hiramatsu <[email protected]>
commit 2e62024c265aa69315ed02835623740030435380 upstream.
The following commit:
a19b2e3d7839 ("kprobes/x86: Remove IRQ disabling from ftrace-based/optimized kprobes”)
removed local_irq_save/restore() from optimized_callback(), the handler might be interrupted by the rescheduling interrupt and might be rescheduled - so we must not use the preempt_enable_no_resched() macro.
Use preempt_enable() instead, to not lose preemption events.
[ mingo: Improved the changelog. ]
--- arch/x86/kernel/kprobes/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kprobes/opt.c +1 -1
@@ -179,7 +179,7 @@ optimized_callback(struct optimized_kproopt_pre_handler (&op->kp, regs);__this_cpu_write (current_kprobe,NULL ); } -preempt_enable_no_resched (); +preempt_enable (); }NOKPROBE_SYMBOL (optimized_callback);
Greg Kroah-Hartman
maintainerPATCH 24/361 ACPI / OSL: Use jiffies as the time bassis for acpi_os_get_timer()
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bart Van Assche <[email protected]>
commit 83b2348e2755db48fa8f40fdb791f366fabc0ba0 upstream.
Since acpi_os_get_timer() may be called after the timer subsystem has been suspended, use the jiffies counter instead of ktime_get(). This patch avoids that the following warning is reported during hibernation:
WARNING: CPU: 0 PID: 612 at kernel/time/timekeeping.c:751 ktime_get+0x116/0x120 RIP: 0010:ktime_get+0x116/0x120 Call Trace: acpi_os_get_timer+0xe/0x30 acpi_ds_exec_begin_control_op+0x175/0x1de acpi_ds_exec_begin_op+0x2c7/0x39a acpi_ps_create_op+0x573/0x5e4 acpi_ps_parse_loop+0x349/0x1220 acpi_ps_parse_aml+0x25b/0x6da acpi_ps_execute_method+0x327/0x41b acpi_ns_evaluate+0x4e9/0x6f5 acpi_ut_evaluate_object+0xd9/0x2f2 acpi_rs_get_method_data+0x8f/0x114 acpi_walk_resources+0x122/0x1b6 acpi_pci_link_get_current.isra.2+0x157/0x280 acpi_pci_link_set+0x32f/0x4a0 irqrouter_resume+0x58/0x80 syscore_resume+0x84/0x380 hibernation_snapshot+0x20c/0x4f0 hibernate+0x22d/0x3a6 state_store+0x99/0xa0 kobj_attr_store+0x37/0x50 sysfs_kf_write+0x87/0xa0 kernfs_fop_write+0x1a5/0x240 __vfs_write+0xd2/0x410 vfs_write+0x101/0x250 ksys_write+0xab/0x120 __x64_sys_write+0x43/0x50 do_syscall_64+0x71/0x220 entry_SYSCALL_64_after_hwframe+0x49/0xbe
References: https://lists.01.org/pipermail/lkp/2018-April/008406.html
--- drivers/acpi/osl.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
drivers/acpi/osl.c +9 -6
@@ -617,15 +617,18 @@ void acpi_os_stall(u32 us) }/* -* Support ACPI 3.0 AML Timer operand -* Returns 64-bit free-running, monotonically increasing timer -* with 100ns granularity +* Support ACPI 3.0 AML Timer operand. Returns a 64-bit free-running, +* monotonically increasing timer with 100ns granularity. Do not use +* ktime_get() to implement this function because this function may get +* called after timekeeping has been suspended. Note: calling this function +* after timekeeping has been suspended may lead to unexpected results +* because when timekeeping is suspended the jiffies counter is not +* incremented. See also timekeeping_suspend(). */ u64 acpi_os_get_timer (void ) { -u64 time_ns =ktime_to_ns (ktime_get ()); -do_div (time_ns,100 ); -return time_ns; +return (get_jiffies_64 () -INITIAL_JIFFIES ) * + (ACPI_100NSEC_PER_SEC /HZ ); }acpi_status acpi_os_read_port (acpi_io_address port,u32 * value,u32 width)
Greg Kroah-Hartman
maintainerPATCH 7/361 mtd: spi-nor: intel-spi: Add support for Intel Ice Lake SPI serial flash
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mika Westerberg <[email protected]>
commit 42460c31ae96cbad5ae226ee6c10bd8d70d764ae upstream.
Intel Ice Lake exposes the SPI serial flash controller as a PCI device in the same way than Intel Denverton. Add Ice Lake SPI serial flash PCI ID to the driver list of supported devices.
--- drivers/mtd/spi-nor/intel-spi-pci.c | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/intel-spi-pci.c +1 -0
@@ -65,6 +65,7 @@ static void intel_spi_pci_remove(structstatic const struct pci_device_id intel_spi_pci_ids[] = { {PCI_VDEVICE (INTEL ,0x18e0 ), (unsigned long )&bxt_info }, {PCI_VDEVICE (INTEL ,0x19e0 ), (unsigned long )&bxt_info }, + {PCI_VDEVICE (INTEL ,0x34a4 ), (unsigned long )&bxt_info }, {PCI_VDEVICE (INTEL ,0xa1a4 ), (unsigned long )&bxt_info }, {PCI_VDEVICE (INTEL ,0xa224 ), (unsigned long )&bxt_info }, { },
Greg Kroah-Hartman
maintainerPATCH 8/361 mtd: spi-nor: fsl-quadspi: Dont let -EINVAL on the bus
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ahmad Fatoum <[email protected]>
commit 000412276370a9bcfec73b3752ceefd9a927f1db upstream.
fsl_qspi_get_seqid() may return -EINVAL, but fsl_qspi_init_ahb_read() doesn't check for error codes with the result that -EINVAL could find itself signalled over the bus.
In conjunction with the LS1046A SoC's A-009283 errata ("Illegal accesses to SPI flash memory can result in a system hang") this illegal access to SPI flash memory results in a system hang if userspace attempts reading later on.
Avoid this by always checking fsl_qspi_get_seqid()'s return value and bail out otherwise.
--- drivers/mtd/spi-nor/fsl-quadspi.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
drivers/mtd/spi-nor/fsl-quadspi.c +10 -4
@@ -544,6 +544,9 @@ fsl_qspi_runcmd(struct fsl_qspi *q, u8 c/* trigger the LUT now */ seqid =fsl_qspi_get_seqid (q, cmd); +if (seqid <0 ) +return seqid; +qspi_writel (q, (seqid <<QUADSPI_IPCR_SEQID_SHIFT ) | len, base +QUADSPI_IPCR );
@@ -672,7 +675,7 @@ static void fsl_qspi_set_map_addr(struct* causes the controller to clear the buffer, and use the sequence pointed * by the QUADSPI_BFGENCR[SEQID] to initiate a read from the flash. */ -static void fsl_qspi_init_ahb_read (struct fsl_qspi *q) +static int fsl_qspi_init_ahb_read (struct fsl_qspi *q) {void __iomem *base = q->iobase;int seqid;
@@ -697,8 +700,13 @@ static void fsl_qspi_init_ahb_read(struc/* Set the default lut sequence for AHB Read. */ seqid =fsl_qspi_get_seqid (q, q->nor[0 ].read_opcode); +if (seqid <0 ) +return seqid; +qspi_writel (q, seqid <<QUADSPI_BFGENCR_SEQID_SHIFT , q->iobase +QUADSPI_BFGENCR ); + +return 0 ; }/* This function was used to prepare and enable QSPI clock */
@@ -806,9 +814,7 @@ static int fsl_qspi_nor_setup_last(strucfsl_qspi_init_lut (q);/* Init for AHB read */ -fsl_qspi_init_ahb_read (q); - -return 0 ; +return fsl_qspi_init_ahb_read (q); }static const struct of_device_id fsl_qspi_dt_ids[] = {
Greg Kroah-Hartman
maintainerPATCH 4/361 mtd: rawnand: marvell: fix the IRQ handler complete() condition
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Miquel Raynal <[email protected]>
commit 53c83b59759c1ee213f5ffa194909daee8902a28 upstream.
With the current implementation, the complete() in the IRQ handler is supposed to be called only if the register status has one or the other RDY bit set. Other events might trigger an interrupt as well if enabled, but should not end-up with a complete() call.
For this purpose, the code was checking if the other bits were set, in this case complete() was not called. This is wrong as two events might happen in a very tight time-frame and if the NDSR status read reports two bits set (eg. RDY(0) and RDDREQ) at the same time, complete() was not called.
This logic would lead to timeouts in marvell_nfc_wait_op() and has been observed on PXA boards (NFCv1) in the Hamming write path.
--- drivers/mtd/nand/raw/marvell_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/marvell_nand.c +1 -1
@@ -686,7 +686,7 @@ static irqreturn_t marvell_nfc_isr(int imarvell_nfc_disable_int (nfc, st &NDCR_ALL_INT ); -if (!(st & (NDSR_RDDREQ |NDSR_WRDREQ |NDSR_WRCMDREQ ))) +if (st & (NDSR_RDY (0 ) |NDSR_RDY (1 )))complete (&nfc->complete);return IRQ_HANDLED ;
Greg Kroah-Hartman
maintainerPATCH 23/361 pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Maciej S. Szmigiero <[email protected]>
commit 95691e3eddc41da2d1cd3cca51fecdfb46bd85bc upstream.
Currently, "disable_clkrun" yenta_socket module parameter is only implemented for TI CardBus bridges.
Add also an implementation for Ricoh bridges that have the necessary setting documented in publicly available datasheets.
Tested on a RL5C476II with a Sunrich C-160 CardBus NIC that doesn't work correctly unless the CLKRUN protocol is disabled.
Let's also make it clear in its description that the "disable_clkrun" module parameter only works on these two previously mentioned brands of CardBus bridges.
--- drivers/pcmcia/ricoh.h | 35 +++++++++++++++++++++++++++++++++++ drivers/pcmcia/yenta_socket.c | 3 ++- 2 files changed, 37 insertions(+), 1 deletion(-)
drivers/pcmcia/ricoh.h +35 -0
@@ -119,6 +119,10 @@#define RL5C4XX_MISC_CONTROL 0x2F/* 8 bit */ #define RL5C4XX_ZV_ENABLE 0x08 +/* Misc Control 3 Register */ +#define RL5C4XX_MISC3 0x00A2/* 16 bit */ +#define RL5C47X_MISC3_CB_CLKRUN_DIS BIT(1) +#ifdef __YENTA_H#define rl_misc (socket) ((socket)->private[0])
@@ -156,6 +160,35 @@ static void ricoh_set_zv(struct yenta_so } } +static void ricoh_set_clkrun (struct yenta_socket *socket,bool quiet) +{ +u16 misc3; + +/* +* RL5C475II likely has this setting, too, however no datasheet +* is publicly available for this chip +*/ +if (socket->dev->device !=PCI_DEVICE_ID_RICOH_RL5C476 && + socket->dev->device !=PCI_DEVICE_ID_RICOH_RL5C478 ) +return ; + +if (socket->dev->revision <0x80 ) +return ; + + misc3 =config_readw (socket,RL5C4XX_MISC3 ); +if (misc3 &RL5C47X_MISC3_CB_CLKRUN_DIS ) { +if (!quiet) +dev_dbg (&socket->dev->dev, +"CLKRUN feature already disabled\n" ); + }else if (disable_clkrun) { +if (!quiet) +dev_info (&socket->dev->dev, +"Disabling CLKRUN feature\n" ); + misc3 |=RL5C47X_MISC3_CB_CLKRUN_DIS ; +config_writew (socket,RL5C4XX_MISC3 , misc3); + } +} +static void ricoh_save_state (struct yenta_socket *socket) {rl_misc (socket) =config_readw (socket,RL5C4XX_MISC );
@@ -172,6 +205,7 @@ static void ricoh_restore_state(struct yconfig_writew (socket,RL5C4XX_16BIT_IO_0 ,rl_io (socket));config_writew (socket,RL5C4XX_16BIT_MEM_0 ,rl_mem (socket));config_writew (socket,RL5C4XX_CONFIG ,rl_config (socket)); +ricoh_set_clkrun (socket, true); }
@@ -197,6 +231,7 @@ static int ricoh_override(struct yenta_sconfig_writew (socket,RL5C4XX_CONFIG , config);ricoh_set_zv (socket); +ricoh_set_clkrun (socket, false);return 0 ; }
drivers/pcmcia/yenta_socket.c +2 -1
@@ -26,7 +26,8 @@static bool disable_clkrun;module_param (disable_clkrun, bool,0444 ); -MODULE_PARM_DESC (disable_clkrun,"If PC card doesn't function properly, please try this option" ); +MODULE_PARM_DESC (disable_clkrun, +"If PC card doesn't function properly, please try this option (TI and Ricoh bridges only)" );static bool isa_probe =1 ;module_param (isa_probe, bool,0444 );
Greg Kroah-Hartman
maintainerPATCH 20/361 block: make sure writesame bio is aligned with logical block size
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ming Lei <[email protected]>
commit 34ffec60b27aa81d04e274e71e4c6ef740f75fc7 upstream.
Obviously the created writesame bio has to be aligned with logical block size, and use bio_allowed_max_sectors() to retrieve this number.
--- block/blk-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-lib.c +1 -1
@@ -161,7 +161,7 @@ static int __blkdev_issue_write_same(strreturn -EOPNOTSUPP ;/* Ensure that max_write_same_sectors doesn't overflow bi_size */ - max_write_same_sectors =UINT_MAX >>9 ; + max_write_same_sectors =bio_allowed_max_sectors (q);while (nr_sects) { bio =next_bio (bio,1 , gfp_mask);
Greg Kroah-Hartman
maintainerPATCH 22/361 dma-mapping: fix panic caused by passing empty cma command line argument
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: He Zhe <[email protected]>
commit a3ceed87b07769fb80ce9dc6b604e515dba14c4b upstream.
early_cma does not check input argument before passing it to simple_strtoull. The argument would be a NULL pointer if "cma", without its value, is set in command line and thus causes the following panic.
PANIC: early exception 0xe3 IP 10:ffffffffa3e9db8d error 0 cr2 0x0
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.0-rc3-yocto-standard+ #7 [ 0.000000] RIP: 0010:_parse_integer_fixup_radix+0xd/0x70 ... [ 0.000000] Call Trace: [ 0.000000] simple_strtoull+0x29/0x70 [ 0.000000] memparse+0x26/0x90 [ 0.000000] early_cma+0x17/0x6a [ 0.000000] do_early_param+0x57/0x8e [ 0.000000] parse_args+0x208/0x320 [ 0.000000] ? rdinit_setup+0x30/0x30 [ 0.000000] parse_early_options+0x29/0x2d [ 0.000000] ? rdinit_setup+0x30/0x30 [ 0.000000] parse_early_param+0x36/0x4d [ 0.000000] setup_arch+0x336/0x99e [ 0.000000] start_kernel+0x6f/0x4e6 [ 0.000000] x86_64_start_reservations+0x24/0x26 [ 0.000000] x86_64_start_kernel+0x6f/0x72 [ 0.000000] secondary_startup_64+0xa4/0xb0
This patch adds a check to prevent the panic.
--- kernel/dma/contiguous.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
kernel/dma/contiguous.c +5 -1
@@ -49,7 +49,11 @@ static phys_addr_t limit_cmdline;static int __init early_cma (char *p) { -pr_debug ("%s(%s)\n" , __func__, p); +if (!p) { +pr_err ("Config string not provided\n" ); +return -EINVAL ; + } + size_cmdline =memparse (p, &p);if (*p !='@' )return 0 ;
Greg Kroah-Hartman
maintainerPATCH 18/361 block: setup bounce bio_sets properly
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jens Axboe <[email protected]>
commit 52990a5fb0c991ecafebdab43138b5ed41376852 upstream.
We're only setting up the bounce bio sets if we happen to need bouncing for regular HIGHMEM, not if we only need it for ISA devices.
Protect the ISA bounce setup with a mutex, since it's being invoked from driver init functions and can thus be called in parallel.
--- block/bounce.c | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-)
block/bounce.c +28 -9
@@ -31,6 +31,24 @@static struct bio_set bounce_bio_set, bounce_bio_split;static mempool_t page_pool, isa_page_pool; +static void init_bounce_bioset (void ) +{ +static bool bounce_bs_setup; +int ret; + +if (bounce_bs_setup) +return ; + + ret =bioset_init (&bounce_bio_set,BIO_POOL_SIZE ,0 ,BIOSET_NEED_BVECS ); +BUG_ON (ret); +if (bioset_integrity_create (&bounce_bio_set,BIO_POOL_SIZE )) +BUG_ON (1 ); + + ret =bioset_init (&bounce_bio_split,BIO_POOL_SIZE ,0 ,0 ); +BUG_ON (ret); + bounce_bs_setup = true; +} +#if defined(CONFIG_HIGHMEM )static __init int init_emergency_pool (void ) {
@@ -44,14 +62,7 @@ static __init int init_emergency_pool(voBUG_ON (ret);pr_info ("pool size: %d pages\n" ,POOL_SIZE ); - ret =bioset_init (&bounce_bio_set,BIO_POOL_SIZE ,0 ,BIOSET_NEED_BVECS ); -BUG_ON (ret); -if (bioset_integrity_create (&bounce_bio_set,BIO_POOL_SIZE )) -BUG_ON (1 ); - - ret =bioset_init (&bounce_bio_split,BIO_POOL_SIZE ,0 ,0 ); -BUG_ON (ret); - +init_bounce_bioset ();return 0 ; }
@@ -86,6 +97,8 @@ static void *mempool_alloc_pages_isa(gfpreturn mempool_alloc_pages (gfp_mask |GFP_DMA , data); } +static DEFINE_MUTEX (isa_mutex); +/* * gets called "every" time someone init's a queue with BLK_BOUNCE_ISA * as the max address, so check if the pool has already been created.
@@ -94,14 +107,20 @@ int init_emergency_isa_pool(void) {int ret; -if (mempool_initialized (&isa_page_pool)) +mutex_lock (&isa_mutex); + +if (mempool_initialized (&isa_page_pool)) { +mutex_unlock (&isa_mutex);return 0 ; + } ret =mempool_init (&isa_page_pool,ISA_POOL_SIZE , mempool_alloc_pages_isa, mempool_free_pages, (void *)0 );BUG_ON (ret);pr_info ("isa pool size: %d pages\n" ,ISA_POOL_SIZE ); +init_bounce_bioset (); +mutex_unlock (&isa_mutex);return 0 ; }
Greg Kroah-Hartman
maintainerPATCH 19/361 block: make sure discard bio is aligned with logical block size
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ming Lei <[email protected]>
commit 1adfc5e4136f5967d591c399aff95b3b035f16b7 upstream.
Obviously the created discard bio has to be aligned with logical block size.
This patch introduces the helper of bio_allowed_max_sectors() for this purpose.
--- block/blk-lib.c | 3 +-- block/blk-merge.c | 3 ++- block/blk.h | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-)
block/blk-lib.c +1 -2
@@ -58,8 +58,7 @@ int __blkdev_issue_discard(struct block_if (!req_sects) goto fail; -if (req_sects >UINT_MAX >>9 ) - req_sects =UINT_MAX >>9 ; + req_sects =min (req_sects,bio_allowed_max_sectors (q)); end_sect = sector + req_sects;
block/blk-merge.c +2 -1
@@ -27,7 +27,8 @@ static struct bio *blk_bio_discard_split/* Zero-sector (unknown) and one-sector granularities are the same. */ granularity =max (q->limits.discard_granularity >>9 ,1U ); - max_discard_sectors =min (q->limits.max_discard_sectors,UINT_MAX >>9 ); + max_discard_sectors =min (q->limits.max_discard_sectors, +bio_allowed_max_sectors (q)); max_discard_sectors -= max_discard_sectors % granularity;if (unlikely (!max_discard_sectors)) {
block/blk.h +10 -0
@@ -329,6 +329,16 @@ static inline unsigned long blk_rq_deadl }/* +* The max size one bio can handle is UINT_MAX becasue bvec_iter.bi_size +* is defined as 'unsigned int', meantime it has to aligned to with logical +* block size which is the minimum accepted unit by hardware. +*/ +static inline unsigned int bio_allowed_max_sectors (struct request_queue *q) +{ +return round_down (UINT_MAX ,queue_logical_block_size (q)) >>9 ; +} + +/* * Internal io_context interface */ void get_io_context (struct io_context *ioc);
Greg Kroah-Hartman
maintainerPATCH 12/361 bcache: trace missed reading by cache_missed
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tang Junhui <[email protected]>
commit 502b291568fc7faf1ebdb2c2590f12851db0ff76 upstream.
Missed reading IOs are identified by s->cache_missed, not the s->cache_miss, so in trace_bcache_read() using trace_bcache_read to identify whether the IO is missed or not.
--- drivers/md/bcache/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/bcache/request.c +1 -1
@@ -850,7 +850,7 @@ static void cached_dev_read_done_bh(strubch_mark_cache_accounting (s->iop.c, s->d, !s->cache_missed, s->iop.bypass); -trace_bcache_read (s->orig_bio, !s->cache_miss, s->iop.bypass); +trace_bcache_read (s->orig_bio, !s->cache_missed, s->iop.bypass);if (s->iop.status)continue_at_nobarrier (cl, cached_dev_read_error, bcache_wq);
Greg Kroah-Hartman
maintainerPATCH 15/361 bcache: fix miss key refill->end in writeback
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tang Junhui <[email protected]>
commit 2d6cb6edd2c7fb4f40998895bda45006281b1ac5 upstream.
refill->end record the last key of writeback, for example, at the first time, keys (1,128K) to (1,1024K) are flush to the backend device, but the end key (1,1024K) is not included, since the bellow code:
if (bkey_cmp(k, refill->end) >= 0) {
ret = MAP_DONE;
goto out;
}And in the next time when we refill writeback keybuf again, we searched key start from (1,1024K), and got a key bigger than it, so the key (1,1024K) missed.
This patch modify the above code, and let the end key to be included to the writeback key buffer.
--- drivers/md/bcache/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/bcache/btree.c +1 -1
@@ -2434,7 +2434,7 @@ static int refill_keybuf_fn(struct btreestruct keybuf *buf = refill->buf;int ret =MAP_CONTINUE ; -if (bkey_cmp (k, refill->end) >=0 ) { +if (bkey_cmp (k, refill->end) >0 ) { ret =MAP_DONE ; goto out; }
Greg Kroah-Hartman
maintainerPATCH 14/361 bcache: correct dirty data statistics
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tang Junhui <[email protected]>
commit 2e17a262a2371d38d2ec03614a2675a32cef9912 upstream.
When bcache device is clean, dirty keys may still exist after journal replay, so we need to count these dirty keys even device in clean status, otherwise after writeback, the amount of dirty data would be incorrect.
--- drivers/md/bcache/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/md/bcache/super.c +2 -1
@@ -1148,11 +1148,12 @@ int bch_cached_dev_attach(struct cached_ }if (BDEV_STATE (&dc->sb) ==BDEV_STATE_DIRTY ) { -bch_sectors_dirty_init (&dc->disk);atomic_set (&dc->has_dirty,1 );bch_writeback_queue (dc); } +bch_sectors_dirty_init (&dc->disk); +bch_cached_dev_run (dc);bcache_device_link (&dc->disk, c,"bdev" );atomic_inc (&c->attached_dev_nr);
Greg Kroah-Hartman
maintainerPATCH 10/361 spi: bcm-qspi: switch back to reading flash using smaller chunks
In reply to Greg Kroah-Hartman4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rafał Miłecki <[email protected]>
commit 940ec770c295682993d1cccce3081fd7c74fece8 upstream.
Fixing/optimizing bcm_qspi_bspi_read() performance introduced two changes:
1) It added a loop to read all requested data using multiple BSPI ops.
2) It bumped max size of a single BSPI block request from 256 to 512 B.
The later change resulted in occasional BSPI timeouts causing a regression.
For some unknown reason hardware doesn't always handle reads as expected when using 512 B chunks. In such cases it may happen that BSPI returns amount of requested bytes without the last 1-3 ones. It provides the remaining bytes later but doesn't raise an interrupt until another LR start.
Switching back to 256 B reads fixes that problem and regression.
--- drivers/spi/spi-bcm-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-bcm-qspi.c +1 -1
@@ -89,7 +89,7 @@#define BSPI_BPP_MODE_SELECT_MASK BIT(8)#define BSPI_BPP_ADDR_SELECT_MASK BIT(16) -#define BSPI_READ_LENGTH 512 +#define BSPI_READ_LENGTH 256/* MSPI register offsets */ #define MSPI_SPCR0_LSB 0x000
Re: [PATCH 4.19 078/361] nvmet-rdma: use a private workqueue for delete
In reply to Greg Kroah-HartmanQuoted 8 lines · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sagi Grimberg <[email protected]>
[ Upstream commit
2acf70ade79d26b97611a8df52eb22aa33814cd4]
Quoted 8 lines
Queue deletion is done asynchronous when the last reference on the queue is dropped. Thus, in order to make sure we don't over allocate under a connect/disconnect storm, we let queue deletion complete before making forward progress.
However, given that we flush the
system_wqfromrdma_cmcontext which runs from a workqueue context, we can have a circular locking complaint [1]. Fix that by using a private workqueue for queue deletion.
Hi Greg,
You may want to drop this patch. A bug was discovered in this patch a few days ago. I think not backporting this patch is better than backporting it. See also the discussion at http://lists.infradead.org/pipermail/linux-nvme/2018-November/020766.html. A quote from that e-mail thread: "I think we need to revert 2acf70a ("nvmet-rdma: use a private workqueue for delete") altogether because it never made any difference..".
Bart.
Greg Kroah-Hartman
maintainerRe: [PATCH 4.19 078/361] nvmet-rdma: use a private workqueue for delete
Quoted 20 lines · Bart Van Assche
Quoted 8 lines · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sagi Grimberg <[email protected]>
[ Upstream commit
2acf70ade79d26b97611a8df52eb22aa33814cd4]Quoted 8 lines
Queue deletion is done asynchronous when the last reference on the queue is dropped. Thus, in order to make sure we don't over allocate under a connect/disconnect storm, we let queue deletion complete before making forward progress.
However, given that we flush the
system_wqfromrdma_cmcontext which runs from a workqueue context, we can have a circular locking complaint [1]. Fix that by using a private workqueue for queue deletion.Hi Greg,
Quoted 7 lines
You may want to drop this patch. A bug was discovered in this patch a few days ago. I think not backporting this patch is better than backporting it. See also the discussion at
http://lists.infradead.org/pipermail/linux-nvme/2018-November/020766.html. A quote from that e-mail thread: "I think we need to revert 2acf70a ("nvmet-rdma: use a private workqueue for delete") altogether because it never made any difference..".
Now dropped from the 4.18 and 4.19 queues, thanks.
greg k-h
stable-rc/linux-4.19.y boot: 98 boots: 9 failed, 65 passed with 16 offline, 8 conflicts (v4.19.1-362-gc881caaeb264)
stable-rc/linux-4.19.y boot: 98 boots: 9 failed, 65 passed with 16 offline, 8 conflicts (v4.19.1-362-gc881caaeb264)
Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.19.y/kernel/v4.19.1-362-gc881caaeb264/
Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.19.y/kernel/v4.19.1-362-gc881caaeb264/
Tree: stable-rc
Branch: linux-4.19.y
Git Describe: v4.19.1-362-gc881caaeb264
Git Commit: c881caaeb264eb22581247c54c007a0bd9e6cd19
Git URL: http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
Tested: 56 unique boards, 21 SoC families, 15 builds out of 186
Boot Regressions Detected:
arm:
bcm2835_defconfig:
bcm2837-rpi-3-b:
lab-baylibre: new failure (last pass: v4.19.1)
multi_v7_defconfig:
imx6q-sabrelite:
lab-baylibre: new failure (last pass: v4.19.1)
meson8b-odroidc1:
lab-baylibre: new failure (last pass: v4.19.1)
qemu:
lab-baylibre: new failure (last pass: v4.19.1)
sun8i-h2-plus-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.19.1)
sun8i-h3-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.19.1)
sunxi_defconfig:
sun8i-h2-plus-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.19.1)
sun8i-h3-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.19.1)
vexpress_defconfig:
qemu:
lab-baylibre: new failure (last pass: v4.19.1)
arm64:
defconfig:
bcm2837-rpi-3-b:
lab-baylibre: new failure (last pass: v4.19.1)
meson-gxbb-p200:
lab-baylibre: new failure (last pass: v4.19.1)
meson-gxl-s905x-khadas-vim:
lab-baylibre: new failure (last pass: v4.19.1)
meson-gxl-s905x-libretech-cc:
lab-baylibre: new failure (last pass: v4.19.1)
qemu:
lab-baylibre: new failure (last pass: v4.19.1)
sun50i-h5-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.19.1)
x86:
x86_64_defconfig:
qemu:
lab-baylibre: new failure (last pass: v4.19.1)
Boot Failures Detected:
arm:
bcm2835_defconfig
bcm2837-rpi-3-b: 1 failed lab
sunxi_defconfig
sun8i-h2-plus-libretech-all-h3-cc: 1 failed lab sun8i-h3-libretech-all-h3-cc: 1 failed lab
multi_v7_defconfig
imx6q-sabrelite: 1 failed lab sun8i-h2-plus-libretech-all-h3-cc: 1 failed lab sun8i-h3-libretech-all-h3-cc: 1 failed lab
arm64:
defconfig
meson-gxbb-nanopi-k2: 1 failed lab meson-gxl-s905x-libretech-cc: 1 failed lab sun50i-h5-libretech-all-h3-cc: 1 failed lab
Offline Platforms:
arm:
omap2plus_defconfig:
am335x-boneblack: 1 offline lab
sunxi_defconfig:
sun5i-r8-chip: 1 offline lab
tegra_defconfig:
tegra124-jetson-tk1: 1 offline lab
bcm2835_defconfig:
bcm2835-rpi-b: 1 offline lab
sama5_defconfig:
at91-sama5d4_xplained: 1 offline lab
multi_v7_defconfig:
alpine-db: 1 offline lab
am335x-boneblack: 1 offline lab
at91-sama5d4_xplained: 1 offline lab socfpga_cyclone5_de0_sockit: 1 offline lab
sun5i-r8-chip: 1 offline lab
tegra124-jetson-tk1: 1 offline lab
arm64:
defconfig:
apq8016-sbc: 1 offline lab
juno-r2: 1 offline lab
meson-gxl-s905d-p230: 1 offline lab
meson-gxl-s905x-p212: 1 offline lab
mt7622-rfb1: 1 offline labConflicting Boot Failures Detected: (These likely are not failures as other labs are reporting PASS. Needs review.)
arm:
multi_v7_defconfig:
qemu:
lab-baylibre: FAIL
lab-mhart: PASS
meson8b-odroidc1:
lab-baylibre: FAIL
lab-baylibre-seattle: PASS
vexpress_defconfig:
qemu:
lab-baylibre: FAIL
lab-mhart: PASS
arm64:
defconfig:
meson-gxl-s905x-khadas-vim:
lab-baylibre: FAIL
lab-baylibre-seattle: PASS
qemu:
lab-baylibre: FAIL
lab-mhart: PASS
bcm2837-rpi-3-b:
lab-baylibre: FAIL
lab-mhart: PASS
lab-baylibre-seattle: PASS
meson-gxbb-p200:
lab-baylibre: FAIL
lab-baylibre-seattle: PASSx86:
x86_64_defconfig:
qemu:
lab-baylibre: FAIL
lab-mhart: PASS---
For more info write to <[email protected]>
Re: [PATCH 4.19 087/361] signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack
In reply to Greg Kroah-HartmanQuoted 8 lines · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Will Deacon <[email protected]>
[ Upstream commit
22839869f21ab3850fbbac9b425ccc4c0023926f]
Quoted 7 lines
The sigaltstack(2) system call fails with
-ENOMEMif the new alternative signal stack is found to be smaller than SIGMINSTKSZ. On architectures such as arm64, where the native value for SIGMINSTKSZ is larger than the compat value, this can result in an unexpected error being reported to a compat task. See, for example:
...
Thanks Greg! If it's not too much effort, could you also take this for 4.9-stable as well please? That would get it into our next Debian stable update too. :-)
Thanks,
Steve
Signature · 3 lines
Steve McIntyre, Cambridge, UK. [email protected] "I suspect most samba developers are already technically insane... Of course, since many of them are Australians, you can't tell." -- Linus Torvalds
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.2 release. There are 361 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Tue Nov 13 22:14:55 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.19.2-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.19.y
and the diffstat can be found below.thanks,
greg k-h
Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.
Summary
------------------------------------------------------------------------
kernel: 4.19.2-rc1
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-4.19.y
git commit: 9ac3c2d4889c84e1fa030dc61ca5aeb6951f8776
git describe: v4.19.1-362-g9ac3c2d4889c
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-4.19-oe/build/v4.19.1-362-g9ac3c2d4889c
No regressions (compared to build v4.19.1)
Ran 19028 total tests in the following environments and test suites.
Environments
--------------
- dragonboard-410c - arm64
- hi6220-hikey - arm64
- i386
- juno-r2 - arm64
- qemu_arm
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15 - arm
- x86_64
Test Suites
-----------
* boot
* kselftest
* libhugetlbfs
* ltp-cap_bounds-tests
* ltp-containers-tests
* ltp-cve-tests
* ltp-fcntl-locktests-tests
* ltp-filecaps-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-fsx-tests
* ltp-hugetlb-tests
* ltp-io-tests
* ltp-ipc-tests
* ltp-math-tests
* ltp-securebits-tests
* ltp-fs-tests
* ltp-nptl-tests
* ltp-open-posix-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-syscalls-tests
* ltp-timers-tests
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-none
Signature · 2 lines
Linaro LKFT https://lkft.linaro.org
Re: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initialization
In reply to Greg Kroah-HartmanQuoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
As probably expected this patch causes problems. In my case one server can no longer load the nct6775 hwmon module, which means the fan cannot be monitored, and therefore my monitoring system promptly starts spamming me with alerts that my fan has failed - which is of course not true.
--snip--
Nov 12 18:08:56 tux kernel: nct6775: Found NCT6776D/F or compatible chip at 0x2e:0x290 Nov 12 18:08:56 tux kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x Nov 12 18:08:56 tux kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
--snip--
This is certainly caused by my old BIOS and its broken ACPI implementation, however since it's working perfectly fine otherwise I see no reason to replace it. That being said, I must be able to monitor my fan, so for now reverting the patch immediately "fixed" the problem for me - the fan entries appeared in sysfs again after successfully loading the module.
Idea, workarounds or patches welcome.
Quoted 45 lines
------------------
From: Erik Schmauss <[email protected]>
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bupstream.The table load process omitted adding the operation region address range to the global list. This omission is problematic because the OS queries the global list to check for address range conflicts before deciding which drivers to load. This commit may result in warning messages that look like the following:
[ 7.871761] ACPI Warning: system_IO range 0x00000428-0x0000042F conflicts with op_region 0x00000400-0x0000047F (\PMIO) (20180531/utaddress-213) [ 7.871769] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driverHowever, these messages do not signify regressions. It is a result of properly adding address ranges within the global address list.
Tested-by Jean-Marc Lenoir <[email protected]>Signed-off-by Erik Schmauss <[email protected]>Cc All applicable <[email protected]>Signed-off-by Rafael J. Wysocki <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/acpi/acpica/dsopcode.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/acpi/acpica/dsopcode.c +4
-0@@ -417,6 +417,10 @@ acpi_ds_eval_region_operands(struct acpiACPI_FORMAT_UINT64 (obj_desc->region.address), obj_desc->region.length)); + status =acpi_ut_add_address_range (obj_desc->region.space_id, + obj_desc->region.address, + obj_desc->region.length, node); +/* Now the address and length are valid for this opregion */ obj_desc->region.flags |=AOPOBJ_DATA_VALID ;
RE: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initialization
Quoted 13 lines
-----Original Message-----
From: Holger Hoffstätte [mailto:[email protected]]
Sent: Monday, November 12, 2018 10:31 AM
To: Greg Kroah-Hartman <[email protected]>; linux- [email protected]
Cc: [email protected]; Jean-Marc Lenoir <[email protected]>; Schmauss, Erik <[email protected]>; Wysocki, Rafael J <[email protected]>
Subject: Re: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initialization
Quoted 4 lines
Quoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me
know.
Hi,
Quoted 13 lines
As probably expected this patch causes problems. In my case one server can no longer load the nct6775 hwmon module, which means the fan cannot be monitored, and therefore my monitoring system promptly starts spamming me with alerts that my fan has failed - which is of course not true.
--snip--
Nov 12 18:08:56 tux kernel: nct6775: Found NCT6776D/F or compatible chip at0x2e:0x290 Nov 12 18:08:56 tux kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x Nov 12 18:08:56 tux kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver --snip--
Quoted 7 lines
This is certainly caused by my old BIOS and its broken ACPI implementation, however since it's working perfectly fine otherwise I see no reason to replace it. That being said, I must be able to monitor my fan, so for now reverting the patch immediately "fixed" the problem for me - the fan entries appeared in sysfs again after successfully loading the module.
Idea, workarounds or patches welcome.
Is there a firmware update available for this machine? If so, you may want to do a firmware update.
Also, what is the behavior in kernels 4.16 or older?
Erik
Quoted 49 lines
Quoted 7 lines
------------------
From: Erik Schmauss <[email protected]>
commit
4abb951b73ff0a8a979113ef185651aa3c8da19bupstream.Quoted 7 lines
The table load process omitted adding the operation region address range to the global list. This omission is problematic because the OS queries the global list to check for address range conflicts before deciding which drivers to load. This commit may result in warning messages that look like the following:
[ 7.871761] ACPI Warning: system_IO range 0x00000428-0x0000042Fconflicts with
op_region0x00000400-0x0000047F (\PMIO) (20180531/utaddress-213)Quoted 1 line
[ 7.871769] ACPI: If an ACPI driver is available for this device, you shoulduse it instead of the native driver
Quoted 31 lines
However, these messages do not signify regressions. It is a result of properly adding address ranges within the global address list.
Tested-by Jean-Marc Lenoir <[email protected]>Signed-off-by Erik Schmauss <[email protected]>Cc All applicable <[email protected]>Signed-off-by Rafael J. Wysocki <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/acpi/acpica/dsopcode.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/acpi/acpica/dsopcode.c +4
-0@@ -417,6 +417,10 @@ acpi_ds_eval_region_operands(struct acpiACPI_FORMAT_UINT64 (obj_desc->region.address), obj_desc->region.length)); + status =acpi_ut_add_address_range (obj_desc->region.space_id, + obj_desc->region.address, + obj_desc->region.length, node); +/* Now the address and length are valid for this opregion */ obj_desc->region.flags |=AOPOBJ_DATA_VALID ;
Greg Kroah-Hartman
maintainerRe: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initialization
In reply to Holger HoffstätteQuoted 14 lines · Holger Hoffstätte
Quoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
As probably expected this patch causes problems. In my case one server can no longer load the nct6775 hwmon module, which means the fan cannot be monitored, and therefore my monitoring system promptly starts spamming me with alerts that my fan has failed - which is of course not true.
--snip--
Nov 12 18:08:56 tux kernel: nct6775: Found NCT6776D/F or compatible chip at 0x2e:0x290 Nov 12 18:08:56 tux kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x Nov 12 18:08:56 tux kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver--snip--
Quoted 7 lines
This is certainly caused by my old BIOS and its broken ACPI implementation, however since it's working perfectly fine otherwise I see no reason to replace it. That being said, I must be able to monitor my fan, so for now reverting the patch immediately "fixed" the problem for me - the fan entries appeared in sysfs again after successfully loading the module.
Idea, workarounds or patches welcome.
So Linus's tree is also "broken" for your hardware?
thanks,
greg k-h
Re: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initialization
In reply to Schmauss, ErikHello Erik,
thanks for responding.
Quoted 19 lines · Erik
Quoted 19 lines
As probably expected this patch causes problems. In my case one server can no longer load the nct6775 hwmon module, which means the fan cannot be monitored, and therefore my monitoring system promptly starts spamming me with alerts that my fan has failed - which is of course not true.
--snip--
Nov 12 18:08:56 tux kernel: nct6775: Found NCT6776D/F or compatible chip at0x2e:0x290 Nov 12 18:08:56 tux kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x Nov 12 18:08:56 tux kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver --snip--
This is certainly caused by my old BIOS and its broken ACPI implementation, however since it's working perfectly fine otherwise I see no reason to replace it. That being said, I must be able to monitor my fan, so for now reverting the patch immediately "fixed" the problem for me - the fan entries appeared in sysfs again after successfully loading the module.
Quoted 4 lines
Quoted 1 line
Idea, workarounds or patches welcome.
Is there a firmware update available for this machine? If so, you may want to do a firmware update.
The motherboard is from 2011 and I already installed the last available BIOS from 2013 a few years ago. That fixed exactly nothing. :) This was my last motherboard from Asus ever, but alas, it's still here and otherwise working, so..
Quoted 1 line
Also, what is the behavior in kernels 4.16 or older?
Everything just worked - yes, with ACPI spew, but.. ¯\(ツ)/¯ I understand that the patch might well be "technically correct" and OK for mainline/current hardware and will try playing with acpi=.. kernel flags.
thanks,
Holger
Re: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initialization
In reply to Greg Kroah-HartmanQuoted 21 lines · Greg Kroah-Hartman
Quoted 20 lines · Holger Hoffstätte
Quoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
As probably expected this patch causes problems. In my case one server can no longer load the nct6775 hwmon module, which means the fan cannot be monitored, and therefore my monitoring system promptly starts spamming me with alerts that my fan has failed - which is of course not true.
--snip--
Nov 12 18:08:56 tux kernel: nct6775: Found NCT6776D/F or compatible chip at 0x2e:0x290 Nov 12 18:08:56 tux kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x Nov 12 18:08:56 tux kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver--snip--
This is certainly caused by my old BIOS and its broken ACPI implementation, however since it's working perfectly fine otherwise I see no reason to replace it. That being said, I must be able to monitor my fan, so for now reverting the patch immediately "fixed" the problem for me - the fan entries appeared in sysfs again after successfully loading the module.
Quoted 3 lines
Quoted 1 line
Idea, workarounds or patches welcome.
So Linus's tree is also "broken" for your hardware?
Not tested yet (should I?) but I assume it will be, since it seems to be my old BIOS' ACPI implemnetation's fault. As I wrote to Erik, I just added acpi_enforce_resources=lax to the boot flags, and as expected it gives a warning for the hwmon module, but still lets it pass and work, as before or with the patch reverted. So I'm good for now.
thanks,
Holger
Greg Kroah-Hartman
maintainerQuoted 17 lines · Naresh Kamboju
Quoted 15 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.2 release. There are 361 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Tue Nov 13 22:14:55 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.19.2-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.19.y
and the diffstat can be found below.
Quoted 6 lines
Quoted 3 lines
thanks,
greg k-h
Results from Linaro’s test farm.
No regressions on arm64, arm,x86_64, and i386.
Thanks for testing 3 of these and letting me know.
greg k-h
RE: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initialization
In reply to Holger HoffstätteQuoted 42 lines
-----Original Message-----
From: Holger Hoffstätte [mailto:[email protected]]
Sent: Monday, November 12, 2018 11:42 AM
To: Schmauss, Erik <[email protected]>; Greg Kroah-Hartman <[email protected]>; [email protected]
Cc: [email protected]; Jean-Marc Lenoir <[email protected]>; Wysocki, Rafael J <[email protected]>
Subject: Re: [PATCH 4.19 025/361] ACPICA: AML interpreter: add region addresses in global list during initializationHello Erik,
thanks for responding.
Quoted 4 lines · Erik
Quoted 4 lines
As probably expected this patch causes problems. In my case one server can no longer load the nct6775 hwmon module, which means the fan cannot be monitored, and therefore my monitoring system promptly starts spamming me with alerts that my fan has failed - which is of course
not true.
Quoted 11 lines
Quoted 11 lines
--snip--
Nov 12 18:08:56 tux kernel: nct6775: Found NCT6776D/F or compatiblechip at
0x2e:0x290 Nov 12 18:08:56 tux kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x Nov 12 18:08:56 tux kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
--snip--Quoted 5 lines
Quoted 5 lines
This is certainly caused by my old BIOS and its broken ACPI implementation, however since it's working perfectly fine otherwise I see no reason to replace it. That being said, I must be able to monitor my fan, so for now reverting the patch immediately "fixed" the problem for me - the fan entries appeared in sysfs again after
successfully loading the module.
Quoted 3 lines
Quoted 2 lines
Idea, workarounds or patches welcome.
Quoted 10 lines
Quoted 2 lines
Is there a firmware update available for this machine? If so, you may want to do a firmware update.
The motherboard is from 2011 and I already installed the last available BIOS from 2013 a few years ago. That fixed exactly nothing. :) This was my last motherboard from Asus ever, but alas, it's still here and otherwise working, so..
Quoted 1 line
Also, what is the behavior in kernels 4.16 or older?
Hi,
Quoted 3 lines
Everything just worked - yes, with ACPI spew, but.. ¯\(ツ)/¯
I understand that the patch might well be "technically correct" and OK for mainline/current hardware and will try playing with acpi=.. kernel flags.
It's strange how the driver would load in 4.16 and fail to load with this patch. I would like to make sure that the driver load behavior is not being changed from 4.16 or earlier.
Could you send a working dmesg from 4.16 (or earlier) and a failing dmesg with this stable branch using the same kernel command line parameters for both?
I don't need too much of the spew if it looks the same. I'm more interested in the initializations and the warning message.
Erik
Quoted 3 lines
thanks,
Holger
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.2 release. There are 361 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Tue Nov 13 22:14:55 UTC 2018. Anything received after that time might be too late.
Build results:
total: 135 pass: 135 fail: 0 Qemu test results: total: 291 pass: 291 fail: 0
Details are available at https://kerneltests.org/builders/.
Guenter
Greg Kroah-Hartman
maintainerQuoted 10 lines · Guenter Roeck
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.2 release. There are 361 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Tue Nov 13 22:14:55 UTC 2018. Anything received after that time might be too late.
Quoted 6 lines
Build results:
total: 135 pass: 135 fail: 0 Qemu test results: total: 291 pass: 291 fail: 0Details are available at https://kerneltests.org/builders/.
Thanks for testing all of these and letting me know.
greg k-h
Greg Kroah-Hartman
maintainerRe: [PATCH 4.19 087/361] signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack
In reply to Steve McIntyreQuoted 15 lines · Steve McIntyre
Quoted 14 lines · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Will Deacon <[email protected]>
[ Upstream commit
22839869f21ab3850fbbac9b425ccc4c0023926f]The sigaltstack(2) system call fails with
-ENOMEMif the new alternative signal stack is found to be smaller than SIGMINSTKSZ. On architectures such as arm64, where the native value for SIGMINSTKSZ is larger than the compat value, this can result in an unexpected error being reported to a compat task. See, for example:
Quoted 7 lines
Quoted 1 line
...
Thanks Greg! If it's not too much effort, could you also take this for 4.9-stable as well please? That would get it into our next Debian stable update too. :-)
Does not apply to 4.9.y, can you provide a working backport?
thanks,
greg k-h
Re: [PATCH 4.19 041/361] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
In reply to Greg Kroah-HartmanQuoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
Greg, please drop this patch from all -stable for now. Version that wouldn't have such performance impact is being worked on.
Signature · 2 lines
Jiri Kosina SUSE Labs
Greg Kroah-Hartman
maintainerRe: [PATCH 4.19 041/361] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
Quoted 6 lines · Jiri Kosina
Quoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
Greg, please drop this patch from all -stable for now. Version that wouldn't have such performance impact is being worked on.
Is it reverted in Linus's tree? If not, then anything that comes "later on" will not apply here, right?
I see the thread asking about this, but I got really conflicting messages here, and now it's in all of the latest releases, and no testing seems to have uncovered issues. Is it just a "slow down" problem?
thanks,
greg k-h
Re: [PATCH 4.19 041/361] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
Quoted 8 lines · Greg Kroah-Hartman
Quoted 6 lines · Jiri Kosina
Quoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
Greg, please drop this patch from all -stable for now. Version that wouldn't have such performance impact is being worked on.
Quoted 7 lines
Is it reverted in Linus's tree? If not, then anything that comes "later on" will not apply here, right?
I see the thread asking about this, but I got really conflicting messages here, and now it's in all of the latest releases, and no testing seems to have uncovered issues. Is it just a "slow down" problem?
Greg,
It could be a big slow down in excess of 20% for some applications. And cross sibling Spectre v2 attack is quite hard to pull off.
So till we have the accompanying patchset that only apply STIBP on processes that really need it instead of universally, it should be withheld from stable.
Tim
Greg Kroah-Hartman
maintainerRe: [PATCH 4.19 041/361] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
Quoted 17 lines · Tim Chen
Quoted 8 lines · Greg Kroah-Hartman
Quoted 6 lines · Jiri Kosina
Quoted 1 line · Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know.
Greg, please drop this patch from all -stable for now. Version that wouldn't have such performance impact is being worked on.
Quoted 7 lines
Is it reverted in Linus's tree? If not, then anything that comes "later on" will not apply here, right?
I see the thread asking about this, but I got really conflicting messages here, and now it's in all of the latest releases, and no testing seems to have uncovered issues. Is it just a "slow down" problem?
Quoted 8 lines
Greg,
It could be a big slow down in excess of 20% for some applications. And cross sibling Spectre v2 attack is quite hard to pull off.
So till we have the accompanying patchset that only apply STIBP on processes that really need it instead of universally, it should be withheld from stable.
Ok, now reverted, thanks.
greg k-h
Re: [PATCH 4.19 041/361] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
In reply to Tim ChenQuoted 8 lines · Tim Chen
Quoted 7 lines
Is it reverted in Linus's tree? If not, then anything that comes "later on" will not apply here, right?
I see the thread asking about this, but I got really conflicting messages here, and now it's in all of the latest releases, and no testing seems to have uncovered issues. Is it just a "slow down" problem?
Quoted 8 lines
Greg,
It could be a big slow down in excess of 20% for some applications. And cross sibling Spectre v2 attack is quite hard to pull off.
So till we have the accompanying patchset that only apply STIBP on processes that really need it instead of universally, it should be withheld from stable.
Agreed; it will be trivially reintroduced with the rest, once it's ready. It's being built on top of that patch.
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs
Re: [PATCH 4.19 041/361] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
Quoted 15 lines · Jiri Kosina
Quoted 13 lines · Tim Chen
Quoted 7 lines
Is it reverted in Linus's tree? If not, then anything that comes "later on" will not apply here, right?
I see the thread asking about this, but I got really conflicting messages here, and now it's in all of the latest releases, and no testing seems to have uncovered issues. Is it just a "slow down" problem?
Greg,
It could be a big slow down in excess of 20% for some applications. And cross sibling Spectre v2 attack is quite hard to pull off.
Quoted 7 lines
Quoted 3 lines
So till we have the accompanying patchset that only apply STIBP on processes that really need it instead of universally, it should be withheld from stable.
Agreed; it will be trivially reintroduced with the rest, once it's ready. It's being built on top of that patch.
Thanks. Appreciate it.
Tim
Re: [PATCH 4.19 087/361] signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack
In reply to Greg Kroah-HartmanQuoted 1 line · Greg Kroah-Hartman
On Mon, Nov 12, 2018 at 11:49:05AM +0000, Steve McIntyre wrote:
...
Quoted 5 lines
Quoted 3 lines
Thanks Greg! If it's not too much effort, could you also take this for 4.9-stable as well please? That would get it into our next Debian stable update too. :-)
Does not apply to 4.9.y, can you provide a working backport?
No problem. It's a bit belated (sorry!) but the fixup is fairly obvious. On its way in separate mail shortly.
Signature · 3 lines
Steve McIntyre, Cambridge, UK. [email protected] "We're the technical experts. We were hired so that management could ignore our recommendations and tell us how to do our jobs." -- Mike Andrews