From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC39B12BF24 for ; Thu, 25 Apr 2024 09:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714036869; cv=none; b=JU/kZujM6+K2d+MIpYHBVrQxTiXjtRqeBdKv0hetxmy308MCiALlepNW5FW8Hc1ct/4Tx6AKfdf5GjOeeZ3fRFYd+FTxKoLY65HigLAZ8cIGEfb6tm1t2CvNZwpCQpgi3IcY7efQ3vVI7raly6wbvI1+06WeUU4kVTez1k6z4a0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714036869; c=relaxed/simple; bh=sNYu23+CY4mAle5NzlrXe+1lql4dxPJLcgDCIwb34Ro=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=HUOsOK7/EdlkW/qFaBDzvKHBu8ooVhGOGip1bPp6kqB2gaBzRlMl66Uah9DItM1y0YFMUgDbY27drajlWH3JdBKamZA30/sX1XZeXK6pjPDugIwKHOUzaIEWBgsFHY7VWZ/iqTMflOG8xzSLBrc+Xj5FjxF+74fw+WdT4sAn/xw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NBFkDwHi; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NBFkDwHi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714036866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=YzAszFd64TKlt/jHpOYYh1DwN16UuMVuy5w+n1i2s98=; b=NBFkDwHi0szDLFn+yk3TtxJdfQ/lPKoD/alVGA+lTmtN3sYMffmQi0CykMWmtSwZw/IJIH K43qQpBCnvQngLawnNdwdAJXjwW24QyEUnjWNJ/Vh0lv7PxJfWdgKBAY11SijzD2TYbIit URqTA+KQ+K/LFiR90HdjbL6AIRXk0oQ= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-333-YCSDQ_byM7umzCerKy7Jmg-1; Thu, 25 Apr 2024 05:21:04 -0400 X-MC-Unique: YCSDQ_byM7umzCerKy7Jmg-1 Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-2a5457a8543so974406a91.0 for ; Thu, 25 Apr 2024 02:21:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714036863; x=1714641663; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YzAszFd64TKlt/jHpOYYh1DwN16UuMVuy5w+n1i2s98=; b=UJGDEXqrSY/6z1BXV2DoPIW3mVj30HTZF7IDODIVDV3g9Kb17qotBdtBg4Qfxls67c gVeQQivwLiFrxSOsCbdeta2wo2thIpscSNB2HgGsYNM9i32DF6JVUa/WmDXsGYFmHJeA /5CE3sR1crym4hWaW7zNNoAMmCkCm1mQ+gxeB/IIl6nlDvRNJsWGV3583MCGP2HL5OA+ BG97Ge1eB/EpnzuzE8oQSafMOJmSMXNht+yOYZw4hdgeBIej0VBMZBiO6r/SxHNK3gwl UI4FAC8Qab5cpGavXw8TNPmDwqleyh6wkXsBH9hbl4l+ueiGat5OaRatN44jGftVID5K WOXg== X-Gm-Message-State: AOJu0YzafttWs+sZuV1EX82/DUmm7I1FvLvm7lwHdpqHu3SC9qy+FQQG 5i3pxvXEHijkOZZY2TOXJ81fRahFf0xs8hgIiA6G62b1sMq/1ncz5OezjIROeVlHoiA3Fx1Z29p yYFXFqYfwoU6h9kaDOtwG3sSTtLLLSwE9MFqhnYg3f99JgbpUWIJ50+vZYWIm8ZaQhsjzSowrW6 4/iR+n2RSLIqWha7HuEmff0+f0s+PK0KWRMaj5YHgJmoOJq349 X-Received: by 2002:a17:90b:3e87:b0:2ae:b8df:89e7 with SMTP id rj7-20020a17090b3e8700b002aeb8df89e7mr5248383pjb.38.1714036862735; Thu, 25 Apr 2024 02:21:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeJMRms8T7rItq3k/M7/E8Bzwq1Xce+335tpLBUZelAI4KCJKU9L2hCyu0y/8J7ABOpp8CV8eI7BpBHBawKbE= X-Received: by 2002:a17:90b:3e87:b0:2ae:b8df:89e7 with SMTP id rj7-20020a17090b3e8700b002aeb8df89e7mr5248367pjb.38.1714036862356; Thu, 25 Apr 2024 02:21:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Changhui Zhong Date: Thu, 25 Apr 2024 17:20:50 +0800 Message-ID: Subject: [bug report] RIP: 0010:queue_zone_wplugs_show+0x42/0x100 To: Linux Block Devices , linux-mm@kvack.org Cc: Ming Lei Content-Type: text/plain; charset="UTF-8" Hello, I hit the kernel panic on recent upstream, please help check it and let me know if you need any info/testing for it, thanks. repo:https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git branch:for-next commit HEAD: 12c12fbada5caa262656a46483167b553036a273 reproducer: # cd /sys/kernel/debug/block && find . -type f -exec grep -aH . {} \; dmesg: [ 29.745943] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 29.752906] #PF: supervisor read access in kernel mode [ 29.758044] #PF: error_code(0x0000) - not-present page [ 29.763186] PGD 0 P4D 0 [ 29.765723] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 29.770085] CPU: 29 PID: 2248 Comm: grep Not tainted 6.9.0-rc4+ #1 [ 29.776263] Hardware name: Dell Inc. PowerEdge R640/0X45NX, BIOS 2.19.1 06/04/2023 [ 29.783830] RIP: 0010:queue_zone_wplugs_show+0x42/0x100 [ 29.789064] Code: 47 68 48 89 44 24 10 e8 ec cf b7 ff 48 c7 44 24 08 00 00 00 00 48 8b 44 24 10 48 8b 4c 24 08 48 8b 80 b8 02 00 00 48 8d 04 c8 <4c> 8b 38 4d 85 ff 74 6a 49 8d 7f 24 31 db 48 89 3c 24 e8 37 25 6d [ 29.807810] RSP: 0018:ffffa7e68750bcb8 EFLAGS: 00010202 [ 29.813035] RAX: 0000000000000000 RBX: ffff8dae04c76528 RCX: 0000000000000000 [ 29.820169] RDX: ffff8dae1505a0c0 RSI: ffff8dae04c76528 RDI: ffff8dacb76c5fe0 [ 29.827302] RBP: ffff8dae04c76528 R08: ffffa7e68750bcb0 R09: ffff8daa860cbdb8 [ 29.834433] R10: ffffa7e68750bd08 R11: ffff8dae0319c000 R12: ffffa7e68750bd98 [ 29.841567] R13: ffffa7e68750bd70 R14: ffff8dae04c76550 R15: 0000000000000001 [ 29.848697] FS: 00007f553ea21740(0000) GS:ffff8db1efd00000(0000) knlGS:0000000000000000 [ 29.856784] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 29.862532] CR2: 0000000000000000 CR3: 000000048e000003 CR4: 00000000007706f0 [ 29.869664] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 29.876794] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 29.883928] PKRU: 55555554 [ 29.886642] Call Trace: [ 29.889095] [ 29.891201] ? __die+0x20/0x70 [ 29.894268] ? page_fault_oops+0x75/0x170 [ 29.898281] ? exc_page_fault+0x64/0x150 [ 29.902208] ? asm_exc_page_fault+0x22/0x30 [ 29.906395] ? queue_zone_wplugs_show+0x42/0x100 [ 29.911012] ? queue_zone_wplugs_show+0x24/0x100 [ 29.915632] seq_read_iter+0x11d/0x4d0 [ 29.919383] seq_read+0xfd/0x140 [ 29.922619] full_proxy_read+0x59/0x80 [ 29.926379] vfs_read+0xa7/0x340 [ 29.929611] ? syscall_exit_work+0xff/0x130 [ 29.933804] ? syscall_exit_to_user_mode+0x78/0x200 [ 29.938686] ? do_syscall_64+0x87/0x160 [ 29.942523] ? __count_memcg_events+0x49/0xb0 [ 29.946882] ksys_read+0x5f/0xe0 [ 29.950115] do_syscall_64+0x7b/0x160 [ 29.953783] ? do_user_addr_fault+0x330/0x6b0 [ 29.958140] ? clear_bhb_loop+0x45/0xa0 [ 29.961979] ? clear_bhb_loop+0x45/0xa0 [ 29.965819] ? clear_bhb_loop+0x45/0xa0 [ 29.969660] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 29.974713] RIP: 0033:0x7f553e8fd9b2 [ 29.978291] Code: c0 e9 b2 fe ff ff 50 48 8d 3d ea 1d 0c 00 e8 c5 fd 01 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 <48> 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 ec 28 48 89 54 24 [ 29.997036] RSP: 002b:00007fff66c83ba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 30.004601] RAX: ffffffffffffffda RBX: 0000000000018000 RCX: 00007f553e8fd9b2 [ 30.011736] RDX: 0000000000018000 RSI: 000055caa25d0000 RDI: 0000000000000003 [ 30.018866] RBP: 000055caa25d0000 R08: 0000000000019000 R09: 0000000000000001 [ 30.026000] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff66c83c70 [ 30.033134] R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000003 [ 30.040267] [ 30.042457] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace netfs rfkill sunrpc vfat fat dm_multipath intel_rapl_msr intel_rapl_common intel_uncore_frequency ipmi_ssif intel_uncore_frequency_common isst_if_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm mgag200 rapl i2c_algo_bit iTCO_wdt drm_shmem_helper iTCO_vendor_support intel_cstate acpi_ipmi drm_kms_helper ipmi_si dcdbas intel_uncore mei_me i2c_i801 dell_smbios ipmi_devintf mei dell_wmi_descriptor wmi_bmof pcspkr i2c_smbus lpc_ich intel_pch_thermal ipmi_msghandler joydev acpi_power_meter drm fuse xfs libcrc32c sd_mod sg ahci crct10dif_pclmul nvme libahci crc32_pclmul crc32c_intel bnxt_en nvme_core libata ghash_clmulni_intel megaraid_sas tg3 t10_pi wmi dm_mirror dm_region_hash dm_log dm_mod [ 30.115078] CR2: 0000000000000000 [ 30.118398] ---[ end trace 0000000000000000 ]--- [ 30.130544] RIP: 0010:queue_zone_wplugs_show+0x42/0x100 [ 30.135772] Code: 47 68 48 89 44 24 10 e8 ec cf b7 ff 48 c7 44 24 08 00 00 00 00 48 8b 44 24 10 48 8b 4c 24 08 48 8b 80 b8 02 00 00 48 8d 04 c8 <4c> 8b 38 4d 85 ff 74 6a 49 8d 7f 24 31 db 48 89 3c 24 e8 37 25 6d [ 30.154518] RSP: 0018:ffffa7e68750bcb8 EFLAGS: 00010202 [ 30.159743] RAX: 0000000000000000 RBX: ffff8dae04c76528 RCX: 0000000000000000 [ 30.166875] RDX: ffff8dae1505a0c0 RSI: ffff8dae04c76528 RDI: ffff8dacb76c5fe0 [ 30.174010] RBP: ffff8dae04c76528 R08: ffffa7e68750bcb0 R09: ffff8daa860cbdb8 [ 30.181142] R10: ffffa7e68750bd08 R11: ffff8dae0319c000 R12: ffffa7e68750bd98 [ 30.188274] R13: ffffa7e68750bd70 R14: ffff8dae04c76550 R15: 0000000000000001 [ 30.195408] FS: 00007f553ea21740(0000) GS:ffff8db1efd00000(0000) knlGS:0000000000000000 [ 30.203495] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 30.209239] CR2: 0000000000000000 CR3: 000000048e000003 CR4: 00000000007706f0 [ 30.216371] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 30.223505] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 30.230636] PKRU: 55555554 [ 30.233351] Kernel panic - not syncing: Fatal exception [ 30.238599] Kernel Offset: 0x28200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 30.257215] ---[ end Kernel panic - not syncing: Fatal exception ]--- -- Best Regards, Changhui