lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202309192210.a6367ad9-oliver.sang@intel.com>
Date: Tue, 19 Sep 2023 23:15:35 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Xabier Marquiegui <reibax@...il.com>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, Richard Cochran
	<richardcochran@...il.com>, <netdev@...r.kernel.org>, <horms@...nel.org>,
	<chrony-dev@...ony.tuxfamily.org>, <mlichvar@...hat.com>, <reibax@...il.com>,
	<ntp-lists@...tcorallo.com>, <shuah@...nel.org>, <davem@...emloft.net>,
	<rrameshbabu@...dia.com>, <alex.maftei@....com>, <oliver.sang@...el.com>
Subject: Re: [PATCH net-next v2 2/3] ptp: support multiple timestamp event
 readers



Hello,

kernel test robot noticed "kernel_BUG_at_lib/list_debug.c" on:

commit: bb1445038f83a91450bc74ccc5a6f2b702233584 ("[PATCH net-next v2 2/3] ptp: support multiple timestamp event readers")
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/20230912220217.2008895-2-reibax@gmail.com/
patch subject: [PATCH net-next v2 2/3] ptp: support multiple timestamp event readers

in testcase: stress-ng
version: stress-ng-x86_64-0.15.04-1_20230912
with following parameters:

	nr_threads: 100%
	disk: 1HDD
	testtime: 60s
	class: device
	test: dev
	cpufreq_governor: performance



compiler: gcc-12
test machine: 64 threads 2 sockets Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz (Ice Lake) with 256G 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@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202309192210.a6367ad9-oliver.sang@intel.com



The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20230919/202309192210.a6367ad9-oliver.sang@intel.com


[   42.745852][ T4208] list_del corruption. next->prev should be ff11000108593010, but was ff11002089351010. (next=ff1100011152b3f0)
[   42.745864][ T4208] ------------[ cut here ]------------
[   42.745864][ T4208] kernel BUG at lib/list_debug.c:65!
[   42.745870][ T4208] invalid opcode: 0000 [#1] SMP NOPTI
[   42.745873][ T4208] CPU: 14 PID: 4208 Comm: stress-ng-dev Not tainted 6.5.0-12685-gbb1445038f83 #1
[   42.745875][ T4208] Hardware name: Inspur NF5180M6/NF5180M6, BIOS 06.00.04 04/12/2022
[   42.745876][ T4208] RIP: 0010:__list_del_entry_valid_or_report+0xbe/0xf0
[   42.745884][ T4208] Code: 0b 48 89 fe 48 89 c2 48 c7 c7 78 c0 71 82 e8 99 53 a3 ff 0f 0b 48 89 d1 48 c7 c7 c8 c0 71 82 48 89 f2 48 89 c6 e8 82 53 a3 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 2e 0f 1f 84 00 00 00 00 00
[   42.745885][ T4208] RSP: 0018:ffa000000ef47ec0 EFLAGS: 00010246
[   42.745886][ T4208] RAX: 000000000000006d RBX: ff11000108593010 RCX: 0000000000000000
[   42.745887][ T4208] RDX: 0000000000000000 RSI: ff11001fffd9c6c0 RDI: ff11001fffd9c6c0
[   42.745888][ T4208] RBP: 0000000000000000 R08: 80000000ffff8c59 R09: 0000000000ffff10
[   42.745889][ T4208] R10: 000000000000000f R11: 000000000000000f R12: ff1100011152b000
[   42.745889][ T4208] R13: ff1100208a28ad20 R14: ff11000108fe40c0 R15: 0000000000000000
[   42.745890][ T4208] FS:  00007f28c2aa0700(0000) GS:ff11001fffd80000(0000) knlGS:0000000000000000
[   42.745891][ T4208] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   42.745892][ T4208] CR2: 00007f28c2a9dbf0 CR3: 00000001dd39e003 CR4: 0000000000771ee0
[   42.745893][ T4208] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   42.745893][ T4208] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   42.745894][ T4208] PKRU: 55555554
[   42.745894][ T4208] Call Trace:
[   42.745896][ T4208]  <TASK>
[   42.745898][ T4208]  ? die+0x36/0xb0
[   42.745901][ T4208]  ? do_trap+0xda/0x130
[   42.745904][ T4208]  ? __list_del_entry_valid_or_report+0xbe/0xf0
[   42.745906][ T4208]  ? do_error_trap+0x65/0xb0
[   42.745908][ T4208]  ? __list_del_entry_valid_or_report+0xbe/0xf0
[   42.745910][ T4208]  ? exc_invalid_op+0x50/0x70
[   42.745915][ T4208]  ? __list_del_entry_valid_or_report+0xbe/0xf0
[   42.745917][ T4208]  ? asm_exc_invalid_op+0x1a/0x20
[   42.745920][ T4208]  ? __list_del_entry_valid_or_report+0xbe/0xf0
[   42.745922][ T4208]  ptp_release+0x4c/0xb0
[   42.745928][ T4208]  posix_clock_release+0x28/0x70
[   42.745933][ T4208]  __fput+0xea/0x2b0
[   42.745938][ T4208]  __x64_sys_close+0x3d/0xb0
[   42.745940][ T4208]  do_syscall_64+0x3b/0xb0
[   42.745942][ T4208]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[   42.745947][ T4208] RIP: 0033:0x7f28c52acc2b
[   42.745949][ T4208] Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 a3 4d f9 ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 e1 4d f9 ff 8b 44
[   42.745950][ T4208] RSP: 002b:00007f28c2a9ebf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
[   42.745951][ T4208] RAX: ffffffffffffffda RBX: 00005629082e0920 RCX: 00007f28c52acc2b
[   42.745952][ T4208] RDX: 0000000000000062 RSI: 00005629096837d6 RDI: 0000000000000007
[   42.745952][ T4208] RBP: 0000000000000007 R08: 0000000000000000 R09: 0000000000000000
[   42.745953][ T4208] R10: 0000000000000001 R11: 0000000000000293 R12: 00005629096837a0
[   42.745953][ T4208] R13: 00000000ffffffff R14: 00005629096837d0 R15: 00007fff201baa20
[   42.745954][ T4208]  </TASK>
[   42.745955][ T4208] Modules linked in: rfkill uhid vfio_iommu_type1 vfio vhost_net tun vhost_vsock vmw_vsock_virtio_transport_common vsock vhost vhost_iotlb intel_rapl_msr intel_rapl_common btrfs x86_pkg_temp_thermal blake2b_generic xor ipmi_ssif coretemp kvm_intel kvm irqbypass raid6_pq crct10dif_pclmul libcrc32c crc32_pclmul sd_mod crc32c_intel sg ghash_clmulni_intel nvme sha512_ssse3 nvme_core rapl ahci ast t10_pi intel_cstate libahci acpi_ipmi drm_shmem_helper mei_me crc64_rocksoft_generic intel_uncore i2c_i801 dax_hmem ioatdma crc64_rocksoft megaraid_sas ipmi_si crc64 libata drm_kms_helper mei joydev i2c_smbus dca intel_pch_thermal wmi ipmi_devintf ipmi_msghandler acpi_power_meter drm fuse ip_tables
[   42.745984][ T4208] ---[ end trace 0000000000000000 ]---
[   42.747395][ T4218] list_add corruption. prev->next should be next (ff1100011152b3f0), but was ff1100029b963010. (prev=ff11004063643010).
[   42.747406][ T4218] ------------[ cut here ]------------
[   42.747407][ T4218] kernel BUG at lib/list_debug.c:32!
[   42.747413][ T4218] invalid opcode: 0000 [#2] SMP NOPTI
[   42.747416][ T4218] CPU: 61 PID: 4218 Comm: stress-ng-dev Tainted: G      D            6.5.0-12685-gbb1445038f83 #1
[   42.747418][ T4218] Hardware name: Inspur NF5180M6/NF5180M6, BIOS 06.00.04 04/12/2022
[   42.747420][ T4218] RIP: 0010:__list_add_valid_or_report+0x78/0xb0
[   42.747427][ T4218] Code: a3 ff 0f 0b 48 89 c1 48 c7 c7 c0 be 71 82 e8 9f 54 a3 ff 0f 0b 48 89 d1 48 89 c6 4c 89 c2 48 c7 c7 18 bf 71 82 e8 88 54 a3 ff <0f> 0b 48 89 f2 48 89 c1 48 89 fe 48 c7 c7 70 bf 71 82 e8 71 54 a3
[   42.747429][ T4218] RSP: 0018:ffa000000fdffc28 EFLAGS: 00010246
[   42.747431][ T4218] RAX: 0000000000000075 RBX: ff11004063640000 RCX: 0000000000000000
[   42.747433][ T4218] RDX: 0000000000000000 RSI: ff11003fc335c6c0 RDI: ff11003fc335c6c0
[   42.747434][ T4218] RBP: ff1100011152b000 R08: 80000000ffff8c89 R09: 0000000000ffff10
[   42.747436][ T4218] R10: 000000000000000f R11: 000000000000000f R12: ff11004063643010
[   42.747437][ T4218] R13: ff11004063641010 R14: ff1100011152b3f0 R15: 0000000000000000
[   42.747439][ T4218] FS:  00007f28c129d700(0000) GS:ff11003fc3340000(0000) knlGS:0000000000000000
[   42.747441][ T4218] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   42.747443][ T4218] CR2: 00007f28c129abf0 CR3: 00000001dd39e001 CR4: 0000000000771ee0
[   42.747445][ T4218] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   42.747446][ T4218] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   42.747447][ T4218] PKRU: 55555554
[   42.747448][ T4218] Call Trace:
[   42.747450][ T4218]  <TASK>
[   42.747452][ T4218]  ? die+0x36/0xb0
[   42.747456][ T4218]  ? do_trap+0xda/0x130
[   42.747458][ T4218]  ? __list_add_valid_or_report+0x78/0xb0
[   42.747461][ T4218]  ? do_error_trap+0x65/0xb0
[   42.747464][ T4218]  ? __list_add_valid_or_report+0x78/0xb0
[   42.747466][ T4218]  ? exc_invalid_op+0x50/0x70
[   42.747471][ T4218]  ? __list_add_valid_or_report+0x78/0xb0
[   42.747474][ T4218]  ? asm_exc_invalid_op+0x1a/0x20
[   42.747477][ T4218]  ? __list_add_valid_or_report+0x78/0xb0
[   42.747479][ T4218]  ? __list_add_valid_or_report+0x78/0xb0
[   42.747482][ T4218]  ptp_open+0x6a/0xb0
[   42.747487][ T4218]  posix_clock_open+0x47/0xb0
[   42.747491][ T4218]  chrdev_open+0xf7/0x270
[   42.747495][ T4218]  ? __pfx_chrdev_open+0x10/0x10
[   42.747497][ T4218]  do_dentry_open+0x200/0x4f0
[   42.747499][ T4218]  do_open+0x291/0x430
[   42.747503][ T4218]  ? open_last_lookups+0x8b/0x430
[   42.747505][ T4218]  path_openat+0x130/0x2f0
[   42.747508][ T4218]  do_filp_open+0xb3/0x170
[   42.747512][ T4218]  do_sys_openat2+0xab/0xf0
[   42.747515][ T4218]  __x64_sys_openat+0x6e/0xb0
[   42.747517][ T4218]  do_syscall_64+0x3b/0xb0
[   42.747521][ T4218]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[   42.747525][ T4218] RIP: 0033:0x7f28c52ac1a4
[   42.747528][ T4218] Code: 84 00 00 00 00 00 44 89 54 24 0c e8 36 58 f9 ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 68 58 f9 ff 8b 44
[   42.747529][ T4218] RSP: 002b:00007f28c129bac0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
[   42.747531][ T4218] RAX: ffffffffffffffda RBX: 000000000ee6b280 RCX: 00007f28c52ac1a4
[   42.747533][ T4218] RDX: 0000000000040802 RSI: 00005629096837d0 RDI: 00000000ffffff9c
[   42.747534][ T4218] RBP: 00005629096837d0 R08: 0000000000000000 R09: 00007f28ac000b60
[   42.747536][ T4218] R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000040802
[   42.747537][ T4218] R13: 0000000000040802 R14: 0000000000000000 R15: 00007fff201baa20
[   42.747539][ T4218]  </TASK>
[   42.747539][ T4218] Modules linked in: rfkill uhid vfio_iommu_type1 vfio vhost_net tun vhost_vsock vmw_vsock_virtio_transport_common vsock vhost vhost_iotlb intel_rapl_msr intel_rapl_common btrfs x86_pkg_temp_thermal blake2b_generic xor ipmi_ssif coretemp kvm_intel kvm irqbypass raid6_pq crct10dif_pclmul libcrc32c crc32_pclmul sd_mod crc32c_intel sg ghash_clmulni_intel nvme sha512_ssse3 nvme_core rapl ahci ast t10_pi intel_cstate libahci acpi_ipmi drm_shmem_helper mei_me crc64_rocksoft_generic intel_uncore i2c_i801 dax_hmem ioatdma crc64_rocksoft megaraid_sas ipmi_si crc64 libata drm_kms_helper mei joydev i2c_smbus dca intel_pch_thermal wmi ipmi_devintf ipmi_msghandler acpi_power_meter drm fuse ip_tables
[   42.747587][ T4218] ---[ end trace 0000000000000000 ]---
[   42.766845][ T4216] list_add corruption. prev->next should be next (ff1100011152b3f0), but was ff110002610fb010. (prev=ff1100026116b010).
[   42.784805][ T4210] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
[   42.784808][ T4210] PM: hibernation: Marking nosave pages: [mem 0x0003e000-0x0003efff]
[   42.784810][ T4210] PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]
[   42.784813][ T4210] PM: hibernation: Marking nosave pages: [mem 0x6702e000-0x6c1fefff]
[   42.785002][ T4210] PM: hibernation: Marking nosave pages: [mem 0x6f800000-0xffffffff]
[   42.785751][  T988] 
[   42.785855][ T4210] PM: hibernation: Basic memory bitmaps created
[   42.803384][ T4210] PM: hibernation: Basic memory bitmaps freed
[   42.803908][ T4210] random: crng reseeded on system resumption
[   42.819198][ T4208] RIP: 0010:__list_del_entry_valid_or_report+0xbe/0xf0
[   42.819207][ T4208] Code: 0b 48 89 fe 48 89 c2 48 c7 c7 78 c0 71 82 e8 99 53 a3 ff 0f 0b 48 89 d1 48 c7 c7 c8 c0 71 82 48 89 f2 48 89 c6 e8 82 53 a3 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 2e 0f 1f 84 00 00 00 00 00
[   42.819209][ T4208] RSP: 0018:ffa000000ef47ec0 EFLAGS: 00010246
[   42.819213][ T4208] RAX: 000000000000006d RBX: ff11000108593010 RCX: 0000000000000000
[   42.819215][ T4208] RDX: 0000000000000000 RSI: ff11001fffd9c6c0 RDI: ff11001fffd9c6c0
[   42.819217][ T4208] RBP: 0000000000000000 R08: 80000000ffff8c59 R09: 0000000000ffff10
[   42.819219][ T4208] R10: 000000000000000f R11: 000000000000000f R12: ff1100011152b000
[   42.819221][ T4208] R13: ff1100208a28ad20 R14: ff11000108fe40c0 R15: 0000000000000000
[   42.819222][ T4208] FS:  00007f28c2aa0700(0000) GS:ff11001fffd80000(0000) knlGS:0000000000000000
[   42.819224][ T4208] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   42.819226][ T4208] CR2: 00007f28c2a9dbf0 CR3: 00000001dd39e003 CR4: 0000000000771ee0
[   42.819227][ T4208] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   42.819229][ T4208] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   42.819230][ T4208] PKRU: 55555554
[   42.819232][ T4208] Kernel panic - not syncing: Fatal exception
[   44.547139][ T4208] Kernel Offset: disabled



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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ