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 05141C433FE for ; Tue, 11 Oct 2022 20:46:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbiJKUqq (ORCPT ); Tue, 11 Oct 2022 16:46:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiJKUqo (ORCPT ); Tue, 11 Oct 2022 16:46:44 -0400 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D91C7F098 for ; Tue, 11 Oct 2022 13:46:42 -0700 (PDT) Received: by mail-il1-f197.google.com with SMTP id n14-20020a056e02100e00b002f9e283e850so11890585ilj.9 for ; Tue, 11 Oct 2022 13:46:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bskzaX//GtjaEGU1A2ehSPUKDgf8bx+sg3tUwoBd7Qc=; b=zbAI4eJkd/vTb4e/EDCK1FWDnyTjbvzi7VMZUOlTglrp522AgooHmqMtpOnrQymOpm Boluo7ATRjC+FTm5ooQJ9tXnuAlx3AIXffkiYKFOf6PDCs6tBxzosz8/Txo8f65ROLKh LFya2SWYbMk24N7PMLaKbeEXkG2GstmXqjSGDkS6BKURSKsu8xsLTvphpjPbbTrW/K4N 6bJ2fdC6OT/GmsJgBvKoL7iY23vqVbKGvdZP6zIdOrhyEPXIsevwU+Q/EUorgChJv+pm GUn0MYOcVFBEbT3HgVuG6N4N0DFF3ULtc24yMyPG4/C08981kvPJragI5RH9C5yEasOI OWxQ== X-Gm-Message-State: ACrzQf2yLs3N68xHE7KsYTM1U5U/q2lfw1GHuweLNY6pI27fSQpCr8cv lfVdvW3CPrQ2o9WC9DWoURlHehY1iDsFZj/zG+PB2X9N5V5g X-Google-Smtp-Source: AMsMyM6s9qD9nIfQggH12pw/vkYhJydJqCZbMKcOwXVWAc4w+p7abfSxCuGAkpHqYyrrzrNAXPrDGVFaTjFP8OjedKWCi3g6eZvF MIME-Version: 1.0 X-Received: by 2002:a05:6e02:180c:b0:2fc:405a:d04c with SMTP id a12-20020a056e02180c00b002fc405ad04cmr5665769ilv.212.1665521201882; Tue, 11 Oct 2022 13:46:41 -0700 (PDT) Date: Tue, 11 Oct 2022 13:46:41 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009aad5e05eac85f36@google.com> Subject: [syzbot] memory leak in crypto_create_tfm_node From: syzbot To: davem@davemloft.net, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 4c86114194e6 Merge tag 'iomap-6.1-merge-1' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=104827bc880000 kernel config: https://syzkaller.appspot.com/x/.config?x=10f41fbb818af57a dashboard link: https://syzkaller.appspot.com/bug?extid=104c2a89561289cec13e 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=17a1d5fa880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12f77e34880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/47a35ffaaa39/disk-4c861141.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/cc11d48eaf17/vmlinux-4c861141.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/c14465c5ddba/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+104c2a89561289cec13e@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff8881024bd800 (size 512): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 21.340s) hex dump (first 32 bytes): d8 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ e0 be 2a 82 ff ff ff ff 68 fc 1c 08 81 88 ff ff ..*.....h....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810eb2e740 (size 32): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 21.340s) hex dump (first 32 bytes): d0 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ 00 00 00 00 00 00 00 00 20 cb c7 85 ff ff ff ff ........ ....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_create_tfm crypto/internal.h:92 [inline] [] crypto_spawn_tfm2+0x45/0x90 crypto/algapi.c:803 [] crypto_spawn_shash include/crypto/internal/hash.h:231 [inline] [] hmac_init_tfm+0x3b/0xa0 crypto/hmac.c:152 [] crypto_shash_init_tfm+0x77/0xf0 crypto/shash.c:440 [] crypto_create_tfm_node+0x52/0x130 crypto/api.c:512 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 BUG: memory leak unreferenced object 0xffff88810a9a1800 (size 2048): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 21.340s) 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: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] allocate_filesystem_keyring fs/crypto/keyring.c:194 [inline] [] do_add_master_key fs/crypto/keyring.c:502 [inline] [] add_master_key+0x2c6/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810a820800 (size 1024): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 21.340s) hex dump (first 32 bytes): 00 b0 a4 0e 81 88 ff ff 00 00 00 00 00 00 00 00 ................ 58 19 9a 0a 81 88 ff ff 00 00 00 00 00 00 00 00 X............... backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] add_new_master_key+0x4a/0x250 fs/crypto/keyring.c:418 [] do_add_master_key fs/crypto/keyring.c:504 [inline] [] add_master_key+0x1e0/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff8881024bd800 (size 512): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 24.890s) hex dump (first 32 bytes): d8 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ e0 be 2a 82 ff ff ff ff 68 fc 1c 08 81 88 ff ff ..*.....h....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810eb2e740 (size 32): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 24.890s) hex dump (first 32 bytes): d0 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ 00 00 00 00 00 00 00 00 20 cb c7 85 ff ff ff ff ........ ....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_create_tfm crypto/internal.h:92 [inline] [] crypto_spawn_tfm2+0x45/0x90 crypto/algapi.c:803 [] crypto_spawn_shash include/crypto/internal/hash.h:231 [inline] [] hmac_init_tfm+0x3b/0xa0 crypto/hmac.c:152 [] crypto_shash_init_tfm+0x77/0xf0 crypto/shash.c:440 [] crypto_create_tfm_node+0x52/0x130 crypto/api.c:512 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 BUG: memory leak unreferenced object 0xffff88810a9a1800 (size 2048): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 24.890s) 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: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] allocate_filesystem_keyring fs/crypto/keyring.c:194 [inline] [] do_add_master_key fs/crypto/keyring.c:502 [inline] [] add_master_key+0x2c6/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810a820800 (size 1024): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 24.890s) hex dump (first 32 bytes): 00 b0 a4 0e 81 88 ff ff 00 00 00 00 00 00 00 00 ................ 58 19 9a 0a 81 88 ff ff 00 00 00 00 00 00 00 00 X............... backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] add_new_master_key+0x4a/0x250 fs/crypto/keyring.c:418 [] do_add_master_key fs/crypto/keyring.c:504 [inline] [] add_master_key+0x1e0/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff8881024bd800 (size 512): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 27.260s) hex dump (first 32 bytes): d8 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ e0 be 2a 82 ff ff ff ff 68 fc 1c 08 81 88 ff ff ..*.....h....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810eb2e740 (size 32): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 27.260s) hex dump (first 32 bytes): d0 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ 00 00 00 00 00 00 00 00 20 cb c7 85 ff ff ff ff ........ ....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_create_tfm crypto/internal.h:92 [inline] [] crypto_spawn_tfm2+0x45/0x90 crypto/algapi.c:803 [] crypto_spawn_shash include/crypto/internal/hash.h:231 [inline] [] hmac_init_tfm+0x3b/0xa0 crypto/hmac.c:152 [] crypto_shash_init_tfm+0x77/0xf0 crypto/shash.c:440 [] crypto_create_tfm_node+0x52/0x130 crypto/api.c:512 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 BUG: memory leak unreferenced object 0xffff88810a9a1800 (size 2048): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 27.260s) 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: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] allocate_filesystem_keyring fs/crypto/keyring.c:194 [inline] [] do_add_master_key fs/crypto/keyring.c:502 [inline] [] add_master_key+0x2c6/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810a820800 (size 1024): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 27.260s) hex dump (first 32 bytes): 00 b0 a4 0e 81 88 ff ff 00 00 00 00 00 00 00 00 ................ 58 19 9a 0a 81 88 ff ff 00 00 00 00 00 00 00 00 X............... backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] add_new_master_key+0x4a/0x250 fs/crypto/keyring.c:418 [] do_add_master_key fs/crypto/keyring.c:504 [inline] [] add_master_key+0x1e0/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff8881024bd800 (size 512): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 28.460s) hex dump (first 32 bytes): d8 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ e0 be 2a 82 ff ff ff ff 68 fc 1c 08 81 88 ff ff ..*.....h....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810eb2e740 (size 32): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 28.460s) hex dump (first 32 bytes): d0 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ 00 00 00 00 00 00 00 00 20 cb c7 85 ff ff ff ff ........ ....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_create_tfm crypto/internal.h:92 [inline] [] crypto_spawn_tfm2+0x45/0x90 crypto/algapi.c:803 [] crypto_spawn_shash include/crypto/internal/hash.h:231 [inline] [] hmac_init_tfm+0x3b/0xa0 crypto/hmac.c:152 [] crypto_shash_init_tfm+0x77/0xf0 crypto/shash.c:440 [] crypto_create_tfm_node+0x52/0x130 crypto/api.c:512 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 BUG: memory leak unreferenced object 0xffff88810a9a1800 (size 2048): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 28.460s) 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: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] allocate_filesystem_keyring fs/crypto/keyring.c:194 [inline] [] do_add_master_key fs/crypto/keyring.c:502 [inline] [] add_master_key+0x2c6/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810a820800 (size 1024): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 28.460s) hex dump (first 32 bytes): 00 b0 a4 0e 81 88 ff ff 00 00 00 00 00 00 00 00 ................ 58 19 9a 0a 81 88 ff ff 00 00 00 00 00 00 00 00 X............... backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] add_new_master_key+0x4a/0x250 fs/crypto/keyring.c:418 [] do_add_master_key fs/crypto/keyring.c:504 [inline] [] add_master_key+0x1e0/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff8881024bd800 (size 512): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 29.660s) hex dump (first 32 bytes): d8 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ e0 be 2a 82 ff ff ff ff 68 fc 1c 08 81 88 ff ff ..*.....h....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810eb2e740 (size 32): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 29.660s) hex dump (first 32 bytes): d0 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ................ 00 00 00 00 00 00 00 00 20 cb c7 85 ff ff ff ff ........ ....... backtrace: [] kmalloc_node include/linux/slab.h:623 [inline] [] kzalloc_node include/linux/slab.h:744 [inline] [] crypto_create_tfm_node+0x30/0x130 crypto/api.c:504 [] crypto_create_tfm crypto/internal.h:92 [inline] [] crypto_spawn_tfm2+0x45/0x90 crypto/algapi.c:803 [] crypto_spawn_shash include/crypto/internal/hash.h:231 [inline] [] hmac_init_tfm+0x3b/0xa0 crypto/hmac.c:152 [] crypto_shash_init_tfm+0x77/0xf0 crypto/shash.c:440 [] crypto_create_tfm_node+0x52/0x130 crypto/api.c:512 [] crypto_alloc_tfm_node+0x96/0x180 crypto/api.c:588 [] fscrypt_init_hkdf+0x3c/0x180 fs/crypto/hkdf.c:75 [] add_master_key+0x160/0x370 fs/crypto/keyring.c:535 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 BUG: memory leak unreferenced object 0xffff88810a9a1800 (size 2048): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 29.660s) 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: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] allocate_filesystem_keyring fs/crypto/keyring.c:194 [inline] [] do_add_master_key fs/crypto/keyring.c:502 [inline] [] add_master_key+0x2c6/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff88810a820800 (size 1024): comm "syz-executor361", pid 3670, jiffies 4294954234 (age 29.660s) hex dump (first 32 bytes): 00 b0 a4 0e 81 88 ff ff 00 00 00 00 00 00 00 00 ................ 58 19 9a 0a 81 88 ff ff 00 00 00 00 00 00 00 00 X............... backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] add_new_master_key+0x4a/0x250 fs/crypto/keyring.c:418 [] do_add_master_key fs/crypto/keyring.c:504 [inline] [] add_master_key+0x1e0/0x370 fs/crypto/keyring.c:554 [] fscrypt_add_test_dummy_key+0x93/0xc0 fs/crypto/keyring.c:801 [] ext4_check_test_dummy_encryption fs/ext4/super.c:2680 [inline] [] ext4_check_opt_consistency+0x79a/0xb80 fs/ext4/super.c:2735 [] __ext4_fill_super fs/ext4/super.c:5095 [inline] [] ext4_fill_super+0xb66/0x5080 fs/ext4/super.c:5648 [] get_tree_bdev+0x1f1/0x320 fs/super.c:1323 [] vfs_get_tree+0x28/0x100 fs/super.c:1530 [] do_new_mount fs/namespace.c:3040 [inline] [] path_mount+0xc37/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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+0x63/0xcd executing program executing program executing program --- 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