Subject: Re: [PATCH net-next v2 1/3] ptp: Replace timestamp event queue with linked list

From: kernel test robot <[email-masked]>
Date: Wed, 20 Sep 2023 23:40:26 +0800

Hello,

kernel test robot noticed "general protection fault" on:

commit: eb1ea1d74fb2741a0ca47a38e38ba338b45ed791 ("[PATCH net-next v2 1/3] ptp: Replace timestamp event queue with linked list")
url: https://github.com/intel-lab-lkp/linux/commits/Xabier-Marquiegui/ptp-support-multiple-timestamp-event-readers/20230913-060341
base: https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git 8fc8911b66962c6ff4345e7000930a4bcc54ae5a
patch link: https://lore.kernel.org/all/[email-masked]/
patch subject: [PATCH net-next v2 1/3] ptp: Replace timestamp event queue with linked list

in testcase: filebench
version: filebench-x86_64-22620e6-1_20221010
with following parameters:

	disk: 1HDD
	fs: ext4
	test: singlestreamwritedirect.f
	cpufreq_governor: performance

compiler: gcc-12
test machine: 96 threads 2 sockets (Ice Lake) with 128G memory

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 <[email-masked]>
| Closes: https://lore.kernel.org/oe-lkp/[email-masked]

due to some parse issue, we didn't capture full dmesg as a file, below is what
we captured from serial, FYI.

[   28.880910][    T1] general protection fault, probably for non-canonical address 0xdead000000000100: 0000 [#1] SMP NOPTI
[   28.891775][    T1] CPU: 95 PID: 1 Comm: swapper/0 Not tainted 6.5.0-12684-geb1ea1d74fb2 #1
[   28.900126][    T1] RIP: 0010:__list_del_entry_valid_or_report+0x4/0xf0
[   28.906746][    T1] Code: 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa <48> 8b 17
 48 8b 4f 08 48 85 d2 74 3e 48 85 c9 74 4a 48 b8 00 01 00
[   28.926184][    T1] RSP: 0000:ffa000000014bbe8 EFLAGS: 00010283
[   28.932102][    T1] RAX: 0000000000031670 RBX: dead000000000100 RCX: 0000000000000000
[   28.939928][    T1] RDX: 0000000000000001 RSI: ffd4000061e82200 RDI: dead000000000100
[   28.947753][    T1] RBP: deacfffffffff0f0 R08: 0000000000000282 R09: ffffffff81c05b01
[   28.955580][    T1] R10: ff1100187a088000 R11: 0000000000000001 R12: ff110001c7a033f0
[   28.963402][    T1] R13: dead000000000122 R14: dead000000000100 R15: 0000000000000001
[   28.971220][    T1] FS:  0000000000000000(0000) GS:ff110020127c0000(0000) knlGS:0000000000000000
[   28.979999][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   28.986438][    T1] CR2: 0000000000000000 CR3: 000000206ea18001 CR4: 0000000000771ee0
[   28.994264][    T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   29.002088][    T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   29.009914][    T1] PKRU: 55555554
[   29.013317][    T1] Call Trace:
[   29.016456][    T1]  <TASK>
[   29.019245][    T1]  ? die_addr+0x36/0xb0
[   29.023259][    T1]  ? exc_general_protection+0x19d/0x3b0
[   29.028659][    T1]  ? asm_exc_general_protection+0x26/0x30
[   29.034228][    T1]  ? ptp_clean_queue_list+0x31/0xb0
[   29.039283][    T1]  ? __list_del_entry_valid_or_report+0x4/0xf0
[   29.045287][    T1]  ptp_clean_queue_list+0x43/0xb0
[   29.050166][    T1]  ptp_clock_release+0x31/0x70
[   29.054787][    T1]  device_release+0x34/0xb0
[   29.059151][    T1]  kobject_cleanup+0x39/0x130
[   29.063684][    T1]  ptp_clock_unregister+0x93/0xf0
[   29.068564][    T1]  ixgbe_ptp_stop+0x23/0x70
[   29.072924][    T1]  ixgbe_close+0x23/0x130
[   29.077110][    T1]  __dev_close_many+0x9b/0x130
[   29.081736][    T1]  __dev_change_flags+0x1aa/0x270
[   29.086614][    T1]  dev_change_flags+0x26/0x70
[   29.091147][    T1]  ic_close_devs+0x64/0x130
[   29.095507][    T1]  ip_auto_config+0x458/0x5f0
[   29.100040][    T1]  ? __pfx_ip_auto_config+0x10/0x10
[   29.105090][    T1]  do_one_initcall+0x5a/0x2f0
[   29.109623][    T1]  do_initcalls+0xc6/0x170
[   29.113895][    T1]  kernel_init_freeable+0x25c/0x330
[   29.118948][    T1]  ? __pfx_kernel_init+0x10/0x10
[   29.123738][    T1]  kernel_init+0x1a/0x1f0
[   29.127925][    T1]  ret_from_fork+0x31/0x70
[   29.132197][    T1]  ? __pfx_kernel_init+0x10/0x10
[   29.136990][    T1]  ret_from_fork_asm+0x1b/0x30
[   29.141610][    T1]  </TASK>
[   29.144496][    T1] Modules linked in:
[   29.148255][    T1] ---[ end trace 0000000000000000 ]---
[   29.163209][    T1] pstore: backend (erst) writing error (-28)
[   29.169045][    T1] RIP: 0010:__list_del_entry_valid_or_report+0x4/0xf0
[   29.175657][    T1] Code: 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa <48> 8b 17
 48 8b 4f 08 48 85 d2 74 3e 48 85 c9 74 4a 48 b8 00 01 00
[   29.195100][    T1] RSP: 0000:ffa000000014bbe8 EFLAGS: 00010283
[   29.201014][    T1] RAX: 0000000000031670 RBX: dead000000000100 RCX: 0000000000000000
[   29.208842][    T1] RDX: 0000000000000001 RSI: ffd4000061e82200 RDI: dead000000000100
[   29.216667][    T1] RBP: deacfffffffff0f0 R08: 0000000000000282 R09: ffffffff81c05b01
[   29.224490][    T1] R10: ff1100187a088000 R11: 0000000000000001 R12: ff110001c7a033f0
[   29.232315][    T1] R13: dead000000000122 R14: dead000000000100 R15: 0000000000000001
[   29.240140][    T1] FS:  0000000000000000(0000) GS:ff110020127c0000(0000) knlGS:0000000000000000
[   29.248919][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   29.255357][    T1] CR2: 0000000000000000 CR3: 000000206ea18001 CR4: 0000000000771ee0
[   29.263176][    T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   29.271002][    T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   29.278827][    T1] PKRU: 55555554
[   29.282233][    T1] Kernel panic - not syncing: Fatal exception
[   29.288254][    T1] Kernel Offset: disabled

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