INFO: task hung in kmem_cache_create_usercopy

8 views
Skip to first unread message

syzbot

unread,
Dec 23, 2020, 11:45:15 AM12/23/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 13d2ce42 Linux 4.19.163
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=139c412f500000
kernel config: https://syzkaller.appspot.com/x/.config?x=fac7c3360835a4e0
dashboard link: https://syzkaller.appspot.com/bug?extid=1721fdbdbfb9bc0c1c09
compiler: gcc (GCC) 10.1.0-syz 20200507

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+1721fd...@syzkaller.appspotmail.com

sd 0:0:1:0: PR command failed: 134217730
enable_cpucache failed for 9p-fcall-cache, error 12
sd 0:0:1:0: Sense Key : Illegal Request [current]
kmem_cache_create(9p-fcall-cache) failed with error -12
sd 0:0:1:0: PR command failed: 134217730
INFO: task kworker/0:1:14 blocked for more than 140 seconds.
sd 0:0:1:0: Sense Key : Illegal Request [current]
CPU: 0 PID: 5512 Comm: syz-executor.4 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Not tainted 4.19.163-syzkaller #0
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2fe lib/dump_stack.c:118
kmem_cache_create_usercopy.cold+0x23/0xae mm/slab_common.c:518
p9_client_create+0xcb5/0x12e0 net/9p/client.c:1076
sd 0:0:1:0: Add. Sense: Invalid command operation code
v9fs_session_init+0x1dd/0x1770 fs/9p/v9fs.c:421
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/0:1 D25760 14 2 0x80000000
v9fs_mount+0x73/0x910 fs/9p/vfs_super.c:135
mount_fs+0xa3/0x30c fs/super.c:1261
Workqueue: usb_hub_wq hub_event
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
Call Trace:
context_switch kernel/sched/core.c:2828 [inline]
__schedule+0x887/0x2040 kernel/sched/core.c:3517
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:0x45e149
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f302fb2cc68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 000000000045e149
RDX: 0000000020000200 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f302fb2cca0 R08: 0000000020000140 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000001e
schedule+0x8d/0x1b0 kernel/sched/core.c:3561
R13: 00007ffe677871df R14: 00007f302fb2d9c0 R15: 000000000119bf8c
sd 0:0:1:0: Add. Sense: Invalid command operation code
usb_kill_urb.part.0+0x197/0x220 drivers/usb/core/urb.c:697
usb_kill_urb+0x7c/0x90 drivers/usb/core/urb.c:692
usb_start_wait_urb+0x252/0x4c0 drivers/usb/core/message.c:63
usb_internal_control_msg drivers/usb/core/message.c:101 [inline]
usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:152
usb_get_descriptor+0xc5/0x1b0 drivers/usb/core/message.c:654
usb_get_device_descriptor+0x81/0xf0 drivers/usb/core/message.c:926
hpfs: bad mount options.
hub_port_init+0x748/0x2fa0 drivers/usb/core/hub.c:4749
hub_port_connect drivers/usb/core/hub.c:5020 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5203 [inline]
port_event drivers/usb/core/hub.c:5311 [inline]
hub_event+0x1cf8/0x43f0 drivers/usb/core/hub.c:5391
process_one_work+0x864/0x1570 kernel/workqueue.c:2155
worker_thread+0x64c/0x1130 kernel/workqueue.c:2298
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Showing all locks held in the system:
hpfs: bad mount options.
5 locks held by kworker/0:1/14:
#0: 00000000dcf697bb ((wq_completion)"usb_hub_wq"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2126
#1: 0000000003d7ce6b ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2130
#2: 00000000c9a27628 (&dev->mutex){....}, at: device_lock include/linux/device.h:1173 [inline]
#2: 00000000c9a27628 (&dev->mutex){....}, at: hub_event+0x11b/0x43f0 drivers/usb/core/hub.c:5337
#3: 00000000f5de1660 (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:2977 [inline]
#3: 00000000f5de1660 (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5019 [inline]
#3: 00000000f5de1660 (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5203 [inline]
#3: 00000000f5de1660 (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5311 [inline]
#3: 00000000f5de1660 (&port_dev->status_lock){+.+.}, at: hub_event+0x1ce3/0x43f0 drivers/usb/core/hub.c:5391
#4: 00000000e969df89 (hcd->address0_mutex){+.+.}, at: hub_port_init+0x1b6/0x2fa0 drivers/usb/core/hub.c:4528
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
1 lock held by khungtaskd/1566:
sd 0:0:1:0: PR command failed: 134217730
sd 0:0:1:0: Sense Key : Illegal Request [current]
#0: 00000000fed859ec (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440
CPU: 1 PID: 5576 Comm: syz-executor.4 Not tainted 4.19.163-syzkaller #0
sd 0:0:1:0: Add. Sense: Invalid command operation code
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/0x2fe lib/dump_stack.c:118
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0xa/0x14 lib/fault-inject.c:149
sd 0:0:1:0: PR command failed: 134217730
__should_failslab+0x115/0x180 mm/failslab.c:32
should_failslab+0x5/0xf mm/slab_common.c:1588
slab_pre_alloc_hook mm/slab.h:424 [inline]
slab_alloc mm/slab.c:3383 [inline]
kmem_cache_alloc_trace+0x284/0x380 mm/slab.c:3623
sd 0:0:1:0: Sense Key : Illegal Request [current]
kmalloc include/linux/slab.h:515 [inline]
p9_fid_create+0x43/0x2b0 net/9p/client.c:909
p9_client_attach+0x7c/0x6c0 net/9p/client.c:1142
sd 0:0:1:0: Add. Sense: Invalid command operation code
v9fs_session_init+0xd67/0x1770 fs/9p/v9fs.c:470
2 locks held by systemd-udevd/4699:
v9fs_mount+0x73/0x910 fs/9p/vfs_super.c:135
mount_fs+0xa3/0x30c 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
#0: 0000000050b8eee2 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xfc/0x870 fs/block_dev.c:1806
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
#1: 00000000f8f341da (loop_ctl_mutex){+.+.}, at: lo_release+0x1a/0x1f0 drivers/block/loop.c:1790
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45e149
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f302fb2cc68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 000000000045e149
RDX: 0000000020000200 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f302fb2cca0 R08: 0000000020000140 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000001f
R13: 00007ffe677871df R14: 00007f302fb2d9c0 R15: 000000000119bf8c
hpfs: bad mount options.
1 lock held by in:imklog/7796:
#0: 00000000eb39497d (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
2 locks held by agetty/8048:
CPU: 1 PID: 5610 Comm: syz-executor.4 Not tainted 4.19.163-syzkaller #0
#0: 00000000bd73ac20 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
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/0x2fe lib/dump_stack.c:118
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0xa/0x14 lib/fault-inject.c:149
__should_failslab+0x115/0x180 mm/failslab.c:32
should_failslab+0x5/0xf mm/slab_common.c:1588
slab_pre_alloc_hook mm/slab.h:424 [inline]
slab_alloc_node mm/slab.c:3304 [inline]
kmem_cache_alloc_node_trace+0x244/0x3b0 mm/slab.c:3666
#1: 0000000099a14463 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
__do_kmalloc_node mm/slab.c:3688 [inline]
__kmalloc_node mm/slab.c:3696 [inline]
kmalloc_node include/linux/slab.h:557 [inline]
__alloc_alien_cache mm/slab.c:681 [inline]
alloc_alien_cache mm/slab.c:705 [inline]
setup_kmem_cache_node+0x283/0x510 mm/slab.c:926
setup_kmem_cache_nodes mm/slab.c:3837 [inline]
__do_tune_cpucache+0x161/0x210 mm/slab.c:3907
do_tune_cpucache mm/slab.c:3916 [inline]
enable_cpucache+0x50/0x130 mm/slab.c:3997
__kmem_cache_create+0x1a7/0x260 mm/slab.c:2152
create_cache+0xd1/0x1f0 mm/slab_common.c:400
kmem_cache_create_usercopy+0x1a6/0x240 mm/slab_common.c:496
1 lock held by syz-executor.0/8107:
p9_client_create+0xcb5/0x12e0 net/9p/client.c:1076
#0: 000000000fccb7db (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline]
#0: 000000000fccb7db (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667
2 locks held by syz-executor.1/8109:
v9fs_session_init+0x1dd/0x1770 fs/9p/v9fs.c:421
#0: 00000000666feee2 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
v9fs_mount+0x73/0x910 fs/9p/vfs_super.c:135
hpfs: bad mount options.
mount_fs+0xa3/0x30c 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:0x45e149
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f302fb2cc68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 000000000045e149
RDX: 0000000020000200 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f302fb2cca0 R08: 0000000020000140 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000020
R13: 00007ffe677871df R14: 00007f302fb2d9c0 R15: 000000000119bf8c
#1: 00000000fed859ec (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline]
#1: 00000000fed859ec (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857
enable_cpucache failed for 9p-fcall-cache, error 12
1 lock held by systemd-udevd/5549:
kmem_cache_create(9p-fcall-cache) failed with error -12
2 locks held by syz-executor.5/5578:
CPU: 0 PID: 5610 Comm: syz-executor.4 Not tainted 4.19.163-syzkaller #0
#0: 0000000029c571bd (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#0: 0000000029c571bd (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:578
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/0x2fe lib/dump_stack.c:118
kmem_cache_create_usercopy.cold+0x23/0xae mm/slab_common.c:518
p9_client_create+0xcb5/0x12e0 net/9p/client.c:1076
#1: 000000000fccb7db (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline]
#1: 000000000fccb7db (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x4dc/0x6f0 kernel/rcu/tree_exp.h:667
v9fs_session_init+0x1dd/0x1770 fs/9p/v9fs.c:421
3 locks held by syz-executor.4/5610:

v9fs_mount+0x73/0x910 fs/9p/vfs_super.c:135
mount_fs+0xa3/0x30c 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
NMI backtrace for cpu 1
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:0x45e149
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f302fb2cc68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 000000000045e149
RDX: 0000000020000200 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f302fb2cca0 R08: 0000000020000140 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000020
R13: 00007ffe677871df R14: 00007f302fb2d9c0 R15: 000000000119bf8c
CPU: 1 PID: 1566 Comm: khungtaskd Not tainted 4.19.163-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/0x2fe lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1a6/0x1eb 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: 8109 Comm: syz-executor.1 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_syscall_64+0x37e/0x620 arch/x86/entry/common.c:297
Code: fa 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e d4 01 00 00 83 63 08 f9 0f 1f 44 00 00 e8 49 50 64 00 0f 00 2d d2 dd 5f 07 <48> 83 c4 08 5b 5d 41 5c 41 5d e9 33 50 64 00 e8 2e 50 64 00 48 b8
RSP: 0018:ffff8880b2987f28 EFLAGS: 000000d3
RAX: ffff8880b2da23c0 RBX: ffff8880b2da23c0 RCX: ffffffff81007f86
RDX: 0000000000000000 RSI: ffffffff81007fc7 RDI: ffff8880b2da23c8
RBP: ffff8880b2987f58 R08: 0000000012cbb651 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c65b01b R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000002534940(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe67785c0c CR3: 0000000098847000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x460faa
Code: 25 18 00 00 00 00 74 01 f0 48 0f b1 3d bf a6 25 01 48 39 c2 75 da f3 c3 0f 1f 84 00 00 00 00 00 48 63 ff b8 e4 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 f3 c3 0f 1f 40 00 48 c7 c2 d4 ff ff ff f7
RSP: 002b:00007ffe2f1c2988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4
RAX: 0000000000000000 RBX: 0000000000071d55 RCX: 0000000000460faa
RDX: 0000000000000000 RSI: 00007ffe2f1c2990 RDI: 0000000000000001
RBP: 00000000000007f2 R08: 0000000000000000 R09: 0000000002534940
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000a
R13: 00007ffe2f1c29f0 R14: 00007ffe2f1c2a00 R15: 0000000000071af4


---
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,
Apr 22, 2021, 12:45:15 PM4/22/21
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