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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6093EC4167B for ; Wed, 30 Nov 2022 02:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject:CC:From:To: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=tMyyTo94O7X3z7XQ0Dp1E6qLLRWsK2CETjYRltW22lQ=; b=2ZIUj3U5HJDFo1/1JkPirgVv3P TStJoR0CDGWlnZ4XGHFGv+g4To1/LrRxHxf78xYWJO6vxxZUEe+8ijpc+o0sYG41PpRTT/MfpdTUi mRyv3k6DYRgtapxvVEOCysrm7u+1AsVCkG/4I8qgpFPqNhjcpQzwt0WHhaKasqtF7AgPR4k+pdX3i vs4jfCXSCVnqdVRJOkeWA7LGDsvJmqwg0FXJjHcjMRDvW8L9POcXb3j+fpZUkXAuRD3Bmx2euXAvY tFDu4F+zzS5ioaM429Lvn8o+fJr+/LJvD5TBc/rv3Sk8S+nTJwvPlIWTOR3aFeLHoHAbpWInQ4fV0 amPw6w3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0DDK-00CKAn-U2; Wed, 30 Nov 2022 02:52:46 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0DDH-00CK75-PT for linux-arm-kernel@lists.infradead.org; Wed, 30 Nov 2022 02:52:46 +0000 Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NMNyh4b1czmWKp; Wed, 30 Nov 2022 10:51:56 +0800 (CST) Received: from [10.40.193.166] (10.40.193.166) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 30 Nov 2022 10:52:36 +0800 To: From: "chenxiang (M)" CC: Marc Zyngier , , , , chenxiang via , "linuxarm@huawei.com" Subject: regression: insmod module failed in VM with nvdimm on Message-ID: Date: Wed, 30 Nov 2022 10:52:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-Originating-IP: [10.40.193.166] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221129_185244_223910_27C8915E X-CRM114-Status: UNSURE ( 7.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, We boot the VM using following commands (with nvdimm on) (qemu version 6.1.50, kernel 6.0-r4): qemu-system-aarch64 -machine virt,kernel_irqchip=on,gic-version=3,nvdimm=on -kernel /home/kernel/Image -initrd /home/mini-rootfs/rootfs.cpio.gz -bios /root/QEMU_EFI.FD -cpu host -enable-kvm -net none -nographic -m 2G,maxmem=64G,slots=3 -smp 4 -append 'rdinit=init console=ttyAMA0 ealycon=pl0ll,0x90000000 pcie_ports=native pciehp.pciehp_debug=1' -object memory-backend-ram,id=ram1,size=10G -device nvdimm,id=dimm1,memdev=ram1 -device ioh3420,id=root_port1,chassis=1 -device vfio-pci,host=7d:01.0,id=net0,bus=root_port1 Then in VM we insmod a module, vmalloc error occurs as follows (kernel 5.19-rc4 is normal, and the issue is still on kernel 6.1-rc4): estuary:/$ insmod /lib/modules/$(uname -r)/hnae3.ko [ 8.186563] vmap allocation for size 20480 failed: use vmalloc= to increase size [ 8.187288] insmod: vmalloc error: size 16384, vm_struct allocation failed, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0 [ 8.188402] CPU: 1 PID: 235 Comm: insmod Not tainted 6.0.0-rc4+ #1 [ 8.188958] Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015 [ 8.189593] Call trace: [ 8.189825] dump_backtrace.part.0+0xc4/0xd0 [ 8.190245] show_stack+0x24/0x40 [ 8.190563] dump_stack_lvl+0x68/0x84 [ 8.190913] dump_stack+0x18/0x34 [ 8.191223] warn_alloc+0x124/0x1b0 [ 8.191555] __vmalloc_node_range+0xe4/0x55c [ 8.191959] module_alloc+0xf8/0x104 [ 8.192305] load_module+0x854/0x1e70 [ 8.192655] __do_sys_init_module+0x1e0/0x220 [ 8.193075] __arm64_sys_init_module+0x28/0x34 [ 8.193489] invoke_syscall+0x50/0x120 [ 8.193841] el0_svc_common.constprop.0+0x58/0x1a0 [ 8.194296] do_el0_svc+0x38/0xd0 [ 8.194613] el0_svc+0x2c/0xc0 [ 8.194901] el0t_64_sync_handler+0x1ac/0x1b0 [ 8.195313] el0t_64_sync+0x19c/0x1a0 [ 8.195672] Mem-Info: [ 8.195872] active_anon:17641 inactive_anon:118549 isolated_anon:0 [ 8.195872] active_file:0 inactive_file:0 isolated_file:0 [ 8.195872] unevictable:0 dirty:0 writeback:0 [ 8.195872] slab_reclaimable:3439 slab_unreclaimable:3067 [ 8.195872] mapped:877 shmem:135976 pagetables:39 bounce:0 [ 8.195872] kernel_misc_reclaimable:0 [ 8.195872] free:353735 free_pcp:3210 free_cma:0 [ 8.199119] Node 0 active_anon:70564kB inactive_anon:474196kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:3508kB dirty:0kB writeback:0kB shmem:543904kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:1904kB pagetables:156kB all_unreclaimable? no [ 8.201683] Node 0 DMA free:1414940kB boost:0kB min:22528kB low:28160kB high:33792kB reserved_highatomic:0KB active_anon:70564kB inactive_anon:474196kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:2097152kB managed:2010444kB mlocked:0kB bounce:0kB free_pcp:12840kB local_pcp:2032kB free_cma:0kB [ 8.204158] lowmem_reserve[]: 0 0 0 0 [ 8.204481] Node 0 DMA: 1*4kB (E) 1*8kB (U) 1*16kB (U) 2*32kB (UM) 1*64kB (U) 1*128kB (U) 2*256kB (ME) 2*512kB (ME) 2*1024kB (M) 3*2048kB (UM) 343*4096kB (M) = 1414940kB [ 8.205881] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB [ 8.206644] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=32768kB [ 8.207381] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB [ 8.208111] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=64kB [ 8.208826] 135976 total pagecache pages [ 8.209195] 0 pages in swap cache [ 8.209484] Free swap = 0kB [ 8.209733] Total swap = 0kB [ 8.209989] 524288 pages RAM [ 8.210239] 0 pages HighMem/MovableOnly [ 8.210571] 21677 pages reserved [ 8.210852] 0 pages hwpoisoned insmod: can't insert '/lib/modules/6.0.0-rc4+/hnae3.ko': Cannot allocate memory We git bisect the code, and find the patch c5a89f75d2a ("arm64: kaslr: defer initialization to initcall where permitted"). Do you have any idea about the issue? Best Regards, Xiang Chen _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel