Skip to content

Commit 93ff9f1

Browse files
committed
Merge tag 's390-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Vasily Gorbik: - Fix potential out-of-range access during secure boot facility detection. - Fully validate the VMA before calling follow_pte() in pci code. - Remove arch specific WARN_DYNAMIC_STACK config option. - Fix zcrypto kernel doc comments. - Update defconfigs. * tag 's390-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390: remove WARN_DYNAMIC_STACK s390/ap: fix kernel doc comments s390: update defconfigs s390/sclp: fix Secure-IPL facility detection s390/pci_mmio: fully validate the VMA before calling follow_pte()
2 parents d1a8869 + f5711f9 commit 93ff9f1

File tree

8 files changed

+17
-27
lines changed

8 files changed

+17
-27
lines changed

arch/s390/Kconfig

-10
Original file line numberDiff line numberDiff line change
@@ -685,16 +685,6 @@ config STACK_GUARD
685685
The minimum size for the stack guard should be 256 for 31 bit and
686686
512 for 64 bit.
687687

688-
config WARN_DYNAMIC_STACK
689-
def_bool n
690-
prompt "Emit compiler warnings for function with dynamic stack usage"
691-
help
692-
This option enables the compiler option -mwarn-dynamicstack. If the
693-
compiler supports this options generates warnings for functions
694-
that dynamically allocate stack space using alloca.
695-
696-
Say N if you are unsure.
697-
698688
endmenu
699689

700690
menu "I/O subsystem"

arch/s390/Makefile

-7
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ cflags-$(CONFIG_CHECK_STACK) += -mstack-guard=$(CONFIG_STACK_GUARD)
8585
endif
8686
endif
8787

88-
ifdef CONFIG_WARN_DYNAMIC_STACK
89-
ifneq ($(call cc-option,-mwarn-dynamicstack),)
90-
KBUILD_CFLAGS += -mwarn-dynamicstack
91-
KBUILD_CFLAGS_DECOMPRESSOR += -mwarn-dynamicstack
92-
endif
93-
endif
94-
9588
ifdef CONFIG_EXPOLINE
9689
ifneq ($(call cc-option,$(CC_FLAGS_MARCH) -mindirect-branch=thunk),)
9790
CC_FLAGS_EXPOLINE := -mindirect-branch=thunk

arch/s390/configs/debug_defconfig

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CONFIG_BPF_JIT=y
1010
CONFIG_BPF_JIT_ALWAYS_ON=y
1111
CONFIG_BPF_LSM=y
1212
CONFIG_PREEMPT=y
13+
CONFIG_SCHED_CORE=y
1314
CONFIG_BSD_PROCESS_ACCT=y
1415
CONFIG_BSD_PROCESS_ACCT_V3=y
1516
CONFIG_TASKSTATS=y
@@ -503,6 +504,7 @@ CONFIG_NLMON=m
503504
# CONFIG_NET_VENDOR_HUAWEI is not set
504505
# CONFIG_NET_VENDOR_INTEL is not set
505506
# CONFIG_NET_VENDOR_MICROSOFT is not set
507+
# CONFIG_NET_VENDOR_LITEX is not set
506508
# CONFIG_NET_VENDOR_MARVELL is not set
507509
CONFIG_MLX4_EN=m
508510
CONFIG_MLX5_CORE=m
@@ -661,7 +663,6 @@ CONFIG_NFSD_V3_ACL=y
661663
CONFIG_NFSD_V4=y
662664
CONFIG_NFSD_V4_SECURITY_LABEL=y
663665
CONFIG_CIFS=m
664-
CONFIG_CIFS_WEAK_PW_HASH=y
665666
CONFIG_CIFS_UPCALL=y
666667
CONFIG_CIFS_XATTR=y
667668
CONFIG_CIFS_POSIX=y
@@ -720,6 +721,8 @@ CONFIG_CRYPTO_XCBC=m
720721
CONFIG_CRYPTO_VMAC=m
721722
CONFIG_CRYPTO_CRC32=m
722723
CONFIG_CRYPTO_BLAKE2S=m
724+
CONFIG_CRYPTO_MD4=m
725+
CONFIG_CRYPTO_MD5=y
723726
CONFIG_CRYPTO_MICHAEL_MIC=m
724727
CONFIG_CRYPTO_RMD160=m
725728
CONFIG_CRYPTO_SHA3=m
@@ -774,7 +777,6 @@ CONFIG_RANDOM32_SELFTEST=y
774777
CONFIG_DMA_CMA=y
775778
CONFIG_CMA_SIZE_MBYTES=0
776779
CONFIG_DMA_API_DEBUG=y
777-
CONFIG_STRING_SELFTEST=y
778780
CONFIG_PRINTK_TIME=y
779781
CONFIG_DYNAMIC_DEBUG=y
780782
CONFIG_DEBUG_INFO=y
@@ -853,12 +855,12 @@ CONFIG_FAIL_FUNCTION=y
853855
CONFIG_FAULT_INJECTION_STACKTRACE_FILTER=y
854856
CONFIG_LKDTM=m
855857
CONFIG_TEST_MIN_HEAP=y
856-
CONFIG_TEST_SORT=y
857858
CONFIG_KPROBES_SANITY_TEST=y
858859
CONFIG_RBTREE_TEST=y
859860
CONFIG_INTERVAL_TREE_TEST=m
860861
CONFIG_PERCPU_TEST=m
861862
CONFIG_ATOMIC64_SELFTEST=y
863+
CONFIG_STRING_SELFTEST=y
862864
CONFIG_TEST_BITOPS=m
863865
CONFIG_TEST_BPF=m
864866
CONFIG_TEST_LIVEPATCH=m

arch/s390/configs/defconfig

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CONFIG_BPF_SYSCALL=y
88
CONFIG_BPF_JIT=y
99
CONFIG_BPF_JIT_ALWAYS_ON=y
1010
CONFIG_BPF_LSM=y
11+
CONFIG_SCHED_CORE=y
1112
CONFIG_BSD_PROCESS_ACCT=y
1213
CONFIG_BSD_PROCESS_ACCT_V3=y
1314
CONFIG_TASKSTATS=y
@@ -494,6 +495,7 @@ CONFIG_NLMON=m
494495
# CONFIG_NET_VENDOR_HUAWEI is not set
495496
# CONFIG_NET_VENDOR_INTEL is not set
496497
# CONFIG_NET_VENDOR_MICROSOFT is not set
498+
# CONFIG_NET_VENDOR_LITEX is not set
497499
# CONFIG_NET_VENDOR_MARVELL is not set
498500
CONFIG_MLX4_EN=m
499501
CONFIG_MLX5_CORE=m
@@ -648,7 +650,6 @@ CONFIG_NFSD_V3_ACL=y
648650
CONFIG_NFSD_V4=y
649651
CONFIG_NFSD_V4_SECURITY_LABEL=y
650652
CONFIG_CIFS=m
651-
CONFIG_CIFS_WEAK_PW_HASH=y
652653
CONFIG_CIFS_UPCALL=y
653654
CONFIG_CIFS_XATTR=y
654655
CONFIG_CIFS_POSIX=y
@@ -708,6 +709,8 @@ CONFIG_CRYPTO_XCBC=m
708709
CONFIG_CRYPTO_VMAC=m
709710
CONFIG_CRYPTO_CRC32=m
710711
CONFIG_CRYPTO_BLAKE2S=m
712+
CONFIG_CRYPTO_MD4=m
713+
CONFIG_CRYPTO_MD5=y
711714
CONFIG_CRYPTO_MICHAEL_MIC=m
712715
CONFIG_CRYPTO_RMD160=m
713716
CONFIG_CRYPTO_SHA3=m

arch/s390/pci/pci_mmio.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ SYSCALL_DEFINE3(s390_pci_mmio_write, unsigned long, mmio_addr,
159159

160160
mmap_read_lock(current->mm);
161161
ret = -EINVAL;
162-
vma = find_vma(current->mm, mmio_addr);
162+
vma = vma_lookup(current->mm, mmio_addr);
163163
if (!vma)
164164
goto out_unlock_mmap;
165165
if (!(vma->vm_flags & (VM_IO | VM_PFNMAP)))
@@ -298,7 +298,7 @@ SYSCALL_DEFINE3(s390_pci_mmio_read, unsigned long, mmio_addr,
298298

299299
mmap_read_lock(current->mm);
300300
ret = -EINVAL;
301-
vma = find_vma(current->mm, mmio_addr);
301+
vma = vma_lookup(current->mm, mmio_addr);
302302
if (!vma)
303303
goto out_unlock_mmap;
304304
if (!(vma->vm_flags & (VM_IO | VM_PFNMAP)))

drivers/s390/char/sclp_early.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ static void __init sclp_early_facilities_detect(void)
4545
sclp.has_gisaf = !!(sccb->fac118 & 0x08);
4646
sclp.has_hvs = !!(sccb->fac119 & 0x80);
4747
sclp.has_kss = !!(sccb->fac98 & 0x01);
48-
sclp.has_sipl = !!(sccb->cbl & 0x4000);
4948
if (sccb->fac85 & 0x02)
5049
S390_lowcore.machine_flags |= MACHINE_FLAG_ESOP;
5150
if (sccb->fac91 & 0x40)
5251
S390_lowcore.machine_flags |= MACHINE_FLAG_TLB_GUEST;
5352
if (sccb->cpuoff > 134)
5453
sclp.has_diag318 = !!(sccb->byte_134 & 0x80);
54+
if (sccb->cpuoff > 137)
55+
sclp.has_sipl = !!(sccb->cbl & 0x4000);
5556
sclp.rnmax = sccb->rnmax ? sccb->rnmax : sccb->rnmax2;
5657
sclp.rzm = sccb->rnsize ? sccb->rnsize : sccb->rnsize2;
5758
sclp.rzm <<= 20;

drivers/s390/crypto/ap_bus.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ static inline int ap_fetch_qci_info(struct ap_config_info *info)
213213
* ap_init_qci_info(): Allocate and query qci config info.
214214
* Does also update the static variables ap_max_domain_id
215215
* and ap_max_adapter_id if this info is available.
216-
217216
*/
218217
static void __init ap_init_qci_info(void)
219218
{
@@ -439,6 +438,7 @@ static enum hrtimer_restart ap_poll_timeout(struct hrtimer *unused)
439438
/**
440439
* ap_interrupt_handler() - Schedule ap_tasklet on interrupt
441440
* @airq: pointer to adapter interrupt descriptor
441+
* @floating: ignored
442442
*/
443443
static void ap_interrupt_handler(struct airq_struct *airq, bool floating)
444444
{
@@ -1786,6 +1786,7 @@ static inline void ap_scan_adapter(int ap)
17861786
/**
17871787
* ap_scan_bus(): Scan the AP bus for new devices
17881788
* Runs periodically, workqueue timer (ap_config_time)
1789+
* @unused: Unused pointer.
17891790
*/
17901791
static void ap_scan_bus(struct work_struct *unused)
17911792
{

drivers/s390/crypto/ap_queue.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static void __ap_flush_queue(struct ap_queue *aq);
2020

2121
/**
2222
* ap_queue_enable_irq(): Enable interrupt support on this AP queue.
23-
* @qid: The AP queue number
23+
* @aq: The AP queue
2424
* @ind: the notification indicator byte
2525
*
2626
* Enables interruption on AP queue via ap_aqic(). Based on the return
@@ -311,7 +311,7 @@ static enum ap_sm_wait ap_sm_read_write(struct ap_queue *aq)
311311

312312
/**
313313
* ap_sm_reset(): Reset an AP queue.
314-
* @qid: The AP queue number
314+
* @aq: The AP queue
315315
*
316316
* Submit the Reset command to an AP queue.
317317
*/

0 commit comments

Comments
 (0)