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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96499C433EF for ; Sun, 20 Mar 2022 23:34:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343818AbiCTXfl (ORCPT ); Sun, 20 Mar 2022 19:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343809AbiCTXfh (ORCPT ); Sun, 20 Mar 2022 19:35:37 -0400 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C05CC8D694 for ; Sun, 20 Mar 2022 16:34:13 -0700 (PDT) Received: by mail-il1-f198.google.com with SMTP id t16-20020a056e02061000b002c7ddaa0006so5341197ils.7 for ; Sun, 20 Mar 2022 16:34:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=qN8EZrK1zqj9TBgeCNo+T4ll4VaGvoLHaMPomao8fYo=; b=smVzKFIKr/Nb/KFDT8ehx8YJDiICFTovtKrZj46IAYS9ridgTkzsmpVyj04YTB6xo9 2xKGykqAyabx7ZqcurCyar7/GtU39vXd5gy4Mv/CjvoEcFt8LxdjE3uYbfuSoKwOF/Sl MEDxmar89SBh8bG4xZmmL24zatWbZ5HZG+goyd6LKhzB8IWJutzP9yn9WImtVe5aNg8p k1NDR1R9g+1gUEGVt+s73JfykQkR6FCJfMsHP1mfEdl2BGdwWpJQG+uneqZnrHKVkzhC iPn1SspgNb9hG+KL1GSlgBNpLlIxYtnYR+HFcWjeSlSYLNmnDOCKrLM2uVtmSZw6lmHb LYpw== X-Gm-Message-State: AOAM532XPeOzdifSy3fzgR60c+mK5kPULpyMk37k59mIdfAQLUpTApNz 35+we2hZF+ZY4hi7itBmcPTiXxZ3QxaDSQmQY1C89lyCPqOQ X-Google-Smtp-Source: ABdhPJx6dWZ0E2X4HAuXYLHIG295UGzXoP0sdKG/sso8cNgW2fDjJaSS+TE1T4Mvo6HYe+Xx+ND/ZNlvmt65aXRB8gm1s2+RBzx6 MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1be4:b0:2c7:898a:3b93 with SMTP id y4-20020a056e021be400b002c7898a3b93mr8498537ilv.24.1647819253103; Sun, 20 Mar 2022 16:34:13 -0700 (PDT) Date: Sun, 20 Mar 2022 16:34:13 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003c424505daaed1b7@google.com> Subject: [syzbot] memory leak in keyctl_watch_key From: syzbot To: dhowells@redhat.com, jarkko@kernel.org, jmorris@namei.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, serge@hallyn.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 56e337f2cf13 Revert "gpio: Revert regression in sysfs-gpio.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16b65f8d700000 kernel config: https://syzkaller.appspot.com/x/.config?x=6c80259f3b3fdf91 dashboard link: https://syzkaller.appspot.com/bug?extid=6e2de48f06cdb2884bfc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1786c3b5700000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=171ca6b1700000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+6e2de48f06cdb2884bfc@syzkaller.appspotmail.com Warning: Permanently added '10.128.10.13' (ECDSA) to the list of known hosts. executing program executing program BUG: memory leak unreferenced object 0xffff88810ce4a200 (size 96): comm "syz-executor352", pid 3605, jiffies 4294947473 (age 13.720s) hex dump (first 32 bytes): e0 82 48 0d 81 88 ff ff 00 00 00 00 00 00 00 00 ..H............. 80 a2 e4 0c 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:581 [inline] [] kzalloc include/linux/slab.h:714 [inline] [] keyctl_watch_key+0xec/0x2e0 security/keys/keyctl.c:1800 [] __do_sys_keyctl+0x3c4/0x490 security/keys/keyctl.c:2016 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae --- This report 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 issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches