Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp248104ybp; Thu, 3 Oct 2019 13:00:56 -0700 (PDT) X-Received: by 2002:a50:aa8e:: with SMTP id q14mr11539128edc.155.1570132826128; Thu, 03 Oct 2019 13:00:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXWGUKirS5D5Z3vmtUCwIZVDYAo9KfW9UzDI2JcD1ytAGxTPxx2R1kJQpOH/3VozK+JYUP X-Received: by 2002:a50:aa8e:: with SMTP id q14mr11538933edc.155.1570132825087; Thu, 03 Oct 2019 13:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570132825; cv=none; d=google.com; s=arc-20160816; b=xu4LNaSV1il455hoTpLoUjTZssKmksIu4rO8LaSmSePCNms4bRUwmwgjhsFWKP3bBK bzTpKrDP6iv8gZo2KwgHxEfT2esyPPidDIi1BkCuMK6nkIhSJzYeOuF6bHFBqv39u0nb LuyhivvH9Qov1gRPkvmdPoFC8xmiisQWnRVgH6T7ZVBiGVp6G/NFa14lZCe4Z+nji2d8 vuge/jPBdDuL1g0GNhWbbOIV7C+rweUeJWh590C2QfAaat/nYe9xqlYxop8Wnt2pJMiP GLxrLkFlcioiEwkaVmXkTMGHFe0Ue6HpEvh5GNcZzKIumRPoCui9e/OrI7jykbAFYTBF TRMw== 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=Nk67c/1XiJvvCr7lH+tigw1xQQrdQdPfq1HiTbDZaP4=; b=T+H4AX06D3u8IX1q1RVMBFiCH4+p/OJaT4ESHK/jH4+sZmPiZmlYl19ntUocq2E7DZ d/7drdnSLYs+QzzxbtnR0YfTk0o90PEGN+SL8oN/X2ex9vCXJ0Efj5YpunD92GT5nkfC u8mY9jXFoiAzcxLlYrxFtltPIAitvNUA48Ve/b2zcQxSwLB5sp+4ssw2O/sFp8mNK4tp mbMqDcaUGBKyzlUCKZPg6D5CaokwPdxaF34gbB42TBsU7LJrTYjePngGC95S4riYAoYF KZaGAu/eO/ElC15z3icKOvf6mG1eXrBnZxqWak1aYWLM5nW7s0tMv8gmng6e8yVXvNA3 FYNA== 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 z7si1857671ejr.99.2019.10.03.13.00.00; Thu, 03 Oct 2019 13:00:25 -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 S2388158AbfJCT7M (ORCPT + 99 others); Thu, 3 Oct 2019 15:59:12 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:53875 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733122AbfJCT7J (ORCPT ); Thu, 3 Oct 2019 15:59:09 -0400 Received: by mail-io1-f69.google.com with SMTP id w8so6949763iol.20 for ; Thu, 03 Oct 2019 12:59: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=Nk67c/1XiJvvCr7lH+tigw1xQQrdQdPfq1HiTbDZaP4=; b=sBKwMr7ipnJzlAYJ0OSGuK3z7lKdOwdUJRaFUyB1QsrLzTYY5O7ynyAMP65DolODqm tuBr4ZXZXzlC/NN105s+XojW+Ykjfjp1jWto++b+ekAKLLcan1bfm6eRoIyvPFC4Ow6E tge0CLjbgD8NctNSUpi38jzzguKQbxUTritEghHwBPeALy63fRXyLRHxffn1uUVm6Ogf dfrn66Pq3V0MX+YB/ATgJZiGyEoEkbZFB7VRyS7476C8YgXcNF34FRYgMxepB82haVRM h9ZQ0eO9wlmKu9wVFDsendbHAI84VpSQgMW51tLTEd0Ghifq24NK8CR4+oO1+3ReoqDe UlEA== X-Gm-Message-State: APjAAAVvqJsY7vU/ciCOAyOLUgTR0zqwBI3WGzLH+YgbiaVKevX1OcRe sfgv/48QIymNe9jsne0+INLcCReBU0vtnb2zzpgoEw/ofZZB MIME-Version: 1.0 X-Received: by 2002:a92:60b:: with SMTP id x11mr11449655ilg.212.1570132748783; Thu, 03 Oct 2019 12:59:08 -0700 (PDT) Date: Thu, 03 Oct 2019 12:59:08 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000bdee330594070441@google.com> Subject: memory leak in cap_inode_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 found the following crash on: HEAD commit: 0f1a7b3f timer-of: don't use conditional expression with m.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1329640d600000 kernel config: https://syzkaller.appspot.com/x/.config?x=9d66badf12ef344c dashboard link: https://syzkaller.appspot.com/bug?extid=942d5390db2d9624ced8 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1107b513600000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+942d5390db2d9624ced8@syzkaller.appspotmail.com 2019/10/03 14:00:37 executed programs: 36 2019/10/03 14:00:43 executed programs: 44 2019/10/03 14:00:49 executed programs: 63 BUG: memory leak unreferenced object 0xffff8881202cb480 (size 32): comm "syz-executor.0", pid 7246, jiffies 4294946879 (age 14.010s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000a8379648>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline] [<00000000a8379648>] slab_post_alloc_hook mm/slab.h:586 [inline] [<00000000a8379648>] slab_alloc mm/slab.c:3319 [inline] [<00000000a8379648>] __do_kmalloc mm/slab.c:3653 [inline] [<00000000a8379648>] __kmalloc_track_caller+0x165/0x300 mm/slab.c:3670 [<000000008858463c>] __do_krealloc mm/slab_common.c:1638 [inline] [<000000008858463c>] krealloc+0x7f/0xb0 mm/slab_common.c:1689 [<0000000057f9eb8e>] vfs_getxattr_alloc+0x100/0x180 fs/xattr.c:289 [<00000000c2154e30>] cap_inode_getsecurity+0x9c/0x2c0 security/commoncap.c:389 [<00000000b2664a09>] security_inode_getsecurity+0x4c/0x90 security/security.c:1314 [<00000000921624c0>] xattr_getsecurity fs/xattr.c:244 [inline] [<00000000921624c0>] vfs_getxattr+0xf2/0x1a0 fs/xattr.c:332 [<000000001ff6977b>] getxattr+0x97/0x240 fs/xattr.c:538 [<00000000b945681f>] path_getxattr+0x6b/0xc0 fs/xattr.c:566 [<000000001a9d3fce>] __do_sys_getxattr fs/xattr.c:578 [inline] [<000000001a9d3fce>] __se_sys_getxattr fs/xattr.c:575 [inline] [<000000001a9d3fce>] __x64_sys_getxattr+0x28/0x30 fs/xattr.c:575 [<000000002e998337>] do_syscall_64+0x73/0x1f0 arch/x86/entry/common.c:290 [<00000000f252aa21>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- 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