loop0: detected capacity change from 0 to 4096
EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback.
jffs2: notice: (5340) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5340 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:74 [inline]
should_fail_ex+0x3eb/0x540 lib/fault-inject.c:175
should_failslab+0xa8/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4675 [inline]
slab_alloc_node mm/slub.c:5011 [inline]
__kmalloc_cache_noprof+0x9e/0x600 mm/slub.c:5676
_kmalloc_noprof include/linux/slab.h:991 [inline]
jffs2_sum_add_kvec+0x858/0x1870 fs/jffs2/summary.c:266
jffs2_flash_direct_writev+0xaa/0xe0 fs/jffs2/writev.c:22
jffs2_flash_writev+0x156/0x1550 fs/jffs2/wbuf.c:805
jffs2_write_dnode+0x485/0xe20 fs/jffs2/write.c:109
jffs2_do_create+0x18e/0xe00 fs/jffs2/write.c:465
jffs2_create+0x1c8/0x320 fs/jffs2/dir.c:205
lookup_open+0xedc/0x1970 fs/namei.c:4569
open_last_lookups fs/namei.c:4768 [inline]
path_openat+0x70c/0x20f0 fs/namei.c:5007
do_file_open+0x23e/0x4a0 fs/namei.c:5039
do_sys_openat2+0x115/0x200 fs/open.c:1442
do_sys_open fs/open.c:1448 [inline]
__do_sys_creat fs/open.c:1526 [inline]
__se_sys_creat fs/open.c:1520 [inline]
__x64_sys_creat+0x8f/0xc0 fs/open.c:1520
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9d09d9f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9d0abb1fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f9d0a025fa0 RCX: 00007f9d09d9f559
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000009dc0
RBP: 00007f9d0abb2050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f9d0a026038 R14: 00007f9d0a025fa0 R15: 00007fff10836d98
jffs2: warning: (5340) jffs2_sum_add_kvec: MEMORY ALLOCATION ERROR!
jffs2: Write of 68 bytes at 0x0001300c failed. returned -12, retlen 0
jffs2: Not marking the space at 0x0001300c as dirty because the flash driver returned retlen zero
=====================================
WARNING: bad unlock balance detected!
syzkaller #0 Not tainted
-------------------------------------
syz.0.0/5340 is trying to release lock (&c->alloc_sem) at:
[] jffs2_do_create+0x1ae/0xe00 fs/jffs2/write.c:474
but there are no more locks to release!
other info that might help us debug this:
locks held by syz.0.0/5340: 2, last CPU#0:
#0: ffff8880420b2460 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:531
#1: ffff888054424200 (&type->i_mutex_dir_key#8){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1024 [inline]
#1: ffff888054424200 (&type->i_mutex_dir_key#8){+.+.}-{4:4}, at: lookup_open+0x246/0x1970 fs/namei.c:4462
stack backtrace:
CPU: 0 UID: 0 PID: 5340 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_unlock_imbalance_bug+0xdc/0xf0 kernel/locking/lockdep.c:5349
__lock_release kernel/locking/lockdep.c:5590 [inline]
lock_release+0x252/0x3c0 kernel/locking/lockdep.c:5964
__mutex_unlock_slowpath+0x88/0x900 kernel/locking/mutex.c:989
jffs2_do_create+0x1ae/0xe00 fs/jffs2/write.c:474
jffs2_create+0x1c8/0x320 fs/jffs2/dir.c:205
lookup_open+0xedc/0x1970 fs/namei.c:4569
open_last_lookups fs/namei.c:4768 [inline]
path_openat+0x70c/0x20f0 fs/namei.c:5007
do_file_open+0x23e/0x4a0 fs/namei.c:5039
do_sys_openat2+0x115/0x200 fs/open.c:1442
do_sys_open fs/open.c:1448 [inline]
__do_sys_creat fs/open.c:1526 [inline]
__se_sys_creat fs/open.c:1520 [inline]
__x64_sys_creat+0x8f/0xc0 fs/open.c:1520
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9d09d9f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9d0abb1fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f9d0a025fa0 RCX: 00007f9d09d9f559
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000009dc0
RBP: 00007f9d0abb2050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007f9d0a026038 R14: 00007f9d0a025fa0 R15: 00007fff10836d98