<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.openanolis.cn/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>219</bug_id>
          
          <creation_ts>2021-12-28 20:43:08 +0000</creation_ts>
          <short_desc>[x86] 执行ltp-ima测试集ima_policy用例后，环境卡死，串口显示：BUG: unable to handle kernel NULL pointer dereference at 0000000000000018，未生成vmcore</short_desc>
          <delta_ts>2022-01-28 15:37:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>ANCK</classification>
          <product>ANCK 4.19 Dev</product>
          <component>general/others</component>
          <version>4.19-026.x</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedInfo</keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S2-major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="hustliyilin">jingshui1037</reporter>
          <assigned_to name="xuyu">qiyu.xy</assigned_to>
          
          
          <qa_contact name="shuming">qingming.su</qa_contact>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>456</commentid>
    <comment_count>0</comment_count>
    <who name="hustliyilin">jingshui1037</who>
    <bug_when>2021-12-28 20:43:08 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>461</commentid>
    <comment_count>1</comment_count>
    <who name="hustliyilin">jingshui1037</who>
    <bug_when>2021-12-28 21:08:30 +0000</bug_when>
    <thetext>*** Bug 220 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463</commentid>
    <comment_count>2</comment_count>
    <who name="hustliyilin">jingshui1037</who>
    <bug_when>2021-12-28 21:09:20 +0000</bug_when>
    <thetext>*** Bug 221 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465</commentid>
    <comment_count>3</comment_count>
    <who name="hustliyilin">jingshui1037</who>
    <bug_when>2021-12-28 21:10:38 +0000</bug_when>
    <thetext>*** Bug 222 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>563</commentid>
    <comment_count>4</comment_count>
    <who name="Shiloong">shile.zhang</who>
    <bug_when>2021-12-31 15:09:23 +0000</bug_when>
    <thetext>@hustliyilin
没有任何 log 吗? 比如 dmesg 里的 call trace 什么的?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>593</commentid>
    <comment_count>5</comment_count>
    <who name="hustliyilin">jingshui1037</who>
    <bug_when>2022-01-02 17:54:57 +0000</bug_when>
    <thetext>(In reply to Shiloong from comment #4)
&gt; @hustliyilin
&gt; 没有任何 log 吗? 比如 dmesg 里的 call trace 什么的?

我复制下

在执行到ltp-ima测试集ima_policy用例后，环境卡死，串口显示：BUG: unable to handle kernel NULL pointer dereference at 0000000000000018，未生成vmcore：

串口日志如下：
 [2021-12-27 15:23:18.714153][undefined][undefined]j66d06391 login: [   18.917187] EXT4-fs (sda5): Project quota feature not enabled. Cannot enable project quota enforcement.
[2021-12-27 15:33:15.969478][undefined][undefined][  615.695880] LTP: starting ima_measurements (ima_measurements.sh)
[2021-12-27 15:35:47.890062][undefined][undefined][  768.035315] LTP: starting ima_measurements (ima_measurements.sh)
[2021-12-27 15:35:47.890065][undefined][undefined][  768.091309] LTP: starting ima_policy (ima_policy.sh)
[2021-12-27 15:35:47.939641][undefined][undefined][  768.137868] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
[2021-12-27 15:35:47.950216][undefined][undefined][  768.145716] PGD f4ed28067 P4D f4ed28067 PUD 10182bc067 PMD 0
[2021-12-27 15:35:47.950218][undefined][undefined][  768.151480] Oops: 0000 [#1] SMP NOPTI
[2021-12-27 15:35:47.959449][undefined][undefined][  768.155161] CPU: 5 PID: 23381 Comm: ima_policy.sh Kdump: loaded Tainted: G           OE     4.19.91-013.beta.ali4000.alios7.x86_64 #1
[2021-12-27 15:35:47.969316][undefined][undefined][  768.167168] Hardware name: Quanta Cloud Technology Inc. S3A/S3A, BIOS S3A_3B09.FHK06 07/26/2019
[2021-12-27 15:35:47.979865][undefined][undefined][  768.175881] RIP: 0010:kmem_cache_alloc+0xb1/0x1c0
[2021-12-27 15:35:47.989315][undefined][undefined][  768.180596] Code: 00 48 89 e8 65 48 0f c7 0f 0f 94 c0 84 c0 74 ba 41 8b 47 20 41 f7 c4 00 80 00 00 0f 18 0c 03 0f 85 f3 00 00 00 0f 1f 44 00 00 &lt;45&gt; 8b 6e 18 4c 8b 7c 24 30 45 8b 76 1c 0f 1f 44 00 00 5b 48 89 e8
[2021-12-27 15:35:48.009919][undefined][undefined][  768.199375] RSP: 0018:ffffc9000a697c58 EFLAGS: 00010246
[2021-12-27 15:35:48.009921][undefined][undefined][  768.204612] RAX: 0000000000000000 RBX: 0000000000600040 RCX: 0000000000000002
[2021-12-27 15:35:48.019389][undefined][undefined][  768.211759] RDX: 0000000000000000 RSI: 0000000000600040 RDI: 0000000000000000
[2021-12-27 15:35:48.029380][undefined][undefined][  768.218907] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
[2021-12-27 15:35:48.029382][undefined][undefined][  768.226056] R10: ffff888fe1931288 R11: fefefefefefefeff R12: 0000000000600040
[2021-12-27 15:35:48.039868][undefined][undefined][  768.233206] R13: ffffffff81444bee R14: 0000000000000000 R15: 0000000000000000
[2021-12-27 15:35:48.049347][undefined][undefined][  768.240356] FS:  0000152c4ecfd740(0000) GS:ffff889037940000(0000) knlGS:0000000000000000
[2021-12-27 15:35:48.059421][undefined][undefined][  768.248461] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[2021-12-27 15:35:48.059422][undefined][undefined][  768.254221] CR2: 0000000000000018 CR3: 0000000f4d94e003 CR4: 00000000003606e0
[2021-12-27 15:35:48.072777][undefined][undefined][  768.261372] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[2021-12-27 15:35:48.089337][undefined][undefined][  768.268523] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[2021-12-27 15:35:48.089339][undefined][undefined][  768.275673] Call Trace:
[2021-12-27 15:35:48.099953][undefined][undefined][  768.278136]  integrity_inode_get+0x2e/0xc0
[2021-12-27 15:35:48.099955][undefined][undefined][  768.282240]  ? down_write+0xe/0x40
[2021-12-27 15:35:48.099955][undefined][undefined][  768.285661]  process_measurement+0x10e/0x6b0
[2021-12-27 15:35:48.099956][undefined][undefined][  768.289942]  ? __get_user_pages+0xe3/0x790
[2021-12-27 15:35:48.099957][undefined][undefined][  768.294052]  ? get_user_pages_remote+0x137/0x1f0
[2021-12-27 15:35:48.109507][undefined][undefined][  768.298687]  ima_bprm_check+0x58/0xb0
[2021-12-27 15:35:48.109509][undefined][undefined][  768.302363]  search_binary_handler+0x2a/0x1c0
[2021-12-27 15:35:48.109510][undefined][undefined][  768.306730]  __do_execve_file.isra.34+0x587/0x7d0
[2021-12-27 15:35:48.119362][undefined][undefined][  768.311444]  __x64_sys_execve+0x34/0x40
[2021-12-27 15:35:48.119363][undefined][undefined][  768.315292]  do_syscall_64+0x7b/0x200
[2021-12-27 15:35:48.135619][undefined][undefined][  768.318965]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[2021-12-27 15:35:48.135621][undefined][undefined][  768.324021] RIP: 0033:0x152c4dec5c37
[2021-12-27 15:35:48.135622][undefined][undefined][  768.327615] Code: ff ff 76 df 89 c6 f7 de 64 41 89 32 eb d5 89 c6 f7 de 64 41 89 32 eb db 66 2e 0f 1f 84 00 00 00 00 00 90 b8 3b 00 00 00 0f 05 &lt;48&gt; 3d 00 f0 ff ff 77 02 f3 c3 48 8b 15 08 12 30 00 f7 d8 64 89 02
[2021-12-27 15:35:48.169639][undefined][undefined][  768.346394] RSP: 002b:00007ffecb2e18f8 EFLAGS: 00000202 ORIG_RAX: 000000000000003b
[2021-12-27 15:35:48.180883][undefined][undefined][  768.353975] RAX: ffffffffffffffda RBX: 0000000002305ea0 RCX: 0000152c4dec5c37
[2021-12-27 15:35:48.180885][undefined][undefined][  768.361125] RDX: 00000000022bdce0 RSI: 00000000022c09a0 RDI: 0000000002305ea0
[2021-12-27 15:35:48.180886][undefined][undefined][  768.368276] RBP: 00000000023024c0 R08: 0000000000000001 R09: 0000000000000020
[2021-12-27 15:35:48.190534][undefined][undefined][  768.375424] R10: 00007ffecb2e1320 R11: 0000000000000202 R12: 0000000000000000
[2021-12-27 15:35:48.190536][undefined][undefined][  768.382994] R13: 00000000022c09a0 R14: 00000000022bdce0 R15: 0000000000000000
[2021-12-27 15:35:48.199331][undefined][undefined][  768.390554] Modules linked in: loop binfmt_misc ipt_MASQUERADE iptable_nat nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter overlay veth bridge stp llc ib_isert(OE) iscsi_target_mod target_core_mod ib_iser(OE) libiscsi scsi_transport_iscsi ib_srpt(OE) ib_srp(OE) scsi_transport_srp(OE) ib_ipoib(OE) rdma_ucm(OE) ib_ucm(OE) ib_umad(OE) rdma_cm(OE) ib_cm(OE) iw_cm(OE) mlx5_ib(OE) ib_uverbs(OE) ib_core(OE) bonding iTCO_wdt intel_rapl_msr iTCO_vendor_support sunrpc intel_rapl_common iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel glue_helper pcspkr i2c_i801 sg pcc_cpufreq ipmi_si mei_me pinctrl_sunrisepoint mei ipmi_devintf pinctrl_intel
[2021-12-27 15:35:48.270121][undefined][undefined][  768.464779]  ipmi_msghandler video acpi_power_meter acpi_pad ip_tables mlx5_core(OE) ast drm_kms_helper syscopyarea mlxfw sysfillrect sysimgblt fb_sys_fops mlx_compat(OE) crc32c_intel ttm drm igb dca i2c_algo_bit i2c_core sd_mod ahci libahci libata
[2021-12-27 15:35:48.289921][undefined][undefined][  768.487738] CR2: 0000000000000018
[2021-12-27 15:35:48.809678][undefined][undefined][  768.491552] ---[ end trace 84f103999f6ca464 ]---</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>