INFO: task hung in chown_common

4 views
Skip to first unread message

syzbot

unread,
Oct 19, 2021, 10:53:21 PM10/19/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1428062cb00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=64e56b82a81d19c63bfc
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+64e56b...@syzkaller.appspotmail.com

Bluetooth: hci1: command 0x0406 tx timeout
Bluetooth: hci4: command 0x0406 tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
Bluetooth: hci6: command 0x0406 tx timeout
INFO: task syz-executor.2:11319 blocked for more than 140 seconds.
Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2 D29952 11319 8143 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]
chown_common+0x2d0/0x550 fs/open.c:648
do_fchownat+0x126/0x1e0 fs/open.c:681
__do_sys_lchown fs/open.c:706 [inline]
__se_sys_lchown fs/open.c:704 [inline]
__x64_sys_lchown+0x7a/0xc0 fs/open.c:704
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0acbc0da39
Code: Bad RIP value.
RSP: 002b:00007f0ac9141188 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 00007f0acbd110e0 RCX: 00007f0acbc0da39
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000580
RBP: 00007f0acbc67c5f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdba224f7f R14: 00007f0ac9141300 R15: 0000000000022000
INFO: task syz-executor.2:11320 blocked for more than 140 seconds.
Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2 D27992 11320 8143 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:2075
do_add_mount+0x73/0x560 fs/namespace.c:2439
do_new_mount fs/namespace.c:2506 [inline]
do_mount+0x1976/0x2f50 fs/namespace.c:2822
ksys_mount+0xcf/0x130 fs/namespace.c:3038
__do_sys_mount fs/namespace.c:3052 [inline]
__se_sys_mount fs/namespace.c:3049 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3049
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0acbc0da39
Code: Bad RIP value.
RSP: 002b:00007f0ac9120188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0acbd111a0 RCX: 00007f0acbc0da39
RDX: 0000000020000200 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f0acbc67c5f R08: 0000000020000600 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdba224f7f R14: 00007f0ac9120300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
#0: 00000000c90c7607 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7812:
#0: 00000000e6cd6745 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by agetty/8035:
#0: 0000000015d590bb (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
#1: 0000000022f18403 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
2 locks held by syz-executor.2/11294:
#0: 000000007997df59 (sb_writers#23){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
#0: 000000007997df59 (sb_writers#23){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
#1: 000000004fb2403f (&sb->s_type->i_mutex_key#27){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#1: 000000004fb2403f (&sb->s_type->i_mutex_key#27){+.+.}, at: chown_common+0x2d0/0x550 fs/open.c:648
2 locks held by syz-executor.2/11319:
#0: 000000007997df59 (sb_writers#23){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
#0: 000000007997df59 (sb_writers#23){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
#1: 000000004fb2403f (&sb->s_type->i_mutex_key#27){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#1: 000000004fb2403f (&sb->s_type->i_mutex_key#27){+.+.}, at: chown_common+0x2d0/0x550 fs/open.c:648
1 lock held by syz-executor.2/11320:
#0: 000000004fb2403f (&sb->s_type->i_mutex_key#27){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#0: 000000004fb2403f (&sb->s_type->i_mutex_key#27){+.+.}, at: lock_mount+0xcc/0x4a0 fs/namespace.c:2075

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

NMI backtrace for cpu 1
CPU: 1 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 23 Comm: kworker/u4:1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:unwind_next_frame+0x1d7/0x1400 arch/x86/kernel/unwind_orc.c:422
Code: ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 8e 07 00 00 4c 89 e1 41 0f b6 46 35 48 ba 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 11 00 <0f> 85 c8 0e 00 00 4d 8b 7e 48 3c 01 49 83 df 00 4d 85 ff 0f 84 74
RSP: 0018:ffff8880b50477e0 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 1ffff11016a08f05 RCX: 1ffff11016a08f2b
RDX: dffffc0000000000 RSI: ffff8880b5047770 RDI: ffff8880b503d838
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
R10: ffff8880b504796f R11: 0000000000074071 R12: ffff8880b5047958
R13: ffff8880b5047945 R14: ffff8880b5047910 R15: ffff8880a3b85df0
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c49087000 CR3: 00000000a121b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
__kasan_slab_free+0x126/0x1f0 mm/kasan/kasan.c:521
__cache_free mm/slab.c:3503 [inline]
kfree+0xcc/0x210 mm/slab.c:3822
skb_free_head net/core/skbuff.c:563 [inline]
skb_release_data+0x6de/0x920 net/core/skbuff.c:583
skb_release_all net/core/skbuff.c:640 [inline]
__kfree_skb net/core/skbuff.c:654 [inline]
consume_skb+0x113/0x3d0 net/core/skbuff.c:714
batadv_forw_packet_free+0x165/0x1c0 net/batman-adv/send.c:487
batadv_iv_send_outstanding_bat_ogm_packet+0x2bd/0x7a0 net/batman-adv/bat_iv_ogm.c:1877
process_one_work+0x864/0x1570 kernel/workqueue.c:2153
worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 83 e2 07 and $0x7,%edx
3: 38 d0 cmp %dl,%al
5: 7f 08 jg 0xf
7: 84 c0 test %al,%al
9: 0f 85 8e 07 00 00 jne 0x79d
f: 4c 89 e1 mov %r12,%rcx
12: 41 0f b6 46 35 movzbl 0x35(%r14),%eax
17: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
1e: fc ff df
21: 48 c1 e9 03 shr $0x3,%rcx
25: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1)
* 29: 0f 85 c8 0e 00 00 jne 0xef7 <-- trapping instruction
2f: 4d 8b 7e 48 mov 0x48(%r14),%r15
33: 3c 01 cmp $0x1,%al
35: 49 83 df 00 sbb $0x0,%r15
39: 4d 85 ff test %r15,%r15
3c: 0f .byte 0xf
3d: 84 .byte 0x84
3e: 74 .byte 0x74


---
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,
Mar 26, 2022, 5:13:12 PM3/26/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