possible deadlock in do_io_accounting

65 views
Skip to first unread message

syzbot

unread,
Dec 4, 2017, 1:41:05ā€ÆPM12/4/17
to adob...@gmail.com, akinob...@gmail.com, ak...@linux-foundation.org, dvy...@google.com, ebie...@xmission.com, jpoi...@redhat.com, linux-...@vger.kernel.org, mi...@kernel.org, syzkall...@googlegroups.com, vegard...@oracle.com
Hello,

syzkaller hit the following crash on
ae64f9bd1d3621b5e60d7363bc20afb46aede215
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master
compiler: gcc (GCC) 7.1.1 20170620
.config is attached
Raw console output is attached.

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



======================================================
WARNING: possible circular locking dependency detected
4.15.0-rc2+ #116 Not tainted
------------------------------------------------------
syz-executor6/5465 is trying to acquire lock:
(&sig->cred_guard_mutex){+.+.}, at: [<000000007f6ef1cd>]
do_io_accounting+0x1c2/0xf50 fs/proc/base.c:2682

but task is already holding lock:
(&p->lock){+.+.}, at: [<000000002400bc4b>] seq_read+0xd5/0x13d0
fs/seq_file.c:165

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&p->lock){+.+.}:
lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893
mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908
seq_read+0xd5/0x13d0 fs/seq_file.c:165
do_loop_readv_writev fs/read_write.c:673 [inline]
do_iter_read+0x3db/0x5b0 fs/read_write.c:897
vfs_readv+0x121/0x1c0 fs/read_write.c:959
kernel_readv fs/splice.c:361 [inline]
default_file_splice_read+0x508/0xae0 fs/splice.c:416
do_splice_to+0x110/0x170 fs/splice.c:880
do_splice fs/splice.c:1173 [inline]
SYSC_splice fs/splice.c:1402 [inline]
SyS_splice+0x11a8/0x1630 fs/splice.c:1382
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125

-> #1 (&pipe->mutex/1){+.+.}:
lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893
mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908
__pipe_lock fs/pipe.c:88 [inline]
fifo_open+0x15c/0xa40 fs/pipe.c:916
do_dentry_open+0x682/0xd70 fs/open.c:752
vfs_open+0x107/0x230 fs/open.c:866
do_last fs/namei.c:3379 [inline]
path_openat+0x1157/0x3530 fs/namei.c:3519
do_filp_open+0x25b/0x3b0 fs/namei.c:3554
do_open_execat+0x1b9/0x5c0 fs/exec.c:849
do_execveat_common.isra.30+0x90c/0x23c0 fs/exec.c:1741
compat_do_execve fs/exec.c:1875 [inline]
C_SYSC_execve fs/exec.c:1950 [inline]
compat_SyS_execve+0x3f/0x50 fs/exec.c:1946
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125

-> #0 (&sig->cred_guard_mutex){+.+.}:
check_prevs_add kernel/locking/lockdep.c:2031 [inline]
validate_chain kernel/locking/lockdep.c:2473 [inline]
__lock_acquire+0x3498/0x47f0 kernel/locking/lockdep.c:3500
lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893
mutex_lock_killable_nested+0x16/0x20 kernel/locking/mutex.c:923
do_io_accounting+0x1c2/0xf50 fs/proc/base.c:2682
proc_tgid_io_accounting+0x22/0x30 fs/proc/base.c:2731
proc_single_show+0xf8/0x170 fs/proc/base.c:744
seq_read+0x385/0x13d0 fs/seq_file.c:234
__vfs_read+0xef/0xa00 fs/read_write.c:411
vfs_read+0x124/0x360 fs/read_write.c:447
SYSC_read fs/read_write.c:573 [inline]
SyS_read+0xef/0x220 fs/read_write.c:566
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125

other info that might help us debug this:

Chain exists of:
&sig->cred_guard_mutex --> &pipe->mutex/1 --> &p->lock

Possible unsafe locking scenario:

CPU0 CPU1
---- ----
lock(&p->lock);
lock(&pipe->mutex/1);
lock(&p->lock);
lock(&sig->cred_guard_mutex);

*** DEADLOCK ***

2 locks held by syz-executor6/5465:
#0: (&f->f_pos_lock){+.+.}, at: [<0000000067021c20>]
__fdget_pos+0x131/0x1a0 fs/file.c:770
#1: (&p->lock){+.+.}, at: [<000000002400bc4b>] seq_read+0xd5/0x13d0
fs/seq_file.c:165

stack backtrace:
CPU: 0 PID: 5465 Comm: syz-executor6 Not tainted 4.15.0-rc2+ #116
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
print_circular_bug+0x42d/0x610 kernel/locking/lockdep.c:1271
check_prev_add+0x666/0x15f0 kernel/locking/lockdep.c:1914
check_prevs_add kernel/locking/lockdep.c:2031 [inline]
validate_chain kernel/locking/lockdep.c:2473 [inline]
__lock_acquire+0x3498/0x47f0 kernel/locking/lockdep.c:3500
lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004
__mutex_lock_common kernel/locking/mutex.c:756 [inline]
__mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893
mutex_lock_killable_nested+0x16/0x20 kernel/locking/mutex.c:923
do_io_accounting+0x1c2/0xf50 fs/proc/base.c:2682
proc_tgid_io_accounting+0x22/0x30 fs/proc/base.c:2731
proc_single_show+0xf8/0x170 fs/proc/base.c:744
seq_read+0x385/0x13d0 fs/seq_file.c:234
__vfs_read+0xef/0xa00 fs/read_write.c:411
vfs_read+0x124/0x360 fs/read_write.c:447
SYSC_read fs/read_write.c:573 [inline]
SyS_read+0xef/0x220 fs/read_write.c:566
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125
RIP: 0023:0xf7f30c79
RSP: 002b:00000000f76ea08c EFLAGS: 00000296 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000015 RCX: 0000000020cb6000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5500:5502 ioctl 40046207 0 returned -16
device eql entered promiscuous mode
device lo entered promiscuous mode
binder: 5607:5611 got reply transaction with no transaction stack
binder: 5607:5611 transaction failed 29201/-71, size 2-1144397507205 line
2670
binder: 5626:5628 Acquire 1 refcount change on invalid ref 0 ret -22
binder: 5626:5628 BC_REQUEST_DEATH_NOTIFICATION invalid ref 0
encrypted_key: insufficient parameters specified
binder: 5607:5635 BC_CLEAR_DEATH_NOTIFICATION invalid ref 2
binder: 5607:5635 BC_FREE_BUFFER u0000000020000000 matched unreturned buffer
binder: 5607:5635 got reply transaction with bad transaction stack,
transaction 44 has target 5607:0
binder: 5607:5635 transaction failed 29201/-71, size 0-8 line 2685
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5626:5637 ioctl 40046207 0 returned -16
encrypted_key: insufficient parameters specified
binder: 5607:5635 got reply transaction with no transaction stack
binder: 5607:5635 transaction failed 29201/-71, size 2-1144397507205 line
2670
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5607:5635 ioctl 40046207 0 returned -16
binder_alloc: 5607: binder_alloc_buf, no vma
binder: 5607:5641 transaction failed 29189/-3, size 0-0 line 2870
binder: undelivered TRANSACTION_ERROR: 29189
binder: release 5607:5635 transaction 44 out, still active
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_ERROR: 29201
binder: send failed reply for transaction 44, target dead
device gre0 entered promiscuous mode
device gre0 left promiscuous mode
device gre0 entered promiscuous mode
nla_parse: 16 callbacks suppressed
netlink: 3 bytes leftover after parsing attributes in process
`syz-executor3'.
netlink: 3 bytes leftover after parsing attributes in process
`syz-executor3'.
netlink: 3 bytes leftover after parsing attributes in process
`syz-executor3'.
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5875:5877 ioctl 40046207 0 returned -16
binder_alloc: 5875: binder_alloc_buf, no vma
binder: 5875:5880 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 50
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5910:5912 ioctl 40046207 0 returned -16
binder_alloc: 5910: binder_alloc_buf, no vma
binder: 5910:5923 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 56
binder: BINDER_SET_CONTEXT_MGR already set
binder_alloc: 5934: binder_alloc_buf, no vma
binder: 5934:5936 ioctl 40046207 0 returned -16
binder: 5934:5941 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 62
binder_alloc: binder_alloc_mmap_handler: 5973 20000000-20002000 already
mapped failed -16
binder_alloc: 5973: binder_alloc_buf, no vma
binder: 5973:5981 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
binder: 5973:5998 ioctl 40046207 0 returned -16
binder: undelivered transaction 68
binder_alloc: 6007: binder_alloc_buf, no vma
binder: 6007:6008 transaction failed 29189/-3, size 64-16 line 2870
binder_alloc: 6007: binder_alloc_buf, no vma
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6007:6008 ioctl 40046207 0 returned -16
binder: 6007:6021 transaction failed 29189/-3, size 64-16 line 2870
binder_alloc: binder_alloc_mmap_handler: 6046 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6046:6048 ioctl 40046207 0 returned -16
binder_alloc: 6046: binder_alloc_buf, no vma
binder: 6046:6048 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 77
binder_alloc: binder_alloc_mmap_handler: 6095 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6095:6098 ioctl 40046207 0 returned -16
binder_alloc: 6095: binder_alloc_buf, no vma
binder: 6095:6101 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 83
binder_alloc: binder_alloc_mmap_handler: 6128 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6118:6136 ioctl 40046207 0 returned -16
binder: undelivered transaction 89
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6128:6134 ioctl 40046207 0 returned -16
binder_alloc: 6128: binder_alloc_buf, no vma
binder: 6128:6134 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6149:6152 ioctl 40046207 0 returned -16
binder_alloc: 6149: binder_alloc_buf, no vma
binder: 6149:6165 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 94
binder: undelivered transaction 100
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6174:6175 ioctl 40046207 0 returned -16
binder_alloc: 6174: binder_alloc_buf, no vma
binder: 6174:6188 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 106
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=5
sclass=netlink_route_socket pig=6203 comm=syz-executor1
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=5
sclass=netlink_route_socket pig=6203 comm=syz-executor1
binder_alloc: binder_alloc_mmap_handler: 6208 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6208:6214 ioctl 40046207 0 returned -16
binder_alloc: 6208: binder_alloc_buf, no vma
binder: 6208:6218 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 112
binder_alloc: binder_alloc_mmap_handler: 6234 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6234:6236 ioctl 40046207 0 returned -16
binder_alloc: 6234: binder_alloc_buf, no vma
binder: 6234:6238 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 118
binder_alloc: binder_alloc_mmap_handler: 6246 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6246:6247 ioctl 40046207 0 returned -16
binder_alloc: 6246: binder_alloc_buf, no vma
binder: 6246:6249 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 124
binder_alloc: binder_alloc_mmap_handler: 6259 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6259:6260 ioctl 40046207 0 returned -16
binder_alloc: 6259: binder_alloc_buf, no vma
binder: 6259:6265 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 130
binder_alloc: binder_alloc_mmap_handler: 6270 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6270:6275 ioctl 40046207 0 returned -16
binder_alloc: 6270: binder_alloc_buf, no vma
binder: 6270:6283 transaction failed 29189/-3, size 64-16 line 2870
binder_alloc: binder_alloc_mmap_handler: 6289 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6289:6290 ioctl 40046207 0 returned -16
binder_alloc: 6289: binder_alloc_buf, no vma
binder: 6289:6290 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6297:6299 ioctl 40046207 0 returned -16
binder_alloc: 6270: binder_alloc_buf, no vma
binder: 6297:6299 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6297:6299 ioctl 40046207 0 returned -16
binder_alloc: 6289: binder_alloc_buf, no vma
binder: 6301:6304 transaction failed 29189/-3, size 64-16 line 2870
binder_alloc: 6270: binder_alloc_buf, no vma
binder: 6297:6305 transaction failed 29189/-3, size 64-16 line 2870
binder_alloc: binder_alloc_mmap_handler: 6301 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6317:6318 ioctl 40046207 0 returned -16
binder_alloc: 6270: binder_alloc_buf, no vma
binder: 6317:6318 transaction failed 29189/-3, size 64-16 line 2870
binder_alloc: binder_alloc_mmap_handler: 6317 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6320:6325 ioctl 40046207 0 returned -16
binder_alloc: 6289: binder_alloc_buf, no vma
binder: 6320:6325 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6317:6318 ioctl 40046207 0 returned -16
binder_alloc: 6270: binder_alloc_buf, no vma
binder: 6317:6319 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6320:6329 ioctl 40046207 0 returned -16
binder: undelivered transaction 136
binder: undelivered transaction 142
binder: 6351:6355 got transaction with invalid data ptr
binder: 6351:6355 transaction failed 29201/-14, size 64-16 line 2889
binder: BINDER_SET_CONTEXT_MGR already set
binder_alloc: binder_alloc_mmap_handler: 6351 20000000-20002000 already
mapped failed -16
QAT: Invalid ioctl
binder: 6351:6363 ioctl 40046207 0 returned -16
binder: 6379:6382 got transaction with invalid data ptr
QAT: Invalid ioctl
binder: 6379:6382 transaction failed 29201/-14, size 64-16 line 2889
binder_alloc: binder_alloc_mmap_handler: 6379 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6379:6400 ioctl 40046207 0 returned -16
binder: BINDER_SET_CONTEXT_MGR already set
binder_alloc: binder_alloc_mmap_handler: 6404 20000000-20002000 already
mapped failed -16
binder: 6413:6416 got transaction with invalid data ptr
binder: 6413:6416 transaction failed 29201/-14, size 64-16 line 2889
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6413:6421 ioctl 40046207 0 returned -16
binder_alloc: binder_alloc_mmap_handler: 6413 20000000-20002000 already
mapped failed -16
QAT: Invalid ioctl
binder: 6404:6409 ioctl 40046207 0 returned -16
QAT: Invalid ioctl
binder: undelivered transaction 159
QAT: Invalid ioctl
binder_alloc: binder_alloc_mmap_handler: 6449 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6449:6455 ioctl 40046207 0 returned -16
binder_alloc: 6449: binder_alloc_buf, no vma
binder: 6449:6458 transaction failed 29189/-3, size 64-16 line 2870
QAT: Invalid ioctl
binder: undelivered transaction 166
QAT: Invalid ioctl
binder: BINDER_SET_CONTEXT_MGR already set
QAT: Invalid ioctl
QAT: Invalid ioctl
QAT: Invalid ioctl
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6486:6493 ioctl 40046207 0 returned -16
binder_alloc: 6486: binder_alloc_buf, no vma
binder: 6486:6493 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 177
binder: 6487:6491 ioctl 40046207 0 returned -16
QAT: Invalid ioctl
binder: undelivered transaction 172
binder: 6522:6523 ioctl 40286608 37ca returned -22
binder: 6522:6523 ioctl 40046205 3 returned -22
binder: 6522:6523 ioctl c0306201 2000afd0 returned -14
binder: 6522:6523 got reply transaction with bad transaction stack,
transaction 183 has target 6522:0
binder: 6522:6523 transaction failed 29201/-71, size 32-8 line 2685
binder: 6522:6523 ioctl 40046205 1000 returned -22
binder: 6522:6523 DecRefs 0 refcount change on invalid ref 1 ret -22
binder: 6522:6523 BC_INCREFS_DONE node 182 has no pending increfs request
binder_alloc: binder_alloc_mmap_handler: 6531 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6531:6532 ioctl 40046207 0 returned -16
binder_alloc: 6531: binder_alloc_buf, no vma
binder: 6531:6536 transaction failed 29189/-3, size 64-16 line 2870
binder: undelivered transaction 186
binder: release 6522:6523 transaction 183 out, still active
binder: send failed reply for transaction 183, target dead
binder: 6522:6523 ioctl 40286608 37ca returned -22
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6547:6564 ioctl 40046207 0 returned -16
binder: undelivered transaction 192
binder: 6522:6523 ioctl 40046205 3 returned -22
binder: 6522:6542 got reply transaction with no transaction stack
binder: 6522:6542 transaction failed 29201/-71, size 32-8 line 2670
QAT: Invalid ioctl
binder: 6522:6545 ioctl 40046205 1000 returned -22
binder: release 6522:6523 transaction 197 out, still active
binder: undelivered TRANSACTION_COMPLETE
binder: undelivered TRANSACTION_ERROR: 29201
binder: send failed reply for transaction 197, target dead
binder: 6579:6582 ioctl 40286608 37ca returned -22
binder: 6579:6582 ioctl 40046205 3 returned -22
QAT: Invalid ioctl
binder: 6579:6582 ioctl c0306201 2000afd0 returned -14
QAT: Invalid ioctl
binder: 6579:6582 got reply transaction with bad transaction stack,
transaction 200 has target 6579:0
binder: 6579:6582 transaction failed 29201/-71, size 32-8 line 2685
binder: 6579:6582 ioctl 40046205 1000 returned -22
binder: 6579:6582 DecRefs 0 refcount change on invalid ref 1 ret -22
binder: 6579:6582 BC_INCREFS_DONE node 199 has no pending increfs request
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6614:6620 ioctl 40046207 0 returned -16
binder: undelivered transaction 204
binder: 6624:6626 ioctl c0306201 20008000 returned -14
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6624:6627 ioctl 40046207 0 returned -16
binder: 6631:6634 ioctl c0306201 20008000 returned -14
binder: 6579:6610 ioctl 40286608 37ca returned -22
QAT: Invalid ioctl
binder: 6579:6610 ioctl 40046205 3 returned -22
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6579:6610 ioctl 40046207 0 returned -16
binder: release 6579:6582 transaction 200 out, still active
binder: send failed reply for transaction 200, target dead
binder: 6579:6635 ioctl c0306201 2000afd0 returned -14
binder: 6579:6582 transaction failed 29189/-22, size 0-0 line 2755
binder: 6579:6610 got reply transaction with no transaction stack
binder: 6579:6610 transaction failed 29201/-71, size 32-8 line 2670
binder: 6579:6610 ioctl 40046205 1000 returned -22
binder: undelivered TRANSACTION_ERROR: 29189
binder: undelivered TRANSACTION_ERROR: 29201
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6631:6651 ioctl 40046207 0 returned -16
QAT: Invalid ioctl
netlink: 1 bytes leftover after parsing attributes in process
`syz-executor7'.
QAT: Invalid ioctl
QAT: Invalid ioctl
binder_alloc: 6707: binder_alloc_buf, no vma
binder: 6707:6708 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
QAT: Invalid ioctl
binder: 6707:6728 ioctl 40046207 0 returned -16
binder_alloc: 6742: binder_alloc_buf, no vma
binder: 6742:6743 transaction failed 29189/-3, size 64-16 line 2870
binder: BINDER_SET_CONTEXT_MGR already set
QAT: Invalid ioctl
binder: 6742:6753 ioctl 40046207 0 returned -16
binder: 6766:6767 transaction failed 29189/-22, size 64-16 line 2755
binder_alloc: binder_alloc_mmap_handler: 6766 20000000-20002000 already
mapped failed -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6791:6794 ioctl 40046207 0 returned -16
QAT: Invalid ioctl
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=513
sclass=netlink_route_socket pig=6812 comm=syz-executor5
QAT: Invalid ioctl
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=513
sclass=netlink_route_socket pig=6824 comm=syz-executor5
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6805:6822 ioctl 40046207 0 returned -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6829:6832 ioctl 40046207 0 returned -16
binder: release 6829:6830 transaction 220 out, still active
binder: send failed reply for transaction 220, target dead
QAT: Invalid ioctl
binder: 6845:6858 got transaction with invalid offset (40, min 24 max 24)
or object.
binder: 6845:6858 transaction failed 29201/-22, size 24-16 line 2933
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6845:6863 ioctl 40046207 0 returned -16
binder: 6869:6872 got transaction with invalid offset (0, min 0 max 0) or
object.
binder: 6869:6872 transaction failed 29201/-22, size 0-16 line 2933
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6869:6874 ioctl 40046207 0 returned -16
binder: 6880:6883 got transaction with invalid offset (0, min 0 max 24) or
object.
binder: 6880:6883 transaction failed 29201/-22, size 24-16 line 2933
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6880:6886 ioctl 40046207 0 returned -16
QAT: Invalid ioctl
binder: 6904:6910 got transaction with invalid offset (40, min 24 max 24)
or object.
QAT: Invalid ioctl
binder: 6904:6910 transaction failed 29201/-22, size 24-16 line 2933
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6904:6926 ioctl 40046207 0 returned -16
QAT: Invalid ioctl
binder: 6943:6945 got transaction with invalid offset (40, min 0 max 24) or
object.
binder: 6943:6945 transaction failed 29201/-22, size 24-8 line 2933
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6943:6956 ioctl 40046207 0 returned -16
binder: 6960:6973 got transaction with invalid offset (40, min 24 max 24)
or object.
QAT: Invalid ioctl
binder: 6960:6973 transaction failed 29201/-22, size 24-16 line 2933
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6962:6976 ioctl 40046207 0 returned -16
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6960:6973 ioctl 40046207 0 returned -16
binder_alloc: 6960: binder_alloc_buf, no vma
binder: 6960:6973 transaction failed 29189/-3, size 24-16 line 2870
QAT: Invalid ioctl
binder: release 6962:6969 transaction 237 out, still active
binder: send failed reply for transaction 237, target dead
binder: BINDER_SET_CONTEXT_MGR already set
binder: 6999:7003 ioctl 40046207 0 returned -16
QAT: Invalid ioctl
binder: release 6999:7001 transaction 244 out, still active
binder: undelivered TRANSACTION_COMPLETE
binder: send failed reply for transaction 244, target dead
QAT: Invalid ioctl
QAT: Invalid ioctl
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 1 PID: 7033 Comm: syz-executor5 Not tainted 4.15.0-rc2+ #116
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail+0x8c0/0xa40 lib/fault-inject.c:149
should_failslab+0xec/0x120 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3371 [inline]
kmem_cache_alloc_trace+0x4b/0x750 mm/slab.c:3611
kmalloc include/linux/slab.h:499 [inline]
kzalloc include/linux/slab.h:688 [inline]
binder_transaction+0x13ee/0x8250 drivers/android/binder.c:2807
binder_thread_write+0xb06/0x3800 drivers/android/binder.c:3426
binder_ioctl_write_read.isra.41+0x261/0xcb0 drivers/android/binder.c:4327
binder_ioctl+0xb75/0x141a drivers/android/binder.c:4467
C_SYSC_ioctl fs/compat_ioctl.c:1473 [inline]
compat_SyS_ioctl+0x151/0x2a30 fs/compat_ioctl.c:1419
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125
RIP: 0023:0xf7f9fc79
RSP: 002b:00000000f779b08c EFLAGS: 00000296 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 00000000c0306201
RDX: 0000000020008000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
binder: 7031:7033 transaction failed 29201/-12, size 24-8 line 2811
binder: undelivered TRANSACTION_ERROR: 29201
binder: BINDER_SET_CONTEXT_MGR already set
binder: 7034:7041 ioctl 40046207 0 returned -16
binder: release 7034:7039 transaction 247 out, still active
binder: send failed reply for transaction 247, target dead
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 7047 Comm: syz-executor5 Not tainted 4.15.0-rc2+ #116
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail+0x8c0/0xa40 lib/fault-inject.c:149
should_failslab+0xec/0x120 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3371 [inline]
kmem_cache_alloc_trace+0x4b/0x750 mm/slab.c:3611
kmalloc include/linux/slab.h:499 [inline]
kzalloc include/linux/slab.h:688 [inline]
binder_transaction+0x1460/0x8250 drivers/android/binder.c:2817
binder_thread_write+0xb06/0x3800 drivers/android/binder.c:3426
binder_ioctl_write_read.isra.41+0x261/0xcb0 drivers/android/binder.c:4327
binder_ioctl+0xb75/0x141a drivers/android/binder.c:4467
C_SYSC_ioctl fs/compat_ioctl.c:1473 [inline]
compat_SyS_ioctl+0x151/0x2a30 fs/compat_ioctl.c:1419
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125
RIP: 0023:0xf7f9fc79
RSP: 002b:00000000f779b08c EFLAGS: 00000296 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 00000000c0306201
RDX: 0000000020008000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
binder: 7043:7047 transaction failed 29201/-12, size 24-8 line 2821
binder: undelivered TRANSACTION_ERROR: 29201
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 7049 Comm: syz-executor3 Not tainted 4.15.0-rc2+ #116
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail+0x8c0/0xa40 lib/fault-inject.c:149
should_failslab+0xec/0x120 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc_node mm/slab.c:3292 [inline]
kmem_cache_alloc_node+0x56/0x760 mm/slab.c:3635
__alloc_skb+0xf1/0x780 net/core/skbuff.c:193
alloc_skb include/linux/skbuff.h:983 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1144 [inline]
netlink_sendmsg+0xa86/0xe70 net/netlink/af_netlink.c:1836
sock_sendmsg_nosec net/socket.c:632 [inline]
sock_sendmsg+0xca/0x110 net/socket.c:642
sock_write_iter+0x320/0x5e0 net/socket.c:911
call_write_iter include/linux/fs.h:1772 [inline]
new_sync_write fs/read_write.c:469 [inline]
__vfs_write+0x68a/0x970 fs/read_write.c:482
vfs_write+0x18f/0x510 fs/read_write.c:544
SYSC_write fs/read_write.c:589 [inline]
SyS_write+0xef/0x220 fs/read_write.c:581
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125
RIP: 0023:0xf7f73c79
RSP: 002b:00000000f776f08c EFLAGS: 00000296 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020f57fe1
RDX: 000000000000001f RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 7061 Comm: syz-executor5 Not tainted 4.15.0-rc2+ #116
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail+0x8c0/0xa40 lib/fault-inject.c:149
should_failslab+0xec/0x120 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3371 [inline]
kmem_cache_alloc_trace+0x4b/0x750 mm/slab.c:3611
kmalloc include/linux/slab.h:499 [inline]
kzalloc include/linux/slab.h:688 [inline]
binder_alloc_new_buf_locked+0x5ce/0x1700 drivers/android/binder_alloc.c:447
binder_alloc_new_buf+0x43/0x60 drivers/android/binder_alloc.c:509
binder_transaction+0x1a6e/0x8250 drivers/android/binder.c:2860
binder_thread_write+0xb06/0x3800 drivers/android/binder.c:3426
binder_ioctl_write_read.isra.41+0x261/0xcb0 drivers/android/binder.c:4327
binder_ioctl+0xb75/0x141a drivers/android/binder.c:4467
C_SYSC_ioctl fs/compat_ioctl.c:1473 [inline]
compat_SyS_ioctl+0x151/0x2a30 fs/compat_ioctl.c:1419
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125
RIP: 0023:0xf7f9fc79
RSP: 002b:00000000f779b08c EFLAGS: 00000296 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 00000000c0306201
RDX: 0000000020008000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
binder_alloc: binder_alloc_new_buf_locked: 7055 failed to alloc new buffer
struct
binder: 7055:7061 transaction failed 29201/-12, size 24-8 line 2870
binder: undelivered TRANSACTION_ERROR: 29201
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 7066 Comm: syz-executor3 Not tainted 4.15.0-rc2+ #116
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail+0x8c0/0xa40 lib/fault-inject.c:149
should_failslab+0xec/0x120 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc_node mm/slab.c:3292 [inline]
kmem_cache_alloc_node_trace+0x5a/0x760 mm/slab.c:3654
__do_kmalloc_node mm/slab.c:3674 [inline]
__kmalloc_node_track_caller+0x33/0x70 mm/slab.c:3689
__kmalloc_reserve.isra.41+0x41/0xd0 net/core/skbuff.c:137
__alloc_skb+0x13b/0x780 net/core/skbuff.c:205
alloc_skb include/linux/skbuff.h:983 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1144 [inline]
netlink_sendmsg+0xa86/0xe70 net/netlink/af_netlink.c:1836
sock_sendmsg_nosec net/socket.c:632 [inline]
sock_sendmsg+0xca/0x110 net/socket.c:642
sock_write_iter+0x320/0x5e0 net/socket.c:911
call_write_iter include/linux/fs.h:1772 [inline]
new_sync_write fs/read_write.c:469 [inline]
__vfs_write+0x68a/0x970 fs/read_write.c:482
vfs_write+0x18f/0x510 fs/read_write.c:544
SYSC_write fs/read_write.c:589 [inline]
SyS_write+0xef/0x220 fs/read_write.c:581
do_syscall_32_irqs_on arch/x86/entry/common.c:327 [inline]
do_fast_syscall_32+0x3ee/0xf9d arch/x86/entry/common.c:389
entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:125
RIP: 0023:0xf7f73c79
RSP: 002b:00000000f776f08c EFLAGS: 00000296 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020f57fe1
RDX: 000000000000001f RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 7069 Comm: syz-executor5 Not tainted 4.15.0-rc2+ #116
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x194/0x257 lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail+0x8c0/0xa40 lib/fault-inject.c:149
should_failslab+0xec/0x120 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc mm/slab.c:3371 [inline]
kmem_cache_alloc_trace+0x4b/0x750 mm/slab.c:3611
kmalloc include/linux/slab.h:499 [inline]
kzalloc include/linux/slab.h:688 [inline]
binder_inc_ref_for_node+0x15d/0xbc0 drivers/android/binder.c:1756
binder_translate_binder drivers/android/binder.c:2261 [inline]
binder_transaction+0x6617/0x8250 drivers/android/binder.c:2945


---
This bug is generated by a dumb bot. It may contain errors.
See https://goo.gl/tpsmEJ for details.
Direct all questions to syzk...@googlegroups.com.
Please credit me with: Reported-by: syzbot <syzk...@googlegroups.com>

syzbot will keep track of this bug report.
Once a fix for this bug is committed, please reply to this email with:
#syz fix: exact-commit-title
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug
report.
Note: all commands must start from beginning of the line in the email body.
config.txt
raw.log

Eric Biggers

unread,
Dec 12, 2017, 4:27:16ā€ÆPM12/12/17
to syzbot, adob...@gmail.com, akinob...@gmail.com, ak...@linux-foundation.org, dvy...@google.com, ebie...@xmission.com, jpoi...@redhat.com, linux-...@vger.kernel.org, mi...@kernel.org, syzkall...@googlegroups.com, vegard...@oracle.com
On Mon, Dec 04, 2017 at 10:41:01AM -0800, syzbot wrote:
> syzbot will keep track of this bug report.
> Once a fix for this bug is committed, please reply to this email with:
> #syz fix: exact-commit-title
> To mark this as a duplicate of another syzbot report, please reply with:
> #syz dup: exact-subject-of-another-report
> If it's a one-off invalid bug report, please reply with:
> #syz invalid
> Note: if the crash happens again, it will cause creation of a new
> bug report.
> Note: all commands must start from beginning of the line in the email body.

#syz dup: possible deadlock in seq_read
Reply all
Reply to author
Forward
0 new messages