s390 fixes for 5.13-rc7
Subsystems (2)
Vasily Gorbik
maintainerHello Linus,
please pull s390 fixes for 5.13-rc7.
Thank you,
Vasily
The following changes since commit 614124bea77e452aa6df7a8714e8bc820b489922:
Linux 5.13-rc5 (2021-06-06 15:47:27 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-5.13-4
for you to fetch changes up to e73a99f3287a740a07d6618e9470f4d6cb217da8:
s390/ap: Fix hanging ioctl caused by wrong msg counter (2021-06-16 23:32:02 +0200)
----------------------------------------------------------------
- Fix zcrypt ioctl hang due to AP queue msg counter dropping below 0 when pending requests are purged.
- Two fixes for the machine check handler in the entry code.
----------------------------------------------------------------
Alexander Gordeev (2):
s390/mcck: fix calculation of SIE critical section size s390/mcck: fix invalid KVM guest condition check
Harald Freudenberger (1):
s390/ap: Fix hanging ioctl caused by wrong msg counter
arch/s390/kernel/entry.S | 4 ++-- drivers/s390/crypto/ap_queue.c | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-)
arch/s390/kernel/entry.S +2 -2
@@ -651,9 +651,9 @@ ENDPROC(stack_overflow) .Lcleanup_sie_mcck: larl %r13,.Lsie_entry slgr %r9,%r13 - larl %r13,.Lsie_skip + lghi %r13,.Lsie_skip - .Lsie_entry clgr %r9,%r13 - jh .Lcleanup_sie_int + jhe .Lcleanup_sie_int oi __LC_CPU_FLAGS+7, _CIF_MCCK_GUEST .Lcleanup_sie_int: BPENTER __SF_SIE_FLAGS(%r15),(_TIF_ISOLATE_BP|_TIF_ISOLATE_BP_GUEST)
drivers/s390/crypto/ap_queue.c +9 -2
@@ -135,12 +135,13 @@ static struct ap_queue_status ap_sm_recv(struct ap_queue *aq) {struct ap_queue_status status;struct ap_message *ap_msg; +bool found = false; status =ap_dqap (aq->qid, &aq->reply->psmid, aq->reply->msg, aq->reply->len);switch (status.response_code) {case AP_RESPONSE_NORMAL : - aq->queue_count--; + aq->queue_count =max_t (int,0 , aq->queue_count -1 );if (aq->queue_count >0 )mod_timer (&aq->timeout, jiffies + aq->request_timeout);
@@ -150,8 +151,14 @@ static struct ap_queue_status ap_sm_recv(struct ap_queue *aq)list_del_init (&ap_msg->list); aq->pendingq_count--; ap_msg->receive (aq, ap_msg, aq->reply); + found = true;break ; } +if (!found) { +AP_DBF_WARN ("%s unassociated reply psmid=0x%016llx on 0x%02x.%04x\n" , + __func__, aq->reply->psmid, +AP_QID_CARD (aq->qid),AP_QID_QUEUE (aq->qid)); + } fallthrough;case AP_RESPONSE_NO_PENDING_REPLY :if (!status.queue_empty || aq->queue_count <=0 )
@@ -232,7 +239,7 @@ static enum ap_sm_wait ap_sm_write(struct ap_queue *aq) ap_msg->flags & AP_MSG_FLAG_SPECIAL);switch (status.response_code) {case AP_RESPONSE_NORMAL : - aq->queue_count++; + aq->queue_count =max_t (int,1 , aq->queue_count +1 );if (aq->queue_count ==1 )mod_timer (&aq->timeout, jiffies + aq->request_timeout);list_move_tail (&ap_msg->list, &aq->pendingq);
The pull request you sent on Sat, 19 Jun 2021 12:09:16 +0200:
The pull request you sent on Sat, 19 Jun 2021 12:09:16 +0200:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.gittags/s390-5.13-4
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e14c779adebebe4b4aeeefb3cc09f376bec966c5
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html