mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: syzbot <syzbot+fc1d5d9a7ebabbc27458@syzkaller.appspotmail.com>
To: khalid.swe@diu.edu.bd
Cc: khalid.swe@diu.edu.bd, syzkaller-bugs@googlegroups.com,
	 linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [lsm?] general protection fault in smack_inode_permission (4)
Date: Sat, 10 Oct 2026 02:51:20 -0700	[thread overview]
Message-ID: <6aca0a98.a150a118.27e199.0029.GAE@google.com> (raw)
In-Reply-To: <716cc2d6-0468-48db-967e-0b3c9048ac47n@googlegroups.com>

> #syz test: 

This crash does not have a reproducer. I cannot test it.

> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> Try reverting the kmalloc introducer patch
>
> diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c
> index ac0f79fafaca..8ce6e4458cc2 100644
> --- a/fs/jfs/jfs_dtree.c
> +++ b/fs/jfs/jfs_dtree.c
> @@ -2729,7 +2729,7 @@ int jfs_readdir(struct file *file, struct dir_context 
> *ctx)
>   struct ldtentry *d;
>   struct dtslot *t;
>   int d_namleft, len, outlen;
> - unsigned long dirent_buf;
> + void *dirent_buf;
>   char *name_ptr;
>   u32 dir_index;
>   int do_index = 0;
> @@ -2884,7 +2884,7 @@ int jfs_readdir(struct file *file, struct dir_context 
> *ctx)
>   }
>   }
>  
> - dirent_buf = __get_free_page(GFP_KERNEL);
> + dirent_buf = kmalloc(PAGE_SIZE, GFP_KERNEL);
>   if (dirent_buf == 0) {
>   DT_PUTPAGE(mp);
>   jfs_warn("jfs_readdir: __get_free_page failed!");
> @@ -2893,7 +2893,7 @@ int jfs_readdir(struct file *file, struct dir_context 
> *ctx)
>   }
>  
>   while (1) {
> - jfs_dirent = (struct jfs_dirent *) dirent_buf;
> + jfs_dirent = dirent_buf;
>   jfs_dirents = 0;
>   overflow = fix_page = 0;
>  
> @@ -2903,7 +2903,7 @@ int jfs_readdir(struct file *file, struct dir_context 
> *ctx)
>   if (stbl[i] < 0) {
>   jfs_err("JFS: Invalid stbl[%d] = %d for inode %ld, block = %lld",
>   i, stbl[i], (long)ip->i_ino, (long long)bn);
> - free_page(dirent_buf);
> + kfree(dirent_buf);
>   DT_PUTPAGE(mp);
>   return -EIO;
>   }
> @@ -2911,7 +2911,7 @@ int jfs_readdir(struct file *file, struct dir_context 
> *ctx)
>   d = (struct ldtentry *) & p->slot[stbl[i]];
>  
>   if (((long) jfs_dirent + d->namlen + 1) >
> -     (dirent_buf + PAGE_SIZE)) {
> +     ((long)dirent_buf + PAGE_SIZE)) {
>   /* DBCS codepages could overrun dirent_buf */
>   index = i;
>   overflow = 1;
> @@ -3014,7 +3014,7 @@ int jfs_readdir(struct file *file, struct dir_context 
> *ctx)
>   /* unpin previous leaf page */
>   DT_PUTPAGE(mp);
>  
> - jfs_dirent = (struct jfs_dirent *) dirent_buf;
> + jfs_dirent = dirent_buf;
>   while (jfs_dirents--) {
>   ctx->pos = jfs_dirent->position;
>   if (!dir_emit(ctx, jfs_dirent->name,
> @@ -3037,13 +3037,13 @@ int jfs_readdir(struct file *file, struct 
> dir_context *ctx)
>  
>   DT_GETPAGE(ip, bn, mp, PSIZE, p, rc);
>   if (rc) {
> - free_page(dirent_buf);
> + kfree(dirent_buf);
>   return rc;
>   }
>   }
>  
>        out:
> - free_page(dirent_buf);
> + kfree(dirent_buf);
>  
>   return rc;
>  }
> diff --git a/fs/jfs/super.c b/fs/jfs/super.c
> index 61575f7397ae..8180d83d33fe 100644
> --- a/fs/jfs/super.c
> +++ b/fs/jfs/super.c
> @@ -491,7 +491,8 @@ static int jfs_fill_super(struct super_block *sb, 
> struct fs_context *fc)
>   /*
>    * Initialize blocksize to 4K.
>    */
> - sb_set_blocksize(sb, PSIZE);
> + if (!sb_set_blocksize(sb, PSIZE))
> + goto out_unload;
>  
>   /*
>    * Set method vectors.
>
> -- 
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/syzkaller-bugs/716cc2d6-0468-48db-967e-0b3c9048ac47n%40googlegroups.com.

       reply	other threads:[~2026-10-10  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <716cc2d6-0468-48db-967e-0b3c9048ac47n@googlegroups.com>
2026-10-10  9:51 ` syzbot [this message]
     [not found] <40467130-a611-4634-a194-ee1b155167e7n@googlegroups.com>
2026-10-09 10:00 ` syzbot
2026-10-04  2:47 syzbot
2026-10-07 15:22 ` Tetsuo Handa

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=6aca0a98.a150a118.27e199.0029.GAE@google.com \
    --to=syzbot+fc1d5d9a7ebabbc27458@syzkaller.appspotmail.com \
    --cc=khalid.swe@diu.edu.bd \
    --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 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®