Warning: Permanently added '[localhost]:38691' (ED25519) to the list of known hosts. [*] Starting reproducer for possible deadlock in jffs2_xattr_delete_inode... [+] mkdir /tmp/jffs2_mnt successful. [+] mkdir /tmp/ovl_lower successful. [+] mkdir /tmp/ovl_mnt successful. [+] Discovered MTD device from /proc/mtd: mtd0 (size=131072, erasesize=4096) [+] mknod /dev/mtd0 (chr 90,0) successful. [+] mknod /dev/mtdblock0 (blk 31,0) successful. [+] Opened /dev/mtd0 successfully. [+] ioctl MEMGETINFO on /dev/mtd0 successful: size=131072, erasesize=4096 [+] ioctl MEMERASE on /dev/mtd0 successful. [+] Written cleanmarkers to /dev/mtd0. [+] mount mtd0 on /tmp/jffs2_mnt successful. [+] JFFS2 mounted successfully on /tmp/jffs2_mnt. [+] open /tmp/jffs2_mnt/init_xattr successful. [ 71.232983][ T1444] ieee802154 phy0 wpan0: encryption failed: -22 [+] fsetxattr on /tmp/jffs2_mnt/init_xattr successful (dependency &c->xattr_sem -> fs_reclaim registered). [+] mkdir /tmp/jffs2_mnt/upper successful. [+] mkdir /tmp/jffs2_mnt/work successful. [ 71.233020][ T1444] ieee802154 phy1 wpan1: encryption failed: -22 [ 71.234901][ T6109] jffs2: notice: (6109) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [+] mount overlay on /tmp/ovl_mnt successful. [+] Set sysctl /proc/sys/vm/vfs_cache_pressure to 100000 [+] Set sysctl /proc/sys/vm/min_free_kbytes to 131072 [*] Creating files on OverlayFS and unlinking on JFFS2 upper... [ 71.248289][ T6109] overlayfs: upper fs does not support tmpfile. [ 71.249567][ T6109] overlayfs: upper fs does not support RENAME_WHITEOUT. [+] 60 files created on OverlayFS and unlinked on JFFS2 upper. [*] Injecting 1000 negative dentries into OverlayFS dcache LRU... [+] 1000 negative dentries populated into OverlayFS dcache. [*] Round 0: Setting up sustained 2-stage memory pressure... [+] Set sysctl /proc/self/oom_score_adj to -1000 [+] Holder child pinned bulk memory. Free RAM is low. [+] Set sysctl /proc/self/oom_score_adj to 1000 [+] Set sysctl /proc/self/oom_score_adj to 1000 [+] 4 pushers forked and actively driving direct reclaim. [+] Set sysctl /proc/self/oom_score_adj to 1000 [+] Set sysctl /proc/self/oom_score_adj to 1000 [ 73.673300][ T120] [ 73.674430][ T120] ====================================================== [ 73.677250][ T120] WARNING: possible circular locking dependency detected [ 73.680308][ T120] syzkaller #0 Not tainted [ 73.682268][ T120] ------------------------------------------------------ [ 73.685451][ T120] kswapd1/120 is trying to acquire lock: [ 73.687937][ T120] ffff888022bce9d8 (&c->xattr_sem){++++}-{4:4}, at: jffs2_xattr_delete_inode+0x83/0x130 [ 73.691795][ T120] [ 73.691795][ T120] but task is already holding lock: [ 73.694780][ T120] ffffffff901d7d80 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x230/0x1e60 [ 73.698351][ T120] [ 73.698351][ T120] which lock already depends on the new lock. [ 73.698351][ T120] [ 73.702553][ T120] [ 73.702553][ T120] the existing dependency chain (in reverse order) is: [ 73.706294][ T120] [ 73.706294][ T120] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 73.708703][ T120] lock_acquire+0x1d1/0x380 [ 73.710367][ T120] fs_reclaim_acquire+0xc4/0x100 [ 73.712133][ T120] kmem_cache_alloc_noprof+0x63/0x6a0 [ 73.714063][ T120] jffs2_alloc_xattr_datum+0x1c/0xe0 [ 73.715921][ T120] do_jffs2_setxattr+0x6f0/0x1610 [ 73.717687][ T120] __vfs_setxattr+0x175/0x1e0 [ 73.719530][ T120] __vfs_setxattr_noperm+0x127/0x660 [ 73.721835][ T120] __vfs_setxattr_locked+0x11f/0x2f0 [ 73.724180][ T120] vfs_setxattr+0x159/0x3c0 [ 73.726171][ T120] do_setxattr+0x145/0x180 [ 73.728146][ T120] file_setxattr+0x139/0x1b0 [ 73.730083][ T120] path_setxattrat+0x335/0x3b0 [ 73.731825][ T120] __ia32_sys_fsetxattr+0xc4/0x140 [ 73.733879][ T120] __do_fast_syscall_32+0x14b/0x8c0 [ 73.736161][ T120] do_fast_syscall_32+0x32/0x70 [ 73.738317][ T120] entry_SYSENTER_compat_after_hwframe+0x84/0x8e [ 73.741139][ T120] [ 73.741139][ T120] -> #0 (&c->xattr_sem){++++}-{4:4}: [ 73.744321][ T120] check_prev_add+0xeb/0xe60 [ 73.746560][ T120] __lock_acquire+0x1528/0x1f40 [ 73.748678][ T120] lock_acquire+0x1d1/0x380 [ 73.750765][ T120] down_write+0x86/0x1f0 [ 73.752481][ T120] jffs2_xattr_delete_inode+0x83/0x130 [ 73.754327][ T120] jffs2_do_clear_inode+0x50/0x470 [ 73.756294][ T120] evict+0x3c2/0xad0 [ 73.758083][ T120] iput.part.0+0x989/0x1050 [ 73.760167][ T120] iput+0x30/0x40 [ 73.761883][ T120] dentry_unlink_inode+0x403/0x4d0 [ 73.764309][ T120] dentry_kill+0x25d/0xca0 [ 73.766503][ T120] dput.part.0+0xd2/0x240 [ 73.768585][ T120] dput+0x1f/0x30 [ 73.770371][ T120] ovl_destroy_inode+0x3e/0x190 [ 73.772703][ T120] destroy_inode+0xcb/0x1c0 [ 73.774842][ T120] evict+0x599/0xad0 [ 73.776897][ T120] iput.part.0+0x989/0x1050 [ 73.779332][ T120] iput+0x30/0x40 [ 73.781239][ T120] dentry_unlink_inode+0x403/0x4d0 [ 73.783757][ T120] dentry_kill+0x25d/0xca0 [ 73.785861][ T120] shrink_dentry_list+0x1e8/0x310 [ 73.788211][ T120] prune_dcache_sb+0xea/0x150 [ 73.790438][ T120] super_cache_scan+0x331/0x560 [ 73.792741][ T120] do_shrink_slab+0x411/0x1200 [ 73.794978][ T120] shrink_slab+0x171/0x12d0 [ 73.796632][ T120] shrink_one+0x3d3/0x870 [ 73.798176][ T120] shrink_node+0x2a61/0x4410 [ 73.799878][ T120] balance_pgdat+0xa9e/0x1e60 [ 73.801733][ T120] kswapd+0x556/0xb50 [ 73.803660][ T120] kthread+0x373/0x450 [ 73.805384][ T120] ret_from_fork+0x730/0xd60 [ 73.807313][ T120] ret_from_fork_asm+0x1a/0x30 [ 73.809111][ T120] [ 73.809111][ T120] other info that might help us debug this: [ 73.809111][ T120] [ 73.812347][ T120] Possible unsafe locking scenario: [ 73.812347][ T120] [ 73.814695][ T120] CPU0 CPU1 [ 73.816611][ T120] ---- ---- [ 73.818572][ T120] lock(fs_reclaim); [ 73.820170][ T120] lock(&c->xattr_sem); [ 73.822731][ T120] lock(fs_reclaim); [ 73.824900][ T120] lock(&c->xattr_sem); [ 73.826351][ T120] [ 73.826351][ T120] *** DEADLOCK *** [ 73.826351][ T120] [ 73.828869][ T120] locks held by kswapd1/120: 2, last CPU#2: [ 73.830758][ T120] #0: ffffffff901d7d80 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x230/0x1e60 [ 73.833601][ T120] #1: ffff888023e06100 (&type->s_umount_key#57){.+.+}-{4:4}, at: super_cache_scan+0x9b/0x560 [ 73.836927][ T120] [ 73.836927][ T120] stack backtrace: [ 73.838930][ T120] CPU: 2 UID: 0 PID: 120 Comm: kswapd1 Not tainted syzkaller #0 PREEMPT(full) [ 73.842720][ T120] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 73.846986][ T120] Call Trace: [ 73.848241][ T120] [ 73.849682][ T120] dump_stack_lvl+0x100/0x190 [ 73.851826][ T120] print_circular_bug.cold+0x178/0x1be [ 73.853594][ T120] check_noncircular+0x146/0x160 [ 73.855440][ T120] check_prev_add+0xeb/0xe60 [ 73.857318][ T120] __lock_acquire+0x1528/0x1f40 [ 73.858987][ T120] lock_acquire+0x1d1/0x380 [ 73.860892][ T120] ? jffs2_xattr_delete_inode+0x83/0x130 [ 73.863055][ T120] ? __pfx___might_resched+0x10/0x10 [ 73.865340][ T120] ? lockdep_hardirqs_on+0x7d/0x110 [ 73.867440][ T120] down_write+0x86/0x1f0 [ 73.868927][ T120] ? jffs2_xattr_delete_inode+0x83/0x130 [ 73.870679][ T120] ? __pfx_down_write+0x10/0x10 [ 73.872128][ T120] jffs2_xattr_delete_inode+0x83/0x130 [ 73.873719][ T120] ? __pfx_jffs2_evict_inode+0x10/0x10 [ 73.875762][ T120] jffs2_do_clear_inode+0x50/0x470 [ 73.877839][ T120] ? __pfx_jffs2_evict_inode+0x10/0x10 [ 73.880046][ T120] evict+0x3c2/0xad0 [ 73.881626][ T120] ? fsnotify_grab_connector+0x4b/0x290 [ 73.883965][ T120] ? __pfx_evict+0x10/0x10 [ 73.886020][ T120] ? lock_acquire+0x1d1/0x380 [ 73.887819][ T120] ? iput.part.0+0x981/0x1050 [ 73.889916][ T120] iput.part.0+0x989/0x1050 [ 73.891784][ T120] iput+0x30/0x40 [ 73.893234][ T120] dentry_unlink_inode+0x403/0x4d0 [ 73.895091][ T120] dentry_kill+0x25d/0xca0 [ 73.896545][ T120] ? __pfx_ovl_destroy_inode+0x10/0x10 [ 73.898349][ T120] dput.part.0+0xd2/0x240 [ 73.899822][ T120] ? __pfx_ovl_destroy_inode+0x10/0x10 [ 73.901972][ T120] dput+0x1f/0x30 [ 73.903298][ T120] ovl_destroy_inode+0x3e/0x190 [ 73.905327][ T120] ? __pfx_ovl_destroy_inode+0x10/0x10 [ 73.907616][ T120] destroy_inode+0xcb/0x1c0 [ 73.909586][ T120] evict+0x599/0xad0 [ 73.911456][ T120] ? __pfx_evict+0x10/0x10 [ 73.913563][ T120] ? lock_acquire+0x1d1/0x380 [ 73.915870][ T120] ? iput.part.0+0x981/0x1050 [ 73.918120][ T120] iput.part.0+0x989/0x1050 [ 73.920259][ T120] iput+0x30/0x40 [ 73.921778][ T120] dentry_unlink_inode+0x403/0x4d0 [ 73.923736][ T120] dentry_kill+0x25d/0xca0 [ 73.925693][ T120] shrink_dentry_list+0x1e8/0x310 [ 73.927880][ T120] prune_dcache_sb+0xea/0x150 [ 73.929872][ T120] ? list_lru_count_one+0x147/0x320 [ 73.932130][ T120] ? __pfx_prune_dcache_sb+0x10/0x10 [ 73.934678][ T120] super_cache_scan+0x331/0x560 [ 73.936982][ T120] do_shrink_slab+0x411/0x1200 [ 73.939398][ T120] shrink_slab+0x171/0x12d0 [ 73.941314][ T120] ? try_to_shrink_lruvec+0x650/0x7b0 [ 73.943574][ T120] ? __pfx_shrink_slab+0x10/0x10 [ 73.945538][ T120] ? lock_acquire+0x1d1/0x380 [ 73.947529][ T120] shrink_one+0x3d3/0x870 [ 73.949326][ T120] ? shrink_node+0x29f0/0x4410 [ 73.951434][ T120] ? shrink_node+0x2a41/0x4410 [ 73.953435][ T120] shrink_node+0x2a61/0x4410 [ 73.955505][ T120] ? __lock_acquire+0x5c0/0x1f40 [ 73.957843][ T120] ? shrink_node+0x276d/0x4410 [ 73.960135][ T120] ? __pfx_shrink_node+0x10/0x10 [ 73.962320][ T120] ? find_held_lock+0x2b/0x80 [ 73.964441][ T120] ? balance_pgdat+0xa9e/0x1e60 [ 73.966509][ T120] balance_pgdat+0xa9e/0x1e60 [ 73.968485][ T120] ? lock_acquire+0x1d1/0x380 [ 73.970482][ T120] ? finish_task_switch.isra.0+0x149/0x10d0 [ 73.972971][ T120] ? __pfx_balance_pgdat+0x10/0x10 [ 73.975205][ T120] ? warn_bogus_irq_restore+0x20/0x20 [ 73.977529][ T120] ? finish_task_switch.isra.0+0x2c2/0x10d0 [ 73.980448][ T120] ? rcu_is_watching+0x13/0xc0 [ 73.982855][ T120] ? trace_sched_exit_tp+0x120/0x160 [ 73.985646][ T120] ? __schedule+0x1270/0x6990 [ 73.987848][ T120] ? __lock_acquire+0x5c0/0x1f40 [ 73.989902][ T120] ? schedule+0x225/0x2c0 [ 73.991789][ T120] ? __pfx_calculate_pressure_threshold+0x10/0x10 [ 73.994556][ T120] kswapd+0x556/0xb50 [ 73.996073][ T120] ? __pfx_kswapd+0x10/0x10 [ 73.997717][ T120] ? __rcu_read_lock+0x10/0x70 [ 73.999402][ T120] ? __pfx_autoremove_wake_function+0x10/0x10 [ 74.001986][ T120] ? __kthread_parkme+0x18f/0x230 [ 74.004258][ T120] ? kthread+0x13a/0x450 [ 74.006152][ T120] ? __pfx_kswapd+0x10/0x10 [ 74.008048][ T120] kthread+0x373/0x450 [ 74.009480][ T120] ? __pfx_kthread+0x10/0x10 [ 74.011263][ T120] ret_from_fork+0x730/0xd60 [ 74.013178][ T120] ? __pfx_ret_from_fork+0x10/0x10 [ 74.015370][ T120] ? __switch_to+0x800/0x10e0 [ 74.017405][ T120] ? __pfx_kthread+0x10/0x10 [ 74.019396][ T120] ret_from_fork_asm+0x1a/0x30 [ 74.021389][ T120] [+] Pusher 0 stopped (status=0x9, signaled=1). [+] Pusher 1 stopped (status=0x9, signaled=1). [+] Pusher 2 stopped (status=0x9, signaled=1). [+] Pusher 3 stopped (status=0x9, signaled=1). [ 76.351115][ T50] cfg80211: failed to load regulatory.db [+] Holder child terminated and memory freed. [*] Round 1: Setting up sustained 2-stage memory pressure... [+] Set sysctl /proc/self/oom_score_adj to -1000 [+] Holder child pinned bulk memory. Free RAM is low. [+] Set sysctl /proc/self/oom_score_adj to 1000 [+] Set sysctl /proc/self/oom_score_adj to 1000 [+] 4 pushers forked and actively driving direct reclaim. [+] Set sysctl /proc/self/oom_score_adj to 1000 [+] Set sysctl /proc/self/oom_score_adj to 1000 [+] Pusher 0 stopped (status=0x9, signaled=1). [+] Pusher 1 stopped (status=0x9, signaled=1). [+] Pusher 2 stopped (status=0x9, signaled=1). [+] Pusher 3 stopped (status=0x9, signaled=1). [+] Holder child terminated and memory freed. [*] Waiting for asynchronous kernel tasks...