INFO: task hung in ext4_fill_super

6 views
Skip to first unread message

syzbot

unread,
Jun 15, 2021, 5:47:32 AM6/15/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9a2dc0e6 Linux 4.19.194
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1428b875d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=4fa0751b4d49ae79
dashboard link: https://syzkaller.appspot.com/bug?extid=3a1400144957f88064a9

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+3a1400...@syzkaller.appspotmail.com

Bluetooth: hci2: command 0x0406 tx timeout
Bluetooth: hci4: command 0x0406 tx timeout
Bluetooth: hci5: command 0x0406 tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor.3:10055 blocked for more than 140 seconds.
Not tainted 4.19.194-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3 D27560 10055 8127 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2828 [inline]
__schedule+0x887/0x2040 kernel/sched/core.c:3517
schedule+0x8d/0x1b0 kernel/sched/core.c:3561
schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
do_wait_for_common kernel/sched/completion.c:83 [inline]
__wait_for_common kernel/sched/completion.c:104 [inline]
wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
kthread_stop+0x109/0x6b0 kernel/kthread.c:588
ext4_fill_super+0x7911/0xc7f0 fs/ext4/super.c:4638
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x310 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x113c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x467afa
Code: 24 20 e8 e9 d2 fa ff 48 8b 44 24 50 48 89 44 24 68 48 8b 44 24 48 48 89 44 24 70 48 8b 44 24 40 48 89 44 24 78 48 8b 6c 24 58 <48> 83 c4 60 c3 48 8d 0d da b3 2a 00 48 89 0c 24 48 8d 15 bf 07 42
RSP: 002b:00007f4fbf9adfa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000380 RCX: 0000000000467afa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f4fbf9ae000
RBP: 00007f4fbf9ae040 R08: 00007f4fbf9ae040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f4fbf9ae000 R15: 00000000200002c0

Showing all locks held in the system:
1 lock held by khungtaskd/1568:
#0: 00000000b78cced8 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
3 locks held by kworker/u4:5/3575:
#0: 00000000a6b20621 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1824 [inline]
#0: 00000000a6b20621 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455
#1: 00000000b78cced8 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline]
#1: 00000000b78cced8 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857
#2: 00000000b560f9fa (&wdev->mtx){+.+.}, at: sdata_lock net/mac80211/ieee80211_i.h:977 [inline]
#2: 00000000b560f9fa (&wdev->mtx){+.+.}, at: ieee80211_ibss_work+0x85/0xe10 net/mac80211/ibss.c:1675
1 lock held by syz-executor.3/10055:
#0: 00000000bf895838 (&type->s_umount_key#25/1){+.+.}, at: alloc_super fs/super.c:226 [inline]
#0: 00000000bf895838 (&type->s_umount_key#25/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519

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

NMI backtrace for cpu 0
CPU: 0 PID: 1568 Comm: khungtaskd Not tainted 4.19.194-syzkaller #0
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+0x1fc/0x2ef lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x991/0xe60 kernel/hung_task.c:287
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4677 Comm: systemd-journal Not tainted 4.19.194-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rcu_read_unlock_sched_notrace include/linux/rcupdate.h:771 [inline]
RIP: 0010:trace_kmem_cache_free include/trace/events/kmem.h:144 [inline]
RIP: 0010:kmem_cache_free+0x1ad/0x260 mm/slab.c:3768
Code: ff ff ff 65 ff 05 73 d3 69 7e 48 8b 05 84 d6 76 09 e8 77 8a b8 ff 85 c0 74 09 80 3d 22 68 76 09 00 74 7b 65 ff 0d 53 d3 69 7e <0f> 85 20 ff ff ff e8 6a 31 68 ff e9 16 ff ff ff 48 89 df e8 2b 52
RSP: 0018:ffff8880a23a7c78 EFLAGS: 00000286
RAX: 0000000000000001 RBX: ffff8880960b2a80 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: 0000000000000286
RBP: ffff88823b843380 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff81a69641
R13: ffffffff81a69641 R14: ffff8880960b2a80 R15: ffff8880a23a7d50
FS: 00007f62e55178c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f62e2938008 CR3: 00000000a21da000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
putname+0xe1/0x120 fs/namei.c:261
filename_lookup+0x3d0/0x5a0 fs/namei.c:2358
user_path_at include/linux/namei.h:57 [inline]
do_faccessat+0x248/0x7a0 fs/open.c:397
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f62e47d29c7
Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007fff0877a258 EFLAGS: 00000246 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00007fff0877d170 RCX: 00007f62e47d29c7
RDX: 00007f62e5243a00 RSI: 0000000000000000 RDI: 00005560aea149a3
RBP: 00007fff0877a290 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fff0877d170 R15: 00007fff0877a780


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jun 15, 2021, 12:01:22 PM6/15/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 9a2dc0e6 Linux 4.19.194
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1178cad0300000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10f13b1fd00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=170a4789d00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+3a1400...@syzkaller.appspotmail.com

ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor278:19261 blocked for more than 140 seconds.
Not tainted 4.19.194-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor278 D27560 19261 8110 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2828 [inline]
__schedule+0x887/0x2040 kernel/sched/core.c:3517
schedule+0x8d/0x1b0 kernel/sched/core.c:3561
schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
do_wait_for_common kernel/sched/completion.c:83 [inline]
__wait_for_common kernel/sched/completion.c:104 [inline]
wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
kthread_stop+0x109/0x6b0 kernel/kthread.c:588
ext4_fill_super+0x7911/0xc7f0 fs/ext4/super.c:4638
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x310 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x113c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44613a
Code: Bad RIP value.
RSP: 002b:00007fffc6349ec8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffc6349f20 RCX: 000000000044613a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fffc6349ee0
RBP: 00007fffc6349ee0 R08: 00007fffc6349f20 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000200003f8
R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000005

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
#0: 00000000732b347c (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7859:
#0: 00000000911072e1 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor278/19261:
#0: 000000009e6f1ec1 (&type->s_umount_key#25/1){+.+.}, at: alloc_super fs/super.c:226 [inline]
#0: 000000009e6f1ec1 (&type->s_umount_key#25/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.194-syzkaller #0
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+0x1fc/0x2ef lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x991/0xe60 kernel/hung_task.c:287
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 10 Comm: rcu_preempt Not tainted 4.19.194-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:lookup_chain_cache kernel/locking/lockdep.c:2317 [inline]
RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:2337 [inline]
RIP: 0010:validate_chain kernel/locking/lockdep.c:2391 [inline]
RIP: 0010:__lock_acquire+0xbfd/0x3ff0 kernel/locking/lockdep.c:3416
Code: fc ff df eb 06 48 83 eb 08 74 3d 48 8d 7b 18 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 8c 1e 00 00 4c 3b 63 18 0f 84 f1 fc ff ff <48> 8d 7b 08 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 93 1e 00 00 48
RSP: 0018:ffff8880b5a678f0 EFLAGS: 00000016
RAX: 1ffffffff18e385b RBX: ffffffff8c71c2c0 RCX: 00000000000037ae
RDX: 1ffffffff19a6056 RSI: 00000000f433c532 RDI: ffffffff8c71c2d8
RBP: dffffc0000000000 R08: ffffffff8cd302b0 R09: 0000000000000000
R10: ffff8880b5a4eb08 R11: 0000000000000000 R12: 4f45c28245dbbff6
R13: ffff8880b5a4e280 R14: ffff8880b5a4eb20 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c12157000 CR3: 00000000a1a5b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x8c/0xc0 kernel/locking/spinlock.c:152
lock_timer_base+0x55/0x1b0 kernel/time/timer.c:950
try_to_del_timer_sync+0x7a/0x110 kernel/time/timer.c:1237
del_timer_sync+0x1a4/0x270 kernel/time/timer.c:1305
schedule_timeout+0x4d7/0xfe0 kernel/time/timer.c:1819
rcu_gp_kthread+0xdad/0x21c0 kernel/rcu/tree.c:2202
Reply all
Reply to author
Forward
0 new messages