All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+6ed94e81a1492fe1d512@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: syzkaller-bugs@googlegroups.com
Date: Sat, 21 Mar 2026 11:07:52 -0700	[thread overview]
Message-ID: <69bede78.050a0220.3bf4de.0057.GAE@google.com> (raw)
In-Reply-To: <688fa86e.050a0220.1fc43d.0005.GAE@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.

***

Subject: syzkaller-bugs@googlegroups.com
Author: syoshida@redhat.com

#syz test

diff --git a/security/integrity/ima/ima_crypto.c b/security/integrity/ima/ima_crypto.c
index aff61643415d..7b721b9c944f 100644
--- a/security/integrity/ima/ima_crypto.c
+++ b/security/integrity/ima/ima_crypto.c
@@ -17,6 +17,7 @@
 #include <linux/crypto.h>
 #include <linux/scatterlist.h>
 #include <linux/err.h>
+#include <linux/sched/signal.h>
 #include <linux/slab.h>
 #include <crypto/hash.h>
 
@@ -416,6 +417,12 @@ static int ima_calc_file_hash_atfm(struct file *file,
 
 		if (rbuf[1])
 			active = !active; /* swap buffers, if we use two */
+
+		if (fatal_signal_pending(current)) {
+			ahash_wait(ahash_rc, &wait);
+			rc = -EINTR;
+			goto out3;
+		}
 	}
 	/* wait for the last update request to complete */
 	rc = ahash_wait(ahash_rc, &wait);
@@ -491,6 +498,10 @@ static int ima_calc_file_hash_tfm(struct file *file,
 		rc = crypto_shash_update(shash, rbuf, rbuf_len);
 		if (rc)
 			break;
+		if (fatal_signal_pending(current)) {
+			rc = -EINTR;
+			break;
+		}
 	}
 	kfree(rbuf);
 out:


  parent reply	other threads:[~2026-03-21 18:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-03 18:20 [syzbot] [kernel?] INFO: task hung in vfs_coredump (2) syzbot
2026-03-21 17:46 ` Forwarded: Test for 6ed94e81a1492fe1d512 syzbot
2026-03-21 18:01 ` syzbot
2026-03-21 18:07 ` syzbot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-29 19:33 [f2fs-dev] [syzbot] [f2fs?] WARNING in f2fs_delete_entry (2) syzbot
2025-10-12 21:03 ` Forwarded: syzkaller-bugs@googlegroups.com syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69bede78.050a0220.3bf4de.0057.GAE@google.com \
    --to=syzbot+6ed94e81a1492fe1d512@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.