Bug 749 - [Anolis OS 7.9][ecs][RHCK][x86]ltp-can_bcm01用例导致环境crash:BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
Summary: [Anolis OS 7.9][ecs][RHCK][x86]ltp-can_bcm01用例导致环境crash:BUG: unable to handle...
Status: CONFIRMED
Alias: None
Product: Anolis OS 7
Classification: Anolis OS
Component: kernel - rhck (show other bugs) kernel - rhck
Version: 7.9
Hardware: x86_64 Linux
: P3-Medium S2-major
Target Milestone: ---
Assignee: yunqi-zwt
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-30 14:55 UTC by kangwen429
Modified: 2022-04-01 16:28 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kangwen429 alibaba_cloud_group 2022-03-30 14:55:14 UTC
Description of problem:
执行ltp用例can_bcm01用例导致环境crash:

部分vmcore-dmesg日志:
[  241.346222] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[  241.346348] IP: [<ffffffff91b8e517>] rb_insert_color+0x17/0x170
[  241.346437] PGD 41c92a067 PUD 412ecd067 PMD 0
[  241.346510] Oops: 0000 [#1] SMP
[  241.346563] Modules linked in: can_bcm can vcan tcp_diag inet_diag dm_mirror dm_region_hash dm_log dm_mod nfit libnvdimm intel_powerclamp iosf_mbi crc32_pclmul ghash_clmulni_intel ppdev aesni_intel lrw gf128mul glue_helper ablk_helper cryptd parport_pc virtio_balloon parport i2c_piix4 pcspkr ip_tables ext4 mbcache jbd2 virtio_net virtio_console net_failover virtio_blk failover cirrus drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm crct10dif_pclmul crct10dif_common crc32c_intel serio_raw virtio_pci virtio_ring floppy virtio drm_panel_orientation_quirks
[  241.347412] CPU: 1 PID: 1913 Comm: can_bcm01 Kdump: loaded Not tainted 3.10.0-1160.59.1.0.1.an7.x86_64 #1
[  241.347538] Hardware name: Alibaba Cloud Alibaba Cloud ECS, BIOS 90210cb 04/01/2014
[  241.347641] task: ffff9b64d3a65280 ti: ffff9b617914c000 task.ti: ffff9b617914c000
[  241.347741] RIP: 0010:[<ffffffff91b8e517>]  [<ffffffff91b8e517>] rb_insert_color+0x17/0x170
[  241.347857] RSP: 0000:ffff9b64efc83ed0  EFLAGS: 00010046
[  241.347929] RAX: 0000000000000000 RBX: ffff9b64efc95f80 RCX: ffff9b64dc4a2250
[  241.348024] RDX: ffff9b64dc4a2250 RSI: ffff9b64efc959f0 RDI: ffff9b64efc95f80
[  241.348120] RBP: ffff9b64efc83ed0 R08: 00000037a4cb7b00 R09: ffff9b64efc83de0
[  241.348217] R10: 0000000000004675 R11: 0000000000000005 R12: ffff9b64efc959f0
[  241.348318] R13: ffff9b64efc959e0 R14: 0000000000000001 R15: ffff9b64efc95ad8
[  241.348414] FS:  00007fd6f095c700(0000) GS:ffff9b64efc80000(0000) knlGS:0000000000000000
[  241.348522] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  241.348599] CR2: 0000000000000008 CR3: 000000041dccc000 CR4: 00000000007606e0
[  241.348697] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  241.348793] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  241.348889] PKRU: 55555554
[  241.348927] Call Trace:
[  241.348963]  <IRQ>
[  241.348994]  [<ffffffff91b91350>] timerqueue_add+0x60/0xb0
[  241.349077]  [<ffffffff918c9875>] enqueue_hrtimer+0x25/0x80
[  241.349153]  [<ffffffff918ca28c>] __hrtimer_run_queues+0x13c/0x270
[  241.349239]  [<ffffffff918ca7bf>] hrtimer_interrupt+0xaf/0x1d0
[  241.349325]  [<ffffffff9185ce2b>] local_apic_timer_interrupt+0x3b/0x60
[  241.349415]  [<ffffffff91f9ea23>] smp_apic_timer_interrupt+0x43/0x60
[  241.349502]  [<ffffffff91f9afba>] apic_timer_interrupt+0x16a/0x170
[  241.349585]  <EOI>
[  241.349614] Code:
[  241.349647] 48 89 d0 48 83 e0 fc 75 eb 5d c3 31 c0 5d c3 0f 1f 44 00 00 55 48 8b 17 48 89 e5 48 85 d2 0f 84 21 01 00 00 48 8b 02 a8 01 75 62 <48> 8b 48 08 49 89 c0 48 39 ca 0f 84 93 00 00 00 48 85 c9 74 05
[  241.350399] RIP  [<ffffffff91b8e517>] rb_insert_color+0x17/0x170
[  241.350776]  RSP <ffff9b64efc83ed0>
[  241.351111] CR2: 0000000000000008

Version-Release number of selected component (if applicable):

# cat /etc/image-id
image_name="Anolis OS 7.9 RHCK 64 bit"
image_id="anolisos_7_9_x64_20G_rhck_alibase_20220316.vhd"
release_date="20220316123009"
# uname -r
3.10.0-1160.59.1.0.1.an7.x86_64

How reproducible:


Steps to Reproduce:

1.下载编译ltp测试用例
git clone https://github.com/linux-test-project/ltp.git
make autotools
./configure
make
make install
2.执行用例
cd /opt/ltp
./runltp -f can -s can_bcm01


Actual results:

环境crash复位。

Expected results:

用例pass,环境正常。

Additional info:

[root@iZbp116tlh2h2474lremrvZ ltp]# uname -r
3.10.0-1160.59.1.0.1.an7.x86_64
[root@iZbp116tlh2h2474lremrvZ ltp]# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 106
Model name:            Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
Stepping:              6
CPU MHz:               2699.998
BogoMIPS:              5399.99
Hypervisor vendor:     KVM
Virtualization type:   full
L1d cache:             48K
L1i cache:             32K
L2 cache:              1280K
L3 cache:              49152K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq arch_capabilities
[root@iZbp116tlh2h2474lremrvZ ltp]# free -mh
              total        used        free      shared  buff/cache   available
Mem:            15G        362M         11G        420K        3.1G         14G
Swap:            0B          0B          0B
Comment 1 Jacob admin 2022-04-01 16:28:52 UTC
不影响发布