syzbot


INFO: task hung in vfs_setxattr

Status: auto-closed as invalid on 2019/06/15 01:37
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+6cd4d2845f652967921c@syzkaller.appspotmail.com
First crash: 2089d, last: 1929d
Discussions (1)
Title Replies (including bot) Last reply
INFO: task hung in vfs_setxattr 1 (2) 2018/07/09 13:29
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in vfs_setxattr (2) fs 1 1399d 1399d 0/26 auto-closed as invalid on 2020/07/28 17:13
linux-5.15 INFO: task hung in vfs_setxattr (2) syz error 1 204d 204d 0/3 auto-obsoleted due to no activity on 2023/12/15 17:11
android-49 INFO: task hung in vfs_setxattr 4 2056d 2082d 0/3 auto-closed as invalid on 2019/02/22 13:09
upstream INFO: task hung in vfs_setxattr (3) fs syz done error 49 873d 1291d 0/26 closed as invalid on 2022/02/08 10:51
linux-4.19 INFO: task hung in vfs_setxattr (2) C error 3 902d 1183d 0/1 upstream: reported C repro on 2021/01/01 10:53
android-414 INFO: task hung in vfs_setxattr 1 1805d 1805d 0/1 auto-closed as invalid on 2019/10/16 16:43
linux-5.15 INFO: task hung in vfs_setxattr 1 355d 355d 0/3 auto-obsoleted due to no activity on 2023/08/06 19:50
upstream INFO: task hung in vfs_setxattr (4) ext4 1 269d 269d 0/26 auto-obsoleted due to no activity on 2023/10/02 09:30
linux-4.19 INFO: task hung in vfs_setxattr 3 1601d 1663d 0/1 auto-closed as invalid on 2020/03/08 20:30
android-44 INFO: task hung in vfs_setxattr C 3 1680d 1685d 0/2 public: reported C repro on 2019/08/17 15:36

Sample crash report:
INFO: task syz-executor5:15979 blocked for more than 140 seconds.
      Not tainted 4.19.0+ #85
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor5   D23816 15979  15531 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2831 [inline]
 __schedule+0x8cf/0x21d0 kernel/sched/core.c:3480
 schedule+0xfe/0x460 kernel/sched/core.c:3524
 __rwsem_down_write_failed_common+0xc9a/0x15e0 kernel/locking/rwsem-xadd.c:577
 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606
 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0xa5/0x130 kernel/locking/rwsem.c:72
 inode_lock include/linux/fs.h:757 [inline]
 vfs_setxattr+0x96/0x100 fs/xattr.c:218
 setxattr+0x2ea/0x450 fs/xattr.c:450
 path_setxattr+0x1e3/0x230 fs/xattr.c:469
 __do_sys_setxattr fs/xattr.c:484 [inline]
 __se_sys_setxattr fs/xattr.c:480 [inline]
 __x64_sys_setxattr+0xc4/0x150 fs/xattr.c:480
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457569
Code: 83 c4 18 c3 e8 d8 64 00 00 48 8b 04 24 48 8b 4c 24 08 48 89 01 e8 d7 2d fc ff e8 22 7a fc ff b8 02 00 00 00 48 8d 0d ca 96 0a <01> 87 01 8b 05 c2 96 0a 01 83 f8 01 0f 85 8a 00 00 00 b8 01 00 00
RSP: 002b:00007f15c4c65c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457569
RDX: 0000000020005280 RSI: 0000000020005240 RDI: 0000000020005200
RBP: 000000000072bfa0 R08: 0000000000000001 R09: 0000000000000000
R10: 000000000000000e R11: 0000000000000246 R12: 00007f15c4c666d4
R13: 00000000004cb628 R14: 00000000004d7700 R15: 00000000ffffffff
INFO: task syz-executor5:15980 blocked for more than 140 seconds.
      Not tainted 4.19.0+ #85
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor5   D23816 15980  15531 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2831 [inline]
 __schedule+0x8cf/0x21d0 kernel/sched/core.c:3480
 schedule+0xfe/0x460 kernel/sched/core.c:3524
 __rwsem_down_write_failed_common+0xc9a/0x15e0 kernel/locking/rwsem-xadd.c:577
 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606
 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0xa5/0x130 kernel/locking/rwsem.c:72
 inode_lock include/linux/fs.h:757 [inline]
 lock_mount+0x8c/0x2e0 fs/namespace.c:2027
 do_add_mount+0x27/0x370 fs/namespace.c:2404
 do_new_mount fs/namespace.c:2471 [inline]
 do_mount+0x19cd/0x31f0 fs/namespace.c:2789
 ksys_mount+0x12d/0x140 fs/namespace.c:3005
 __do_sys_mount fs/namespace.c:3019 [inline]
 __se_sys_mount fs/namespace.c:3016 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3016
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457569
Code: 83 c4 18 c3 e8 d8 64 00 00 48 8b 04 24 48 8b 4c 24 08 48 89 01 e8 d7 2d fc ff e8 22 7a fc ff b8 02 00 00 00 48 8d 0d ca 96 0a <01> 87 01 8b 05 c2 96 0a 01 83 f8 01 0f 85 8a 00 00 00 b8 01 00 00
RSP: 002b:00007f15c4c44c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457569
RDX: 00000000200008c0 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 000000000072c040 R08: 0000000020000a80 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f15c4c456d4
R13: 00000000004c2af8 R14: 00000000004d4160 R15: 00000000ffffffff
INFO: task syz-executor5:15981 blocked for more than 140 seconds.
      Not tainted 4.19.0+ #85
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor5   D24648 15981  15531 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2831 [inline]
 __schedule+0x8cf/0x21d0 kernel/sched/core.c:3480
 schedule+0xfe/0x460 kernel/sched/core.c:3524
 __rwsem_down_write_failed_common+0xc9a/0x15e0 kernel/locking/rwsem-xadd.c:577
 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606
 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0xa5/0x130 kernel/locking/rwsem.c:72
 inode_lock include/linux/fs.h:757 [inline]
 do_last fs/namei.c:3321 [inline]
 path_openat+0x15c4/0x5150 fs/namei.c:3534
 do_filp_open+0x255/0x380 fs/namei.c:3564
 do_sys_open+0x568/0x700 fs/open.c:1063
 ksys_open include/linux/syscalls.h:1279 [inline]
 __do_sys_creat fs/open.c:1121 [inline]
 __se_sys_creat fs/open.c:1119 [inline]
 __x64_sys_creat+0x61/0x80 fs/open.c:1119
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457569
Code: 83 c4 18 c3 e8 d8 64 00 00 48 8b 04 24 48 8b 4c 24 08 48 89 01 e8 d7 2d fc ff e8 22 7a fc ff b8 02 00 00 00 48 8d 0d ca 96 0a <01> 87 01 8b 05 c2 96 0a 01 83 f8 01 0f 85 8a 00 00 00 b8 01 00 00
RSP: 002b:00007f15c4c23c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000457569
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000300
RBP: 000000000072c0e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f15c4c246d4
R13: 00000000004bdb2f R14: 00000000004cc8e8 R15: 00000000ffffffff

Showing all locks held in the system:
1 lock held by khungtaskd/982:
 #0: 0000000046351213 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4379
1 lock held by rsyslogd/5498:
 #0: 00000000eb7cb00b (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766
2 locks held by getty/5589:
 #0: 00000000da5106b8 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 0000000048a13c3b (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5590:
 #0: 000000009ef85b05 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 0000000068f68e1d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5591:
 #0: 000000007bc36e59 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000ea87f082 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5592:
 #0: 00000000bdb1c5cc (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000c46c3ca3 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5593:
 #0: 00000000387cba3e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000ec76f8bb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5594:
 #0: 0000000050a81cc1 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 000000009e308c41 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by syz-executor5/15931:
 #0: 00000000482fbee6 (sb_writers#23){.+.+}, at: sb_start_write include/linux/fs.h:1585 [inline]
 #0: 00000000482fbee6 (sb_writers#23){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: inode_lock include/linux/fs.h:757 [inline]
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: do_last fs/namei.c:3321 [inline]
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: path_openat+0x15c4/0x5150 fs/namei.c:3534
2 locks held by syz-executor5/15979:
 #0: 00000000482fbee6 (sb_writers#23){.+.+}, at: sb_start_write include/linux/fs.h:1585 [inline]
 #0: 00000000482fbee6 (sb_writers#23){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: inode_lock include/linux/fs.h:757 [inline]
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: vfs_setxattr+0x96/0x100 fs/xattr.c:218
1 lock held by syz-executor5/15980:
 #0: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: inode_lock include/linux/fs.h:757 [inline]
 #0: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: lock_mount+0x8c/0x2e0 fs/namespace.c:2027
2 locks held by syz-executor5/15981:
 #0: 00000000482fbee6 (sb_writers#23){.+.+}, at: sb_start_write include/linux/fs.h:1585 [inline]
 #0: 00000000482fbee6 (sb_writers#23){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: inode_lock include/linux/fs.h:757 [inline]
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: do_last fs/namei.c:3321 [inline]
 #1: 00000000d40f831d (&sb->s_type->i_mutex_key#27){+.+.}, at: path_openat+0x15c4/0x5150 fs/namei.c:3534
2 locks held by getty/15993:
 #0: 000000004d6df65a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000b474f2d5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 982 Comm: khungtaskd Not tainted 4.19.0+ #85
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x244/0x39d lib/dump_stack.c:113
 nmi_cpu_backtrace.cold.1+0x5c/0xa1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b3/0x1ed lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:144 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline]
 watchdog+0xb3e/0x1050 kernel/hung_task.c:265
 kthread+0x35a/0x440 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:350
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:57

Crashes (46):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/29 08:29 upstream dad4f140edaa 9ca2afa1 .config console log report ci-upstream-kasan-gce-smack-root
2018/10/24 21:16 upstream 638820d8da8e a8292de9 .config console log report ci-upstream-kasan-gce-smack-root
2018/10/17 02:57 upstream b955a910d7fd 1ba7fd7e .config console log report ci-upstream-kasan-gce-selinux-root
2018/10/15 02:47 upstream 3a27203102eb caf12900 .config console log report ci-upstream-kasan-gce-root
2018/10/11 14:10 upstream 9dcd936c5312 5f818b4b .config console log report ci-upstream-kasan-gce-root
2018/10/10 18:57 upstream 3d647e62686f 5b11ac2c .config console log report ci-upstream-kasan-gce-root
2018/10/07 07:57 upstream c1d84a1b42ef 8b311eaf .config console log report ci-upstream-kasan-gce-smack-root
2018/10/05 05:39 upstream 10be83cc6418 8b311eaf .config console log report ci-upstream-kasan-gce-smack-root
2018/10/04 23:23 upstream d2467adb6610 8b311eaf .config console log report ci-upstream-kasan-gce-root
2018/10/03 00:28 upstream 1d2ba7fee28b a316a2af .config console log report ci-upstream-kasan-gce-smack-root
2018/09/30 10:39 upstream 291d0e5d81e1 41e4b329 .config console log report ci-upstream-kasan-gce-root
2018/08/09 05:35 upstream fedb8da96355 2eeda842 .config console log report ci-upstream-kasan-gce-root
2018/08/05 10:08 upstream 60f5a2173632 3476a2df .config console log report ci-upstream-kasan-gce
2018/08/05 07:10 upstream 60f5a2173632 3476a2df .config console log report ci-upstream-kasan-gce-root
2018/08/05 01:22 upstream 0b5b1f9a78b5 3476a2df .config console log report ci-upstream-kasan-gce
2018/08/04 22:26 upstream 0b5b1f9a78b5 3476a2df .config console log report ci-upstream-kasan-gce
2018/08/04 18:04 upstream 0b5b1f9a78b5 3476a2df .config console log report ci-upstream-kasan-gce
2018/08/04 03:43 upstream 0b5b1f9a78b5 df7f6947 .config console log report ci-upstream-kasan-gce
2018/08/03 23:20 upstream 0b5b1f9a78b5 df7f6947 .config console log report ci-upstream-kasan-gce
2018/08/03 13:19 upstream 0585df468e8f cc4f6d0a .config console log report ci-upstream-kasan-gce-root
2018/08/03 07:57 upstream e30cb13c5a09 5b7e23bb .config console log report ci-upstream-kasan-gce
2018/08/01 14:33 upstream c1d61e7fe376 1477993e .config console log report ci-upstream-kasan-gce
2018/07/24 02:21 upstream d72e90f33aa4 912c93d7 .config console log report ci-upstream-kasan-gce
2018/07/22 12:08 upstream 490fc053865c 8cc079c3 .config console log report ci-upstream-kasan-gce
2018/07/22 09:28 upstream 490fc053865c 8cc079c3 .config console log report ci-upstream-kasan-gce-root
2018/07/22 03:44 upstream 490fc053865c 8cc079c3 .config console log report ci-upstream-kasan-gce
2018/07/21 02:01 upstream 28c20cc73b9c af255b09 .config console log report ci-upstream-kasan-gce
2018/07/20 09:55 upstream fb7d1bcf1602 49f35839 .config console log report ci-upstream-kasan-gce
2018/07/19 20:16 upstream 024ddc0ce104 49f35839 .config console log report ci-upstream-kasan-gce-root
2018/07/17 16:07 upstream 30b06abfb92b 6d5bd5b5 .config console log report ci-upstream-kasan-gce
2018/07/16 09:50 upstream 9d3cce1e8b85 92a49505 .config console log report ci-upstream-kasan-gce
2018/07/16 05:52 upstream 9d3cce1e8b85 92a49505 .config console log report ci-upstream-kasan-gce
2018/07/12 12:35 upstream c25c74b7476e 06c33b3a .config console log report ci-upstream-kasan-gce-root
2018/07/09 16:14 upstream 1e4b044d2251 f25e5770 .config console log report ci-upstream-kasan-gce-root
2018/08/03 20:03 upstream 0585df468e8f cc4f6d0a .config console log report ci-upstream-kasan-gce-386
2018/07/30 20:58 upstream acb1872577b3 1a381291 .config console log report ci-upstream-kasan-gce-386
2018/12/17 01:36 linux-next d14b746c6c1c def91db3 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/27 15:30 linux-next ab6fc6ef2d8b 758cd203 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/19 04:47 linux-next d7857ae43dcc de20bcbb .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/07 06:31 linux-next 8c8399e0a3fb 1beb8136 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/05 01:47 linux-next 116b181bb646 3476a2df .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/29 20:58 linux-next d1e0b8e0cb7a 1a381291 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/17 17:17 linux-next 1dcbe5f2c615 6d5bd5b5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/15 13:24 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/11 21:04 linux-next 98be45067040 2e0e3130 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 11:58 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.