INFO: task hung in walk_component (2)

5 views
Skip to first unread message

syzbot

unread,
Aug 9, 2021, 10:17:28 AM8/9/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5c66974a6304 Linux 4.19.202
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14dedf92300000
kernel config: https://syzkaller.appspot.com/x/.config?x=4163258239353ac5
dashboard link: https://syzkaller.appspot.com/bug?extid=5716cf373a935580a326
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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+5716cf...@syzkaller.appspotmail.com

ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
Bluetooth: hci0: command 0x0406 tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor.3:29210 blocked for more than 140 seconds.
Not tainted 4.19.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3 D29056 29210 21972 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
__rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
__down_read arch/x86/include/asm/rwsem.h:83 [inline]
down_read+0x44/0x80 kernel/locking/rwsem.c:26
inode_lock_shared include/linux/fs.h:758 [inline]
lookup_slow fs/namei.c:1688 [inline]
walk_component+0x798/0xda0 fs/namei.c:1811
lookup_last fs/namei.c:2274 [inline]
path_lookupat+0x1ff/0x8d0 fs/namei.c:2319
filename_lookup+0x1ac/0x5a0 fs/namei.c:2349
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0x95/0x190 fs/xattr.c:534
__do_sys_lsetxattr fs/xattr.c:561 [inline]
__se_sys_lsetxattr fs/xattr.c:557 [inline]
__x64_sys_lsetxattr+0xbd/0x150 fs/xattr.c:557
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665e9
Code: f0 89 fe 44 31 c7 41 c1 e8 07 41 31 f8 89 f7 c1 ee 10 44 31 c6 8d 04 37 49 89 d0 48 99 48 f7 f9 89 bb 20 01 00 00 89 b3 24 01 <00> 00 48 85 d2 74 0a 48 8b 6c 24 18 48 83 c4 20 c3 4c 89 04 24 48
RSP: 002b:00007fd327861188 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9
RDX: 0000000020000280 RSI: 0000000020000240 RDI: 0000000020000200
RBP: 00000000004bfcc4 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 000000000056c038
R13: 00007fff2ec1a43f R14: 00007fd327861300 R15: 0000000000022000
INFO: task syz-executor.3:29212 blocked for more than 140 seconds.
Not tainted 4.19.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3 D27984 29212 21972 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
__rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline]
rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618
call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
__down_write arch/x86/include/asm/rwsem.h:142 [inline]
down_write+0x4f/0x90 kernel/locking/rwsem.c:72
inode_lock include/linux/fs.h:748 [inline]
lock_mount+0xcc/0x4a0 fs/namespace.c:2039
do_add_mount+0x73/0x560 fs/namespace.c:2416
do_new_mount fs/namespace.c:2483 [inline]
do_mount+0x1956/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:0x4665e9
Code: f0 89 fe 44 31 c7 41 c1 e8 07 41 31 f8 89 f7 c1 ee 10 44 31 c6 8d 04 37 49 89 d0 48 99 48 f7 f9 89 bb 20 01 00 00 89 b3 24 01 <00> 00 48 85 d2 74 0a 48 8b 6c 24 18 48 83 c4 20 c3 4c 89 04 24 48
RSP: 002b:00007fd32781f188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000056c1a8 RCX: 00000000004665e9
RDX: 0000000020000140 RSI: 00000000200002c0 RDI: 0000000000000000
RBP: 00000000004bfcc4 R08: 0000000020000300 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c1a8
R13: 00007fff2ec1a43f R14: 00007fd32781f300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
#0: 00000000c894e9f3 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7806:
#0: 00000000dbadebd1 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by rs:main Q:Reg/7807:
2 locks held by syz-executor.3/29170:
#0: 000000000ec405a7 (sb_writers#27){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
#0: 000000000ec405a7 (sb_writers#27){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
#1: 000000002249e479 (&sb->s_type->i_mutex_key#34/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline]
#1: 000000002249e479 (&sb->s_type->i_mutex_key#34/1){+.+.}, at: filename_create+0x15a/0x490 fs/namei.c:3638
1 lock held by syz-executor.3/29210:
#0: 000000002249e479 (&sb->s_type->i_mutex_key#34){++++}, at: inode_lock_shared include/linux/fs.h:758 [inline]
#0: 000000002249e479 (&sb->s_type->i_mutex_key#34){++++}, at: lookup_slow fs/namei.c:1688 [inline]
#0: 000000002249e479 (&sb->s_type->i_mutex_key#34){++++}, at: walk_component+0x798/0xda0 fs/namei.c:1811
1 lock held by syz-executor.3/29212:
#0: 000000002249e479 (&sb->s_type->i_mutex_key#34){++++}, at: inode_lock include/linux/fs.h:748 [inline]
#0: 000000002249e479 (&sb->s_type->i_mutex_key#34){++++}, at: lock_mount+0xcc/0x4a0 fs/namespace.c:2039

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.202-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: 4690 Comm: systemd-journal Not tainted 4.19.202-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__debug_check_no_obj_freed lib/debugobjects.c:777 [inline]
RIP: 0010:debug_check_no_obj_freed+0x1ce/0x490 lib/debugobjects.c:817
Code: 00 00 00 ad de 4d 89 60 08 4c 89 c7 49 89 00 e8 a8 d6 ff ff 09 c3 4d 85 f6 74 2c 4d 89 f0 4c 89 c0 48 c1 e8 03 42 80 3c 38 00 <0f> 84 23 ff ff ff 4c 89 c7 4c 89 44 24 38 e8 1f 1e 21 fe 4c 8b 44
RSP: 0018:ffff8880a13af9a8 EFLAGS: 00000046
RAX: 1ffff11011f5e4c4 RBX: 0000000000000000 RCX: ffffffff814bdd1b
RDX: 1ffffffff1a787eb RSI: 0000000000000004 RDI: ffff888097eb2590
RBP: 0000000000000001 R08: ffff88808faf2620 R09: ffffea0002b0e548
R10: ffffffff8d3c3f4b R11: 000000000000000a R12: dead000000000200
R13: ffff88809f896000 R14: ffff88808faf2620 R15: dffffc0000000000
FS: 00007f33d2e008c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f33cf9d1000 CR3: 00000000a13c9000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
free_pages_prepare mm/page_alloc.c:1056 [inline]
__free_pages_ok+0x22d/0xd30 mm/page_alloc.c:1279
slab_destroy mm/slab.c:1713 [inline]
slabs_destroy+0x90/0xd0 mm/slab.c:1729
cache_flusharray mm/slab.c:3490 [inline]
___cache_free+0x295/0x3a0 mm/slab.c:3532
qlink_free mm/kasan/quarantine.c:147 [inline]
qlist_free_all+0x79/0x140 mm/kasan/quarantine.c:166
quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259
kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538
slab_post_alloc_hook mm/slab.h:445 [inline]
slab_alloc mm/slab.c:3397 [inline]
kmem_cache_alloc+0x110/0x370 mm/slab.c:3557
getname_flags+0xce/0x590 fs/namei.c:140
getname fs/namei.c:211 [inline]
user_path_create fs/namei.c:3696 [inline]
do_mkdirat+0x8d/0x2d0 fs/namei.c:3834
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f33d20bb687
Code: 00 b8 ff ff ff ff c3 0f 1f 40 00 48 8b 05 09 d8 2b 00 64 c7 00 5f 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e1 d7 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007fffd55e6858 EFLAGS: 00000293 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fffd55e98c0 RCX: 00007f33d20bb687
RDX: 0000000000000000 RSI: 00000000000001ed RDI: 000055de7847d8a0
RBP: 00007fffd55e6890 R08: 000055de783873e5 R09: 0000000000000018
R10: 0000000000000069 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 000055de7847d8a0 R15: 00007fffd55e6ed0


---
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,
Jan 30, 2022, 11:51:13 PM1/30/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages