[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.10.53' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 30.789281] hfsplus: xattr searching failed [ 30.794241] hfsplus: xattr searching failed [ 30.800265] [ 30.801891] ============================================ [ 30.807321] WARNING: possible recursive locking detected [ 30.812743] 4.14.302-syzkaller #0 Not tainted [ 30.817207] -------------------------------------------- [ 30.822629] syz-executor711/7976 is trying to acquire lock: [ 30.828310] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 30.838254] [ 30.838254] but task is already holding lock: [ 30.844197] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 30.854486] [ 30.854486] other info that might help us debug this: [ 30.861124] Possible unsafe locking scenario: [ 30.861124] [ 30.867156] CPU0 [ 30.869711] ---- [ 30.872265] lock(&HFSPLUS_I(inode)->extents_lock); [ 30.877338] lock(&HFSPLUS_I(inode)->extents_lock); [ 30.882414] [ 30.882414] *** DEADLOCK *** [ 30.882414] [ 30.888444] May be due to missing lock nesting notation [ 30.888444] [ 30.895347] 5 locks held by syz-executor711/7976: [ 30.900158] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 30.908540] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 30.917962] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 30.928686] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 30.937935] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 30.947095] [ 30.947095] stack backtrace: [ 30.951565] CPU: 0 PID: 7976 Comm: syz-executor711 Not tainted 4.14.302-syzkaller #0 [ 30.959416] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 30.968740] Call Trace: [ 30.971301] dump_stack+0x1b2/0x281 [ 30.974903] __lock_acquire.cold+0x180/0x97c [ 30.979296] ? register_lock_class+0x1d0/0x1180 [ 30.983940] ? trace_hardirqs_on+0x10/0x10 [ 30.988153] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 30.993489] ? save_trace+0xd6/0x290 [ 30.997192] ? __lock_acquire+0x2190/0x3f20 [ 31.001493] lock_acquire+0x170/0x3f0 [ 31.005270] ? hfsplus_get_block+0x1f9/0x820 [ 31.009655] ? hfsplus_get_block+0x1f9/0x820 [ 31.014040] __mutex_lock+0xc4/0x1310 [ 31.017813] ? hfsplus_get_block+0x1f9/0x820 [ 31.022196] ? hfsplus_get_block+0x1f9/0x820 [ 31.026580] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 31.032006] ? lock_acquire+0x170/0x3f0 [ 31.035958] ? create_page_buffers+0x14d/0x1c0 [ 31.040515] hfsplus_get_block+0x1f9/0x820 [ 31.044727] ? _raw_spin_unlock+0x29/0x40 [ 31.048848] ? create_page_buffers+0xce/0x1c0 [ 31.053320] block_read_full_page+0x25e/0x8d0 [ 31.057790] ? hfsplus_file_extend+0xef0/0xef0 [ 31.062346] ? __lru_cache_add+0x178/0x250 [ 31.066555] ? __bread_gfp+0x2e0/0x2e0 [ 31.070418] ? add_to_page_cache_lru+0x136/0x2b0 [ 31.075145] ? add_to_page_cache_locked+0x40/0x40 [ 31.079964] ? alloc_pages_current+0x15d/0x260 [ 31.084527] do_read_cache_page+0x38e/0xc10 [ 31.088821] ? hfsplus_bmap+0x30/0x30 [ 31.092598] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 31.098027] hfsplus_block_free+0x177/0x560 [ 31.102323] hfsplus_free_extents+0x170/0x440 [ 31.106793] hfsplus_file_truncate+0xbc0/0xe80 [ 31.111350] ? hfsplus_get_block+0x820/0x820 [ 31.115731] ? up_write+0x17/0x60 [ 31.119156] ? unmap_mapping_range+0xe9/0x250 [ 31.123626] ? inode_newsize_ok+0x145/0x1c0 [ 31.127920] hfsplus_setattr+0x182/0x310 [ 31.131955] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 31.136423] notify_change+0x56b/0xd10 [ 31.140287] do_truncate+0xff/0x1a0 [ 31.143889] ? finish_open+0x170/0x170 [ 31.147750] ? apparmor_path_truncate+0x163/0x1d0 [ 31.152569] path_openat+0x1dcc/0x2970 [ 31.156431] ? path_lookupat+0x780/0x780 [ 31.160467] ? trace_hardirqs_on+0x10/0x10 [ 31.164675] ? trace_hardirqs_on+0x10/0x10 [ 31.168884] do_filp_open+0x179/0x3c0 [ 31.172657] ? may_open_dev+0xe0/0xe0 [ 31.176433] ? lock_downgrade+0x740/0x740 [ 31.180554] ? do_raw_spin_unlock+0x164/0x220 [ 31.185034] ? _raw_spin_unlock+0x29/0x40 [ 31.189156] ? __alloc_fd+0x1be/0x490 [ 31.192940] ? _raw_spin_unlock_irq+0x24/0x80 [ 31.197410] do_sys_open+0x296/0x410 [ 31.201097] ? filp_open+0x60/0x60 [ 31.204612] ? do_syscall_64+0x4c/0x640 [ 31.208561] ? do_sys_open+0x410/0x410 [ 31.212422] do_syscall_64+0x1d5/0x640 [ 31.216284] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 31.221448] RIP: 0033:0x7fc282c48789 [ 31.225134] RSP: 002b:00007fffcbead5c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 31.232815] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc282c48789 [ 31.240058] RDX: 0000000000000000 RSI: 0000000000143242 RDI: 0000000020000000 [ 31.247302] RBP: 00007fc282c08020 R08: 00000000000005e1 R09: 0000000000000000 [ 31.254546] R10: 00007fffcbead490 R11: 0000000000000246 R12: 00007fc282c080b0 [ 31.261793] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000