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=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 118F0C06513 for ; Tue, 2 Jul 2019 16:30:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D1D432082F for ; Tue, 2 Jul 2019 16:30:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sCG0pzzI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbfGBQaJ (ORCPT ); Tue, 2 Jul 2019 12:30:09 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51215 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbfGBQaJ (ORCPT ); Tue, 2 Jul 2019 12:30:09 -0400 Received: by mail-wm1-f66.google.com with SMTP id 207so1485291wma.1; Tue, 02 Jul 2019 09:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=TFWJJp1G4kvrVXfVb2nI2EgyyfLZwMYayDvVGliTK88=; b=sCG0pzzITqh20jCt9TUUitdmgdTEoBJFYc543V+A4i1druPg4CTezNPppBgBkQGb5m e/qf869dTYbCOG4Sqt6HLXqeB3NuszCA2Nk2IdFa3pCrGUveexz+SSUy2ymfVOjp/W9P 2kDBiXYsbkISZusgeZNWN3nvQmyJqK9l3PSPwMmygcPDSI/6SMFQmCiLPck1YPexbUVl E/jEaayEvhzp0X5ZSh4v3A0tgQd4aA7OGkbmUiKFoliJ4vp2qW7q8k5EeqjAWya3iz8g lU1KY+rTTOJZPXQHZEz9qinJMdkfo73JXkI68ldTcVA7UwTPtY/fUu6W7f3ybvPwWJSE OIfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TFWJJp1G4kvrVXfVb2nI2EgyyfLZwMYayDvVGliTK88=; b=RMJPMrd2BcDS5RqbiZwoocJMyW2M2qYREAfDPAWTTgNHCBGCGRgMVHUNHiZbov4b+v AgHm3sJc4b/K1Btbi5Q9FxdqGjOScrvc85QRlFNxQwUc+iPtkK5S6jemScLBz8aJffih oS2hHMzO50mwr+lb3632k0Q8jb/jX+6y3SGk8roMj6Y841Toke/ts7MQJHG1tkaTlrKd Zu1FxAwWay+GP49C41nBE/yfJDA9reoxrijJ0Ld68fal/6PdJpCl3+XFn6Yy6TQOfAOy tnNCTJCGPfbeTs4SkdV/o2U03+zAPqNHymIQ4RYZgQq1IIxDHyHQrGlKPO1LVTpuU8oo P+/w== X-Gm-Message-State: APjAAAXSvn2UPFC5jaDWInlpjvhHK+rEsZnp5UETSzWnujJiWL1oW5wR UzFbwOudgpMSZSiHP/OxE8UNWV9v X-Google-Smtp-Source: APXvYqwgKLirBuha1ARKwDKO3pTqglQZwnW8ddb4B6fy3/bfc+iXw22EEf3m9kZw5v4zH1FA7JBYnw== X-Received: by 2002:a1c:5a56:: with SMTP id o83mr3892896wmb.103.1562085006229; Tue, 02 Jul 2019 09:30:06 -0700 (PDT) Received: from [192.168.8.147] (50.83.136.77.rev.sfr.net. [77.136.83.50]) by smtp.gmail.com with ESMTPSA id r2sm3964189wme.30.2019.07.02.09.30.05 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 09:30:05 -0700 (PDT) Subject: Re: WARNING: locking bug in do_ipv6_getsockopt To: syzbot , davem@davemloft.net, kuznet@ms2.inr.ac.ru, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, yoshfuji@linux-ipv6.org References: <000000000000607bf4058cb5135c@google.com> From: Eric Dumazet Message-ID: <218f089a-2c38-cee2-9319-36e9a3c29616@gmail.com> Date: Tue, 2 Jul 2019 18:30:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <000000000000607bf4058cb5135c@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/2/19 9:17 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:    6fbc7275 Linux 5.2-rc7 > git tree:       upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13fb8fe5a00000 > kernel config:  https://syzkaller.appspot.com/x/.config?x=f6451f0da3d42d53 > dashboard link: https://syzkaller.appspot.com/bug?extid=babfdd7368c72aac3875 > compiler:       gcc (GCC) 9.0.0 20181231 (experimental) > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1460390ba00000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+babfdd7368c72aac3875@syzkaller.appspotmail.com > > WARNING: CPU: 1 PID: 18374 at kernel/locking/lockdep.c:735 arch_local_save_flags arch/x86/include/asm/paravirt.h:762 [inline] > WARNING: CPU: 1 PID: 18374 at kernel/locking/lockdep.c:735 arch_local_save_flags arch/x86/include/asm/paravirt.h:760 [inline] > WARNING: CPU: 1 PID: 18374 at kernel/locking/lockdep.c:735 look_up_lock_class kernel/locking/lockdep.c:726 [inline] > WARNING: CPU: 1 PID: 18374 at kernel/locking/lockdep.c:735 register_lock_class+0xe10/0x1860 kernel/locking/lockdep.c:1079 WARN_ON_ONCE(class->name != lock->name); Might be useful to trace the content of class->name and lock->name. > Kernel panic - not syncing: panic_on_warn set ... > CPU: 1 PID: 18374 Comm: syz-executor.0 Not tainted 5.2.0-rc7 #65 > 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 >  panic+0x2cb/0x744 kernel/panic.c:219 >  __warn.cold+0x20/0x4d kernel/panic.c:576 >  report_bug+0x263/0x2b0 lib/bug.c:186 >  fixup_bug arch/x86/kernel/traps.c:179 [inline] >  fixup_bug arch/x86/kernel/traps.c:174 [inline] >  do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272 >  do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291 >  invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:986 > RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:735 [inline] > RIP: 0010:register_lock_class+0xe10/0x1860 kernel/locking/lockdep.c:1079 > Code: 00 48 89 da 4d 8b 76 c0 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 23 07 00 00 4c 89 33 e9 e3 f4 ff ff 0f 0b <0f> 0b e9 ea f3 ff ff 44 89 e0 4c 8b 95 50 ff ff ff 83 c0 01 4c 8b > RSP: 0018:ffff88809ea3f678 EFLAGS: 00010087 > RAX: dffffc0000000000 RBX: ffff888090b948e0 RCX: 0000000000000000 > RDX: 1ffff1101217291f RSI: 0000000000000000 RDI: ffff888090b948f8 > RBP: ffff88809ea3f740 R08: 1ffff11013d47ed7 R09: ffffffff8a65ad40 > R10: ffffffff8a2e9180 R11: 0000000000000000 R12: ffffffff8a3243a0 > R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff88023e60 >  __lock_acquire+0x116/0x5490 kernel/locking/lockdep.c:3674 >  lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:4303 >  __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] >  _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:175 >  spin_lock_bh include/linux/spinlock.h:343 [inline] >  lock_sock_nested+0x41/0x120 net/core/sock.c:2913 >  lock_sock include/net/sock.h:1522 [inline] >  do_ipv6_getsockopt.isra.0+0x289/0x2590 net/ipv6/ipv6_sockglue.c:1167 >  ipv6_getsockopt+0x186/0x280 net/ipv6/ipv6_sockglue.c:1391 >  udpv6_getsockopt+0x68/0xa0 net/ipv6/udp.c:1590 >  sock_common_getsockopt+0x94/0xd0 net/core/sock.c:3085 >  __sys_getsockopt+0x15f/0x240 net/socket.c:2109 >  __do_sys_getsockopt net/socket.c:2120 [inline] >  __se_sys_getsockopt net/socket.c:2117 [inline] >  __x64_sys_getsockopt+0xbe/0x150 net/socket.c:2117 >  do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 >  entry_SYSCALL_64_after_hwframe+0x49/0xbe > RIP: 0033:0x4597c9 > Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 > RSP: 002b:00007fb5fd78ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 > RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000004597c9 > RDX: 0000000000000036 RSI: 0000000000000029 RDI: 0000000000000004 > RBP: 000000000075bfc8 R08: 0000000020000080 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb5fd78b6d4 > R13: 00000000004c0803 R14: 00000000004d2b88 R15: 00000000ffffffff > Kernel Offset: disabled > Rebooting in 86400 seconds.. > > > --- > 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#status for how to communicate with syzbot. > syzbot can test patches for this bug, for details see: > https://goo.gl/tpsmEJ#testing-patches