public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [syzbot] [jffs2?] kernel BUG in jffs2_del_ino_cache
@ 2024-04-03 14:13 syzbot
  0 siblings, 0 replies; 3+ messages in thread
From: syzbot @ 2024-04-03 14:13 UTC (permalink / raw)
  To: dwmw2, linux-fsdevel, linux-kernel, linux-mtd, richard,
	syzkaller-bugs

Hello,

syzbot found the following issue on:

HEAD commit:    fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel..
git tree:       upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=13f5f003180000
kernel config:  https://syzkaller.appspot.com/x/.config?x=fe78468a74fdc3b7
dashboard link: https://syzkaller.appspot.com/bug?extid=44664704c1494ad5f7a0
compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=166276c5180000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=12049423180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0f7abe4afac7/disk-fe46a7dd.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/82598d09246c/vmlinux-fe46a7dd.xz
kernel image: https://storage.googleapis.com/syzbot-assets/efa23788c875/bzImage-fe46a7dd.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+44664704c1494ad5f7a0@syzkaller.appspotmail.com

jffs2: notice: (5072) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
------------[ cut here ]------------
kernel BUG at fs/jffs2/nodelist.c:462!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 PID: 5072 Comm: syz-executor610 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:jffs2_del_ino_cache+0x2c6/0x2d0 fs/jffs2/nodelist.c:462
Code: ff e9 64 ff ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 51 fe ff ff 4c 89 e7 e8 25 54 06 ff e9 44 fe ff ff e8 2b 05 a3 fe 90 <0f> 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004527958 EFLAGS: 00010293
RAX: ffffffff82f1f025 RBX: ffff88807ca31000 RCX: ffff888011a50000
RDX: 0000000000000000 RSI: ffff88807ca31000 RDI: ffff88802283a000
RBP: ffff88807ca31020 R08: ffff88802283a36b R09: 1ffff1100450746d
R10: dffffc0000000000 R11: ffffed100450746e R12: ffff88807ca31000
R13: ffff888077a080b8 R14: dffffc0000000000 R15: ffff88802283a000
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000760e0000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 jffs2_do_clear_inode+0x33c/0x3b0 fs/jffs2/readinode.c:1443
 evict+0x2aa/0x630 fs/inode.c:667
 dispose_list fs/inode.c:700 [inline]
 evict_inodes+0x5f9/0x690 fs/inode.c:750
 generic_shutdown_super+0x9d/0x2d0 fs/super.c:626
 kill_mtd_super+0x23/0x70 drivers/mtd/mtdsuper.c:174
 jffs2_kill_sb+0x96/0xb0 fs/jffs2/super.c:349
 deactivate_locked_super+0xc6/0x130 fs/super.c:472
 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1267
 task_work_run+0x251/0x310 kernel/task_work.c:180
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa1b/0x27e0 kernel/exit.c:878
 do_group_exit+0x207/0x2c0 kernel/exit.c:1027
 __do_sys_exit_group kernel/exit.c:1038 [inline]
 __se_sys_exit_group kernel/exit.c:1036 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036
 do_syscall_64+0xfd/0x240
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7ffb6a6c11c9
Code: Unable to access opcode bytes at 0x7ffb6a6c119f.
RSP: 002b:00007ffe45c941f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ffb6a6c11c9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007ffb6a73c370 R08: ffffffffffffffb8 R09: 00007ffb6a7365f0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffb6a73c370
R13: 0000000000000000 R14: 00007ffb6a73cdc0 R15: 00007ffb6a68f330
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jffs2_del_ino_cache+0x2c6/0x2d0 fs/jffs2/nodelist.c:462
Code: ff e9 64 ff ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 51 fe ff ff 4c 89 e7 e8 25 54 06 ff e9 44 fe ff ff e8 2b 05 a3 fe 90 <0f> 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004527958 EFLAGS: 00010293
RAX: ffffffff82f1f025 RBX: ffff88807ca31000 RCX: ffff888011a50000
RDX: 0000000000000000 RSI: ffff88807ca31000 RDI: ffff88802283a000
RBP: ffff88807ca31020 R08: ffff88802283a36b R09: 1ffff1100450746d
R10: dffffc0000000000 R11: ffffed100450746e R12: ffff88807ca31000
R13: ffff888077a080b8 R14: dffffc0000000000 R15: ffff88802283a000
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffb6a73d1d0 CR3: 000000007c154000 CR4: 0000000000350ef0


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [syzbot] [jffs2] kernel BUG in jffs2_del_ino_cache
       [not found] <20260417101247.2492008-1-tristmd@gmail.com>
@ 2026-04-17 12:47 ` syzbot
  0 siblings, 0 replies; 3+ messages in thread
From: syzbot @ 2026-04-17 12:47 UTC (permalink / raw)
  To: linux-kernel, syzkaller-bugs, tristmd

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in jffs2_del_ino_cache

------------[ cut here ]------------
WARNING: fs/jffs2/nodelist.c:462 at jffs2_del_ino_cache+0x247/0x2d0 fs/jffs2/nodelist.c:462, CPU#0: syz-executor.0/5271
Modules linked in:
CPU: 0 UID: 0 PID: 5271 Comm: syz-executor.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:jffs2_del_ino_cache+0x247/0x2d0 fs/jffs2/nodelist.c:462
Code: 3c 24 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d e9 4e f8 2c 08 e8 39 b9 a5 fe 49 39 df 75 92 e9 42 ff ff ff e8 2a b9 a5 fe 90 <0f> 0b 90 e9 fe fd ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 36
RSP: 0018:ffffc9000387fa30 EFLAGS: 00010293
RAX: ffffffff831b67d6 RBX: ffff88807d8cdec0 RCX: ffff88802b6b9ec0
RDX: 0000000000000000 RSI: ffff88807d8cdec0 RDI: ffff88807cade000
RBP: 0000000000000006 R08: ffff88807cade363 R09: 1ffff1100f95bc6c
R10: dffffc0000000000 R11: ffffed100f95bc6d R12: ffff88807d8cdec0
R13: dffffc0000000000 R14: ffff88807d8cdee0 R15: ffff88807cade000
FS:  000055558eb524c0(0000) GS:ffff888126b49000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe1dbb7d10 CR3: 000000007a0a0000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 jffs2_do_clear_inode+0x31e/0x390 fs/jffs2/readinode.c:1443
 evict+0x61e/0xb10 fs/inode.c:841
 dispose_list fs/inode.c:883 [inline]
 evict_inodes+0x75a/0x7f0 fs/inode.c:937
 generic_shutdown_super+0xaa/0x2d0 fs/super.c:632
 kill_mtd_super+0x23/0x70 drivers/mtd/mtdsuper.c:174
 jffs2_kill_sb+0x96/0xb0 fs/jffs2/super.c:350
 deactivate_locked_super+0xbc/0x130 fs/super.c:476
 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312
 task_work_run+0x1d9/0x270 kernel/task_work.c:233
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 __exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
 exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:328 [inline]
 do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f23f406ea17
Code: a2 c7 05 e8 94 11 00 00 00 00 00 eb 96 e8 f1 09 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 d0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe1dbb8368 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f23f40ce3ef RCX: 00007f23f406ea17
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffe1dbb8420
RBP: 00007ffe1dbb8420 R08: 00007ffe1dbb9420 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe1dbb94e0
R13: 00007f23f40ce3ef R14: 0000000000016f5d R15: 0000000000000003
 </TASK>


Tested on:

commit:         43cfbdda Merge tag 'for-linus-iommufd' of git://git.ke..
git tree:       https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=12ae41ba580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=ef989e593e72d81
dashboard link: https://syzkaller.appspot.com/bug?extid=44664704c1494ad5f7a0
compiler:       Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
patch:          https://syzkaller.appspot.com/x/patch.diff?x=179c78ce580000


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [syzbot] [jffs2] kernel BUG in jffs2_del_ino_cache
       [not found] <177644291920.3792332.17582976522190204583@talencesecurity.com>
@ 2026-04-17 20:05 ` syzbot
  0 siblings, 0 replies; 3+ messages in thread
From: syzbot @ 2026-04-17 20:05 UTC (permalink / raw)
  To: linux-kernel, syzkaller-bugs, tristmd

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
WARNING in jffs2_del_ino_cache

------------[ cut here ]------------
WARNING: fs/jffs2/nodelist.c:462 at jffs2_del_ino_cache+0x247/0x2d0 fs/jffs2/nodelist.c:462, CPU#1: syz-executor.0/5273
Modules linked in:
CPU: 1 UID: 0 PID: 5273 Comm: syz-executor.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:jffs2_del_ino_cache+0x247/0x2d0 fs/jffs2/nodelist.c:462
Code: 3c 24 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d e9 de 15 2d 08 e8 09 b6 a5 fe 49 39 df 75 92 e9 42 ff ff ff e8 fa b5 a5 fe 90 <0f> 0b 90 e9 fe fd ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 36
RSP: 0018:ffffc900038ffa30 EFLAGS: 00010293
RAX: ffffffff831c1a46 RBX: ffff88802d2b5ec0 RCX: ffff888022e33d80
RDX: 0000000000000000 RSI: ffff88802d2b5ec0 RDI: ffff88802962a000
RBP: 0000000000000006 R08: ffff88802962a363 R09: 1ffff110052c546c
R10: dffffc0000000000 R11: ffffed10052c546d R12: ffff88802d2b5ec0
R13: dffffc0000000000 R14: ffff88802d2b5ee0 R15: ffff88802962a000
FS:  00005555917774c0(0000) GS:ffff888126c4a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000112bbcae0000 CR3: 00000000254bd000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 jffs2_do_clear_inode+0x31e/0x390 fs/jffs2/readinode.c:1443
 evict+0x61e/0xb10 fs/inode.c:841
 dispose_list fs/inode.c:883 [inline]
 evict_inodes+0x75a/0x7f0 fs/inode.c:937
 generic_shutdown_super+0xaa/0x2d0 fs/super.c:632
 kill_mtd_super+0x23/0x70 drivers/mtd/mtdsuper.c:174
 jffs2_kill_sb+0x96/0xb0 fs/jffs2/super.c:350
 deactivate_locked_super+0xbc/0x130 fs/super.c:476
 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312
 task_work_run+0x1d9/0x270 kernel/task_work.c:233
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 __exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
 exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:328 [inline]
 do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51a706ea17
Code: a2 c7 05 e8 94 11 00 00 00 00 00 eb 96 e8 f1 09 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 d0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffc326aece8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f51a70ce3ef RCX: 00007f51a706ea17
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffc326aeda0
RBP: 00007ffc326aeda0 R08: 00007ffc326afda0 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc326afe60
R13: 00007f51a70ce3ef R14: 0000000000016f32 R15: 0000000000000003
 </TASK>


Tested on:

commit:         59bd5ae0 Merge tag 'for-v7.1' of git://git.kernel.org/..
git tree:       https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=15f48fca580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=a8d8f65df2b30ee8
dashboard link: https://syzkaller.appspot.com/bug?extid=44664704c1494ad5f7a0
compiler:       Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
patch:          https://syzkaller.appspot.com/x/patch.diff?x=119624ce580000


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-17 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <177644291920.3792332.17582976522190204583@talencesecurity.com>
2026-04-17 20:05 ` [syzbot] [jffs2] kernel BUG in jffs2_del_ino_cache syzbot
     [not found] <20260417101247.2492008-1-tristmd@gmail.com>
2026-04-17 12:47 ` syzbot
2024-04-03 14:13 [syzbot] [jffs2?] " syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox