Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.247' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 27.118959] REISERFS (device loop0): found reiserfs format "3.6" with non-standard journal [ 27.127623] REISERFS (device loop0): using ordered data mode [ 27.134536] reiserfs: using flush barriers [ 27.139802] REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 [ 27.155610] REISERFS (device loop0): checking transaction log (loop0) [ 27.163469] REISERFS (device loop0): Using rupasov hash to sort names [ 27.170758] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 27.179942] [ 27.181559] ====================================================== [ 27.187854] WARNING: possible circular locking dependency detected [ 27.194152] 4.14.295-syzkaller #0 Not tainted [ 27.198627] ------------------------------------------------------ [ 27.204922] syz-executor423/8000 is trying to acquire lock: [ 27.210599] (&type->i_mutex_dir_key#7){+.+.}, at: [] path_openat+0xde2/0x2970 [ 27.219502] [ 27.219502] but task is already holding lock: [ 27.225440] (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 27.233389] [ 27.233389] which lock already depends on the new lock. [ 27.233389] [ 27.241672] [ 27.241672] the existing dependency chain (in reverse order) is: [ 27.249259] [ 27.249259] -> #2 (sb_writers#10){.+.+}: [ 27.254781] __sb_start_write+0x64/0x260 [ 27.259340] mnt_want_write_file+0xfd/0x3b0 [ 27.264154] reiserfs_ioctl+0x18e/0x8b0 [ 27.268620] do_vfs_ioctl+0x75a/0xff0 [ 27.272910] SyS_ioctl+0x7f/0xb0 [ 27.276768] do_syscall_64+0x1d5/0x640 [ 27.281149] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.286830] [ 27.286830] -> #1 (&sbi->lock){+.+.}: [ 27.292084] __mutex_lock+0xc4/0x1310 [ 27.296375] reiserfs_write_lock+0x75/0xf0 [ 27.301111] reiserfs_lookup+0x130/0x400 [ 27.305671] __lookup_hash+0x1bb/0x270 [ 27.310052] lookup_one_len+0x279/0x3a0 [ 27.314520] reiserfs_lookup_privroot+0x92/0x270 [ 27.319770] reiserfs_fill_super+0x1d12/0x2990 [ 27.324844] mount_bdev+0x2b3/0x360 [ 27.328964] mount_fs+0x92/0x2a0 [ 27.332827] vfs_kern_mount.part.0+0x5b/0x470 [ 27.337811] do_mount+0xe65/0x2a30 [ 27.341860] SyS_mount+0xa8/0x120 [ 27.345806] do_syscall_64+0x1d5/0x640 [ 27.350186] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.355868] [ 27.355868] -> #0 (&type->i_mutex_dir_key#7){+.+.}: [ 27.362340] lock_acquire+0x170/0x3f0 [ 27.366633] down_write+0x34/0x90 [ 27.370578] path_openat+0xde2/0x2970 [ 27.374871] do_filp_open+0x179/0x3c0 [ 27.379166] do_sys_open+0x296/0x410 [ 27.383378] do_syscall_64+0x1d5/0x640 [ 27.387759] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.393438] [ 27.393438] other info that might help us debug this: [ 27.393438] [ 27.401551] Chain exists of: [ 27.401551] &type->i_mutex_dir_key#7 --> &sbi->lock --> sb_writers#10 [ 27.401551] [ 27.412625] Possible unsafe locking scenario: [ 27.412625] [ 27.418653] CPU0 CPU1 [ 27.423298] ---- ---- [ 27.427932] lock(sb_writers#10); [ 27.431447] lock(&sbi->lock); [ 27.437214] lock(sb_writers#10); [ 27.443241] lock(&type->i_mutex_dir_key#7); [ 27.447706] [ 27.447706] *** DEADLOCK *** [ 27.447706] [ 27.453734] 1 lock held by syz-executor423/8000: [ 27.458455] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 27.466840] [ 27.466840] stack backtrace: [ 27.471312] CPU: 1 PID: 8000 Comm: syz-executor423 Not tainted 4.14.295-syzkaller #0 [ 27.479169] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 [ 27.488590] Call Trace: [ 27.491160] dump_stack+0x1b2/0x281 [ 27.494768] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 27.500544] __lock_acquire+0x2e0e/0x3f20 [ 27.504668] ? trace_hardirqs_on+0x10/0x10 [ 27.508874] ? set_current_groups+0x50/0x50 [ 27.513173] ? trace_hardirqs_on+0x10/0x10 [ 27.517384] ? lockref_get_not_dead+0x5d/0x70 [ 27.521849] ? lock_acquire+0x170/0x3f0 [ 27.525800] lock_acquire+0x170/0x3f0 [ 27.529579] ? path_openat+0xde2/0x2970 [ 27.533525] down_write+0x34/0x90 [ 27.536950] ? path_openat+0xde2/0x2970 [ 27.540910] path_openat+0xde2/0x2970 [ 27.544685] ? path_lookupat+0x780/0x780 [ 27.548717] ? trace_hardirqs_on+0x10/0x10 [ 27.552928] ? lock_downgrade+0x740/0x740 [ 27.557052] ? cmp_ex_sort+0xb0/0xb0 [ 27.560736] do_filp_open+0x179/0x3c0 [ 27.564509] ? may_open_dev+0xe0/0xe0 [ 27.568288] ? lock_downgrade+0x740/0x740 [ 27.572416] ? do_raw_spin_unlock+0x164/0x220 [ 27.576889] ? _raw_spin_unlock+0x29/0x40 [ 27.581008] ? __alloc_fd+0x1be/0x490 [ 27.584780] do_sys_open+0x296/0x410 [ 27.588467] ? filp_open+0x60/0x60 [ 27.591978] ? do_syscall_64+0x4c/0x640 [ 27.595927] ? compat_SyS_openat+0x30/0x30 [ 27.600133] do_syscall_64+0x1d5/0x640 [ 27.603995] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.609163] RIP: 0033:0x7fd0ffac98a9 [ 27.612845] RSP: 002b:00007fffa96f4148 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 executing program executing program executing program [ 27.620522] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd0ffac98a9 [ 27.627764] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 [ 27.635006] RBP: 0000000000000000 R08: 00007fd0ffb37ec0 R09: 00007fd0ffb37ec0 [ 27.642255] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffa96f4170 [ 27.650897] R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program