]> git.proxmox.com Git - pve-kernel.git/log
pve-kernel.git
2 weeks agocherry-pick improved erratum 1386 workaround bookworm-6.5
Folke Gleumes [Mon, 15 Apr 2024 12:56:50 +0000 (14:56 +0200)]
cherry-pick improved erratum 1386 workaround

The original fix disabled the xsaves feature for zen1/2. The issue has
since been fixed in the cpus microcode and this patch keeps the feature enabled
if the microcode version is recent enough to contain the fix.
The patch had to be altered slightly to apply cleanly on 6.5, but no
changes content-wise.

Signed-off-by: Folke Gleumes <f.gleumes@proxmox.com>
2 weeks agoconfig: disable CONFIG_N_GSM
Fabian Grünbichler [Wed, 17 Apr 2024 08:52:11 +0000 (10:52 +0200)]
config: disable CONFIG_N_GSM

rather exotic driver with frequent security issues over the past months, see
- CVE-2023-6546
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=67c37756898a
- https://lore.kernel.org/all/DB9PR10MB5881D2170678C169FB42A423E0082@DB9PR10MB5881.EURPRD10.PROD.OUTLOOK.COM/

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit da0caf9dc226477a8de2ac40bdd28108c8a3a3b4)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 weeks agofix #5373: cherry-pick USB ethernet naming fix
Fabian Grünbichler [Fri, 12 Apr 2024 13:25:02 +0000 (15:25 +0200)]
fix #5373: cherry-pick USB ethernet naming fix

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit 70198d2b84710d4ee6ee254c1c49d91895fc1ec7)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 weeks agoupdate ABI file for 6.5.13-5-pve
Thomas Lamprecht [Fri, 5 Apr 2024 12:02:41 +0000 (14:02 +0200)]
update ABI file for 6.5.13-5-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 weeks agobump version to 6.5.13-5
Thomas Lamprecht [Fri, 5 Apr 2024 11:04:13 +0000 (13:04 +0200)]
bump version to 6.5.13-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 weeks agorevert 2 changes in thermal driver causing an early kernel Oops.
Stoiko Ivanov [Fri, 5 Apr 2024 09:27:02 +0000 (11:27 +0200)]
revert 2 changes in thermal driver causing an early kernel Oops.

The second patch, that is reverted (first):
`thermal: trip: Drop lockdep assertion from thermal_zone_trip_id()`
only touches code introduced by the first patch.
The first patch causes the following Oops (reproduced on an old
HP DL380 G8):
```
[    2.960519] ACPI: button: Power Button [PWRF]
[    2.963126] BUG: kernel NULL pointer dereference, address: 000000000000000c
[    2.965667] #PF: supervisor read access in kernel mode
[    2.966954] #PF: error_code(0x0000) - not-present page
[    2.966954] PGD 0 P4D 0
[    2.966954] Oops: 0000 [#1] PREEMPT SMP PTI
[    2.966954] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G          I        6.5.13-4-pve #1
[    2.966954] Hardware name: HP ProLiant DL380p Gen8, BIOS P70 05/24/2019
[    2.966954] RIP: 0010:step_wise_throttle+0x48/0x360
[    2.966954] Code: 04 25 28 00 00 00 48 89 45 d0 31 c0 48 63 c6 48 8d 14 40 48 8b 87 50 03 00 00 4c 8d 24 90 e8 cf d0 ff ff c6 45 bf 00 89 45 b4 <41> 8b 04 24 41 39 85 78 03 00 00 0f 8d a9 02 00 00 0f 1f 44 00 00
[    2.966954] RSP: 0000:ffff9e2b8014bae8 EFLAGS: 00010246
[    2.966954] RAX: 0000000000000002 RBX: 0000000000000001 RCX: 0000000000000000
[    2.966954] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[    2.966954] RBP: ffff9e2b8014bb40 R08: 0000000000000000 R09: 0000000000000000
[    2.966954] R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000c
[    2.966954] R13: ffff8c7ac421d000 R14: 0000000000000001 R15: 0000000000000000
[    2.966954] FS:  0000000000000000(0000) GS:ffff8c7def600000(0000) knlGS:0000000000000000
[    2.966954] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    2.966954] CR2: 000000000000000c CR3: 0000000513a34001 CR4: 00000000000606f0
[    2.966954] Call Trace:
[    2.966954]  <TASK>
```

the relevant mainline kernels (6.6.15), corresponding to the
Ubuntu-patchset (which mixes changes from 6.6.15, with ones from
6.1.76) [0] - also boot happily - so I strongly assume that the
changes depend on one of the many commits introduced in linux-upstream
between v6.5.1 and v6.6.1.
As it looks like a refactoring (upon which later changes are based),
and not a bug-fix in itself - simply dropping it seems sensible.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 weeks agorevert cifs backport to 6.1 added between 6.5.13-1 and 6.5.13-2
Stoiko Ivanov [Wed, 3 Apr 2024 11:46:03 +0000 (13:46 +0200)]
revert cifs backport to 6.1 added between 6.5.13-1 and 6.5.13-2

copying files within a cifs-share currently result in the following
trace:
```
[  495.388739] BUG: unable to handle page fault for address: fffffffffffffffe
[  495.388744] #PF: supervisor read access in kernel mode
[  495.388746] #PF: error_code(0x0000) - not-present page
[  495.388747] PGD 172c3f067 P4D 172c3f067 PUD 172c41067 PMD 0
[  495.388752] Oops: 0000 [#2] PREEMPT SMP NOPTI
[  495.388754] CPU: 1 PID: 3894 Comm: cp Tainted: G      D            6.5.0-32-generic #32-Ubuntu                                                                                                                                                                                [  495.388756] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 4.2023.08-4 02/15/2024
[  495.388758] RIP: 0010:cifs_flush_folio+0x41/0xf0 [cifs]
...
```

a quick check identified proxmox-kernel-6.5.13-2 as the first affected
version, and `2dc07a11e269bfbe5589e99b60cdbae0118be979` as likely
source of the issue. The commit adapts the changes from
`7b2404a886f8b91250c31855d287e632123e1746` to work with the code in
kernel 6.1.
This is not needed as the relevant changes were made in 6.4 and
are already part of the 6.5 tree -
`66dabbb65d673aef40dd17bf62c042be8f6d4a4b`

reverting the commit fixes copying files within a samba share.

Tested/reproduced with:
* a VM with the kernel as cifs-client
* one very crude samba-share allowing guest-write access on a Debian
  bookworm host
* as well as a share using cifscreds + multiuser (`mount.cifs(8)`)
* mounting the share, copying any file from one directory to another
  on the same share (with `cp` and Thunar and Nautilus).

Reported to Ubuntu upstream at [1].

[0] https://lore.kernel.org/linux-mm/ZZhrpNJ3zxMR8wcU@eldamar.lan/
[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2055002

Reported-by: Daniela Häsler <daniela@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
4 weeks agoupdate ABI file for 6.5.13-4-pve
Thomas Lamprecht [Fri, 29 Mar 2024 15:18:13 +0000 (16:18 +0100)]
update ABI file for 6.5.13-4-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 weeks agobump version to 6.5.13-4
Thomas Lamprecht [Fri, 29 Mar 2024 14:29:14 +0000 (15:29 +0100)]
bump version to 6.5.13-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 weeks agorebase patches on top of Ubuntu-6.5.0-32.32
Thomas Lamprecht [Fri, 29 Mar 2024 14:27:40 +0000 (15:27 +0100)]
rebase patches on top of Ubuntu-6.5.0-32.32

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 weeks agoupdate sources to Ubuntu-6.5.0-32.32
Thomas Lamprecht [Fri, 29 Mar 2024 14:27:40 +0000 (15:27 +0100)]
update sources to Ubuntu-6.5.0-32.32

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agobump version to 6.5.13-3
Thomas Lamprecht [Wed, 20 Mar 2024 10:45:14 +0000 (11:45 +0100)]
bump version to 6.5.13-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 weeks agoupdate sources to Ubuntu-6.5.0-27.28
Thomas Lamprecht [Wed, 20 Mar 2024 10:43:47 +0000 (11:43 +0100)]
update sources to Ubuntu-6.5.0-27.28

to fix some tracing bug

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agoupdate ABI file for 6.5.13-2-pve
Thomas Lamprecht [Mon, 11 Mar 2024 14:21:12 +0000 (15:21 +0100)]
update ABI file for 6.5.13-2-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agobump version to 6.5.13-2
Thomas Lamprecht [Mon, 11 Mar 2024 13:36:33 +0000 (14:36 +0100)]
bump version to 6.5.13-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agoRevert "cherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts"
Thomas Lamprecht [Mon, 11 Mar 2024 13:19:45 +0000 (14:19 +0100)]
Revert "cherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts"

This reverts commit 29cb6fcbb78e0d2b0b585783031402cc8d4ca148, user
feedback was showing any positive impact of this patch, and upstream
still hasn't a fix for older stable releases (but for 6.8), so for now
rather revert this and wait for either a better (well, actual) fix or
updating to 6.8 or newer.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agoupdate ZFS to 2.2.3
Thomas Lamprecht [Mon, 11 Mar 2024 12:48:35 +0000 (13:48 +0100)]
update ZFS to 2.2.3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agorebase patches on top of Ubuntu-6.5.0-27.27
Thomas Lamprecht [Mon, 11 Mar 2024 12:38:05 +0000 (13:38 +0100)]
rebase patches on top of Ubuntu-6.5.0-27.27

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 weeks agoupdate sources to Ubuntu-6.5.0-27.27
Thomas Lamprecht [Mon, 11 Mar 2024 12:38:05 +0000 (13:38 +0100)]
update sources to Ubuntu-6.5.0-27.27

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoupdate ABI file for 6.5.13-1-pve
Thomas Lamprecht [Wed, 14 Feb 2024 11:02:47 +0000 (12:02 +0100)]
update ABI file for 6.5.13-1-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agoupdate fwlist for 6.5.13-1
Thomas Lamprecht [Mon, 5 Feb 2024 14:49:36 +0000 (15:49 +0100)]
update fwlist for 6.5.13-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agobump version to 6.5.13-1
Thomas Lamprecht [Mon, 5 Feb 2024 13:51:04 +0000 (14:51 +0100)]
bump version to 6.5.13-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 months agocherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts
Friedrich Weber [Wed, 17 Jan 2024 14:45:21 +0000 (15:45 +0100)]
cherry-pick scheduler fix to avoid temporary VM freezes on NUMA hosts

Users have been reporting [1] that VMs occasionally become
unresponsive with high CPU usage for some time (varying between ~1 and
more than 60 seconds). After that time, the guests come back and
continue running. Windows VMs seem most affected (not responding to
pings during the hang, RDP sessions time out), but we also got reports
about Linux VMs (reporting soft lockups). The issue was not present on
host kernel 5.15 and was first reported with kernel 6.2. Users
reported that the issue becomes easier to trigger the more memory is
assigned to the guests. Setting mitigations=off was reported to
alleviate (but not eliminate) the issue. For most users the issue
seems to disappear after (also) disabling KSM [2], but some users
reported freezes even with KSM disabled [3].

It turned out the reports concerned NUMA hosts only, and that the
freezes correlated with runs of the NUMA balancer [4]. Users reported
that disabling the NUMA balancer resolves the issue (even with KSM
enabled).

We put together a Linux VM reproducer, ran a git-bisect on the kernel
to find the commit introducing the issue and asked upstream for help
[5]. As it turned out, an upstream bugreport was recently opened [6]
and a preliminary fix to the KVM TDP MMU was proposed [7]. With that
patch [7] on top of kernel 6.7, the reproducer does not trigger
freezes anymore. As of now, the patch (or its v2 [8]) is not yet
merged in the mainline kernel, and backporting it may be difficult due
to dependencies on other KVM changes [9].

However, the bugreport [6] also prompted an upstream developer to
propose a patch to the kernel scheduler logic that decides whether a
contended spinlock/rwlock should be dropped [10]. Without the patch,
PREEMPT_DYNAMIC kernels (such as ours) would always drop contended
locks. With the patch, the kernel only drops contended locks if the
kernel is currently set to preempt=full. As noted in the commit
message [10], this can (counter-intuitively) improve KVM performance.
Our kernel defaults to preempt=voluntary (according to
/sys/kernel/debug/sched/preempt), so with the patch it does not drop
contended locks anymore, and the reproducer does not trigger freezes
anymore. Hence, backport [10] to our kernel.

[1] https://forum.proxmox.com/threads/130727/
[2] https://forum.proxmox.com/threads/130727/page-4#post-575886
[3] https://forum.proxmox.com/threads/130727/page-8#post-617587
[4] https://www.kernel.org/doc/html/latest/admin-guide/sysctl/kernel.html#numa-balancing
[5] https://lore.kernel.org/kvm/832697b9-3652-422d-a019-8c0574a188ac@proxmox.com/
[6] https://bugzilla.kernel.org/show_bug.cgi?id=218259
[7] https://lore.kernel.org/all/20230825020733.2849862-1-seanjc@google.com/
[8] https://lore.kernel.org/all/20240110012045.505046-1-seanjc@google.com/
[9] https://lore.kernel.org/kvm/Zaa654hwFKba_7pf@google.com/
[10] https://lore.kernel.org/all/20240110214723.695930-1-seanjc@google.com/

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
2 months agoupdate kernel and patches for Ubuntu-6.5.0-20.20
Thomas Lamprecht [Mon, 5 Feb 2024 12:08:43 +0000 (13:08 +0100)]
update kernel and patches for Ubuntu-6.5.0-20.20

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 months agofix malformed lintian overrides
Fabian Grünbichler [Tue, 30 Jan 2024 13:59:51 +0000 (14:59 +0100)]
fix malformed lintian overrides

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agoupdate ABI file for 6.5.11-8-pve
Fabian Grünbichler [Tue, 30 Jan 2024 13:38:48 +0000 (14:38 +0100)]
update ABI file for 6.5.11-8-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agobump version to 6.5.11-8
Fabian Grünbichler [Tue, 30 Jan 2024 12:28:01 +0000 (13:28 +0100)]
bump version to 6.5.11-8

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agofix #5158: cherry-pick ext4 fix for high-CPU flush
Fabian Grünbichler [Tue, 30 Jan 2024 12:26:35 +0000 (13:26 +0100)]
fix #5158: cherry-pick ext4 fix for high-CPU flush

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agofix #5077: cherry-pick revert for aacraid resets
Fabian Grünbichler [Tue, 30 Jan 2024 12:24:16 +0000 (13:24 +0100)]
fix #5077: cherry-pick revert for aacraid resets

reported both in our bug tracker and upstream to fix the affected hardware.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
4 months agobump version to 6.5.11-7
Thomas Lamprecht [Tue, 5 Dec 2023 09:44:17 +0000 (10:44 +0100)]
bump version to 6.5.11-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 months agoupdate ZFS to 2.2.2
Thomas Lamprecht [Tue, 5 Dec 2023 09:42:09 +0000 (10:42 +0100)]
update ZFS to 2.2.2

There shouldn't be any changes for us w.r.t. data integrity and the
recent uncovered dnode dirtiness, as we backported those patches
already.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ABI file for 6.5.11-6-pve
Fabian Grünbichler [Wed, 29 Nov 2023 09:28:15 +0000 (10:28 +0100)]
update ABI file for 6.5.11-6-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobump version to 6.5.11-6
Fabian Grünbichler [Wed, 29 Nov 2023 08:33:09 +0000 (09:33 +0100)]
bump version to 6.5.11-6

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoupdate zfs to 2.2.0-pve4
Fabian Grünbichler [Wed, 29 Nov 2023 08:31:50 +0000 (09:31 +0100)]
update zfs to 2.2.0-pve4

which contains the fix for https://github.com/openzfs/zfs/issues/15526

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoupdate ABI file for 6.5.11-5-pve
Fabian Grünbichler [Mon, 27 Nov 2023 20:37:46 +0000 (21:37 +0100)]
update ABI file for 6.5.11-5-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobump version to 6.5.11-5
Fabian Grünbichler [Mon, 27 Nov 2023 19:54:07 +0000 (20:54 +0100)]
bump version to 6.5.11-5

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agocherry-pick fix for RCU stall issue after VM live migration
Fiona Ebner [Mon, 27 Nov 2023 17:39:48 +0000 (18:39 +0100)]
cherry-pick fix for RCU stall issue after VM live migration

caused by a lapic timer interrupt getting lost.

Already queued for 6.5.13:
https://lore.kernel.org/stable/20231124172031.920738810@linuxfoundation.org/

Reported in the community forum:
https://forum.proxmox.com/threads/136992/

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
5 months agod/rules: VFIO_VIRQFD config is a boolean
Thomas Lamprecht [Sat, 25 Nov 2023 13:12:39 +0000 (14:12 +0100)]
d/rules: VFIO_VIRQFD config is a boolean

since e2d55709398e ("vfio: Fold vfio_virqfd.ko into vfio.ko") this
config isn't a tristate anymore but a bool, so adapt to that.

Luckily the kconfig script did the right thing and set (or at least
kept) this to yes anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ABI file for 6.5.11-4-pve
Fabian Grünbichler [Mon, 20 Nov 2023 14:01:02 +0000 (15:01 +0100)]
update ABI file for 6.5.11-4-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobuild: add signed-template to DEBS
Fabian Grünbichler [Mon, 20 Nov 2023 14:00:38 +0000 (15:00 +0100)]
build: add signed-template to DEBS

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobump version to 6.5.11-4
Fabian Grünbichler [Mon, 20 Nov 2023 10:20:12 +0000 (11:20 +0100)]
bump version to 6.5.11-4

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agometa package: prefer signed kernel package
Fabian Grünbichler [Mon, 20 Nov 2023 11:59:13 +0000 (12:59 +0100)]
meta package: prefer signed kernel package

to ensure future versions are properly pulled in.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agod/control: add missing python3-dev
Fabian Grünbichler [Mon, 20 Nov 2023 10:38:07 +0000 (11:38 +0100)]
d/control: add missing python3-dev

required by perf's Makefile

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agobuild: add proxmox-kernel-X.Y-pve-signed-template
Fabian Grünbichler [Thu, 16 Mar 2023 09:40:02 +0000 (10:40 +0100)]
build: add proxmox-kernel-X.Y-pve-signed-template

the signed template together with the binary package(s) containing the unsigned
files form the input to our secure boot signing service.

the signed template consists of
- files.json (specifying which files are signed how and by which key)
- packaging template used to build the signed package(s)

the signing service
- extracts and checks the signed-template binary package
- extracts the unsigned package(s)
- signs the needed files
- packs up the signatures + the template contained in the signed-template
  package into the signed source package

the signed source package can then be built in the regular fashion (in case of
the kernel packages, it will copy the kernel image, modules and some helper
files from the unsigned package, attach the signature created by the signing
service, and re-pack the result as signed-kernel package).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoadd Proxmox UEFI certificates
Fabian Grünbichler [Thu, 2 Mar 2023 08:34:36 +0000 (09:34 +0100)]
add Proxmox UEFI certificates

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 months agoupdate ABI file for 6.5.11-3-pve
Thomas Lamprecht [Fri, 17 Nov 2023 17:09:41 +0000 (18:09 +0100)]
update ABI file for 6.5.11-3-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobump version to 6.5.11-3
Thomas Lamprecht [Fri, 17 Nov 2023 16:34:46 +0000 (17:34 +0100)]
bump version to 6.5.11-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ZFS to include important fixes staged for 2.2.1
Thomas Lamprecht [Fri, 17 Nov 2023 16:33:36 +0000 (17:33 +0100)]
update ZFS to include important fixes staged for 2.2.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ABI file for 6.5.11-2-pve
Thomas Lamprecht [Thu, 16 Nov 2023 14:05:41 +0000 (15:05 +0100)]
update ABI file for 6.5.11-2-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobump version to 6.5.11-2
Thomas Lamprecht [Wed, 15 Nov 2023 16:22:24 +0000 (17:22 +0100)]
bump version to 6.5.11-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate submodule to Ubuntu-6.5.0-14.14
Thomas Lamprecht [Thu, 16 Nov 2023 12:26:52 +0000 (13:26 +0100)]
update submodule to Ubuntu-6.5.0-14.14

still with 6.5.3 to 6.5.10 cherry-picked

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agod/rules: temporarily disable UBSAN bound checks again
Thomas Lamprecht [Thu, 16 Nov 2023 12:25:01 +0000 (13:25 +0100)]
d/rules: temporarily disable UBSAN bound checks again

it's really not just ZFS and AMDGPU modules, but way more and
generating scary looking messages for these "issues" is just noise
that drown real issues. Disable this for now, maybe in another few
years.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobackport UBSAN fixes for amdgpu
Fiona Ebner [Tue, 14 Nov 2023 12:14:43 +0000 (13:14 +0100)]
backport UBSAN fixes for amdgpu

to silence array-index-out-of-bounds warnings for dynamically-sized
arrays. All commits applied cleanly and just replace array[1] with
array[].

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
5 months agoupdate ABI file for 6.5.11-1-pve
Thomas Lamprecht [Sun, 12 Nov 2023 17:02:30 +0000 (18:02 +0100)]
update ABI file for 6.5.11-1-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agobump version to 6.5.11-1
Thomas Lamprecht [Sun, 12 Nov 2023 15:37:04 +0000 (16:37 +0100)]
bump version to 6.5.11-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agocherry-pick 6.5.11 stable release
Thomas Lamprecht [Sun, 12 Nov 2023 15:38:11 +0000 (16:38 +0100)]
cherry-pick 6.5.11 stable release

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agod/rules: use olddefconfig to generate our config
Thomas Lamprecht [Sun, 12 Nov 2023 15:36:18 +0000 (16:36 +0100)]
d/rules: use olddefconfig to generate our config

makes it easier to cherry-pick newer stable release tags, that
sometimes contain new config values one must pick from.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agod/rules: disable CONFIG_WQ_CPU_INTENSIVE_REPORT for now
Thomas Lamprecht [Sun, 12 Nov 2023 15:33:18 +0000 (16:33 +0100)]
d/rules: disable CONFIG_WQ_CPU_INTENSIVE_REPORT for now

it's mostly noise for users, and quiet some interpret this as real
problem and report it to us.

Ideally we'd either educate them, or take time ourself, to report this
upstream and see if the situation can be improved overall, but
currently that's not feasible. We should check this out a few releases
down, if the lower hanging fruits got fixed and noise got lower we
could enable it again to catch the more rare cases.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoupdate ZFS to get better work-around for UBSAN bounds-checking
Thomas Lamprecht [Sun, 12 Nov 2023 15:19:15 +0000 (16:19 +0100)]
update ZFS to get better work-around for UBSAN bounds-checking

We have a slightly better fix where only a few targeted ZFS module
parts are added to the UBSAN ignore-list, so the rest of the kernel
still gets exposure.

Link: https://github.com/openzfs/zfs/pull/15510
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agoRevert "UBUNTU: SAUCE: ceph: make sure all the files successfully put before unmounting"
Thomas Lamprecht [Tue, 7 Nov 2023 08:36:59 +0000 (09:36 +0100)]
Revert "UBUNTU: SAUCE: ceph: make sure all the files successfully put before unmounting"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agorevert "memfd: improve userspace warnings for missing exec-related flags"
Thomas Lamprecht [Mon, 6 Nov 2023 09:21:01 +0000 (10:21 +0100)]
revert "memfd: improve userspace warnings for missing exec-related flags"

This is generating far too much noise in the logs, so keep it at once
per boot until we (and other user space tools) adapted to the kernel
wanting user space to chose memfd execution behavior very explicitly.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ABI file for 6.5.3-1-pve
Thomas Lamprecht [Sat, 28 Oct 2023 12:29:54 +0000 (14:29 +0200)]
update ABI file for 6.5.3-1-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.5.3-1
Thomas Lamprecht [Wed, 25 Oct 2023 08:03:53 +0000 (10:03 +0200)]
bump version to 6.5.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate to current ubuntu-mantic/master-next
Thomas Lamprecht [Wed, 25 Oct 2023 06:25:43 +0000 (08:25 +0200)]
update to current ubuntu-mantic/master-next

to get some relevant fixes for our use cases, like hangs on reboots on
some x86_64 machines.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/rules: temporarily disable UBSAN bound checks
Thomas Lamprecht [Wed, 25 Oct 2023 06:22:18 +0000 (08:22 +0200)]
d/rules: temporarily disable UBSAN bound checks

until ZFS can cope with them:
https://github.com/openzfs/zfs/issues/15145

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.5.3-1~1
Thomas Lamprecht [Fri, 13 Oct 2023 13:28:19 +0000 (15:28 +0200)]
bump version to 6.5.3-1~1

for initial testing and internal QA

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/rules: adapt to merge of ZFS kernel modules
Thomas Lamprecht [Sun, 15 Oct 2023 14:05:10 +0000 (16:05 +0200)]
d/rules: adapt to merge of ZFS kernel modules

Following ZFS commit ad9e76765 ("linux: module: weld all but spl.ko
into zfs.ko") we only have two modules to care about.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ZFS module to 2.2.0
Thomas Lamprecht [Sun, 15 Oct 2023 13:16:41 +0000 (15:16 +0200)]
update ZFS module to 2.2.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate fwlist for 6.5.3-1
Thomas Lamprecht [Fri, 13 Oct 2023 14:15:54 +0000 (16:15 +0200)]
update fwlist for 6.5.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate sources to Ubuntu-6.5.0-10.10
Thomas Lamprecht [Sun, 15 Oct 2023 09:35:46 +0000 (11:35 +0200)]
update sources to Ubuntu-6.5.0-10.10

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/rules: perf: build without libtraceevent
Thomas Lamprecht [Fri, 13 Oct 2023 14:02:57 +0000 (16:02 +0200)]
d/rules: perf: build without libtraceevent

following suite on 64d8243904f1 ("UBUNTU: [Packaging] perf: build
without libtraceevent")

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate submodule to Ubuntu-6.5.0-9.9
Thomas Lamprecht [Fri, 13 Oct 2023 13:27:50 +0000 (15:27 +0200)]
update submodule to Ubuntu-6.5.0-9.9

from ubuntu mantic sources

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.2.16-19
Thomas Lamprecht [Tue, 24 Oct 2023 12:08:10 +0000 (14:08 +0200)]
bump version to 6.2.16-19

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobackport constraining guest-supported xfeatures only at KVM_GET_XSAVE{2}
Thomas Lamprecht [Sat, 21 Oct 2023 13:16:25 +0000 (15:16 +0200)]
backport constraining guest-supported xfeatures only at KVM_GET_XSAVE{2}

This improves compatibility for guests w.r.t. live-migration, or live
snapshot rollback, to hosts with less (FPU) xfeatures supported, as
long as the set of features that was actually exposed to the guest is
still supported.

This improves on the ad856280ddea ("x86/kvm/fpu: Limit guest
user_xfeatures to supported bits of XCR0") bug fix.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agonormalize patches
Thomas Lamprecht [Sat, 21 Oct 2023 13:15:35 +0000 (15:15 +0200)]
normalize patches

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobackport exposing FLUSHBYASID when running nested VMs on AMD CPUs
Stefan Sterz [Thu, 19 Oct 2023 14:59:12 +0000 (16:59 +0200)]
backport exposing FLUSHBYASID when running nested VMs on AMD CPUs

this exposes the FLUSHBYASID CPU flag to nested VMs when running on an
AMD CPU. also reverts a made up check that would advertise
FLUSHBYASID as not supported. this enable certain modern hypervisors
such as VMWare ESXi 7 and Workstation 17 to run nested VMs properly
again.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
6 months agod/changelog: fix typo
Thomas Lamprecht [Wed, 11 Oct 2023 16:11:41 +0000 (18:11 +0200)]
d/changelog: fix typo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ABI file for 6.2.16-18-pve
Thomas Lamprecht [Wed, 11 Oct 2023 15:28:39 +0000 (17:28 +0200)]
update ABI file for 6.2.16-18-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.2.16-18
Thomas Lamprecht [Wed, 11 Oct 2023 15:05:31 +0000 (17:05 +0200)]
bump version to 6.2.16-18

merge both versions, I saw the fix for AMD slightly to late and
previous build wasn't made public already anyway

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobackport fix for AMD erratum #1485 on Zen4-based CPUs
Thomas Lamprecht [Wed, 11 Oct 2023 15:03:45 +0000 (17:03 +0200)]
backport fix for AMD erratum #1485 on Zen4-based CPUs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ABI file for 6.2.16-17-pve
Thomas Lamprecht [Wed, 11 Oct 2023 14:57:16 +0000 (16:57 +0200)]
update ABI file for 6.2.16-17-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.2.16-17
Thomas Lamprecht [Wed, 11 Oct 2023 14:14:49 +0000 (16:14 +0200)]
bump version to 6.2.16-17

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ZFS for backport of Intel AMX errata fix
Thomas Lamprecht [Tue, 10 Oct 2023 12:56:04 +0000 (14:56 +0200)]
update ZFS for backport of Intel AMX errata fix

From the upstream commit [0] that this update pulls in:

> Intel SPR erratum SPR4 says that if you trip into a vmexit while
> doing FPU save/restore, your AMX register state might misbehave...
> and by misbehave, I mean save all zeroes incorrectly, leading to
> explosions if you restore it.
>
> Since we're not using AMX for anything, the simple way to avoid
> this is to just not save/restore those when we do anything, since
> we're killing preemption of any sort across our save/restores.
>
> If we ever decide to use AMX, it's not clear that we have any
> way to mitigate this, on Linux...but I am not an expert.

[0]: https://github.com/openzfs/zfs/commit/c65aaa83876f9764f9017db278cefa453e1a3f5b

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate ABI file for 6.2.16-16-pve
Thomas Lamprecht [Tue, 3 Oct 2023 15:04:07 +0000 (17:04 +0200)]
update ABI file for 6.2.16-16-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate fwlist
Thomas Lamprecht [Tue, 3 Oct 2023 15:03:31 +0000 (17:03 +0200)]
update fwlist

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 6.2.16-16
Thomas Lamprecht [Tue, 3 Oct 2023 05:42:38 +0000 (07:42 +0200)]
bump version to 6.2.16-16

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agorebase patches on top of Ubuntu-6.2.0-36.36
Thomas Lamprecht [Tue, 3 Oct 2023 05:05:13 +0000 (07:05 +0200)]
rebase patches on top of Ubuntu-6.2.0-36.36

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoupdate sources to Ubuntu-6.2.0-36.36
Thomas Lamprecht [Tue, 3 Oct 2023 05:05:13 +0000 (07:05 +0200)]
update sources to Ubuntu-6.2.0-36.36

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ABI file for 6.2.16-15-pve
Thomas Lamprecht [Thu, 28 Sep 2023 14:25:16 +0000 (16:25 +0200)]
update ABI file for 6.2.16-15-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-15
Thomas Lamprecht [Thu, 28 Sep 2023 13:56:28 +0000 (15:56 +0200)]
bump version to 6.2.16-15

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ZFS to 2.1.13
Thomas Lamprecht [Thu, 28 Sep 2023 13:40:52 +0000 (15:40 +0200)]
update ZFS to 2.1.13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agocherry-pick fix for new amd64 ucode
Stoiko Ivanov [Mon, 25 Sep 2023 17:23:35 +0000 (19:23 +0200)]
cherry-pick fix for new amd64 ucode

The latest amd64-microcode package in sid [0] (which probably will
eventually make it to bookworm-security) has a change that requires
the added patch to work properly.

The changelog-entry refers to stable k.o branches only - but a quick
look through the linux-firmware.git log identifies:
`f2eb058afc57348cde66852272d6bf11da1eef8f` as relevant commit, which
refers (as NOTE in the patch) to:
a32b0f0db3f3 ("x86/microcode/AMD: Load late on both threads too")
which applies cleanly (although I cherry-picked the patch from the
6.1.y stable branch to have the original commit in the commit
message).

quickly tested compiling and booting the result in a VM (however w/o
a fitting CPU (Epyc Genoa or Bergamo) it should cause a change)

reported in our Enterprise Support as potential culprit for one
thread from 128 being reported as offline in `lscpu`

[0] https://metadata.ftp-master.debian.org/changelogs//non-free-firmware/a/amd64-microcode/amd64-microcode_3.20230808.1.1_changelog

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
7 months agofix thunderbolt ring-interrupt not being masked on suspend
Thomas Lamprecht [Wed, 20 Sep 2023 04:33:03 +0000 (06:33 +0200)]
fix thunderbolt ring-interrupt not being masked on suspend

Originally for v6.4-rc7 and now it also got already into some stable
trees, but not yet into a (released) ubuntu tag – so backport it
already.

Link: https://forum.proxmox.com/threads/133104/post-590457
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-14
Thomas Lamprecht [Tue, 19 Sep 2023 08:17:23 +0000 (10:17 +0200)]
bump version to 6.2.16-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-14
Thomas Lamprecht [Tue, 19 Sep 2023 08:17:23 +0000 (10:17 +0200)]
bump version to 6.2.16-14

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoadd basic build instructions to README and build-dir-fresh target
Thomas Lamprecht [Tue, 19 Sep 2023 08:15:46 +0000 (10:15 +0200)]
add basic build instructions to README and build-dir-fresh target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agocherry-pick fix for setting X86_FEATURE_OSXSAVE feature
Thomas Lamprecht [Tue, 19 Sep 2023 07:27:09 +0000 (09:27 +0200)]
cherry-pick fix for setting X86_FEATURE_OSXSAVE feature

Avoids regressions where some code falsely think they cannot use some
CPU features like AVX1, e.g., ZFS.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agoupdate ABI file for 6.2.16-13-pve
Thomas Lamprecht [Mon, 18 Sep 2023 14:36:21 +0000 (16:36 +0200)]
update ABI file for 6.2.16-13-pve

(generated with debian/scripts/abi-generate)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 6.2.16-13
Thomas Lamprecht [Mon, 18 Sep 2023 13:32:01 +0000 (15:32 +0200)]
bump version to 6.2.16-13

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agorebase patches on top of Ubuntu-6.2.0-34.34
Thomas Lamprecht [Mon, 18 Sep 2023 13:19:28 +0000 (15:19 +0200)]
rebase patches on top of Ubuntu-6.2.0-34.34

(generated with debian/scripts/import-upstream-tag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>