2023-06-30 07:46:27

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 6.4 00/31] 6.4.1-rc3 review

This is the start of the stable review cycle for the 6.4.1 release.
There are 31 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 Sun, 02 Jul 2023 07:20:45 +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/v6.x/stable-review/patch-6.4.1-rc3.gz
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.4.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <[email protected]>
Linux 6.4.1-rc3

Linus Torvalds <[email protected]>
csky: fix up lock_mm_and_find_vma() conversion

Linus Torvalds <[email protected]>
parisc: fix expand_stack() conversion

Linus Torvalds <[email protected]>
sparc32: fix lock_mm_and_find_vma() conversion

Ricardo Cañuelo <[email protected]>
Revert "thermal/drivers/mediatek: Use devm_of_iomap to avoid resource leak in mtk_thermal_probe"

Mike Hommey <[email protected]>
HID: logitech-hidpp: add HIDPP_QUIRK_DELAYED_INIT for the T651.

Ludvig Michaelsson <[email protected]>
HID: hidraw: fix data race on device refcount

Zhang Shurong <[email protected]>
fbdev: fix potential OOB read in fast_imageblit()

Hugh Dickins <[email protected]>
mm/khugepaged: fix regression in collapse_file()

Linus Torvalds <[email protected]>
gup: add warning if some caller would seem to want stack expansion

Jason Gerecke <[email protected]>
HID: wacom: Use ktime_t rather than int when dealing with timestamps

Linus Torvalds <[email protected]>
mm: always expand the stack with the mmap write lock held

Linus Torvalds <[email protected]>
execve: expand new process stack manually ahead of time

Liam R. Howlett <[email protected]>
mm: make find_extend_vma() fail if write lock not held

Linus Torvalds <[email protected]>
powerpc/mm: convert coprocessor fault to lock_mm_and_find_vma()

Linus Torvalds <[email protected]>
mm/fault: convert remaining simple cases to lock_mm_and_find_vma()

Ben Hutchings <[email protected]>
arm/mm: Convert to using lock_mm_and_find_vma()

Ben Hutchings <[email protected]>
riscv/mm: Convert to using lock_mm_and_find_vma()

Ben Hutchings <[email protected]>
mips/mm: Convert to using lock_mm_and_find_vma()

Michael Ellerman <[email protected]>
powerpc/mm: Convert to using lock_mm_and_find_vma()

Linus Torvalds <[email protected]>
arm64/mm: Convert to using lock_mm_and_find_vma()

Linus Torvalds <[email protected]>
mm: make the page fault mmap locking killable

Linus Torvalds <[email protected]>
mm: introduce new 'lock_mm_and_find_vma()' page fault helper

Peng Zhang <[email protected]>
maple_tree: fix potential out-of-bounds access in mas_wr_end_piv()

Oliver Hartkopp <[email protected]>
can: isotp: isotp_sendmsg(): fix return error fix on TX path

Wyes Karny <[email protected]>
cpufreq: amd-pstate: Make amd-pstate EPP driver name hyphenated

Thomas Gleixner <[email protected]>
x86/smp: Cure kexec() vs. mwait_play_dead() breakage

Thomas Gleixner <[email protected]>
x86/smp: Use dedicated cache-line for mwait_play_dead()

Thomas Gleixner <[email protected]>
x86/smp: Remove pointless wmb()s from native_stop_other_cpus()

Tony Battersby <[email protected]>
x86/smp: Dont access non-existing CPUID leaf

Thomas Gleixner <[email protected]>
x86/smp: Make stop_other_cpus() more robust

Borislav Petkov (AMD) <[email protected]>
x86/microcode/AMD: Load late on both threads too


-------------

Diffstat:

Makefile | 4 +-
arch/alpha/Kconfig | 1 +
arch/alpha/mm/fault.c | 13 +--
arch/arc/Kconfig | 1 +
arch/arc/mm/fault.c | 11 +--
arch/arm/Kconfig | 1 +
arch/arm/mm/fault.c | 63 ++++-----------
arch/arm64/Kconfig | 1 +
arch/arm64/mm/fault.c | 47 ++---------
arch/csky/Kconfig | 1 +
arch/csky/mm/fault.c | 22 ++----
arch/hexagon/Kconfig | 1 +
arch/hexagon/mm/vm_fault.c | 18 +----
arch/ia64/mm/fault.c | 36 ++-------
arch/loongarch/Kconfig | 1 +
arch/loongarch/mm/fault.c | 16 ++--
arch/m68k/mm/fault.c | 9 ++-
arch/microblaze/mm/fault.c | 5 +-
arch/mips/Kconfig | 1 +
arch/mips/mm/fault.c | 12 +--
arch/nios2/Kconfig | 1 +
arch/nios2/mm/fault.c | 17 +---
arch/openrisc/mm/fault.c | 5 +-
arch/parisc/mm/fault.c | 23 +++---
arch/powerpc/Kconfig | 1 +
arch/powerpc/mm/copro_fault.c | 14 +---
arch/powerpc/mm/fault.c | 39 +--------
arch/riscv/Kconfig | 1 +
arch/riscv/mm/fault.c | 31 +++-----
arch/s390/mm/fault.c | 5 +-
arch/sh/Kconfig | 1 +
arch/sh/mm/fault.c | 17 +---
arch/sparc/Kconfig | 1 +
arch/sparc/mm/fault_32.c | 32 ++------
arch/sparc/mm/fault_64.c | 8 +-
arch/um/kernel/trap.c | 11 +--
arch/x86/Kconfig | 1 +
arch/x86/include/asm/cpu.h | 2 +
arch/x86/include/asm/smp.h | 2 +
arch/x86/kernel/cpu/microcode/amd.c | 2 +-
arch/x86/kernel/process.c | 28 ++++++-
arch/x86/kernel/smp.c | 73 ++++++++++-------
arch/x86/kernel/smpboot.c | 81 ++++++++++++++++---
arch/x86/mm/fault.c | 52 +-----------
arch/xtensa/Kconfig | 1 +
arch/xtensa/mm/fault.c | 14 +---
drivers/cpufreq/amd-pstate.c | 2 +-
drivers/hid/hid-logitech-hidpp.c | 2 +-
drivers/hid/hidraw.c | 9 ++-
drivers/hid/wacom_wac.c | 6 +-
drivers/hid/wacom_wac.h | 2 +-
drivers/iommu/amd/iommu_v2.c | 4 +-
drivers/iommu/iommu-sva.c | 2 +-
drivers/thermal/mediatek/auxadc_thermal.c | 14 +---
drivers/video/fbdev/core/sysimgblt.c | 2 +-
fs/binfmt_elf.c | 6 +-
fs/exec.c | 38 +++++----
include/linux/mm.h | 16 ++--
lib/maple_tree.c | 11 +--
mm/Kconfig | 4 +
mm/gup.c | 14 +++-
mm/khugepaged.c | 7 +-
mm/memory.c | 127 ++++++++++++++++++++++++++++++
mm/mmap.c | 121 ++++++++++++++++++++++++----
mm/nommu.c | 17 ++--
net/can/isotp.c | 5 +-
66 files changed, 605 insertions(+), 531 deletions(-)




2023-06-30 12:08:03

by Ron Economos

[permalink] [raw]
Subject: Re: [PATCH 6.4 00/31] 6.4.1-rc3 review

On 6/30/23 12:33 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.4.1 release.
> There are 31 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 Sun, 02 Jul 2023 07:20:45 +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/v6.x/stable-review/patch-6.4.1-rc3.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.4.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

Built and booted successfully on RISC-V RV64 (HiFive Unmatched).

Tested-by: Ron Economos <[email protected]>


2023-06-30 12:23:18

by Jon Hunter

[permalink] [raw]
Subject: Re: [PATCH 6.4 00/31] 6.4.1-rc3 review

On Fri, 30 Jun 2023 09:33:31 +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.4.1 release.
> There are 31 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 Sun, 02 Jul 2023 07:20:45 +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/v6.x/stable-review/patch-6.4.1-rc3.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.4.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

All tests passing for Tegra ...

Test results for stable-v6.4:
11 builds: 11 pass, 0 fail
28 boots: 28 pass, 0 fail
130 tests: 130 pass, 0 fail

Linux version: 6.4.1-rc3-g94976aa9d87c
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra194-p2972-0000, tegra194-p3509-0000+p3668-0000,
tegra20-ventana, tegra210-p2371-2180,
tegra210-p3450-0000, tegra30-cardhu-a04

Tested-by: Jon Hunter <[email protected]>

Jon

2023-06-30 14:09:33

by Ronald Warsow

[permalink] [raw]
Subject: Re: [PATCH 6.4 00/31] 6.4.1-rc3 review

Hi Greg

6.4.1-rc3

compiles, boots and runs here on x86_64
(Intel Rocket Lake, i5-11400)

Thanks

Tested-by: Ronald Warsow <[email protected]>


2023-06-30 15:27:32

by Rudi Heitbaum

[permalink] [raw]
Subject: Re: [PATCH 6.4 00/31] 6.4.1-rc3 review

On Fri, Jun 30, 2023 at 09:33:31AM +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.4.1 release.
> There are 31 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 Sun, 02 Jul 2023 07:20:45 +0000.
> Anything received after that time might be too late.

Hi Greg,

6.4.1-rc3 tested.

Run tested on:
- Allwinner H6 (Tanix TX6)
- Intel Alder Lake x86_64 (nuc12 i7-1260P)

In addition - build tested for:
- Allwinner A64
- Allwinner H3
- Allwinner H5
- NXP iMX6
- NXP iMX8
- Qualcomm Dragonboard
- Rockchip RK3288
- Rockchip RK3328
- Rockchip RK3399pro
- Samsung Exynos

Tested-by: Rudi Heitbaum <[email protected]>
--
Rudi

2023-07-01 03:35:31

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH 6.4 00/31] 6.4.1-rc3 review

On Fri, Jun 30, 2023 at 09:33:31AM +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.4.1 release.
> There are 31 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 Sun, 02 Jul 2023 07:20:45 +0000.
> Anything received after that time might be too late.
>

Build results:
total: 152 pass: 152 fail: 0
Qemu test results:
total: 520 pass: 519 fail: 1
Failed tests:
xtensa:de212:kc705-nommu:nommu_kc705_defconfig

Guenter

2023-07-01 08:56:54

by Naresh Kamboju

[permalink] [raw]
Subject: Re: [PATCH 6.4 00/31] 6.4.1-rc3 review

On Fri, 30 Jun 2023 at 13:03, Greg Kroah-Hartman
<[email protected]> wrote:
>
> This is the start of the stable review cycle for the 6.4.1 release.
> There are 31 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 Sun, 02 Jul 2023 07:20:45 +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/v6.x/stable-review/patch-6.4.1-rc3.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.4.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.

Tested-by: Linux Kernel Functional Testing <[email protected]>
NOTE:
1) Following kernel BUG noticed while booting and running KASAN /
KFENCE testing on
qemu-arm64 and qemu-x86_64. This is always reproducible.

Boot log:
=========

<6>[ 508.503587] KTAP version 1
<6>[ 508.504164] # Subtest: input_core
<6>[ 508.505615] 1..3
<6>[ 508.514268] input: Test input device as /devices/virtual/input/input1
<3>[ 508.533860]
==================================================================
<3>[ 508.535501] BUG: KASAN: slab-use-after-free in input_free_device+0x20/0x74
<3>[ 508.537680] Read of size 1 at addr ffff0000c60dd548 by task
kunit_try_catch/471
<3>[ 508.539159]
<3>[ 508.540334] CPU: 1 PID: 471 Comm: kunit_try_catch Tainted: G
N 6.4.1-rc3 #1
<3>[ 508.542035] Hardware name: linux,dummy-virt (DT)
<3>[ 508.543528] Call trace:
<3>[ 508.544275] dump_backtrace+0x94/0x100
<3>[ 508.545430] show_stack+0x18/0x24
<3>[ 508.546378] dump_stack_lvl+0x48/0x60
<3>[ 508.547602] print_report+0xf8/0x5c0
<3>[ 508.548600] kasan_report+0x78/0xc0
<3>[ 508.549629] __asan_load1+0x60/0x6c
<3>[ 508.550799] input_free_device+0x20/0x74
<3>[ 508.551884] input_test_exit+0x2c/0x3c
<3>[ 508.553028] kunit_try_run_case+0x94/0x118
<3>[ 508.554249] kunit_generic_run_threadfn_adapter+0x30/0x4c
<3>[ 508.555496] kthread+0x1d4/0x1e4
<3>[ 508.556452] ret_from_fork+0x10/0x20
<3>[ 508.558125]
<3>[ 508.558816] Allocated by task 471:
<4>[ 508.559974] kasan_save_stack+0x2c/0x54
<4>[ 508.561120] kasan_set_track+0x2c/0x40
<4>[ 508.562131] kasan_save_alloc_info+0x24/0x34
<4>[ 508.563206] __kasan_kmalloc+0xa0/0xb8
<4>[ 508.564204] kmalloc_trace+0x54/0x68
<4>[ 508.565387] input_allocate_device+0x30/0x164
<4>[ 508.566523] input_test_init+0x94/0x1c4
<4>[ 508.567540] kunit_try_run_case+0x60/0x118
<4>[ 508.568615] kunit_generic_run_threadfn_adapter+0x30/0x4c
<4>[ 508.569927] kthread+0x1d4/0x1e4
<4>[ 508.570869] ret_from_fork+0x10/0x20
<3>[ 508.571923]
<3>[ 508.572538] Freed by task 471:
<4>[ 508.573365] kasan_save_stack+0x2c/0x54
<4>[ 508.574404] kasan_set_track+0x2c/0x40
<4>[ 508.575376] kasan_save_free_info+0x38/0x60
<4>[ 508.576452] __kasan_slab_free+0xe8/0x154
<4>[ 508.577537] __kmem_cache_free+0x194/0x360
<4>[ 508.578423] kfree+0x60/0x74
<4>[ 508.579332] input_dev_release+0x64/0x80
<4>[ 508.580610] device_release+0x94/0x10c
<4>[ 508.581712] kobject_put+0xe0/0x184
<4>[ 508.582682] put_device+0x14/0x24
<4>[ 508.583595] input_unregister_device+0x78/0x90
<4>[ 508.584664] input_test_exit+0x24/0x3c
<4>[ 508.585797] kunit_try_run_case+0x94/0x118
<4>[ 508.586839] kunit_generic_run_threadfn_adapter+0x30/0x4c
<4>[ 508.588072] kthread+0x1d4/0x1e4
<4>[ 508.589121] ret_from_fork+0x10/0x20
<3>[ 508.590175]
<3>[ 508.591009] The buggy address belongs to the object at ffff0000c60dd000
<3>[ 508.591009] which belongs to the cache kmalloc-2k of size 2048
<3>[ 508.593404] The buggy address is located 1352 bytes inside of
<3>[ 508.593404] freed 2048-byte region [ffff0000c60dd000, ffff0000c60dd800)
<3>[ 508.595234]
<3>[ 508.596225] The buggy address belongs to the physical page:
<4>[ 508.597748] page:00000000c20b6f30 refcount:1 mapcount:0
mapping:0000000000000000 index:0x0 pfn:0x1060d8
<4>[ 508.599925] head:00000000c20b6f30 order:3 entire_mapcount:0
nr_pages_mapped:0 pincount:0
<4>[ 508.601649] flags:
0xbfffc0000010200(slab|head|node=0|zone=2|lastcpupid=0xffff)
<4>[ 508.603059] page_type: 0xffffffff()
<4>[ 508.604620] raw: 0bfffc0000010200 ffff0000c0002900
dead000000000122 0000000000000000
<4>[ 508.606267] raw: 0000000000000000 0000000080080008
00000001ffffffff 0000000000000000
<4>[ 508.607742] page dumped because: kasan: bad access detected
<3>[ 508.608610]
<3>[ 508.609452] Memory state around the buggy address:
<3>[ 508.611047] ffff0000c60dd400: fb fb fb fb fb fb fb fb fb fb fb
fb fb fb fb fb
<3>[ 508.612333] ffff0000c60dd480: fb fb fb fb fb fb fb fb fb fb fb
fb fb fb fb fb
<3>[ 508.613892] >ffff0000c60dd500: fb fb fb fb fb fb fb fb fb fb fb
fb fb fb fb fb
<3>[ 508.615057] ^
<3>[ 508.616277] ffff0000c60dd580: fb fb fb fb fb fb fb fb fb fb fb
fb fb fb fb fb
<3>[ 508.618324] ffff0000c60dd600: fb fb fb fb fb fb fb fb fb fb fb
fb fb fb fb fb
<3>[ 508.619628]
==================================================================
<4>[ 508.621915] Disabling lock debugging due to kernel taint

Links:
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.4.y/build/v6.4-32-g94976aa9d87c/testrun/18006002/suite/log-parser-boot/test/check-kernel-bug/log
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.4.y/build/v6.4-32-g94976aa9d87c/testrun/18006002/suite/log-parser-boot/tests/

2) Build warnings on x86 with KCSAN config enabled with clang 16 tool chain.

* x86_64, build
- clang-16-lkftconfig-kcsan-warnings

vmlinux.o: warning: objtool: ibt_selftest+0x14: sibling call from
callable instruction with modified stack frame
vmlinux.o: warning: objtool: ibt_selftest+0x1e: return with modified stack frame
vmlinux.o: warning: objtool: set_ftrace_ops_ro+0x27: relocation to
!ENDBR: .text+0x1b63c6
vmlinux.o: warning: objtool: set_ftrace_ops_ro+0x3d: relocation to
!ENDBR: .text+0x1b622c

Link:
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2RurEsG9Cn0pVN7klR71yKdp57r/

## Build
* kernel: 6.4.1-rc3
* git: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
* git branch: linux-6.4.y
* git commit: 94976aa9d87c63c78bc4d660382977fcf89d2921
* git describe: v6.4-32-g94976aa9d87c
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.4.y/build/v6.4-32-g94976aa9d87c/

## Test Regressions (compared to v6.4)

## Metric Regressions (compared to v6.4)

## Test Fixes (compared to v6.4)

## Metric Fixes (compared to v6.4)

## Test result summary
total: 188717, pass: 153596, fail: 3192, skip: 31929

## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 145 total, 144 passed, 1 failed
* arm64: 54 total, 53 passed, 1 failed
* i386: 41 total, 40 passed, 1 failed
* mips: 30 total, 28 passed, 2 failed
* parisc: 4 total, 4 passed, 0 failed
* powerpc: 38 total, 36 passed, 2 failed
* riscv: 26 total, 25 passed, 1 failed
* s390: 16 total, 14 passed, 2 failed
* sh: 14 total, 12 passed, 2 failed
* sparc: 8 total, 8 passed, 0 failed
* x86_64: 46 total, 46 passed, 0 failed

## Test suites summary
* boot
* fwts
* kselftest-android
* kselftest-arm64
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-cgroup
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-cpufreq
* kselftest-drivers-dma-buf
* kselftest-efivarfs
* kselftest-exec
* kselftest-filesystems
* kselftest-filesystems-binderfs
* kselftest-firmware
* kselftest-fpu
* kselftest-ftrace
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-ir
* kselftest-kcmp
* kselftest-kexec
* kselftest-kvm
* kselftest-lib
* kselftest-livepatch
* kselftest-membarrier
* kselftest-mincore
* kselftest-mqueue
* kselftest-net
* kselftest-net-forwarding
* kselftest-net-mptcp
* kselftest-netfilter
* kselftest-nsfs
* kselftest-openat2
* kselftest-pid_namespace
* kselftest-pidfd
* kselftest-proc
* kselftest-pstore
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-seccomp
* kselftest-sigaltstack
* kselftest-size
* kselftest-splice
* kselftest-static_keys
* kselftest-sync
* kselftest-sysctl
* kselftest-tc-testing
* kselftest-timens
* kselftest-timers
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user
* kselftest-user_events
* kselftest-vDSO
* kselftest-watchdog
* kselftest-x86
* kselftest-zram
* kunit
* kvm-unit-tests
* libgpiod
* libhugetlbfs
* log-parser-boot
* log-parser-test
* ltp-cap_bounds
* ltp-commands
* ltp-containers
* ltp-controllers
* ltp-cpuhotplug
* ltp-crypto
* ltp-cve
* ltp-dio
* ltp-fcntl-locktests
* ltp-filecaps
* ltp-fs
* ltp-fs_bind
* ltp-fs_perms_simple
* ltp-fsx
* ltp-hugetlb
* ltp-io
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-securebits
* ltp-smoke
* ltp-syscalls
* ltp-tracing
* network-basic-tests
* perf
* rcutorture
* v4l2-compliance
* vdso

--
Linaro LKFT
https://lkft.linaro.org