Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1125395imu; Wed, 9 Jan 2019 12:06:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN6tUXyn2MxsJjfkyaTgfyKC2W/++6d8DcR++pwk+0kK1B5vuY82Stk4dmX8sHdYIfFI7sBA X-Received: by 2002:a62:46d0:: with SMTP id o77mr7401962pfi.172.1547064407612; Wed, 09 Jan 2019 12:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547064407; cv=none; d=google.com; s=arc-20160816; b=w5hrO/sUYpt3U8ikoItNqzfC2d5CE6a1sSMIaX9Or5z0hRS6TWPB7sChiUf/QVBCps oXVAc2QrIxO8uhkdLstEt7wGDlu/F4fveKkNHpeFYP1GaUL5P1UcdDOzx7N9BaI/UZDS Wen1uKwTgOBfqKxvT/5VlXhxvE3xfslypXuSIDnRSNfvILoW1sA4bWAwkHfxmtRKXiv3 ac+QG7UWzoICP737Nfimgbu8y7ExMz/HRF379PkGHLrkVkm5WVRXjV2PoGLbidIOVJ3a e/I5lqqFOU0/RlSBeqDN3xC1GIAuOgRpFkxbYHcTpVcPc3eOd7lC//1/1ujA6o3BoXQ+ Uu3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=0FAwe0lDjP8h9AUhvn2Qnn3m5Wlr+FezM1aTRHNNe88=; b=qRCAvqVjePiq2pJpMU/xfB1W8U+EXjTB/qgc/IqjfHi3MGgtZFBCqmTrtJzKjlqCfy jhdc1+3+3BdSkUGrFm/wWo+WHHTXk8WLc3W345QolUYxXtkEBYsW9umydzklo6eBNQHa p9L8Lb74oR9E3hrJYFUzCV7ntd+Vm79CedZWUHEz7wgc8EulPPSIz5ff2YxqxLYneMoM seVTQk6OMFktpMQSLBx5kprH+zxjKKsTykW35zRYDZDiPE5OdHZ+l7Z7TV48MeMLMw3J F1Hf/Kp/H/mFmWcb2owtiZpb2mQUnB+CccyspFzmKPdMYAm8YbHZsB5WYw3X49iHLtTI Wsvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si12582243plp.269.2019.01.09.12.06.32; Wed, 09 Jan 2019 12:06:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732391AbfAIPlE (ORCPT + 99 others); Wed, 9 Jan 2019 10:41:04 -0500 Received: from mail-it1-f197.google.com ([209.85.166.197]:44585 "EHLO mail-it1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731076AbfAIPlE (ORCPT ); Wed, 9 Jan 2019 10:41:04 -0500 Received: by mail-it1-f197.google.com with SMTP id x82so7559640ita.9 for ; Wed, 09 Jan 2019 07:41:03 -0800 (PST) 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=0FAwe0lDjP8h9AUhvn2Qnn3m5Wlr+FezM1aTRHNNe88=; b=C57lBQESoiSzGAlWTgmce8jgwQ94cCBtAoXCsQ//Xh40GO31+VIEGJCBmIO8q/DVbr P4nWJxZF4TI5IADziqpFSK0/ZX+6fMZ8EwSy8CTrdrP0gF78Be3YTYXKDG1Lgy/TvtgM f4+EcAmPj4XnqTnTcHOoFYDBTIIGgSdD1XE+RHWhagY1licOOCL9EOhcBilLEdZRsVbt oc72BDv9QHEilGT2LADTa2hXihauQ6nm3PPCnDs1r3xdCGkDNQTLrRirJaNVjdybP3tb 8i1w6+ZaLO1HCW/JskaYplu5xW7586fp8dsc+wl/NxUgxWdA6Rfvy9FEOB/PFA2wX/wP qlVA== X-Gm-Message-State: AJcUukcihOWQS4JA3I96JMD+Er54du2qwYzTyUl9EFR/WF3vfFHopLor FR7WWMKgc+zh+2m73/euCy6FJm9SOe/GvDlxa0eLSd6W8Jfu MIME-Version: 1.0 X-Received: by 2002:a5d:8619:: with SMTP id f25mr1000594iol.31.1547048463274; Wed, 09 Jan 2019 07:41:03 -0800 (PST) Date: Wed, 09 Jan 2019 07:41:03 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001a9aa0057f084a81@google.com> Subject: general protection fault in ebitmap_destroy From: syzbot To: eparis@parisplace.org, linux-kernel@vger.kernel.org, paul@paul-moore.com, peter.enderborg@sony.com, sds@tycho.nsa.gov, selinux@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: a88cc8da0279 Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1722da4f400000 kernel config: https://syzkaller.appspot.com/x/.config?x=edf1c3031097c304 dashboard link: https://syzkaller.appspot.com/bug?extid=6664500f0f18f07a5c0e compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12d43580c00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+6664500f0f18f07a5c0e@syzkaller.appspotmail.com SELinux: failed to load policy sel_write_load: 238 callbacks suppressed SELinux: failed to load policy kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9316 Comm: syz-executor2 Not tainted 5.0.0-rc1+ #16 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ebitmap_destroy+0x32/0xf0 security/selinux/ss/ebitmap.c:334 Code: 49 89 fd 41 54 53 e8 9d e6 36 fe 4d 85 ed 0f 84 99 00 00 00 e8 8f e6 36 fe 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 98 00 00 00 49 be 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff88808967f5c0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88808967f6a8 RCX: dffffc0000000000 RDX: 0000000000000001 RSI: ffffffff834b1081 RDI: 0000000000000008 RBP: ffff88808967f5e0 R08: ffff8880972a8140 R09: ffffed1015cc5b90 R10: ffffed1015cc5b8f R11: ffff8880ae62dc7b R12: ffff888099d993c0 R13: 0000000000000008 R14: ffff888099d993c0 R15: ffff88808967f648 FS: 00007f70cd9e5700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000015e7938 CR3: 0000000096c4a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sens_destroy+0x49/0xa0 security/selinux/ss/policydb.c:735 sens_read+0x25d/0x460 security/selinux/ss/policydb.c:1636 policydb_read+0xed9/0x60d0 security/selinux/ss/policydb.c:2430 security_load_policy+0x423/0x1830 security/selinux/ss/services.c:2129 sel_write_load+0x25a/0x470 security/selinux/selinuxfs.c:565 __vfs_write+0x116/0xb40 fs/read_write.c:485 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0x105/0x260 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457ec9 Code: 6d 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 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f70cd9e4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9 RDX: 000000000000005c RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f70cd9e56d4 R13: 00000000004c720f R14: 00000000004dc9a0 R15: 00000000ffffffff Modules linked in: ---[ end trace 78ea480790940b53 ]--- RIP: 0010:ebitmap_destroy+0x32/0xf0 security/selinux/ss/ebitmap.c:334 Code: 49 89 fd 41 54 53 e8 9d e6 36 fe 4d 85 ed 0f 84 99 00 00 00 e8 8f e6 36 fe 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 98 00 00 00 49 be 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff88808967f5c0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88808967f6a8 RCX: dffffc0000000000 RDX: 0000000000000001 RSI: ffffffff834b1081 RDI: 0000000000000008 RBP: ffff88808967f5e0 R08: ffff8880972a8140 R09: ffffed1015cc5b90 R10: ffffed1015cc5b8f R11: ffff8880ae62dc7b R12: ffff888099d993c0 R13: 0000000000000008 R14: ffff888099d993c0 R15: ffff88808967f648 FS: 00007f70cd9e5700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000073c000 CR3: 0000000096c4a000 CR4: 00000000001406e0 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#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