5.15.168-rc1 review
Greg Kroah-Hartman
maintainerPATCH 677/691 nouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yonatan Maman <[email protected]>
commit 835745a377a4519decd1a36d6b926e369b3033e2 upstream.
The nouveau_dmem_copy_one function ensures that the copy push command is sent to the device firmware but does not track whether it was executed successfully.
In the case of a copy error (e.g., firmware or hardware failure), the copy push command will be sent via the firmware channel, and nouveau_dmem_copy_one will likely report success, leading to the migrate_to_ram function returning a dirty HIGH_USER page to the user.
This can result in a security vulnerability, as a HIGH_USER page that may contain sensitive or corrupted data could be returned to the user.
To prevent this vulnerability, we allocate a zero page. Thus, in case of an error, a non-dirty (zero) page will be returned to the user.
--- drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_dmem.c +1 -1
@@ -149,7 +149,7 @@ static vm_fault_t nouveau_dmem_fault_copif (!spage || !(args->src[0 ] &MIGRATE_PFN_MIGRATE ))return 0 ; - dpage =alloc_page_vma (GFP_HIGHUSER , vmf->vma, vmf->address); + dpage =alloc_page_vma (GFP_HIGHUSER | __GFP_ZERO, vmf->vma, vmf->address);if (!dpage)return VM_FAULT_SIGBUS ;lock_page (dpage);
Re: [PATCH 5.15 364/691] io_uring/sqpoll: do not allow pinning outside of cpuset
In reply to Greg Kroah-HartmanQuoted 2 lines · Greg Kroah-Hartman
5.15-stable review patch. If anyone has any objections, please let me know.
This patch is buggy and must not be cherry-picked without also having:
a09c17240bd ("io_uring/sqpoll: retain test for whether the CPU is valid")7f44beadcc1 ("io_uring/sqpoll: do not put cpumask on stack")
Best regards,
Felix Moessbauer
Quoted 60 lines
------------------
From: Felix Moessbauer <[email protected]>
The submit queue polling threads are userland threads that just never exit to the userland. When creating the thread with
IORING_SETUP_SQ_AFF,
the affinity of the poller thread is set to the cpu specified insq_thread_cpu. However, this CPU can be outside of the cpuset defined by the cgroup cpuset controller. This violates the rules defined by the
cpuset controller and is a potential issue for realtime applications.In
b7ed6d8ffd6we fixed the default affinity of the poller thread, in case no explicit pinning is required by inheriting the one of the creating task. In case of explicit pinning, the check is more complicated, as also a cpu outside of the parent cpumask is allowed. We implemented this by usingcpuset_cpus_allowed(that has support for
cgroup cpusets) and testing if the requested cpu is in the set.Fixes 37d1e2e3642e ("io_uring: move SQPOLL thread io-wq forkedworker")
Cc [email protected] # 6.1+Signed-off-by Felix Moessbauer <[email protected]>Link:
https://lore.kernel.org/r/[email protected]Signed-off-by Jens Axboe <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>---
io_uring/io_uring.c | 5 ++++-1 file changed, 4 insertions(+), 1 deletion(-)io_uring/io_uring.c +1
-0@@ -56,6 +56,7 @@ #include <linux/mm.h> #include <linux/mman.h> #include <linux/percpu.h> +#include <linux/cpuset.h> #include <linux/slab.h> #include <linux/blkdev.h> #include <linux/bvec.h>@@ -8746,10 +8747,12 @@ static int io_sq_offload_create(struct i return 0;
if (p->flags&IORING_SETUP_SQ_AFF) {
+ struct cpumaskallowed_mask;
int cpu =p->sq_thread_cpu;
ret =-EINVAL;
- if (cpu >=nr_cpu_ids|| !cpu_online(cpu)) + cpuset_cpus_allowed(current,&allowed_mask); + if (!cpumask_test_cpu(cpu,&allowed_mask)) gotoerr_sqpoll;sqd->sq_cpu= cpu;
} else {
Signature · 2 lines
Siemens AG, Technology Linux Expert Center
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
perf fails to build with:
CC
/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.outil/evsel.c: In function 'evsel__set_count':util/evsel.c:1505:14: error: 'struct perf_counts_values' has no member named 'lost'
1505 | count->lost = lost;
| ^~
make[6]: *** [/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/build/Makefile.build:97: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.o] Error 1
seems like we need to backport upstream 89e3106fa25fb1b626a7123dba870159d453e785 ("libperf: Handle read format in perf_evsel__read()") to add the 'lost' member.
Signature · 1 line
Florian
Greg Kroah-Hartman
maintainerQuoted 30 lines · Florian Fainelli
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
perf fails to build with:
CC /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.o
util/evsel.c: In function 'evsel__set_count':util/evsel.c:1505:14: error: 'structperf_counts_values' has no member named
'lost'
1505 |count->lost= lost;
| ^~
make[6]: *** [/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/build/Makefile.build:97: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.o] Error 1
Quoted 3 lines
seems like we need to backport upstream
89e3106fa25fb1b626a7123dba870159d453e785("libperf: Handle read format inperf_evsel__read()") to add the 'lost' member.
Is this new? I can't build perf on any older kernels, but others might have better luck...
thanks,
greg k-h
Quoted 31 lines · Greg Kroah-Hartman
Quoted 30 lines · Florian Fainelli
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
perf fails to build with:
CC /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.o
util/evsel.c: In function 'evsel__set_count':util/evsel.c:1505:14: error: 'structperf_counts_values' has no member named
'lost'
1505 |count->lost= lost;
| ^~
make[6]: *** [/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/build/Makefile.build:97: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.o] Error 1
Quoted 6 lines
Quoted 3 lines
seems like we need to backport upstream
89e3106fa25fb1b626a7123dba870159d453e785("libperf: Handle read format inperf_evsel__read()") to add the 'lost' member.Is this new? I can't build perf on any older kernels, but others might have better luck...
Yes this is a new build failure, caused by "perf tools: Support reading PERF_FORMAT_LOST" AFAICT.
Signature · 1 line
Florian
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
Compiled and booted on my test system. No dmesg regressions.
thanks,
-- Shuah
Greg Kroah-Hartman
maintainerQuoted 36 lines · Florian Fainelli
Quoted 35 lines · Greg Kroah-Hartman
Quoted 33 lines · Florian Fainelli
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
perf fails to build with:
CC /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.o
util/evsel.c: In function 'evsel__set_count':util/evsel.c:1505:14: error: 'structperf_counts_values' has no member named
'lost'
1505 |count->lost= lost;
| ^~
make[6]: *** [/local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/build/Makefile.build:97: /local/users/fainelli/buildroot/output/arm/build/linux-custom/tools/perf/util/evsel.o] Error 1seems like we need to backport upstream
89e3106fa25fb1b626a7123dba870159d453e785("libperf: Handle read format inperf_evsel__read()") to add the 'lost' member.
Quoted 5 lines
Quoted 2 lines
Is this new? I can't build perf on any older kernels, but others might have better luck...
Yes this is a new build failure, caused by "perf tools: Support reading
PERF_FORMAT_LOST" AFAICT.
Thanks, I've dropped the offending commits now.
greg k-h
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
From last week's regressions reports,
The LTP syscalls fanotify22 test failed (broken).
This regression is noticed on linux.6.10.y [1], linux.6.11.y, linux.6.6.y and the Linus mainline and next master branch.
Now this has started failing on two additional branches linux.5.15.y and linux.6.1.y.
ltp-syscalls
- fanotify22
Anders bisected to patch
b1a855f8a4fd ("ext4: don't set SB_RDONLY after filesystem errors")
[ Upstream commit d3476f3dad4ad68ae5f6b008ea6591d1520da5d8 ]
There is a fix discussed and posted in these upstream links,
- https://lore.kernel.org/linux-ext4/[email protected]/
- https://lists.linux.it/pipermail/ltp/2024-October/040433.html
The stable-rc 5.15.y (5.15.168-rc1)
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.167-692-g63cec7aeaef7/testrun/25456713/suite/ltp-syscalls/test/fanotify22/history/
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.167-692-g63cec7aeaef7/testrun/25456713/suite/ltp-syscalls/test/fanotify22/log
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.167-692-g63cec7aeaef7/testrun/25456713/suite/ltp-syscalls/test/fanotify22/details/
[1] https://lore.kernel.org/stable/CADYN=9KBXFJA1oU6KVJU66vcEej5p+6NcVYO0=SUrWW1nqJ8jQ@mail.gmail.com/
--
Linaro LKFT
https://lkft.linaro.org
Hi Greg,
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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.
Like Florian we also see the build failure in perf/ and this is new from in this tag:
BUILDSTDERR: /builddir/build/BUILD/kernel-5.15.168/linux-5.15.168-master.20241015.el8.rc1/tools/perf/util/evsel.c: In function ‘evsel__set_count’: BUILDSTDERR: /builddir/build/BUILD/kernel-5.15.168/linux-5.15.168-master.20241015.el8.rc1/tools/perf/util/evsel.c:1505:14: error: ‘struct perf_counts_values’ has no member named ‘lost’ BUILDSTDERR: 1505 | count->lost = lost; BUILDSTDERR: | ^~
Thanks for dropping the commits pointed by Florian.
I am guessing we will have an rc2 soon, correct ?
Thanks,
Harshit
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
All tests passing for Tegra ...
Test results for stable-v5.15:
10 builds: 10 pass, 0 fail
26 boots: 26 pass, 0 fail
101 tests: 101 pass, 0 failLinux version: 5.15.168-rc1-g63cec7aeaef7
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-a04Jon
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
Built and booted successfully on RISC-V RV64 (HiFive Unmatched).
Quoted 14 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +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.15.168-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.
Quoted 5 lines
thanks,
greg k-h
-------------
Hi,
Please find the KernelCI report below :-
OVERVIEW
Builds: 24 passed, 0 failed
Boot tests: 42 passed, 0 failed
CI systems: maestro
REVISION
Commit
name:
hash: 63cec7aeaef787deed4608a04b93cf521ddc11bf
Checked out from
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
BUILDS
No new build failures found
BOOT TESTS
No new boot failures found
See complete and up-to-date report at:
https://kcidb.kernelci.org/d/revision/revision?orgId=1&var-datasource=edquppk2ghfcwc&var-git_commit_hash=63cec7aeaef787deed4608a04b93cf521ddc11bf&var-patchset_hash=&var-origin=maestro&var-build_architecture=All&var-build_config_name=All&var-test_path=boot
Thanks,
KernelCI team
Hi,
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +0000. Anything received after that time might be too late.
...
Quoted 3 lines
Christophe Leroy <[email protected]>
powerpc/mm: Fix boot warning with hugepages andCONFIG_DEBUG_VIRTUAL
This patch triggers a crash when trying to boot various powerpc images.
------------[ cut here ]------------ kernel BUG at include/linux/scatterlist.h:143! Oops: Exception in kernel mode, sig: 5 [#1] BE PAGE_SIZE=4K MMU=Hash PREEMPT SMP NR_CPUS=32 NUMA PowerMac Modules linked in: CPU: 0 PID: 25 Comm: cryptomgr_test Not tainted 5.15.167-00018-g00ef1de6d646 #1 NIP: c00000000082c6c0 LR: c00000000082f460 CTR: 0000000000000000 REGS: c00000000962b540 TRAP: 0700 Not tainted (5.15.167-00018-g00ef1de6d646) MSR: 8000000000028032 <SF,EE,IR,DR,RI> CR: 84000440 XER: 20000000
IRQMASK: 0
GPR00: c00000000082f44c c00000000962b7e0 c000000001ef6c00 c00000000962b9e8
GPR04: c0000000096e2000 0000000000000008 c00000000962ba48 0000000000000200
GPR08: 000000003e2a5000 c000000000000000 0000000000000000 0000000000000001
GPR12: 0000000024000440 c000000002b62000 c00000000011e6b0 c0000000096c8e40
GPR16: 0000000000000000 c00000000148c300 c00000000148c2f0 0000000000000008
GPR20: 0000000000000040 c00000000147ddf8 0000000000000040 c00000000956f4a8
GPR24: c000000002a23c98 c000000001417d18 c0000000096e2000 0000000000000001
GPR28: 0000000000000008 c00000000962b9e8 00000000000096e2 c0000000096e2000 NIP [c00000000082c6c0] .sg_set_buf+0x50/0x350
LR [c00000000082f460] .test_akcipher_one+0x280/0x860
Call Trace:
[c00000000962b7e0] [c00000000956f4f3] 0xc00000000956f4f3 (unreliable) [c00000000962b890] [c00000000082f44c] .test_akcipher_one+0x26c/0x860 [c00000000962bad0] [c00000000082fb14] .alg_test_akcipher+0xd4/0x150 [c00000000962bb70] [c00000000082bcac] .alg_test+0x15c/0x640 [c00000000962bcd0] [c000000000829850] .cryptomgr_test+0x40/0x70 [c00000000962bd50] [c00000000011e880] .kthread+0x1d0/0x1e0 [c00000000962be10] [c00000000000cc60] .ret_from_kernel_thread+0x58/0x60 Instruction dump:fbe1fff8 6129ffff fb61ffd8 7c244840 7c9f2378 91810008 7c7d1b78 f821ff51 7cbc2b78 789ea402 41810078 3b600001 <0b1b0000> 3d220007 7bde3664 39492f20
---[ end trace fdddc57d958f029f ]---
The problem affects v5.15.168 and v5.10.227. Reverting the offending patch fixes the problem in both branches.
My test images do not have hugepages or CONFIG_DEBUG_VIRTUAL enabled.
Bisect log is attached. I copied the author and Michael for comments.
Guenter
---
# bad: [584a40a22cb9bf5a03135869f11c3106b6200453] Linux 5.15.168
# good: [3a5928702e7120f83f703fd566082bfb59f1a57e] Linux 5.15.167
git bisect start 'HEAD' 'v5.15.167'
# bad: [62356668d855deb075a93fdf9f26888c4f80b7d6] nfs: fix memory leak in error path of nfs4_do_reclaim git bisect bad 62356668d855deb075a93fdf9f26888c4f80b7d6
# bad: [791b3d66d2ef3a64de517651d606afb9521b5d39] drm/bridge: lontium-lt8912b: Validate mode in drm_bridge_funcs::mode_valid() git bisect bad 791b3d66d2ef3a64de517651d606afb9521b5d39
# bad: [4318608dc28ef184158b4045896740716bea23f0] inet: inet_defrag: prevent sk release while still in use git bisect bad 4318608dc28ef184158b4045896740716bea23f0
# bad: [25cf67f8ff2ff04607b556fe4d8d4a402b133d29] ice: fix accounting for filters shared by multiple VSIs git bisect bad 25cf67f8ff2ff04607b556fe4d8d4a402b133d29
# bad: [10c111760128351b2b5ce72bb5345b0e0c89dc36] Input: synaptics - enable SMBus for HP Elitebook 840 G2 git bisect bad 10c111760128351b2b5ce72bb5345b0e0c89dc36
# good: [020f5c53c17f66c0a8f2d37dad27ace301b8d8a1] ocfs2: reserve space for inline xattr before attaching reflink tree git bisect good 020f5c53c17f66c0a8f2d37dad27ace301b8d8a1
# good: [d71c5e8cbcf9ced0765f99fd669da2610088e08e] usbnet: ipheth: fix carrier detection in modes 1 and 4 git bisect good d71c5e8cbcf9ced0765f99fd669da2610088e08e
# bad: [00ef1de6d64654e069849e79a9878318ad37a093] powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL git bisect bad 00ef1de6d64654e069849e79a9878318ad37a093
# good: [be4e5f5bdc19cbb6568509d1af1d94cc82537a95] net: phy: vitesse: repair vsc73xx autonegotiation
git bisect good be4e5f5bdc19cbb6568509d1af1d94cc82537a95
# first bad commit: [00ef1de6d64654e069849e79a9878318ad37a093] powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL
Quoted 1 line · Guenter Roeck
Hi,
Hi Guenter,
Thanks for the report.
Quoted 47 lines · Greg Kroah-Hartman
Quoted 8 lines
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +0000. Anything received after that time might be too late.
...
Quoted 3 lines
Christophe Leroy <[email protected]>
powerpc/mm: Fix boot warning with hugepages andCONFIG_DEBUG_VIRTUALThis patch triggers a crash when trying to boot various powerpc images.
------------[ cut here ]------------ kernel BUG at include/linux/scatterlist.h:143! Oops: Exception in kernel mode, sig: 5 [#1] BE PAGE_SIZE=4K MMU=Hash PREEMPT SMP NR_CPUS=32 NUMA PowerMac Modules linked in: CPU: 0 PID: 25 Comm: cryptomgr_test Not tainted 5.15.167-00018-g00ef1de6d646 #1 NIP: c00000000082c6c0 LR: c00000000082f460 CTR: 0000000000000000 REGS: c00000000962b540 TRAP: 0700 Not tainted (5.15.167-00018-g00ef1de6d646) MSR: 8000000000028032 <SF,EE,IR,DR,RI> CR: 84000440 XER: 20000000IRQMASK: 0
GPR00:c00000000082f44cc00000000962b7e0c000000001ef6c00c00000000962b9e8
GPR04:c0000000096e20000000000000000008c00000000962ba480000000000000200
GPR08:000000003e2a5000c0000000000000000000000000000000 0000000000000001
GPR12: 0000000024000440c000000002b62000c00000000011e6b0c0000000096c8e40
GPR16: 0000000000000000c00000000148c300c00000000148c2f00000000000000008
GPR20: 0000000000000040c00000000147ddf80000000000000040c00000000956f4a8
GPR24:c000000002a23c98c000000001417d18c0000000096e20000000000000000001
GPR28: 0000000000000008c00000000962b9e800000000000096e2c0000000096e2000NIP [c00000000082c6c0] .sg_set_buf+0x50/0x350
LR [c00000000082f460] .test_akcipher_one+0x280/0x860Call Trace:[
c00000000962b7e0] [c00000000956f4f3]0xc00000000956f4f3(unreliable) [c00000000962b890] [c00000000082f44c] .test_akcipher_one+0x26c/0x860 [c00000000962bad0] [c00000000082fb14] .alg_test_akcipher+0xd4/0x150 [c00000000962bb70] [c00000000082bcac] .alg_test+0x15c/0x640 [c00000000962bcd0] [c000000000829850] .cryptomgr_test+0x40/0x70 [c00000000962bd50] [c00000000011e880] .kthread+0x1d0/0x1e0 [c00000000962be10] [c00000000000cc60] .ret_from_kernel_thread+0x58/0x60 Instruction dump:fbe1fff86129fffffb61ffd87c2448407c9f2378918100087c7d1b78f821ff517cbc2b78789ea402418100783b600001<0b1b0000>3d2200077bde366439492f20
Quoted 8 lines
---[ end trace fdddc57d958f029f ]---The problem affects v5.15.168 and v5.10.227. Reverting the offending patch fixes the problem in both branches.
My test images do not have hugepages or
CONFIG_DEBUG_VIRTUALenabled.Bisect log is attached. I copied the author and Michael for comments.
I don't see that exact oops, but some others, which all track back to the same source.
The offending commit includes:
high_memory is set in mem_init() using max_low_pfn, but max_low_pfn is available long before, it is set in mem_topology_setup().
But that's only been true since commit:
7b31f7dadd70 ("powerpc/mm: Always update max/min_low_pfn in mem_topology_setup()")
which went into v6.1.
Backporting that commit to v5.15 (and v5.10) fixes the oops for me, and otherwise looks safe to backport.
Greg can you pick that commit (7b31f7dadd70) up for v5.15 and v5.10 please?
cheers
Greg Kroah-Hartman
maintainerQuoted 73 lines · Michael Ellerman
Quoted 1 line · Guenter Roeck
Hi,
Hi Guenter,
Thanks for the report.
Quoted 47 lines · Greg Kroah-Hartman
Quoted 8 lines
This is the start of the stable review cycle for the 5.15.168 release. There are 691 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 Thu, 17 Oct 2024 11:22:41 +0000. Anything received after that time might be too late.
...
Quoted 3 lines
Christophe Leroy <[email protected]>
powerpc/mm: Fix boot warning with hugepages andCONFIG_DEBUG_VIRTUALThis patch triggers a crash when trying to boot various powerpc images.
------------[ cut here ]------------ kernel BUG at include/linux/scatterlist.h:143! Oops: Exception in kernel mode, sig: 5 [#1] BE PAGE_SIZE=4K MMU=Hash PREEMPT SMP NR_CPUS=32 NUMA PowerMac Modules linked in: CPU: 0 PID: 25 Comm: cryptomgr_test Not tainted 5.15.167-00018-g00ef1de6d646 #1 NIP: c00000000082c6c0 LR: c00000000082f460 CTR: 0000000000000000 REGS: c00000000962b540 TRAP: 0700 Not tainted (5.15.167-00018-g00ef1de6d646) MSR: 8000000000028032 <SF,EE,IR,DR,RI> CR: 84000440 XER: 20000000IRQMASK: 0
GPR00:c00000000082f44cc00000000962b7e0c000000001ef6c00c00000000962b9e8
GPR04:c0000000096e20000000000000000008c00000000962ba480000000000000200
GPR08:000000003e2a5000c0000000000000000000000000000000 0000000000000001
GPR12: 0000000024000440c000000002b62000c00000000011e6b0c0000000096c8e40
GPR16: 0000000000000000c00000000148c300c00000000148c2f00000000000000008
GPR20: 0000000000000040c00000000147ddf80000000000000040c00000000956f4a8
GPR24:c000000002a23c98c000000001417d18c0000000096e20000000000000000001
GPR28: 0000000000000008c00000000962b9e800000000000096e2c0000000096e2000NIP [c00000000082c6c0] .sg_set_buf+0x50/0x350
LR [c00000000082f460] .test_akcipher_one+0x280/0x860Call Trace:[
c00000000962b7e0] [c00000000956f4f3]0xc00000000956f4f3(unreliable) [c00000000962b890] [c00000000082f44c] .test_akcipher_one+0x26c/0x860 [c00000000962bad0] [c00000000082fb14] .alg_test_akcipher+0xd4/0x150 [c00000000962bb70] [c00000000082bcac] .alg_test+0x15c/0x640 [c00000000962bcd0] [c000000000829850] .cryptomgr_test+0x40/0x70 [c00000000962bd50] [c00000000011e880] .kthread+0x1d0/0x1e0 [c00000000962be10] [c00000000000cc60] .ret_from_kernel_thread+0x58/0x60 Instruction dump:fbe1fff86129fffffb61ffd87c2448407c9f2378918100087c7d1b78f821ff517cbc2b78789ea402418100783b600001<0b1b0000>3d2200077bde366439492f20Quoted 8 lines
---[ end trace fdddc57d958f029f ]---The problem affects v5.15.168 and v5.10.227. Reverting the offending patch fixes the problem in both branches.
My test images do not have hugepages or
CONFIG_DEBUG_VIRTUALenabled.Bisect log is attached. I copied the author and Michael for comments.
I don't see that exact oops, but some others, which all track back to the same source.
The offending commit includes:
high_memoryis set inmem_init()usingmax_low_pfn, butmax_low_pfnis available long before, it is set inmem_topology_setup().But that's only been true since commit:
Quoted 8 lines
7b31f7dadd70("powerpc/mm: Always update max/min_low_pfn inmem_topology_setup()")which went into v6.1.
Backporting that commit to v5.15 (and v5.10) fixes the oops for me, and otherwise looks safe to backport.
Greg can you pick that commit (
7b31f7dadd70) up for v5.15 and v5.10 please?
Now picked up, thanks!
greg k-h