From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752726AbdKEIlu (ORCPT ); Sun, 5 Nov 2017 03:41:50 -0500 Received: from mail-it0-f52.google.com ([209.85.214.52]:48744 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbdKEIlr (ORCPT ); Sun, 5 Nov 2017 03:41:47 -0500 X-Google-Smtp-Source: ABhQp+ThG2MRlGbXWx4IiL/tgx4Jt5H0kOo39K7QWOvnEs7jjs7/P8dXr2IFDKh0UrwHbmBL9a6WPIXshZkGM1knShE= MIME-Version: 1.0 In-Reply-To: <001a1140ad88c4f006055d3836d2@google.com> References: <001a1140ad88c4f006055d3836d2@google.com> From: Dmitry Vyukov Date: Sun, 5 Nov 2017 11:41:26 +0300 Message-ID: Subject: Re: suspicious RCU usage at ./include/net/inet_sock.h:LINE To: syzbot Cc: David Miller , Alexey Kuznetsov , LKML , netdev , syzkaller-bugs@googlegroups.com, Hideaki YOSHIFUJI , dccp@vger.kernel.org, Gerrit Renker Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 5, 2017 at 11:35 AM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 5a3517e009e979f21977d362212b7729c5165d92 > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > > > > > > ============================= > WARNING: suspicious RCU usage > 4.14.0-rc7-next-20171103+ #10 Not tainted > ----------------------------- > ./include/net/inet_sock.h:136 suspicious rcu_dereference_check() usage! > > other info that might help us debug this: > > > rcu_scheduler_active = 2, debug_locks = 1 > 1 lock held by syz-executor0/836: > #0: (sk_lock-AF_INET6){+.+.}, at: [] lock_sock > include/net/sock.h:1461 [inline] > #0: (sk_lock-AF_INET6){+.+.}, at: [] > sock_setsockopt+0x163/0x1ae0 net/core/sock.c:715 > > stack backtrace: > CPU: 0 PID: 836 Comm: syz-executor0 Not tainted 4.14.0-rc7-next-20171103+ > #10 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:17 [inline] > dump_stack+0x194/0x257 lib/dump_stack.c:53 > lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4675 > ireq_opt_deref include/net/inet_sock.h:135 [inline] > inet_csk_route_req+0x82a/0xca0 net/ipv4/inet_connection_sock.c:544 > dccp_v4_send_response+0xa7/0x640 net/dccp/ipv4.c:485 > dccp_v4_conn_request+0x9f4/0x11b0 net/dccp/ipv4.c:633 > dccp_v6_conn_request+0xd30/0x1350 net/dccp/ipv6.c:317 > dccp_rcv_state_process+0x574/0x1620 net/dccp/input.c:612 > dccp_v4_do_rcv+0xeb/0x160 net/dccp/ipv4.c:682 > dccp_v6_do_rcv+0x81a/0x9b0 net/dccp/ipv6.c:578 > sk_backlog_rcv include/net/sock.h:909 [inline] > __release_sock+0x124/0x360 net/core/sock.c:2264 > release_sock+0xa4/0x2a0 net/core/sock.c:2776 > sock_setsockopt+0x513/0x1ae0 net/core/sock.c:1066 > SYSC_setsockopt net/socket.c:1847 [inline] > SyS_setsockopt+0x2ff/0x360 net/socket.c:1830 > entry_SYSCALL_64_fastpath+0x1f/0xbe > RIP: 0033:0x447c89 > RSP: 002b:00007f86cc482bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 > RAX: ffffffffffffffda RBX: 00007f86cc4836cc RCX: 0000000000447c89 > RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000013 > RBP: 0000000000000086 R08: 0000000000000010 R09: 0000000000000000 > R10: 0000000020c3a000 R11: 0000000000000246 R12: 00000000ffffffff > R13: 00000000000006c0 R14: 00000000006e4760 R15: 00007f86cc483700 > > ============================= > WARNING: suspicious RCU usage > 4.14.0-rc7-next-20171103+ #10 Not tainted > ----------------------------- > ./include/net/inet_sock.h:136 suspicious rcu_dereference_check() usage! > > other info that might help us debug this: > > > rcu_scheduler_active = 2, debug_locks = 1 > 1 lock held by syz-executor0/836: > #0: (sk_lock-AF_INET6){+.+.}, at: [] lock_sock > include/net/sock.h:1461 [inline] > #0: (sk_lock-AF_INET6){+.+.}, at: [] > sock_setsockopt+0x163/0x1ae0 net/core/sock.c:715 > > stack backtrace: > CPU: 0 PID: 836 Comm: syz-executor0 Not tainted 4.14.0-rc7-next-20171103+ > #10 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:17 [inline] > dump_stack+0x194/0x257 lib/dump_stack.c:53 > lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4675 > ireq_opt_deref include/net/inet_sock.h:135 [inline] > dccp_v4_send_response+0x4b0/0x640 net/dccp/ipv4.c:496 > dccp_v4_conn_request+0x9f4/0x11b0 net/dccp/ipv4.c:633 > dccp_v6_conn_request+0xd30/0x1350 net/dccp/ipv6.c:317 > dccp_rcv_state_process+0x574/0x1620 net/dccp/input.c:612 > dccp_v4_do_rcv+0xeb/0x160 net/dccp/ipv4.c:682 > dccp_v6_do_rcv+0x81a/0x9b0 net/dccp/ipv6.c:578 > sk_backlog_rcv include/net/sock.h:909 [inline] > __release_sock+0x124/0x360 net/core/sock.c:2264 > release_sock+0xa4/0x2a0 net/core/sock.c:2776 > sock_setsockopt+0x513/0x1ae0 net/core/sock.c:1066 > SYSC_setsockopt net/socket.c:1847 [inline] > SyS_setsockopt+0x2ff/0x360 net/socket.c:1830 > entry_SYSCALL_64_fastpath+0x1f/0xbe > RIP: 0033:0x447c89 > RSP: 002b:00007f86cc482bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 > RAX: ffffffffffffffda RBX: 00007f86cc4836cc RCX: 0000000000447c89 > RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000013 > RBP: 0000000000000086 R08: 0000000000000010 R09: 0000000000000000 > R10: 0000000020c3a000 R11: 0000000000000246 R12: 00000000ffffffff > R13: 00000000000006c0 R14: 00000000006e4760 R15: 00007f86cc483700 +dccp mailing list > --- > This bug is generated by a dumb bot. It may contain errors. > See https://goo.gl/tpsmEJ for details. > Direct all questions to syzkaller@googlegroups.com. > Please credit me with: Reported-by: syzbot > > 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. > > -- > You received this message because you are subscribed to the Google Groups > "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/syzkaller-bugs/001a1140ad88c4f006055d3836d2%40google.com. > For more options, visit https://groups.google.com/d/optout.