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 04983C433F5 for ; Sun, 20 Mar 2022 23:34:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343811AbiCTXfi (ORCPT ); Sun, 20 Mar 2022 19:35:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343795AbiCTXfh (ORCPT ); Sun, 20 Mar 2022 19:35:37 -0400 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3E258D6AA for ; Sun, 20 Mar 2022 16:34:13 -0700 (PDT) Received: by mail-io1-f70.google.com with SMTP id f7-20020a056602088700b00645ebbe277cso9527267ioz.22 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=j/axRriYLpOAtl+A1IwiW8qtrzLUWJguLVzo5XRhcolmzgN4s1HRVsiMGFnZ9V6FJY KTRTtyiY74GHDcqlYzZvX62vwN/z0xwPR058OLvRO+yTZBfk2CX3HRB2ofI5DZR8aoC7 SdMSIrgYLLMw7oFcrROfNhf2GVm8VryqsKgWCDLJ0VR4BS5KLs+dS2xd27gF6cj0Fih9 o56pTMX9farwVTCZD7GrfsDacazquiZCxU9gWK68Nd3lIJRcLq5WmSYmw/3FVT4Mgj9i 6Ldro+J2OICFM++fTCoVVjObzuvCHQ4Q2rF6srk2FBRT3tI0JeqQ3DtVqpBUXFPVQDhD Ty0Q== X-Gm-Message-State: AOAM533ce6U8UhX6VIlEnO2ELxHdSLOPei3qnay5PIFs3Q4V6hc9Rj+Q Kmm6F3Dyoe3YiW/DAArCgQg+2w+IvstCCW6vxuqtgflln9/F 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: keyrings@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