mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+4d7cd7dd0ce1aa8d5c65@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [isofs?] KASAN: slab-out-of-bounds Read in isofs_fh_to_parent
Date: Fri,  4 Apr 2025 10:28:49 +0800	[thread overview]
Message-ID: <tencent_0AEAEC8ECFCC7A2E6CC02DC16FBC9410E80A@qq.com> (raw)
In-Reply-To: <67eee51c.050a0220.9040b.0240.GAE@google.com>

#syz test

diff --git a/fs/fhandle.c b/fs/fhandle.c
index 3e092ae6d142..a31c0291a473 100644
--- a/fs/fhandle.c
+++ b/fs/fhandle.c
@@ -344,7 +344,7 @@ static int handle_to_path(int mountdirfd, struct file_handle __user *ufh,
 		goto out_path;
 	}
 	if ((f_handle.handle_bytes > MAX_HANDLE_SZ) ||
-	    (f_handle.handle_bytes == 0)) {
+	    (f_handle.handle_bytes < 16)) {
 		retval = -EINVAL;
 		goto out_path;
 	}


  reply	other threads:[~2025-04-04  2:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-03 19:44 syzbot
2025-04-04  2:28 ` Edward Adam Davis [this message]
2025-04-04  3:18   ` syzbot
2025-04-04  4:40 ` Edward Adam Davis
2025-04-04  5:28   ` syzbot
2025-04-04  5:31 ` [PATCH] isofs: Prevent the use of too small fid Edward Adam Davis
2025-04-04 10:32   ` Jan Kara

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_0AEAEC8ECFCC7A2E6CC02DC16FBC9410E80A@qq.com \
    --to=eadavis@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+4d7cd7dd0ce1aa8d5c65@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®