Skip to contentSkip to conversation

b8e7130188: WARNING:at_lib/list_debug.c:#__list_del_entry_valid

mm/lru Rong Chen 1 participant 1 message Mar 11, 2020 1 message not in the archive

lore
Share & tools
lore

Rong Chen

author
#1 lore raw
In reply to a message not in the archive

Hi Alex,

The head commit build failed:

commit: d7e47ad94d8637480dde9caee0e7f97ab7b13c8f
status: FAIL: build error
build_errors: | 1
  mm/mlock.c:325:35: error: 'struct pglist_data' has no member named
'lru_lock'

Best Regards,
Rong Chen

Quoted 85 lines · Alex Shi

Hi Rong,

Thanks a lot for this report!

I reviewed this patch many times, it looks fine. so I am wondering if the bug due to a far early patch 'mm/thp: narrow lru locking'? if so, it should be fixed on new branch, https://github.com/alexshi/linux.git lrunext-nothpnarrow

Could you like to give try on that branch?

Thanks a lot!
Alex

Quoted 71 lines · kernel test robot

FYI, we noticed the following commit (built with gcc-7):

commit: b8e71301886b2ad0b0754fbc6884b6a24ac1931b ("mm/lru: take PageLRU first in moving page between lru lists")
https://github.com/alexshi/linux.git lrunext

in testcase: pm-qa
with following parameters:

	test: thermal
	ucode: 0x27

on test machine: 8 threads Intel(R) Core(TM) i7-4790 v3 @ 3.60GHz with 6G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):

If you fix the issue, kindly add following tag

kern  :warn  : [   47.867335] WARNING: CPU: 0 PID: 12 at lib/list_debug.c:56 __list_del_entry_valid+0x8a/0x90
kern  :warn  : [   47.877485] Modules linked in: btrfs blake2b_generic xor zstd_decompress zstd_compress raid6_pq libcrc32c intel_rapl_msr intel_rapl_common sd_mod t10_pi snd_hda_codec_hdmi sg intel_powerclamp coretemp kvm_intel kvm snd_hda_intel snd_intel_dspcfg irqbypass snd_hda_codec i915 crct10dif_pclmul snd_hda_core crc32_pclmul crc32c_intel mei_wdt dcdbas snd_hwdep ghash_clmulni_intel drm_kms_helper ahci snd_pcm aesni_intel syscopyarea libahci sysfillrect crypto_simd snd_timer sysimgblt fb_sys_fops mei_me cryptd glue_helper libata i2c_i801 snd pcspkr drm lpc_ich joydev mei soundcore video ip_tables [last unloaded: x86_pkg_temp_thermal]
kern  :warn  : [   47.932620] CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.6.0-rc3-00010-gb8e71301886b2 #1
kern  :warn  : [   47.940863] Hardware name: Dell Inc. OptiPlex 9020/03CPWF, BIOS A11 04/01/2015
kern  :warn  : [   47.948069] Workqueue: events delayed_fput
kern  :warn  : [   47.952155] RIP: 0010:__list_del_entry_valid+0x8a/0x90
kern  :warn  : [   47.957279] Code: bf ff 0f 0b 31 c0 c3 48 89 f2 48 89 fe 48 c7 c7 a8 56 37 82 e8 07 69 bf ff 0f 0b 31 c0 c3 48 c7 c7 e8 56 37 82 e8 f6 68 bf ff <0f> 0b 31 c0 c3 cc 48 85 d2 74 28 89 f8 48 01 f2 48 c7 c7 a0 9f 08
kern  :warn  : [   47.976005] RSP: 0000:ffffc90000083b48 EFLAGS: 00010082
kern  :warn  : [   47.981215] RAX: 0000000000000000 RBX: ffff88819edd4000 RCX: 0000000000000007
kern  :warn  : [   47.988332] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff88819ea19b30
kern  :warn  : [   47.995450] RBP: 0000000000000000 R08: 00000000000004a2 R09: 0000000000000000
kern  :warn  : [   48.002568] R10: 0000000000000002 R11: ffffc900000839e8 R12: ffffc90000083cb0
kern  :warn  : [   48.009689] R13: ffffea0006643a00 R14: ffffffff8285b868 R15: 0000000000000000
kern  :warn  : [   48.016808] FS:  0000000000000000(0000) GS:ffff88819ea00000(0000) knlGS:0000000000000000
kern  :warn  : [   48.024878] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kern  :warn  : [   48.030608] CR2: 00007fc22447e000 CR3: 000000019769c005 CR4: 00000000001606f0
kern  :warn  : [   48.037725] Call Trace:
kern  :warn  : [   48.040166]  release_pages+0x172/0x410
kern  :warn  : [   48.043908]  __pagevec_release+0x39/0x40
kern  :warn  : [   48.047820]  shmem_undo_range+0x3d6/0x900
kern  :warn  : [   48.051863]  ? __i915_request_submit+0x19e/0x1d0 [i915]
kern  :warn  : [   48.057078]  shmem_truncate_range+0x16/0x40
kern  :warn  : [   48.061249]  shmem_evict_inode+0xda/0x240
kern  :warn  : [   48.065248]  ? init_wait_var_entry+0x50/0x50
kern  :warn  : [   48.069506]  evict+0xd9/0x1b0
kern  :warn  : [   48.072466]  __dentry_kill+0xe0/0x1a0
kern  :warn  : [   48.076118]  __fput+0x122/0x270
kern  :warn  : [   48.079253]  delayed_fput+0x1c/0x30
kern  :warn  : [   48.082731]  process_one_work+0x1b0/0x3e0
kern  :warn  : [   48.086732]  worker_thread+0x3c/0x3b0
kern  :warn  : [   48.090385]  ? process_one_work+0x3e0/0x3e0
kern  :warn  : [   48.094555]  kthread+0x11e/0x140
kern  :warn  : [   48.097776]  ? kthread_park+0x90/0x90
kern  :warn  : [   48.101430]  ret_from_fork+0x35/0x40
kern  :warn  : [   48.104996] ---[ end trace 06ce6216f2c3ef35 ]---

To reproduce:

git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml

Thanks,
Rong Chen