Received: by 10.213.65.68 with SMTP id h4csp3613461imn; Tue, 10 Apr 2018 01:40:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4985S7lHQww+zBUGHR6Xd/C6MFQ76GthXMj6LCKMHoye8o/i5iolU80YnGFmsYdNW/L6Gn/ X-Received: by 10.99.169.1 with SMTP id u1mr28213423pge.251.1523349606669; Tue, 10 Apr 2018 01:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523349606; cv=none; d=google.com; s=arc-20160816; b=yyxbnpI4VZS3tGyy8SxbA07kHWpSc+z2+pgwtyBwRTTgxm4dS6XoXqmRdzFZwoySZ8 skIFduWnfKnSke9jpourJK2QjZYW9G2oxUQAZ6+FxIzaJ+N6i9Bqot/xOunnR7o+ZXKY 4/biC/uNWX3PFccD4pgIeMgrailenWTkktPdAKbWGCGH+lt/RzQ4/0XfnAPEEtOOPO7g UAAed9VIha3axebgJFfmYLiOfeHCWRAzSRnUPvvCskOb+VdWoCu4x2MggJxd0bT5u7SQ 30FppgrXiC7c1oTT8aa50SkuFRndg4gdnUm/dHZxLCqPwOG/+4vQwhO4OfamoBKswamS kd3w== 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:arc-authentication-results; bh=+vRAP3cU6Wi+ttxm52uxFeJNpfTymmOEn7aX7TJSwOA=; b=Wr6H4fyN/+4Elo8Wq36JbUIeo5pMmKgTY6w1oT+rOlK3FjHNZ/0zuBHmXobn1n3HRF unMzjtGfbSlehJn/e28WhmLDL3mp/fOtGYqLQzDduIlVmm5plmsNzIpPJOQD/+juJutQ Z3mKpOHtvdVNQVJTlXA0po+ztv8BkY73Rqo1DTW/eOyaEE4vd1ng3BXKVwGYu3BWObiY IRgAIAW2IsSl+6huC4GZ+CsBrUuV0dl/LjqzmVhpnvLmTKii7iMVc6EQp6NsYaCPUaFh u73v/VUkJV1xo4x6vji1lOJFF3TmxLKzKrGnno+IZ6yykJO4zadKEQhaGclQt1/bJK+m dg0g== 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 h132si1734999pfe.52.2018.04.10.01.39.30; Tue, 10 Apr 2018 01:40:06 -0700 (PDT) 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 S1752664AbeDJIgD (ORCPT + 99 others); Tue, 10 Apr 2018 04:36:03 -0400 Received: from mail-it0-f70.google.com ([209.85.214.70]:51485 "EHLO mail-it0-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888AbeDJIgC (ORCPT ); Tue, 10 Apr 2018 04:36:02 -0400 Received: by mail-it0-f70.google.com with SMTP id t126-v6so9742989itc.1 for ; Tue, 10 Apr 2018 01:36:01 -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=+vRAP3cU6Wi+ttxm52uxFeJNpfTymmOEn7aX7TJSwOA=; b=iSykm9mCdm2/S8VuT1oWeVcAU0MoTS8L7eutZ5jwPHZAbpC0ATjsapp4BSl6hTglFo cLln3cUiEUuo7y10kV+GfBvfvza2sRYtyotBxgYE15Kq34t5w/TVt1teF6ruY0R+9nnX a6auTMPbBa0R0S5ryvGH9TTwdOVSyF/o3G2uFymBYkyRK8bXAG1cAN0gRZeihaYMAFrs zHJTst7t107L2IDr6oKkHKzhPdL9noGWwWim8nT9b/8HthNLrzn4Q8rqarY//7LS7pRk XjsXeV+wopxz7iXNHHmEbEGLrQYVou9YgvQjjyvCvY/5U7dOqshZmZBJlF1tXL1OjMUC ysCg== X-Gm-Message-State: ALQs6tBJezOHyzGEotlynTEEjQpV33Qn46HbehtH6YVb0kHn2E9KLo77 kF7MJKOZDUBoqOw9u6bltdMW/h0yujKI4N/SjnOuy2JYpc1t MIME-Version: 1.0 X-Received: by 2002:a24:6995:: with SMTP id e143-v6mr606219itc.50.1523349361336; Tue, 10 Apr 2018 01:36:01 -0700 (PDT) Date: Tue, 10 Apr 2018 01:36:01 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008d2e0d05697a693d@google.com> Subject: KASAN: null-ptr-deref Read in xattr_getsecurity From: syzbot To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk 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 hit the following crash on upstream commit fd40ffc72e2f74c7db61e400903e7d50a88bc0b0 (Mon Apr 9 18:36:05 2018 +0000) selinux: fix missing dput() before selinuxfs unmount syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=9369930ca44f29e60e2d So far this crash happened 41 times on upstream. Unfortunately, I don't have any reproducer for this crash yet. Raw console output: https://syzkaller.appspot.com/x/log.txt?id=5421128315043840 Kernel config: https://syzkaller.appspot.com/x/.config?id=-771321277174894814 compiler: gcc (GCC) 8.0.1 20180301 (experimental) IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+9369930ca44f29e60e2d@syzkaller.appspotmail.com It will help syzbot understand when the bug is fixed. See footer for details. If you forward the report, please keep this part and the footer. R13: 0000000000000098 R14: 00000000006f3ee0 R15: 0000000000000002 ================================================================== BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:345 [inline] BUG: KASAN: null-ptr-deref in xattr_getsecurity+0x18a/0x1f0 fs/xattr.c:251 Read of size 20 at addr 0000000000000000 by task syz-executor5/12111 CPU: 0 PID: 12111 Comm: syz-executor5 Not tainted 4.16.0+ #16 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+0x1b9/0x294 lib/dump_stack.c:113 kasan_report_error mm/kasan/report.c:352 [inline] kasan_report.cold.7+0x13b/0x2f5 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:345 [inline] xattr_getsecurity+0x18a/0x1f0 fs/xattr.c:251 vfs_getxattr+0xf2/0x160 fs/xattr.c:333 getxattr+0x139/0x2c0 fs/xattr.c:540 SYSC_fgetxattr fs/xattr.c:598 [inline] SyS_fgetxattr+0x109/0x190 fs/xattr.c:589 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x455259 RSP: 002b:00007f20bc46fc68 EFLAGS: 00000246 ORIG_RAX: 00000000000000c1 RAX: ffffffffffffffda RBX: 00007f20bc4706d4 RCX: 0000000000455259 RDX: 0000000020000280 RSI: 00000000200002c0 RDI: 0000000000000014 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffff27 R11: 0000000000000246 R12: 0000000000000015 R13: 0000000000000098 R14: 00000000006f3ee0 R15: 0000000000000002 ================================================================== --- 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. syzbot will keep track of this bug report. If you forgot to add the Reported-by tag, once the fix for this bug is merged into any tree, 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 in the email body.