mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+12479ae15958fc3f54ec@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [fs?] BUG: sleeping function called from invalid context in hook_sb_delete
Date: Wed, 24 Sep 2025 18:38:53 +0800	[thread overview]
Message-ID: <tencent_7784EEC92ECA4CBAE7CAC6F592CEC6728906@qq.com> (raw)
In-Reply-To: <68d32659.a70a0220.4f78.0012.GAE@google.com>

#syz test

diff --git a/security/landlock/fs.c b/security/landlock/fs.c
index 4ed997f4a663..a18d53507210 100644
--- a/security/landlock/fs.c
+++ b/security/landlock/fs.c
@@ -1484,7 +1484,6 @@ static void hook_sb_delete(struct super_block *const sb)
 			 * previous loop walk, which is not needed anymore.
 			 */
 			iput(prev_inode);
-			cond_resched();
 			spin_lock(&sb->s_inode_list_lock);
 		}
 		prev_inode = inode;
diff --git a/kernel/fork.c b/kernel/fork.c
index e9a7fb5c3e49..a0b8eeeb1d27 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2349,7 +2349,7 @@ __latent_entropy struct task_struct *copy_process(
 	if (need_futex_hash_allocate_default(clone_flags)) {
 		retval = futex_hash_allocate_default();
 		if (retval)
-			goto bad_fork_core_free;
+			goto bad_fork_cancel_cgroup;
 		/*
 		 * If we fail beyond this point we don't free the allocated
 		 * futex hash map. We assume that another thread will be created


  parent reply	other threads:[~2025-09-24 10:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-23 22:59 syzbot
2025-09-24  0:28 ` Hillf Danton
2025-09-24  0:56   ` syzbot
2025-09-24  9:44 ` Edward Adam Davis
2025-09-24 10:43   ` syzbot
2025-09-24 10:38 ` Edward Adam Davis [this message]
2025-09-24 10:46   ` Edward Adam Davis
2025-09-24 10:46     ` syzbot
2025-09-24 11:19   ` syzbot
2025-09-24 11:05 ` Jan Kara
2025-09-29  8:51   ` Christian Brauner
2025-10-09 20:56 ` syzbot
2025-11-01 15:32 ` Forwarded: " syzbot
2025-11-05 19:38 ` Forwarded: [PATCH v1] fs: Move might_sleep() annotation to iput_final() syzbot
     [not found] <4f6e21b7-3c0d-4f99-bf3a-3f20fafa9591n@googlegroups.com>
2025-09-24 10:55 ` [syzbot] [fs?] BUG: sleeping function called from invalid context in hook_sb_delete syzbot
     [not found] <20251101153157.837686-1-m@maowtm.org>
2025-11-01 16:18 ` syzbot
     [not found] <20251105193800.2340868-1-mic@digikod.net>
2025-11-05 20:56 ` 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=tencent_7784EEC92ECA4CBAE7CAC6F592CEC6728906@qq.com \
    --to=eadavis@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+12479ae15958fc3f54ec@syzkaller.appspotmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®