[linux-next:master] [fs/dax] 9e9148ba90: WARNING:at_fs/dax.c:#dax_folio_put

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello,

kernel test robot noticed "WARNING:at_fs/dax.c:#dax_folio_put" on:

commit: 9e9148ba90757a1db81472371f582de2b936b0d6 ("fs/dax: properly refcount fs dax pages")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

[test failed on linux-next/master 0a2f889128969dab41861b6e40111aa03dc57014]

in testcase: nvml
version: nvml-x86_64-c0abd814f-1_20240621
with following parameters:

	test: pmem
	group: ctl
	nr_pmem: 1
	fs: ext4
	mount_option: dax
	bp_memmap: 32G!4G



config: x86_64-rhel-9.4-func
compiler: gcc-12
test machine: 36 threads 1 sockets Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz (Cascade Lake) with 128G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)



If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-lkp/202503102229.122fbd6c-lkp@xxxxxxxxx


kern  :warn  : [  148.701197] ------------[ cut here ]------------
kern :warn : [  148.702568] WARNING: CPU: 1 PID: 42454 at fs/dax.c:415 dax_folio_put+0x288/0x390 
kern  :warn  : [  148.704151] Modules linked in: intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common skx_edac_common nfit x86_pkg_temp_thermal intel_powerclamp coretemp snd_soc_avs snd_soc_hda_codec snd_hda_codec_realtek snd_hda_ext_core snd_soc_core snd_hda_codec_generic amdgpu kvm_intel snd_compress snd_hda_scodec_component snd_hda_codec_hdmi btrfs kvm amdxcp blake2b_generic gpu_sched xor drm_panel_backlight_quirks zstd_compress cec drm_buddy drm_ttm_helper snd_hda_intel ttm snd_intel_dspcfg ghash_clmulni_intel snd_intel_sdw_acpi drm_exec snd_hda_codec raid6_pq sha512_ssse3 drm_suballoc_helper sd_mod sha256_ssse3 drm_display_helper sha1_ssse3 sg snd_hda_core rapl intel_cstate nd_pmem snd_hwdep drm_client_lib drm_kms_helper snd_pcm nd_btt ahci dax_pmem mei_me nvme libahci snd_timer ipmi_devintf nd_e820 ipmi_msghandler libata libnvdimm intel_uncore nvme_core snd ioatdma video mei i2c_i801 wdat_wdt pcspkr wmi_bmof mxm_wmi intel_wmi_thunderbolt i2c_smbus soundcore dca wmi binfmt_misc drm fuse dm_mod loop
kern  :warn  : [  148.704342]  ip_tables
kern  :warn  : [  148.721353] CPU: 1 UID: 0 PID: 42454 Comm: ctl_prefault Not tainted 6.14.0-rc3-00230-g9e9148ba9075 #1
kern  :warn  : [  148.723223] Hardware name: Gigabyte Technology Co., Ltd. X299 UD4 Pro/X299 UD4 Pro-CF, BIOS F8a 04/27/2021
kern :warn : [  148.725158] RIP: dax_folio_put+0x288/0x390 
kern :warn : [ 148.726771] Code: 7e 48 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 e4 00 00 00 49 8b 6e 48 40 f6 c5 01 0f 84 7f fe ff ff 48 83 ed 01 e9 79 fe ff ff <0f> 0b e9 43 ff ff ff 48 b8 00 00 00 00 00 fc ff df 49 8d 7e 20 48
All code
========
   0:	7e 48                	jle    0x4a
   2:	48 89 f9             	mov    %rdi,%rcx
   5:	48 c1 e9 03          	shr    $0x3,%rcx
   9:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1)
   d:	0f 85 e4 00 00 00    	jne    0xf7
  13:	49 8b 6e 48          	mov    0x48(%r14),%rbp
  17:	40 f6 c5 01          	test   $0x1,%bpl
  1b:	0f 84 7f fe ff ff    	je     0xfffffffffffffea0
  21:	48 83 ed 01          	sub    $0x1,%rbp
  25:	e9 79 fe ff ff       	jmp    0xfffffffffffffea3
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	e9 43 ff ff ff       	jmp    0xffffffffffffff74
  31:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  38:	fc ff df 
  3b:	49 8d 7e 20          	lea    0x20(%r14),%rdi
  3f:	48                   	rex.W

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	e9 43 ff ff ff       	jmp    0xffffffffffffff4a
   7:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   e:	fc ff df 
  11:	49 8d 7e 20          	lea    0x20(%r14),%rdi
  15:	48                   	rex.W
kern  :warn  : [  148.730733] RSP: 0000:ffffc9002aeff7b8 EFLAGS: 00010002
kern  :warn  : [  148.732384] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000
kern  :warn  : [  148.734315] RDX: fffff94005c04007 RSI: 0000000000000004 RDI: ffffea002e020034
kern  :warn  : [  148.736117] RBP: ffffea002e020034 R08: 0000000000000000 R09: fffff94005c04006
kern  :warn  : [  148.738003] R10: ffffea002e020037 R11: ffffc9002aeffac8 R12: 0000000000000000
kern  :warn  : [  148.739805] R13: ffffea002e020000 R14: ffffea002e020000 R15: dffffc0000000000
kern  :warn  : [  148.741650] FS:  00007f45f6590200(0000) GS:ffff889fc1c80000(0000) knlGS:0000000000000000
kern  :warn  : [  148.743525] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kern  :warn  : [  148.745226] CR2: 00007f45f5a00000 CR3: 0000000c0b1c4004 CR4: 00000000003726f0
kern  :warn  : [  148.747051] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kern  :warn  : [  148.748840] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kern  :warn  : [  148.750714] Call Trace:
kern  :warn  : [  148.752118]  <TASK>
kern :warn : [  148.753608] ? __warn (kernel/panic.c:748) 
kern :warn : [  148.755149] ? dax_folio_put+0x288/0x390 
kern :warn : [  148.756894] ? report_bug (lib/bug.c:180 lib/bug.c:219) 
kern :warn : [  148.758502] ? handle_bug (arch/x86/kernel/traps.c:285) 
kern :warn : [  148.759986] ? exc_invalid_op (arch/x86/kernel/traps.c:309 (discriminator 1)) 
kern :warn : [  148.761556] ? asm_exc_invalid_op (arch/x86/include/asm/idtentry.h:574) 
kern :warn : [  148.763137] ? dax_folio_put+0x288/0x390 
kern :warn : [  148.764686] ? dax_folio_put+0x1a5/0x390 
kern :warn : [  148.766315] dax_insert_entry (fs/dax.c:1077) 
kern :warn : [  148.767757] ? __pfx_dax_insert_entry (fs/dax.c:1051) 
kern :warn : [  148.769250] ? dax_iomap_direct_access (fs/dax.c:1279) 
kern :warn : [  148.770756] dax_fault_iter (fs/dax.c:1871) 
kern :warn : [  148.772160] ? __pfx_dax_fault_iter (fs/dax.c:1839) 
kern :warn : [  148.773714] ? iomap_iter (fs/iomap/iter.c:90) 
kern :warn : [  148.775069] dax_iomap_pmd_fault (fs/dax.c:2067) 
kern :warn : [  148.776430] ? __pfx_dax_iomap_pmd_fault (fs/dax.c:2006) 
kern :warn : [  148.777894] ? mmap_region (arch/x86/include/asm/atomic.h:60 include/linux/atomic/atomic-arch-fallback.h:1210 include/linux/atomic/atomic-instrumented.h:593 include/linux/fs.h:612 mm/vma.c:2557) 
kern :warn : [  148.779177] ? jbd2__journal_start (fs/jbd2/transaction.c:505) 
kern :warn : [  148.780522] ext4_dax_huge_fault (fs/ext4/file.c:766) 
kern :warn : [  148.781904] ? __pfx_ext4_dax_huge_fault (fs/ext4/file.c:722) 
kern :warn : [  148.783187] ? __pfx_pmd_write (mm/gup.c:223) 
kern :warn : [  148.784361] __handle_mm_fault (mm/memory.c:5826 mm/memory.c:6075) 
kern :warn : [  148.785585] ? __pfx___handle_mm_fault (mm/memory.c:5994) 
kern :warn : [  148.786791] handle_mm_fault (mm/memory.c:6254) 
kern :warn : [  148.787909] do_user_addr_fault (arch/x86/mm/fault.c:1338) 
kern :warn : [  148.789053] exc_page_fault (arch/x86/include/asm/irqflags.h:37 arch/x86/include/asm/irqflags.h:92 arch/x86/mm/fault.c:1488 arch/x86/mm/fault.c:1538) 
kern :warn : [  148.790173] asm_exc_page_fault (arch/x86/include/asm/idtentry.h:574) 
kern  :warn  : [  148.791294] RIP: 0033:0x7f45f6f59b4f
kern :warn : [ 148.792300] Code: 45 f0 48 8b 45 f0 48 8b 4d f8 48 03 41 18 48 89 45 e8 48 8b 45 f0 48 3b 45 e8 0f 83 97 00 00 00 48 8b 45 f0 8a 08 48 8b 45 f0 <88> 08 48 8d 05 48 8d 05 00 8b 00 48 83 f8 00 0f 84 57 00 00 00 48
All code
========
   0:	45                   	rex.RB
   1:	f0 48 8b 45 f0       	lock mov -0x10(%rbp),%rax
   6:	48 8b 4d f8          	mov    -0x8(%rbp),%rcx
   a:	48 03 41 18          	add    0x18(%rcx),%rax
   e:	48 89 45 e8          	mov    %rax,-0x18(%rbp)
  12:	48 8b 45 f0          	mov    -0x10(%rbp),%rax
  16:	48 3b 45 e8          	cmp    -0x18(%rbp),%rax
  1a:	0f 83 97 00 00 00    	jae    0xb7
  20:	48 8b 45 f0          	mov    -0x10(%rbp),%rax
  24:	8a 08                	mov    (%rax),%cl
  26:	48 8b 45 f0          	mov    -0x10(%rbp),%rax
  2a:*	88 08                	mov    %cl,(%rax)		<-- trapping instruction
  2c:	48 8d 05 48 8d 05 00 	lea    0x58d48(%rip),%rax        # 0x58d7b
  33:	8b 00                	mov    (%rax),%eax
  35:	48 83 f8 00          	cmp    $0x0,%rax
  39:	0f 84 57 00 00 00    	je     0x96
  3f:	48                   	rex.W

Code starting with the faulting instruction
===========================================
   0:	88 08                	mov    %cl,(%rax)
   2:	48 8d 05 48 8d 05 00 	lea    0x58d48(%rip),%rax        # 0x58d51
   9:	8b 00                	mov    (%rax),%eax
   b:	48 83 f8 00          	cmp    $0x0,%rax
   f:	0f 84 57 00 00 00    	je     0x6c
  15:	48                   	rex.W
kern  :warn  : [  148.795265] RSP: 002b:00007fff424b56a0 EFLAGS: 00010287
kern  :warn  : [  148.796428] RAX: 00007f45f5a00000 RBX: 0000000000200000 RCX: 000055a297c07600
kern  :warn  : [  148.797827] RDX: 0000000000000000 RSI: 000055a297c16360 RDI: 000055a297c076e0
kern  :warn  : [  148.799163] RBP: 00007fff424b56a0 R08: 0000000000000000 R09: 0000000000000073
kern  :warn  : [  148.800486] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fff424b65b5
kern  :warn  : [  148.801886] R13: 00007fff424b5ce0 R14: 0000000000800000 R15: 0000000000800000
kern  :warn  : [  148.803216]  </TASK>
kern  :warn  : [  148.804116] ---[ end trace 0000000000000000 ]---


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250310/202503102229.122fbd6c-lkp@xxxxxxxxx



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki






[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux