possible deadlock in fifo_open

18 views
Skip to first unread message

syzbot

unread,
Dec 1, 2017, 7:53:05 AM12/1/17
to linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com, vi...@zeniv.linux.org.uk
Hello,

syzkaller hit the following crash on
4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
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.


nla_parse: 9 callbacks suppressed
netlink: 2 bytes leftover after parsing attributes in process
`syz-executor4'.

======================================================
WARNING: possible circular locking dependency detected
4.15.0-rc1+ #197 Not tainted
------------------------------------------------------
syz-executor1/13240 is trying to acquire lock:
(&pipe->mutex/1){+.+.}, at: [<ffffffff81b074ac>] __pipe_lock fs/pipe.c:88
[inline]
(&pipe->mutex/1){+.+.}, at: [<ffffffff81b074ac>] fifo_open+0x15c/0xa40
fs/pipe.c:916

but task is already holding lock:
(&sig->cred_guard_mutex){+.+.}, at: [<ffffffff81b00a03>]
prepare_bprm_creds+0x53/0x110 fs/exec.c:1385

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&sig->cred_guard_mutex){+.+.}:
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
lock_trace+0x44/0xc0 fs/proc/base.c:405
proc_pid_syscall+0xa3/0x550 fs/proc/base.c:623
proc_single_show+0xf8/0x170 fs/proc/base.c:745
seq_read+0x385/0x13d0 fs/seq_file.c:234
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
do_preadv+0x11b/0x1a0 fs/read_write.c:1043
SYSC_preadv fs/read_write.c:1093 [inline]
SyS_preadv+0x30/0x40 fs/read_write.c:1088
entry_SYSCALL_64_fastpath+0x1f/0x96

-> #1 (&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
proc_reg_read+0xef/0x170 fs/proc/inode.c:217
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
entry_SYSCALL_64_fastpath+0x1f/0x96

-> #0 (&pipe->mutex/1){+.+.}:
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_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:3388 [inline]
path_openat+0x1157/0x3530 fs/namei.c:3528
do_filp_open+0x25b/0x3b0 fs/namei.c:3563
do_open_execat+0x1b9/0x5c0 fs/exec.c:849
do_execveat_common.isra.30+0x90c/0x23c0 fs/exec.c:1736
do_execve fs/exec.c:1843 [inline]
SYSC_execve fs/exec.c:1924 [inline]
SyS_execve+0x39/0x50 fs/exec.c:1919
do_syscall_64+0x26c/0x920 arch/x86/entry/common.c:285
return_from_SYSCALL_64+0x0/0x75

other info that might help us debug this:

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

Possible unsafe locking scenario:

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

*** DEADLOCK ***

1 lock held by syz-executor1/13240:
#0: (&sig->cred_guard_mutex){+.+.}, at: [<ffffffff81b00a03>]
prepare_bprm_creds+0x53/0x110 fs/exec.c:1385

stack backtrace:
CPU: 0 PID: 13240 Comm: syz-executor1 Not tainted 4.15.0-rc1+ #197
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_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:3388 [inline]
path_openat+0x1157/0x3530 fs/namei.c:3528
do_filp_open+0x25b/0x3b0 fs/namei.c:3563
do_open_execat+0x1b9/0x5c0 fs/exec.c:849
do_execveat_common.isra.30+0x90c/0x23c0 fs/exec.c:1736
do_execve fs/exec.c:1843 [inline]
SYSC_execve fs/exec.c:1924 [inline]
SyS_execve+0x39/0x50 fs/exec.c:1919
do_syscall_64+0x26c/0x920 arch/x86/entry/common.c:285
entry_SYSCALL64_slow_path+0x25/0x25
RIP: 0033:0x4529d9
RSP: 002b:00007fae0ce56c58 EFLAGS: 00000212 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 00000000206fcff0 RSI: 0000000020a7bfc8 RDI: 0000000020f8aff8
RBP: 0000000000000066 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006eda30
R13: 00000000ffffffff R14: 00007fae0ce576d4 R15: 0000000000000000
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13235 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13235 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13245 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13245 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13266 comm=syz-executor5
netlink: 9 bytes leftover after parsing attributes in process
`syz-executor4'.
A link change request failed with some changes committed already. Interface
lo may have been left with an inconsistent configuration, please check.
netlink: 2 bytes leftover after parsing attributes in process
`syz-executor4'.
sctp: [Deprecated]: syz-executor2 (pid 13329) Use of int in max_burst
socket option.
Use struct sctp_assoc_value instead
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13334 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13334 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13334 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=13334 comm=syz-executor5
sctp: [Deprecated]: syz-executor2 (pid 13340) Use of int in max_burst
socket option.
Use struct sctp_assoc_value instead
kauditd_printk_skb: 312 callbacks suppressed
audit: type=1326 audit(1511805821.078:2048): auid=4294967295 uid=0 gid=0
ses=4294967295 subj=kernel pid=13365 comm="syz-executor6"
exe="/root/syz-executor6" sig=31 arch=c000003e syscall=202 compat=0
ip=0x4529d9 code=0xffff0000
binder: 13392:13396 IncRefs 0 refcount change on invalid ref 4 ret -22
binder: 13392:13396 BC_ACQUIRE_DONE uffffffffffffffff no match
binder: 13392:13396 BC_INCREFS_DONE uffffffffffffffff no match
binder: 13392:13396 got reply transaction with no transaction stack
binder: 13392:13396 transaction failed 29201/-71, size 48-48 line 2670
audit: type=1326 audit(1511805821.185:2049): auid=4294967295 uid=0 gid=0
ses=4294967295 subj=kernel pid=13365 comm="syz-executor6"
exe="/root/syz-executor6" sig=31 arch=c000003e syscall=202 compat=0
ip=0x4529d9 code=0xffff0000
binder: 13489:13492 BC_INCREFS_DONE u0000000000000000 no match
binder: 13489:13492 DecRefs 0 refcount change on invalid ref 0 ret -22
binder: 13489:13492 IncRefs 0 refcount change on invalid ref 2 ret -22
binder: 13489:13492 unknown command 0
device gre0 entered promiscuous mode
binder: 13489:13492 ioctl c0306201 20005000 returned -22
binder: 13489:13498 BC_INCREFS_DONE u0000000000000000 no match
binder: 13489:13498 DecRefs 0 refcount change on invalid ref 0 ret -22
binder: 13489:13498 unknown command 0
binder: 13489:13498 ioctl c0306201 20005000 returned -22
tmpfs: No value for mount option 'o� '
tmpfs: No value for mount option 'o� '
dccp_close: ABORT with 11 bytes unread
device lo left promiscuous mode
FAULT_FLAG_ALLOW_RETRY missing 30
audit: type=1326 audit(1511805822.578:2050): auid=4294967295 uid=0 gid=0
ses=4294967295 subj=kernel pid=13799 comm="syz-executor0"
exe="/root/syz-executor0" sig=31 arch=c000003e syscall=202 compat=0
ip=0x4529d9 code=0x0
CPU: 1 PID: 13768 Comm: syz-executor6 Not tainted 4.15.0-rc1+ #197
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
handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427
do_anonymous_page mm/memory.c:3121 [inline]
handle_pte_fault mm/memory.c:3934 [inline]
__handle_mm_fault+0x2e8c/0x3ad0 mm/memory.c:4060
handle_mm_fault+0x334/0x8d0 mm/memory.c:4097
__do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429
do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504
page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1094
RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421
RSP: 0018:ffff8801c8387928 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff82505121
RDX: 00000000000000fc RSI: ffffc90002cd8000 RDI: ffff8801c8387d28
RBP: ffff8801c8387a08 R08: ffff8801d66081f8 R09: 1ffff10039070edf
R10: ffff8801c9052400 R11: 0000000000000000 R12: 1ffff10039070f28
R13: ffff8801c83879e0 R14: 0000000000000000 R15: ffff8801c8387d20
generic_perform_write+0x200/0x600 mm/filemap.c:3129
__generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3264
generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3292
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
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fccc2060c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 000000000000001c RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 0000000000000107 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ee948
R13: 00000000ffffffff R14: 00007fccc20616d4 R15: 0000000000000000
audit: type=1326 audit(1511805822.600:2051): auid=4294967295 uid=0 gid=0
ses=4294967295 subj=kernel pid=13799 comm="syz-executor0"
exe="/root/syz-executor0" sig=31 arch=c000003e syscall=202 compat=0
ip=0x4529d9 code=0x0
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 1 PID: 13841 Comm: syz-executor6 Not tainted 4.15.0-rc1+ #197
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
handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427
do_anonymous_page mm/memory.c:3121 [inline]
handle_pte_fault mm/memory.c:3934 [inline]
__handle_mm_fault+0x2e8c/0x3ad0 mm/memory.c:4060
handle_mm_fault+0x334/0x8d0 mm/memory.c:4097
__do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429
do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504
page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1094
RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421
RSP: 0018:ffff8801cbb2f928 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff82505121
RDX: 00000000000000fc RSI: ffffc90002cd8000 RDI: ffff8801cbb2fd28
RBP: ffff8801cbb2fa08 R08: 0000000000000001 R09: 1ffff10039765edf
R10: ffff8801d8a88000 R11: 0000000000000000 R12: 1ffff10039765f28
R13: ffff8801cbb2f9e0 R14: 0000000000000000 R15: ffff8801cbb2fd20
generic_perform_write+0x200/0x600 mm/filemap.c:3129
__generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3264
generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3292
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
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fccc2060c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 000000000000001c RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 0000000000000127 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006eec48
R13: 00000000ffffffff R14: 00007fccc20616d4 R15: 0000000000000000
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 1 PID: 13903 Comm: syz-executor6 Not tainted 4.15.0-rc1+ #197
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
handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427
do_anonymous_page mm/memory.c:3121 [inline]
handle_pte_fault mm/memory.c:3934 [inline]
__handle_mm_fault+0x2e8c/0x3ad0 mm/memory.c:4060
handle_mm_fault+0x334/0x8d0 mm/memory.c:4097
__do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429
do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504
page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1094
RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421
RSP: 0018:ffff8801d01a7928 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff82505121
RDX: 00000000000000fc RSI: ffffc90002cd8000 RDI: ffff8801d01a7d28
RBP: ffff8801d01a7a08 R08: ffff8801d849aa38 R09: 1ffff1003a034edf
R10: ffff8801c89ec440 R11: 0000000000000000 R12: 1ffff1003a034f28
R13: ffff8801d01a79e0 R14: 0000000000000000 R15: ffff8801d01a7d20
generic_perform_write+0x200/0x600 mm/filemap.c:3129
__generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3264
generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3292
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
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fccc2060c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 000000000000001c RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 0000000000000127 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006eec48
R13: 00000000ffffffff R14: 00007fccc20616d4 R15: 0000000000000000
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 1 PID: 13981 Comm: syz-executor6 Not tainted 4.15.0-rc1+ #197
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
handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427
do_anonymous_page mm/memory.c:3121 [inline]
handle_pte_fault mm/memory.c:3934 [inline]
__handle_mm_fault+0x2e8c/0x3ad0 mm/memory.c:4060
handle_mm_fault+0x334/0x8d0 mm/memory.c:4097
__do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429
do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504
page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1094
RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421
RSP: 0018:ffff8801cee47928 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff82505121
RDX: 00000000000000c0 RSI: ffffc90002cd8000 RDI: ffff8801cee47d28
RBP: ffff8801cee47a08 R08: 1ffff100387091d2 R09: 1ffff10039dc8f1a
R10: ffff8801c6c9c180 R11: ffff8801c6c9c180 R12: 1ffff10039dc8f28
R13: ffff8801cee479e0 R14: 0000000000000000 R15: ffff8801cee47d20
generic_perform_write+0x200/0x600 mm/filemap.c:3129
__generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3264
generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3292
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
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fccc2060c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 000000000000001c RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 0000000000000600 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f60a0
R13: 0000000000000001 R14: 0000000000758070 R15: 0000000000000000
selinux_nlmsg_perm: 82 callbacks suppressed
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14034 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14034 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14034 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14043 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14069 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14069 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14087 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14069 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14117 comm=syz-executor5
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0
sclass=netlink_route_socket pig=14117 comm=syz-executor5
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 0 PID: 14072 Comm: syz-executor6 Not tainted 4.15.0-rc1+ #197
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
handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427
do_anonymous_page mm/memory.c:3121 [inline]
handle_pte_fault mm/memory.c:3934 [inline]
__handle_mm_fault+0x2e8c/0x3ad0 mm/memory.c:4060
handle_mm_fault+0x334/0x8d0 mm/memory.c:4097
__do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429
do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504
page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1094
RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421
RSP: 0018:ffff8801c7587928 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff82505121
RDX: 00000000000000fc RSI: ffffc90002cd8000 RDI: ffff8801c7587d28
RBP: ffff8801c7587a08 R08: 0000000000000001 R09: 1ffff10038eb0edf
R10: ffff8801c65e6100 R11: 0000000000000000 R12: 1ffff10038eb0f28
R13: ffff8801c75879e0 R14: 0000000000000000 R15: ffff8801c7587d20
generic_perform_write+0x200/0x600 mm/filemap.c:3129
__generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3264
generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3292
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
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fccc2060c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000758048 RCX: 00000000004529d9
RDX: 000000000000001c RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 0000000000758048 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000
R13: 0000000000a6f7ff R14: 00007fccc20619c0 R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 1 PID: 14160 Comm: syz-executor3 Not tainted 4.15.0-rc1+ #197
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+0x47/0x760 mm/slab.c:3545
__build_skb+0x9d/0x450 net/core/skbuff.c:281
__napi_alloc_skb+0x173/0x2c0 net/core/skbuff.c:482
napi_alloc_skb include/linux/skbuff.h:2639 [inline]
napi_get_frags+0x61/0x130 net/core/dev.c:5021
tun_napi_alloc_frags drivers/net/tun.c:1296 [inline]
tun_get_user+0x1ba2/0x36d0 drivers/net/tun.c:1637
tun_chr_write_iter+0xbf/0x160 drivers/net/tun.c:1800
call_write_iter include/linux/fs.h:1772 [inline]
do_iter_readv_writev+0x531/0x7f0 fs/read_write.c:653
do_iter_write+0x15a/0x540 fs/read_write.c:932
vfs_writev+0x18a/0x340 fs/read_write.c:977
do_writev+0xfc/0x2a0 fs/read_write.c:1012
SYSC_writev fs/read_write.c:1085 [inline]
SyS_writev+0x27/0x30 fs/read_write.c:1082
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4528b1
RSP: 002b:00007f73e0181b80 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f73e0181aa0 RCX: 00000000004528b1
RDX: 0000000000000001 RSI: 00007f73e0181bd0 RDI: 0000000000000012
RBP: 00007f73e0181a90 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000004e R11: 0000000000000293 R12: 00000000004b759b
R13: 00007f73e0181bc8 R14: 00000000004b759b R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 14176 Comm: syz-executor3 Not tainted 4.15.0-rc1+ #197
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]
ndisc_alloc_skb+0x138/0x330 net/ipv6/ndisc.c:403
ndisc_send_na+0x216/0xa70 net/ipv6/ndisc.c:535
ndisc_recv_ns+0xda9/0x13c0 net/ipv6/ndisc.c:919
ndisc_rcv+0x49c/0x5b0 net/ipv6/ndisc.c:1725
icmpv6_rcv+0x11aa/0x1940 net/ipv6/icmp.c:880
ip6_input_finish+0x36f/0x1700 net/ipv6/ip6_input.c:284
NF_HOOK include/linux/netfilter.h:250 [inline]
ip6_input+0xe9/0x560 net/ipv6/ip6_input.c:327
dst_input include/net/dst.h:466 [inline]
ip6_rcv_finish+0x1a9/0x7a0 net/ipv6/ip6_input.c:71
NF_HOOK include/linux/netfilter.h:250 [inline]
ipv6_rcv+0xf1f/0x1f80 net/ipv6/ip6_input.c:208
__netif_receive_skb_core+0x1a3e/0x3450 net/core/dev.c:4461
__netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4526
netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4599
napi_frags_finish net/core/dev.c:5040 [inline]
napi_gro_frags+0x57b/0xad0 net/core/dev.c:5113
tun_get_user+0x25f5/0x36d0 drivers/net/tun.c:1757
tun_chr_write_iter+0xbf/0x160 drivers/net/tun.c:1800
call_write_iter include/linux/fs.h:1772 [inline]
do_iter_readv_writev+0x531/0x7f0 fs/read_write.c:653
do_iter_write+0x15a/0x540 fs/read_write.c:932
vfs_writev+0x18a/0x340 fs/read_write.c:977
do_writev+0xfc/0x2a0 fs/read_write.c:1012
SYSC_writev fs/read_write.c:1085 [inline]
SyS_writev+0x27/0x30 fs/read_write.c:1082
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4528b1
RSP: 002b:00007f73e0181b80 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f73e0181aa0 RCX: 00000000004528b1
RDX: 0000000000000001 RSI: 00007f73e0181bd0 RDI: 0000000000000012
RBP: 00007f73e0181a90 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000004e R11: 0000000000000293 R12: 00000000004b759b
R13: 00007f73e0181bc8 R14: 00000000004b759b R15: 0000000000000000
ICMPv6: ndisc: ndisc_alloc_skb failed to allocate an skb
FAULT_FLAG_ALLOW_RETRY missing 30
CPU: 0 PID: 14140 Comm: syz-executor6 Not tainted 4.15.0-rc1+ #197
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
handle_userfault+0x12fa/0x24c0 fs/userfaultfd.c:427
do_anonymous_page mm/memory.c:3121 [inline]
handle_pte_fault mm/memory.c:3934 [inline]
__handle_mm_fault+0x2e8c/0x3ad0 mm/memory.c:4060
handle_mm_fault+0x334/0x8d0 mm/memory.c:4097
__do_page_fault+0x5c9/0xc90 arch/x86/mm/fault.c:1429
do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504
page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1094
RIP: 0010:fault_in_pages_readable include/linux/pagemap.h:601 [inline]
RIP: 0010:iov_iter_fault_in_readable+0x1a7/0x410 lib/iov_iter.c:421
RSP: 0018:ffff8801ca39f928 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000020011fd2 RCX: ffffffff82505121
RDX: 00000000000000c0 RSI: ffffc90002cd8000 RDI: ffff8801ca39fd28
RBP: ffff8801ca39fa08 R08: 1ffff100387091d2 R09: 1ffff10039473f1a
R10: ffff8801c4ca0500 R11: 0000000000000000 R12: 1ffff10039473f28
R13: ffff8801ca39f9e0 R14: 0000000000000000 R15: ffff8801ca39fd20
generic_perform_write+0x200/0x600 mm/filemap.c:3129
__generic_file_write_iter+0x366/0x5b0 mm/filemap.c:3264
generic_file_write_iter+0x399/0x7a0 mm/filemap.c:3292
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
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fccc2060c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 000000000000001c RSI: 0000000020011fd2 RDI: 0000000000000014
RBP: 0000000000000600 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f60a0
R13: 00000000ffffffff R14: 00007fccc20616d4 R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 14198 Comm: syz-executor3 Not tainted 4.15.0-rc1+ #197
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]
ndisc_alloc_skb+0x138/0x330 net/ipv6/ndisc.c:403
ndisc_send_na+0x216/0xa70 net/ipv6/ndisc.c:535
ndisc_recv_ns+0xda9/0x13c0 net/ipv6/ndisc.c:919
ndisc_rcv+0x49c/0x5b0 net/ipv6/ndisc.c:1725
icmpv6_rcv+0x11aa/0x1940 net/ipv6/icmp.c:880
ip6_input_finish+0x36f/0x1700 net/ipv6/ip6_input.c:284
NF_HOOK include/linux/netfilter.h:250 [inline]
ip6_input+0xe9/0x560 net/ipv6/ip6_input.c:327
dst_input include/net/dst.h:466 [inline]
ip6_rcv_finish+0x1a9/0x7a0 net/ipv6/ip6_input.c:71
NF_HOOK include/linux/netfilter.h:250 [inline]
ipv6_rcv+0xf1f/0x1f80 net/ipv6/ip6_input.c:208
__netif_receive_skb_core+0x1a3e/0x3450 net/core/dev.c:4461
__netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4526
netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4599
napi_frags_finish net/core/dev.c:5040 [inline]
napi_gro_frags+0x57b/0xad0 net/core/dev.c:5113
tun_get_user+0x25f5/0x36d0 drivers/net/tun.c:1757
tun_chr_write_iter+0xbf/0x160 drivers/net/tun.c:1800
call_write_iter include/linux/fs.h:1772 [inline]
do_iter_readv_writev+0x531/0x7f0 fs/read_write.c:653
do_iter_write+0x15a/0x540 fs/read_write.c:932
vfs_writev+0x18a/0x340 fs/read_write.c:977
do_writev+0xfc/0x2a0 fs/read_write.c:1012
SYSC_writev fs/read_write.c:1085 [inline]
SyS_writev+0x27/0x30 fs/read_write.c:1082
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4528b1
RSP: 002b:00007f73e0181b80 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f73e0181aa0 RCX: 00000000004528b1
RDX: 0000000000000001 RSI: 00007f73e0181bd0 RDI: 0000000000000012
RBP: 00007f73e0181a90 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000004e R11: 0000000000000293 R12: 00000000004b759b
R13: 00007f73e0181bc8 R14: 00000000004b759b R15: 0000000000000000
ICMPv6: ndisc: ndisc_alloc_skb failed to allocate an skb
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 14213 Comm: syz-executor1 Not tainted 4.15.0-rc1+ #197
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+0x47/0x760 mm/slab.c:3545
getname_flags+0xcb/0x580 fs/namei.c:138
getname+0x19/0x20 fs/namei.c:209
do_sys_open+0x2e7/0x6d0 fs/open.c:1053
SYSC_open fs/open.c:1077 [inline]
SyS_open fs/open.c:1072 [inline]
SYSC_creat fs/open.c:1117 [inline]
SyS_creat+0x27/0x30 fs/open.c:1115
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007fae0ce35c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fae0ce35aa0 RCX: 00000000004529d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020473ff8
RBP: 00007fae0ce35a90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000004b759b
R13: 00007fae0ce35bc8 R14: 00000000004b759b R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 14220 Comm: syz-executor3 Not tainted 4.15.0-rc1+ #197
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+0x47/0x760 mm/slab.c:3545
dst_alloc+0x11f/0x1a0 net/core/dst.c:107
__ip6_dst_alloc+0x35/0x90 net/ipv6/route.c:361
ip6_dst_alloc+0x29/0xb0 net/ipv6/route.c:376
icmp6_dst_alloc+0x1d7/0x630 net/ipv6/route.c:2331
ndisc_send_skb+0xda7/0x1350 net/ipv6/ndisc.c:471
ndisc_send_na+0x41b/0xa70 net/ipv6/ndisc.c:555
ndisc_recv_ns+0xda9/0x13c0 net/ipv6/ndisc.c:919
ndisc_rcv+0x49c/0x5b0 net/ipv6/ndisc.c:1725
icmpv6_rcv+0x11aa/0x1940 net/ipv6/icmp.c:880
ip6_input_finish+0x36f/0x1700 net/ipv6/ip6_input.c:284
NF_HOOK include/linux/netfilter.h:250 [inline]
ip6_input+0xe9/0x560 net/ipv6/ip6_input.c:327
dst_input include/net/dst.h:466 [inline]
ip6_rcv_finish+0x1a9/0x7a0 net/ipv6/ip6_input.c:71
NF_HOOK include/linux/netfilter.h:250 [inline]
ipv6_rcv+0xf1f/0x1f80 net/ipv6/ip6_input.c:208
__netif_receive_skb_core+0x1a3e/0x3450 net/core/dev.c:4461
__netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4526
netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4599
napi_frags_finish net/core/dev.c:5040 [inline]
napi_gro_frags+0x57b/0xad0 net/core/dev.c:5113
tun_get_user+0x25f5/0x36d0 drivers/net/tun.c:1757
tun_chr_write_iter+0xbf/0x160 drivers/net/tun.c:1800
call_write_iter include/linux/fs.h:1772 [inline]
do_iter_readv_writev+0x531/0x7f0 fs/read_write.c:653
do_iter_write+0x15a/0x540 fs/read_write.c:932
vfs_writev+0x18a/0x340 fs/read_write.c:977
do_writev+0xfc/0x2a0 fs/read_write.c:1012
SYSC_writev fs/read_write.c:1085 [inline]
SyS_writev+0x27/0x30 fs/read_write.c:1082
entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4528b1
RSP: 002b:00007f73e0181b80 EFLAGS: 00000293 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f73e0181aa0 RCX: 00000000004528b1
RDX: 0000000000000001 RSI: 00007f73e0181bd0 RDI: 0000000000000012
RBP: 00007f73e0181a90 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000004e R11: 0000000000000293 R12: 00000000004b759b
R13: 00007f73e0181bc8 R14: 00000000004b759b R15: 0000000000000000
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 14229 Comm: syz-executor3 Not tainted 4.15.0-rc1+ #197
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]
dst_cow_metrics_generic+0x96/0x220 net/core/dst.c:210
ipv6_cow_metrics+0x77/0x1a0 net/ipv6/route.c:201
dst_metrics_write_ptr include/net/dst.h:146 [inline]
dst_metric_set include/net/dst.h:207 [inline]
icmp6_dst_alloc+0x3b1/0x630 net/ipv6/route.c:2344
ndisc_send_skb+0xda7/0x1350 net/ipv6/ndisc.c:471
ndisc_send_na+0x41b/0xa70 net/ipv6/ndisc.c:555
ndisc_recv_ns+0xda9/0x13c0 net/ipv6/ndisc.c:919
ndisc_rcv+0x49c/0x5b0 net/ipv6/ndisc.c:1725
icmpv6_rcv+0x11aa/0x1940 net/ipv6/icmp.c:880
ip6_input_finish+0x36f/0x1700 net/ipv6/ip6_input.c:284
NF_HOOK include/linux/netfilter.h:250 [inline]
ip6_input+0xe9/0x560 net/ipv6/ip6_input.c:327
dst_input include/net/dst.h:466 [inline]
ip6_rcv_finish+0x1a9/0x7a0 net/ipv6/ip6_input.c:71
NF_HOOK include/linux/netfilter.h:250 [inline]
ipv6_rcv+0xf1f/0x1f80 net/ipv6/ip6_input.c:208
__netif_receive_skb_core+0x1a3e/0x3450 net/core/dev.c:4461
__netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4526
netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4599
napi_frags_finish net/core/dev.c:5040 [inline]
napi_gro_frags+0x57b/0xad0 net/core/dev.c:5113
tun_get_user+0x25f5/0x36d0 drivers/net/tun.c:1757


---
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

syzbot

unread,
Dec 4, 2017, 1:03:02 PM12/4/17
to linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com, vi...@zeniv.linux.org.uk
syzkaller has found reproducer for 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.
C reproducer is attached
syzkaller reproducer is attached. See https://goo.gl/kgGztJ
for information about syzkaller reproducers



======================================================
WARNING: possible circular locking dependency detected
4.15.0-rc2+ #206 Not tainted
------------------------------------------------------
syzkaller022699/3086 is trying to acquire lock:
(&pipe->mutex/1){+.+.}, at: [<00000000698950dd>] __pipe_lock fs/pipe.c:88
[inline]
(&pipe->mutex/1){+.+.}, at: [<00000000698950dd>] fifo_open+0x15c/0xa40
fs/pipe.c:916

but task is already holding lock:
(&sig->cred_guard_mutex){+.+.}, at: [<0000000082fd15e8>]
prepare_bprm_creds+0x53/0x110 fs/exec.c:1390

which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

-> #2 (&sig->cred_guard_mutex){+.+.}:
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
entry_SYSCALL_64_fastpath+0x1f/0x96

-> #1 (&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
entry_SYSCALL_64_fastpath+0x1f/0x96

-> #0 (&pipe->mutex/1){+.+.}:
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_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
do_execve fs/exec.c:1848 [inline]
SYSC_execve fs/exec.c:1929 [inline]
SyS_execve+0x39/0x50 fs/exec.c:1924
do_syscall_64+0x26c/0x920 arch/x86/entry/common.c:285
return_from_SYSCALL_64+0x0/0x75

other info that might help us debug this:

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

Possible unsafe locking scenario:

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

*** DEADLOCK ***

1 lock held by syzkaller022699/3086:
#0: (&sig->cred_guard_mutex){+.+.}, at: [<0000000082fd15e8>]
prepare_bprm_creds+0x53/0x110 fs/exec.c:1390

stack backtrace:
CPU: 0 PID: 3086 Comm: syzkaller022699 Not tainted 4.15.0-rc2+ #206
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_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
do_execve fs/exec.c:1848 [inline]
SYSC_execve fs/exec.c:1929 [inline]
SyS_execve+0x39/0x50 fs/exec.c:1924
do_syscall_64+0x26c/0x920 arch/x86/entry/common.c:285
entry_SYSCALL64_slow_path+0x25/0x25
RIP: 0033:0x440219
RSP: 002b:00007ffd9e4890b8 EFLAGS: 00000217 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000440219
RDX: 0000000020324ff0 RSI: 0000000020a7bfc8 RDI: 0000000020f8aff8
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000217 R12: 0000000000401ae0
R13: 0000000000401b70 R14: 0000000000000000 R15: 0000000000000000

config.txt
raw.log
repro.txt
repro.c

Eric Biggers

unread,
Dec 12, 2017, 4:25:05 PM12/12/17
to syzbot, linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com, vi...@zeniv.linux.org.uk
On Fri, Dec 01, 2017 at 04:53: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