5.5.7-stable review
Subsystems (4)
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.5.7 release. There are 150 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 Sat, 29 Feb 2020 13:21:24 +0000. 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/v5.x/stable-review/patch-5.5.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.5.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: 5.5.7-rc1
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-5.5.y
git commit: 986ea77a7c4444449bba2f289b959786acef45cd
git describe: v5.5.6-151-g986ea77a7c44
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-5.5-oe/build/v5.5.6-151-g986ea77a7c44
No regressions (compared to build v5.5.6)
No fixes (compared to build v5.5.6)
Ran 29362 total tests in the following environments and test suites.
Environments
--------------
- dragonboard-410c
- hi6220-hikey
- i386
- juno-r2
- nxp-ls2088
- qemu_arm
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15
- x86
Test Suites
-----------
* build
* install-android-platform-tools-r2600
* kselftest
* libgpiod
* libhugetlbfs
* linux-log-parser
* ltp-cap_bounds-tests
* ltp-commands-tests
* ltp-containers-tests
* ltp-cpuhotplug-tests
* ltp-cve-tests
* ltp-dio-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-mm-tests
* ltp-nptl-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-securebits-tests
* ltp-syscalls-tests
* perf
* spectre-meltdown-checker-test
* v4l2-compliance
* network-basic-tests
* ltp-fs-tests
* ltp-open-posix-tests
* kvm-unit-tests
* ltp-cap_bounds-64k-page_size-tests
* ltp-cap_bounds-kasan-tests
* ltp-commands-64k-page_size-tests
* ltp-commands-kasan-tests
* ltp-containers-64k-page_size-tests
* ltp-containers-kasan-tests
* ltp-cpuhotplug-64k-page_size-tests
* ltp-cpuhotplug-kasan-tests
* ltp-crypto-64k-page_size-tests
* ltp-crypto-kasan-tests
* ltp-crypto-tests
* ltp-cve-64k-page_size-tests
* ltp-cve-kasan-tests
* ltp-dio-64k-page_size-tests
* ltp-dio-kasan-tests
* ltp-fcntl-locktests-64k-page_size-tests
* ltp-fcntl-locktests-kasan-tests
* ltp-filecaps-64k-page_size-tests
* ltp-filecaps-kasan-tests
* ltp-fs-64k-page_size-tests
* ltp-fs-kasan-tests
* ltp-fs_bind-64k-page_size-tests
* ltp-fs_bind-kasan-tests
* ltp-fs_perms_simple-64k-page_size-tests
* ltp-fs_perms_simple-kasan-tests
* ltp-fsx-64k-page_size-tests
* ltp-fsx-kasan-tests
* ltp-hugetlb-64k-page_size-tests
* ltp-hugetlb-kasan-tests
* ltp-io-64k-page_size-tests
* ltp-io-kasan-tests
* ltp-ipc-64k-page_size-tests
* ltp-ipc-kasan-tests
* ltp-math-64k-page_size-tests
* ltp-math-kasan-tests
* ltp-mm-64k-page_size-tests
* ltp-mm-kasan-tests
* ltp-nptl-64k-page_size-tests
* ltp-nptl-kasan-tests
* ltp-pty-64k-page_size-tests
* ltp-pty-kasan-tests
* ltp-sched-64k-page_size-tests
* ltp-sched-kasan-tests
* ltp-securebits-64k-page_size-tests
* ltp-securebits-kasan-tests
* ltp-syscalls-64k-page_size-tests
* ltp-syscalls-compat-tests
* ltp-syscalls-kasan-tests
* ssuite
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-none
Signature · 2 lines
Linaro LKFT https://lkft.linaro.org
Re: [PATCH 5.5 027/150] vt: selection, close sel_buffer race
In reply to Greg Kroah-HartmanQuoted 5 lines · Greg Kroah-Hartman
From: Jiri Slaby <[email protected]>
commit
07e6124a1a46b4b5a9b3cacc0c306b50da87abf5upstream.syzkaller reported this UAF:
With this patch, syzkaller reports possible circular locking dependency:
https://lore.kernel.org/lkml/[email protected]/
Could you drop the patch from stable until this is resolved?
Quoted 146 lines
BUG: KASAN: use-after-free in n_tty_receive_buf_common+0x2481/0x2940 drivers/tty/n_tty.c:1741 Read of size 1 at addr ffff8880089e40e9 by task syz-executor.1/13184 CPU: 0 PID: 13184 Comm: syz-executor.1 Not tainted 5.4.7 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: ... kasan_report+0xe/0x20 mm/kasan/common.c:634 n_tty_receive_buf_common+0x2481/0x2940 drivers/tty/n_tty.c:1741 tty_ldisc_receive_buf+0xac/0x190 drivers/tty/tty_buffer.c:461 paste_selection+0x297/0x400 drivers/tty/vt/selection.c:372 tioclinux+0x20d/0x4e0 drivers/tty/vt/vt.c:3044 vt_ioctl+0x1bcf/0x28d0 drivers/tty/vt/vt_ioctl.c:364 tty_ioctl+0x525/0x15a0 drivers/tty/tty_io.c:2657 vfs_ioctl fs/ioctl.c:47 [inline]It is due to a race between parallel
paste_selection(TIOCL_PASTESEL) andset_selection_user(TIOCL_SETSEL) invocations. One usessel_buffer, while the other frees it and reallocates a new one for another selection. Add a mutex to close this race.The mutex takes care properly of
sel_bufferandsel_buffer_lthonly. The other selection global variables (likesel_start,sel_end, andsel_cons) are protected only inset_selection_user. The other functions need quite some more work to close the races of the variables there. This is going to happen later.This likely fixes (I am unsure as there is no reproducer provided) bug 206361 too. It was marked as CVE-2020-8648.
Signed-off-by Jiri Slaby <[email protected]>Reported-by [email protected]Cc stable <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/tty/vt/selection.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-)drivers/tty/vt/selection.c +17
-6@@ -16,6 +16,7 @@#include <linux/tty.h> #include <linux/sched.h> #include <linux/mm.h> +#include <linux/mutex.h> #include <linux/slab.h> #include <linux/types.h> @@ -45,6 +46,7 @@ static volatile int sel_start = -1; /*static int sel_end;static int sel_buffer_lth;static char *sel_buffer; +static DEFINE_MUTEX (sel_lock);/* clear_selection, highlight and highlight_pointer can be called from interrupt (via scrollback/front) */ @@ -186,7 +188,7 @@ int set_selection_kernel(struct tiocl_sechar *bp, *obp;int i, ps, pe, multiplier;u32 c; -int mode; +int mode, ret =0 ;poke_blanked_console ();@@ -212,6 +214,7 @@ int set_selection_kernel(struct tiocl_seif (ps > pe)/* make sel_start <= sel_end */ swap (ps, pe); +mutex_lock (&sel_lock);if (sel_cons != vc_cons[fg_console].d) {clear_selection (); sel_cons = vc_cons[fg_console].d;@@ -257,9 +260,10 @@ int set_selection_kernel(struct tiocl_sebreak ;case TIOCL_SELPOINTER :highlight_pointer (pe); -return 0 ; + goto unlock;default : -return -EINVAL ; + ret = -EINVAL ; + goto unlock; }/* remove the pointer */ @@ -281,7 +285,7 @@ int set_selection_kernel(struct tiocl_seelse if (new_sel_start == sel_start) {if (new_sel_end == sel_end)/* no action required */ -return 0 ; + goto unlock;else if (new_sel_end > sel_end)/* extend to right */ highlight (sel_end +2 , new_sel_end);else /* contract from right */ @@ -309,7 +313,8 @@ int set_selection_kernel(struct tiocl_seif (!bp) {printk (KERN_WARNING "selection: kmalloc() failed\n" );clear_selection (); -return -ENOMEM ; + ret = -ENOMEM ; + goto unlock; }kfree (sel_buffer); sel_buffer = bp;@@ -334,7 +339,9 @@ int set_selection_kernel(struct tiocl_se } } sel_buffer_lth = bp - sel_buffer; -return 0 ; +unlock: +mutex_unlock (&sel_lock); +return ret; }EXPORT_SYMBOL_GPL (set_selection_kernel);@@ -364,6 +371,7 @@ int paste_selection(struct tty_struct *ttty_buffer_lock_exclusive (&vc->port);add_wait_queue (&vc->paste_wait, &wait); +mutex_lock (&sel_lock);while (sel_buffer && sel_buffer_lth > pasted) {set_current_state (TASK_INTERRUPTIBLE );if (signal_pending (current)) {@@ -371,7 +379,9 @@ int paste_selection(struct tty_struct *tbreak ; }if (tty_throttled (tty)) { +mutex_unlock (&sel_lock);schedule (); +mutex_lock (&sel_lock);continue ; }__set_current_state (TASK_RUNNING );@@ -380,6 +390,7 @@ int paste_selection(struct tty_struct *t count); pasted += count; } +mutex_unlock (&sel_lock);remove_wait_queue (&vc->paste_wait, &wait);__set_current_state (TASK_RUNNING );
Signature · 2 lines
js suse labs
Greg Kroah-Hartman
maintainerRe: [PATCH 5.5 133/150] scripts/get_maintainer.pl: deprioritize old Fixes: addresses
In reply to Dan CarpenterQuoted 6 lines · Dan Carpenter
Quoted 5 lines · Joe Perches
Quoted 3 lines · Greg Kroah-Hartman
From: Douglas Anderson <[email protected]>
commit
0ef82fcefb99300ede6f4d38a8100845b2dc8e30upstream.
Quoted 7 lines
Quoted 3 lines
I think adding just about any checkpatch patch to stable a bit silly. Including patches to checkpatch.
On the other hand, Greg is one of the worst affected by the old behavior since he has so many old email addresses and he's also the stable maintainer.
Exactly, lots of people still do development against the latest released kernel, which is 5.5 here...
thanks,
greg kh-
Greg Kroah-Hartman
maintainerRe: [PATCH 5.5 027/150] vt: selection, close sel_buffer race
In reply to Jiri SlabyQuoted 11 lines · Jiri Slaby
Quoted 5 lines · Greg Kroah-Hartman
From: Jiri Slaby <[email protected]>
commit
07e6124a1a46b4b5a9b3cacc0c306b50da87abf5upstream.syzkaller reported this UAF:
With this patch, syzkaller reports possible circular locking dependency:
https://lore.kernel.org/lkml/[email protected]/Could you drop the patch from stable until this is resolved?
Good idea, now dropped from 4.19.y, 5.4.y, and 5.5.y, thanks.
greg k-h
Quoted 7 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.5.7 release. There are 150 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 Sat, 29 Feb 2020 13:21:24 +0000. Anything received after that time might be too late.
There is something going on with USB in this release. My AMD X570 board is constantly having ports stop working, while a older AMD X399 board seems fine (maybe, there is an ATEN USB extender involved on the X570 system)
I've only had time to do very rudimentary debugging, but reverting all usb and xhci related patches seems to have solved it, eg:
Quoted 11 lines
usb-dwc2-fix-in-isoc-request-length-checking.patch usb-gadget-composite-fix-bmaxpower-for-superspeedplus.patch usb-dwc3-debug-fix-string-position-formatting-mixup-with-ret-and-len.patch usb-dwc3-gadget-check-for-ioc-lst-bit-in-trb-ctrl-fields.patch usb-dwc2-fix-set-clear_feature-and-get_status-flows.patch usb-hub-fix-the-broken-detection-of-usb3-device-in-smsc-hub.patch usb-hub-don-t-record-a-connect-change-event-during-reset-resume.patch usb-fix-novation-sourcecontrol-xl-after-suspend.patch usb-uas-fix-a-plug-unplug-racing.patch usb-quirks-blacklist-duplicate-ep-on-sound-devices-usbpre2.patch usb-core-add-endpoint-blacklist-quirk.patch
Quoted 8 lines
xhci-fix-memory-leak-when-caching-protocol-extended-capability-psi-tables-take-2.patch xhci-apply-xhci_pme_stuck_quirk-to-intel-comet-lake-platforms.patch xhci-fix-runtime-pm-enabling-for-quirky-intel-hosts.patch xhci-force-maximum-packet-size-for-full-speed-bulk-devices-to-valid-range.patch usb-serial-ch341-fix-receiver-regression.patch usb-misc-iowarrior-add-support-for-the-100-device.patch usb-misc-iowarrior-add-support-for-the-28-and-28l-devices.patch usb-misc-iowarrior-add-support-for-2-oemed-devices.patch
I might be able to narrow it down in a day or two.
Greg Kroah-Hartman
maintainerQuoted 36 lines · Andre Tomt
Quoted 7 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.5.7 release. There are 150 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 Sat, 29 Feb 2020 13:21:24 +0000. Anything received after that time might be too late.
There is something going on with USB in this release. My AMD X570 board is constantly having ports stop working, while a older AMD X399 board seems fine (maybe, there is an ATEN USB extender involved on the X570 system)
I've only had time to do very rudimentary debugging, but reverting all usb and xhci related patches seems to have solved it, eg:
Quoted 11 lines
usb-dwc2-fix-in-isoc-request-length-checking.patch usb-gadget-composite-fix-bmaxpower-for-superspeedplus.patch usb-dwc3-debug-fix-string-position-formatting-mixup-with-ret-and-len.patch usb-dwc3-gadget-check-for-ioc-lst-bit-in-trb-ctrl-fields.patch usb-dwc2-fix-set-clear_feature-and-get_status-flows.patch usb-hub-fix-the-broken-detection-of-usb3-device-in-smsc-hub.patch usb-hub-don-t-record-a-connect-change-event-during-reset-resume.patch usb-fix-novation-sourcecontrol-xl-after-suspend.patch usb-uas-fix-a-plug-unplug-racing.patch usb-quirks-blacklist-duplicate-ep-on-sound-devices-usbpre2.patch usb-core-add-endpoint-blacklist-quirk.patch
Quoted 8 lines
xhci-fix-memory-leak-when-caching-protocol-extended-capability-psi-tables-take-2.patch xhci-apply-xhci_pme_stuck_quirk-to-intel-comet-lake-platforms.patch xhci-fix-runtime-pm-enabling-for-quirky-intel-hosts.patch xhci-force-maximum-packet-size-for-full-speed-bulk-devices-to-valid-range.patch usb-serial-ch341-fix-receiver-regression.patch usb-misc-iowarrior-add-support-for-the-100-device.patch usb-misc-iowarrior-add-support-for-the-28-and-28l-devices.patch usb-misc-iowarrior-add-support-for-2-oemed-devices.patch
Quoted 1 line
I might be able to narrow it down in a day or two.
Narrowing it down would be good, try sticking with either the hub or xhci patches. And, 'git bisect' might make it easier.
Also, does Linus's current tree show the same problems for you?
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 15 lines · shuah
Quoted 14 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.5.7 release. There are 150 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 Sat, 29 Feb 2020 13:21:24 +0000. 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/v5.x/stable-review/patch-5.5.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.5.y
and the diffstat can be found below.
Quoted 6 lines
Quoted 4 lines
thanks,
greg k-h
Compiled and booted on my test system. No dmesg regressions.
Thanks for testing all of these and letting me know.
greg k-h
Greg Kroah-Hartman
maintainerQuoted 27 lines · Jon Hunter
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.5.7 release. There are 150 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 Sat, 29 Feb 2020 13:21:24 +0000. 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/v5.x/stable-review/patch-5.5.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.5.y
and the diffstat can be found below.thanks,
greg k-h
All tests are passing for Tegra ...
Test results for stable-v5.5:
13 builds: 13 pass, 0 fail 22 boots: 22 pass, 0 fail 40 tests: 40 pass, 0 fail
Quoted 5 lines
Linux version: 5.5.7-rc1-g986ea77a7c44
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,tegra194-p2972-0000, tegra20-ventana, tegra210-p2371-2180, tegra210-p3450-0000, tegra30-cardhu-a04
Thanks for testing all of these and letting me know.
greg k-h
Quoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Andre Tomt
Quoted 7 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.5.7 release. There are 150 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 Sat, 29 Feb 2020 13:21:24 +0000. Anything received after that time might be too late.
There is something going on with USB in this release. My AMD X570 board is constantly having ports stop working, while a older AMD X399 board seems fine (maybe, there is an ATEN USB extender involved on the X570 system)
I've only had time to do very rudimentary debugging, but reverting all usb and xhci related patches seems to have solved it, eg:
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
<snip>
I might be able to narrow it down in a day or two.
Narrowing it down would be good, try sticking with either the hub or xhci patches. And, 'git bisect' might make it easier.
It seems to be caused by "USB: hub: Don't record a connect-change event during reset-resume". Running 5.5.7-rc1 with only that patch reverted works fine.
Also happens with the X399. And only when the ATEN UCE260 USB extender is involved. Connecting a device is the problem, if it is connected at boot, things seem fine, until you connect something new. Then the port dies completely, dead even if you disconnect the extender and plug something in directly - until system is rebooted (perhaps driver reload would work too - have not tested.)
Aw well, the problem does seem a little narrower than I expected at first :)
There's no errors in the kernel log at all. The last thing logged is that whatever device was on the other end got disconnected.
Quoted 1 line
Also, does Linus's current tree show the same problems for you?
Yes, it does
Unfortunately, email deliverability will be terrible for me for a few days (there was a mishap), so if you could loop in the author/maintainers for me that would be good.
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 5.5.7 release. There are 150 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 Sat, 29 Feb 2020 13:21:24 +0000. 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/v5.x/stable-review/patch-5.5.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.5.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.
Wonderful, thanks for testing all of these and letting me know.
greg k-h