Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp537308ybm; Fri, 29 May 2020 06:23:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxysGIrle1k7MdHwezl+imIiu2x62ziZZvqL9zZFPWEJZKP1YCFa7l92d4zMuxU8ihivNMf X-Received: by 2002:a17:906:3597:: with SMTP id o23mr7622072ejb.174.1590758607269; Fri, 29 May 2020 06:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590758607; cv=none; d=google.com; s=arc-20160816; b=ZZmtU3Wt65vhp/HWEbe1uANdZu2nttRKqL1rG/EwDKUQ5Bu5ezgEkxQHevehoU9/v1 LEdQKvRHPPI4xkpVo6ckyCuZBQyHf7vCLqx+l8xBF8JVHNZloiPWyd8M7dfdidpD6lb9 CpXHZ6AIvu43SYWE0GozbKWdBclLN3F0t6SEhVgDY2m+23AtPVb1GNz14sRsZxgA5Ayh R1j06w6/eJ+RtFNhyBUD7o7/zl8nYvKthpXi7+ssh858p6Kw5ht94Q2dbv2fgWo6RWzB U10ViRcpm4uM+6oZ9DNtETCw9fjYCanEx+6MV12D2BNbGmLu85wcGg8h9XRgiaFgs8lZ 1bBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nyXmpJJjhCGoZ3KY42YsL/6lflo8xu8VyeXHPNSbBKo=; b=rimPrs3pVdjmEdzq7foR1/O9zIiflFL5TVLd6dLsbINZej9cxTV7iAIoPMumIp6CAF F08Gur/FhsXJ/cx8HB0XNR/rf8oqkFMieQ2SyAhy18tfjFE+qT9t8Z/i9DXK0D9OT38i id/vTkus+m+llDj7/6EmeaOHjZKcuQzqEugewEPz/tHvjKMRDPZYGMV+o+SAwOQJyKSo f/W5KJl0InjR6d4d9sU2qkj3HPvZIOBbJNPyfnW2QxLK+3UXj91HJ5ZL+pzw13/D7WXe ZqACSOeIuOrfK+P+zr/M8gCAMCoXqu+MCz1AKgsZxqKpxF3+1KVUAzbeeK5cdlsCCbG1 Nytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uUMS+aHR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si5708156edl.432.2020.05.29.06.23.03; Fri, 29 May 2020 06:23:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uUMS+aHR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726905AbgE2NUh (ORCPT + 99 others); Fri, 29 May 2020 09:20:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbgE2NUh (ORCPT ); Fri, 29 May 2020 09:20:37 -0400 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F32C03E969 for ; Fri, 29 May 2020 06:20:35 -0700 (PDT) Received: by mail-qv1-xf42.google.com with SMTP id dh1so995049qvb.13 for ; Fri, 29 May 2020 06:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nyXmpJJjhCGoZ3KY42YsL/6lflo8xu8VyeXHPNSbBKo=; b=uUMS+aHR36J5NUsg0GFszr1L5XWEHtyBEuo4Ym1k2GNnq3geeUD4rPzU7AouAyBHiW IGVBcdZk5beKm/F8vNFDuAPJ617lyQCHATIK0rdXv5aY1bX7VFDx7qpqXpTtovpEyy+G 40H65KB2WwhD8AZNyn+l+HBXHKbw/ryxvRtsZ1ZwODK0NWUP+LeyrcKjiStGRYJ56F9U JU4/t2ZBZW9/p1jKsFbS6UlgoH57s3Q39TIh4Vtr/rAvd+R26FRlP2BW+AgJY5VmKPAB WhtJrPkYl28xgMmAu9vKg0FY4CSxN/CxGBCMOjLVpHiE6K4n3GcXJQX6QpIQ1TVIFEpP VAsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nyXmpJJjhCGoZ3KY42YsL/6lflo8xu8VyeXHPNSbBKo=; b=F30aDIp+GwON8miKWpeKo9nDRwJUgR8OB04uYWiNX75OsJw7LTQVnf3y5qsDuW9rr1 n6zL3Tv7tWpKnjjGk55L+FEhgK+2qUL5mteImO59M6sU8jA8YA0V4RRRyGG1bctzORsq J73tybHTJGdo1DXZa0vIb0geYkViQtTTk34M8LT9fJpDh3Q5E10x3mysmFjFnIS+HujI 7QnCFfcvmFemZPNUKdNI4iLAXEqWL7SMT1y2Wy0YmkZ4dQrxun0mzf4hMtkOW4rflPKC mevEdfjZuDiDMuV3HEmFFN54KG5EQBB7jNdWlBlAw3UUGKqpindcBQ0v8U9fMBbuNhcj eR7g== X-Gm-Message-State: AOAM532QBmQwbgYwFVFb/aPrltaP82X7LisPpL3mgCVKZYoUPySbREwG 9ewwgrbMaQPCqJTE4szEiRypP8o2Rb8ZfhipbYWzPA== X-Received: by 2002:a05:6214:15ce:: with SMTP id p14mr8321663qvz.159.1590758434679; Fri, 29 May 2020 06:20:34 -0700 (PDT) MIME-Version: 1.0 References: <000000000000d2474c05a6c938fe@google.com> In-Reply-To: <000000000000d2474c05a6c938fe@google.com> From: Dmitry Vyukov Date: Fri, 29 May 2020 15:20:21 +0200 Message-ID: Subject: Re: PANIC: double fault in fixup_bad_iret To: syzbot Cc: LKML , syzkaller-bugs , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "the arch/x86 maintainers" , Oleg Nesterov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 29, 2020 at 3:14 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit: 7b4cb0a4 Add linux-next specific files for 20200525 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=15dc34ba100000 > kernel config: https://syzkaller.appspot.com/x/.config?x=47b0740d89299c10 > dashboard link: https://syzkaller.appspot.com/bug?extid=dc1fa714cb070b184db5 > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14678626100000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1017ef06100000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+dc1fa714cb070b184db5@syzkaller.appspotmail.com From the reproducer it seems to be either x86 related or ptrace related. > traps: PANIC: double fault, error_code: 0x0 > double fault: 0000 [#1] PREEMPT SMP KASAN > CPU: 0 PID: 7280 Comm: syz-executor776 Not tainted 5.7.0-rc7-next-20200525-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > RIP: 0010:fixup_bad_iret+0x24/0x170 arch/x86/kernel/traps.c:665 > Code: eb cb 0f 1f 40 00 41 55 49 bd 00 00 00 00 00 fc ff df 41 54 55 48 89 fd 48 c7 c7 80 8a 25 88 53 48 81 ec 40 01 00 00 48 89 e3 <48> c7 04 24 b3 8a b5 41 48 c7 44 24 08 bf d3 49 89 48 c1 eb 03 48 > RSP: 0018:fffffe0000001fb8 EFLAGS: 00010086 > RAX: fffffffffffffff7 RBX: fffffe0000001fb8 RCX: ffffffff87e00d57 > RDX: 0000000000000000 RSI: ffffffff87e009c8 RDI: ffffffff88258a80 > RBP: fffffe0000002120 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 > R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 > FS: 0000000001f65880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: fffffe0000001fa8 CR3: 00000000a02aa000 CR4: 00000000001406f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > error_entry+0xb8/0xc0 arch/x86/entry/entry_64.S:1375 > RIP: 0010:native_irq_return_iret+0x0/0x2 > Code: 5a 41 59 41 58 58 59 5a 5e 5f 48 83 c4 08 e9 10 00 00 00 90 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 f6 44 24 20 04 75 02 <48> cf 57 0f 01 f8 0f 1f 00 65 48 8b 3c 25 00 b0 01 00 48 89 07 48 > RSP: 0018:fffffe00000021d8 EFLAGS: 00010046 ORIG_RAX: 0000000000000000 > RAX: fffffffffffffff7 RBX: 0000000000000000 RCX: 0000000000000000 > RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 > RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 > R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 > RIP: 0033:0x3bfd19e0df38d197 > Code: Bad RIP value. > RSP: 002b:00007fffaaa547c8 EFLAGS: 00000346 > Modules linked in: > ---[ end trace d6561a908e3835a1 ]--- > RIP: 0010:fixup_bad_iret+0x24/0x170 arch/x86/kernel/traps.c:665 > Code: eb cb 0f 1f 40 00 41 55 49 bd 00 00 00 00 00 fc ff df 41 54 55 48 89 fd 48 c7 c7 80 8a 25 88 53 48 81 ec 40 01 00 00 48 89 e3 <48> c7 04 24 b3 8a b5 41 48 c7 44 24 08 bf d3 49 89 48 c1 eb 03 48 > RSP: 0018:fffffe0000001fb8 EFLAGS: 00010086 > RAX: fffffffffffffff7 RBX: fffffe0000001fb8 RCX: ffffffff87e00d57 > RDX: 0000000000000000 RSI: ffffffff87e009c8 RDI: ffffffff88258a80 > RBP: fffffe0000002120 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 > R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 > FS: 0000000001f65880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: fffffe0000001fa8 CR3: 00000000a02aa000 CR4: 00000000001406f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > --- > 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 > > -- > 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/000000000000d2474c05a6c938fe%40google.com.