Skip to content

Commit 3a62204

Browse files
committed
Merge tag 's390-6.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Heiko Carstens: - Add $(DISABLE_KSTACK_ERASE) to vdso compile flags to fix compile errors with old gcc versions - Fix path to s390 chacha implementation in vdso selftests, after vdso64 has been renamed to vdso - Fix off-by-one bug in APQN limit calculation - Discard .modinfo section from decompressor image to fix SecureBoot * tag 's390-6.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/boot/vmlinux.lds.S: Ensure bzImage ends with SecureBoot trailer s390/ap: Fix wrong APQN fill calculation selftests: vDSO: getrandom: Fix path to s390 chacha implementation s390/vdso: Disable kstack erase
2 parents e85d3e9 + ddc6cbe commit 3a62204

5 files changed

Lines changed: 13 additions & 12 deletions

File tree

arch/s390/boot/vmlinux.lds.S

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ SECTIONS
137137
}
138138
_end = .;
139139

140+
/* Sections to be discarded */
141+
/DISCARD/ : {
142+
COMMON_DISCARDS
143+
*(.eh_frame)
144+
*(*__ksymtab*)
145+
*(___kcrctab*)
146+
*(.modinfo)
147+
}
148+
140149
DWARF_DEBUG
141150
ELF_DETAILS
142151

@@ -161,12 +170,4 @@ SECTIONS
161170
*(.rela.*) *(.rela_*)
162171
}
163172
ASSERT(SIZEOF(.rela.dyn) == 0, "Unexpected run-time relocations (.rela) detected!")
164-
165-
/* Sections to be discarded */
166-
/DISCARD/ : {
167-
COMMON_DISCARDS
168-
*(.eh_frame)
169-
*(*__ksymtab*)
170-
*(___kcrctab*)
171-
}
172173
}

arch/s390/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ KBUILD_CFLAGS_VDSO := $(filter-out -mno-pic-data-is-text-relative,$(KBUILD_CFLAG
2828
KBUILD_CFLAGS_VDSO := $(filter-out -munaligned-symbols,$(KBUILD_CFLAGS_VDSO))
2929
KBUILD_CFLAGS_VDSO := $(filter-out -fno-asynchronous-unwind-tables,$(KBUILD_CFLAGS_VDSO))
3030
KBUILD_CFLAGS_VDSO += -fPIC -fno-common -fno-builtin -fasynchronous-unwind-tables
31-
KBUILD_CFLAGS_VDSO += -fno-stack-protector
31+
KBUILD_CFLAGS_VDSO += -fno-stack-protector $(DISABLE_KSTACK_ERASE)
3232
ldflags-y := -shared -soname=linux-vdso.so.1 \
3333
--hash-style=both --build-id=sha1 -T
3434

drivers/s390/crypto/ap_card.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static ssize_t depth_show(struct device *dev, struct device_attribute *attr,
4343
{
4444
struct ap_card *ac = to_ap_card(dev);
4545

46-
return sysfs_emit(buf, "%d\n", ac->hwinfo.qd);
46+
return sysfs_emit(buf, "%d\n", ac->hwinfo.qd + 1);
4747
}
4848

4949
static DEVICE_ATTR_RO(depth);

drivers/s390/crypto/ap_queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static enum ap_sm_wait ap_sm_write(struct ap_queue *aq)
285285
list_move_tail(&ap_msg->list, &aq->pendingq);
286286
aq->requestq_count--;
287287
aq->pendingq_count++;
288-
if (aq->queue_count < aq->card->hwinfo.qd) {
288+
if (aq->queue_count < aq->card->hwinfo.qd + 1) {
289289
aq->sm_state = AP_SM_STATE_WORKING;
290290
return AP_SM_WAIT_AGAIN;
291291
}

tools/testing/selftests/vDSO/vgetrandom-chacha.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#elif defined(__riscv) && __riscv_xlen == 64
1515
#include "../../../../arch/riscv/kernel/vdso/vgetrandom-chacha.S"
1616
#elif defined(__s390x__)
17-
#include "../../../../arch/s390/kernel/vdso64/vgetrandom-chacha.S"
17+
#include "../../../../arch/s390/kernel/vdso/vgetrandom-chacha.S"
1818
#elif defined(__x86_64__)
1919
#include "../../../../arch/x86/entry/vdso/vgetrandom-chacha.S"
2020
#endif

0 commit comments

Comments
 (0)