From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AE4EC43381 for ; Tue, 19 Mar 2019 16:02:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 231DE206BA for ; Tue, 19 Mar 2019 16:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727861AbfCSQCg (ORCPT ); Tue, 19 Mar 2019 12:02:36 -0400 Received: from mail-it1-f198.google.com ([209.85.166.198]:51276 "EHLO mail-it1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727466AbfCSQCK (ORCPT ); Tue, 19 Mar 2019 12:02:10 -0400 Received: by mail-it1-f198.google.com with SMTP id e63so1781193ita.1 for ; Tue, 19 Mar 2019 09:02:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=E4XRoaYrRSPqOEqMSRr7GqJDOkFK4CyyelFfeGCzBmg=; b=NeaU3e0R6Pdjf24YQ/OXKHrAbZr9rCkch8zdrmSbQpSfiBemq2FeH8kyT2HttvKNj0 4wr5SWaswiPsi+NPHNb6w2jIqF6Nd0SoGYhK1a4Ta+YnFkgjZC3yySh5s1jkhI/U6eMB UI7pxmKI0EvDrHfiVbiGBv1vUM+e+pADreknVr+X8eFBpddD4XsVcYRzEIO2vDqwOXAG IN2FUmpWgCXMrpWnLgoY7vsgw33OIpz2aDjWgu9p0d6bxdyudNi6t/E+9S5YeKV16P0N KAplii7zOza7ma6wHd7t/X0vSJcsH//KEaH8hZKhnRNOTLa6rmG5wd6xUS/MXA+EaK+f DiJA== X-Gm-Message-State: APjAAAX/L5DDSKdZ6FvsvWDaD8pj7a7ILjQ8e6HKCJtzS8YvzLi2oBYk cIVQbG+QfSH3kHdg5bGbJzBz4LkHuYsIeMr16GIET378sPxh X-Google-Smtp-Source: APXvYqwU79IoFzwArLhXcTUjZVDzzFet/O5iwklnH11vJEk2uvjPlmFFhHpRehvkld5PRU/iZWGM10cH6juTF6lpKw1fPF2mWVUd MIME-Version: 1.0 X-Received: by 2002:a24:de45:: with SMTP id d66mr2343876itg.7.1553011328027; Tue, 19 Mar 2019 09:02:08 -0700 (PDT) Date: Tue, 19 Mar 2019 09:02:08 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008a14a5058474a025@google.com> Subject: WARNING: suspicious RCU usage in xfrm_get_spdinfo From: syzbot To: davem@davemloft.net, herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, steffen.klassert@secunet.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: b9998194 Add linux-next specific files for 20190318 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=106e883b200000 kernel config: https://syzkaller.appspot.com/x/.config?x=59cd5d43b5df6955 dashboard link: https://syzkaller.appspot.com/bug?extid=bfb3cbc2e9467b566c8b compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12af288b200000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=147162a3200000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+bfb3cbc2e9467b566c8b@syzkaller.appspotmail.com ============================= WARNING: suspicious RCU usage 5.1.0-rc1-next-20190318 #5 Not tainted ----------------------------- net/xfrm/xfrm_user.c:1080 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-executor615/7788: #0: 00000000d9f69f58 (&net->xfrm.xfrm_cfg_mutex){+.+.}, at: xfrm_netlink_rcv+0x61/0x90 net/xfrm/xfrm_user.c:2691 stack backtrace: CPU: 1 PID: 7788 Comm: syz-executor615 Not tainted 5.1.0-rc1-next-20190318 #5 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+0x172/0x1f0 lib/dump_stack.c:113 lockdep_rcu_suspicious+0x153/0x15d kernel/locking/lockdep.c:5162 xfrm_nlmsg_unicast net/xfrm/xfrm_user.c:1080 [inline] xfrm_get_spdinfo+0x923/0xb20 net/xfrm/xfrm_user.c:1214 xfrm_user_rcv_msg+0x458/0x770 net/xfrm/xfrm_user.c:2684 netlink_rcv_skb+0x17a/0x460 net/netlink/af_netlink.c:2485 xfrm_netlink_rcv+0x70/0x90 net/xfrm/xfrm_user.c:2692 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x536/0x720 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1925 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:661 ___sys_sendmsg+0x806/0x930 net/socket.c:2260 __sys_sendmsg+0x105/0x1d0 net/socket.c:2298 __do_sys_sendmsg net/socket.c:2307 [inline] __se_sys_sendmsg net/socket.c:2305 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2305 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4401d9 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc72c76dd8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401d9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000 --- This bug 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 syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches