<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックKernel oops during data storage using key blob, kb_ioctl (cryptodev)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040801#M153324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on imx8dx based target.&lt;/P&gt;&lt;P&gt;Linux:4.14.98&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using keyblob for storing and getting the keys/certificates, when we try to store the certificate, it internally uses blob generation and encryption functions, which internally calls "kb_ioctl" in the driver(drivers/crypto/caam/key_blob.c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we try to store some data, sometimes we are getting below issue. Can you please help us, why is this happening sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue1:&lt;/P&gt;&lt;P&gt;#113 I[ 265.198310] ------------[ cut here ]------------&lt;BR /&gt;[ 265.205957] kernel BUG at /usr/src/kernel/mm/slub.c:294!&lt;BR /&gt;[ 265.211271] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP&lt;BR /&gt;NFO &amp;gt; [SequenceEngine:DiagCommEngine] : Session with sessoin I[ 265.216761] Modules linked in: cryptodev(O)&lt;BR /&gt;[ 265.226590] CPU: 0 PID: 2546 Comm: java Tainted: G O 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea #1&lt;BR /&gt;[ 265.236244] Hardware name: Freescale i.MX8DX MEK (DT)&lt;BR /&gt;[ 265.241293] task: ffff8000180fe800 task.stack: ffff00000ef88000&lt;BR /&gt;[ 265.247225] PC is at kfree+0x1e8/0x1f8&lt;BR /&gt;[ 265.250975] LR is at kso_cleanup_data+0x20/0x28&lt;BR /&gt;[ 265.255505] pc : [&amp;lt;ffff0000081f7ee0&amp;gt;] lr : [&amp;lt;ffff0000085c7d60&amp;gt;] pstate: 60000145&lt;BR /&gt;[ 265.262896] sp : ffff00000ef8bcf0&lt;BR /&gt;[ 265.266207] x29: ffff00000ef8bcf0 x28: ffff8000182b4900 &lt;BR /&gt;[ 265.271523] x27: 0000000000000020 x26: ffff80001a1fe700 &lt;BR /&gt;[ 265.276840] x25: ffff8000182b4880 x24: 0000000000000001 &lt;BR /&gt;[ 265.282157] x23: ffff0000085c7d60 x22: 00000000000bf6e4 &lt;BR /&gt;[ 265.287473] x21: ffff800012403c80 x20: ffff80001819cf80 &lt;BR /&gt;[ 265.292790] x19: ffff7e0000606700 x18: 0000ffff971fd194 &lt;BR /&gt;[ 265.298107] x17: 0000ffffa5980100 x16: ffff00000813dcc0 &lt;BR /&gt;[ 265.303424] x15: 000061c164000000 x14: 001406f400000000 &lt;BR /&gt;[ 265.308740] x13: 0000000000000000 x12: 0000003dbf0c5fba &lt;BR /&gt;[ 265.314057] x11: 0000000000000000 x10: 00000000000008e0 &lt;BR /&gt;[ 265.319374] x9 : ffff00000ef8bad0 x8 : ffff8000180ff140 &lt;BR /&gt;[ 265.324691] x7 : ffff8000180fe980 x6 : 49856764efcba631 &lt;BR /&gt;[ 265.330007] x5 : 0000000000000000 x4 : ffff80001819cf80 &lt;BR /&gt;[ 265.335324] x3 : 000080001743d000 x2 : ffff80001819cf80 &lt;BR /&gt;[ 265.340641] x1 : ffff000008b2bee0 x0 : ffff7e0000606700 &lt;BR /&gt;[ 265.345959] Process java (pid: 2546, stack limit = 0xffff00000ef88000)&lt;BR /&gt;[ 265.352482] Call trace:&lt;BR /&gt;[ 265.354926] Exception stack(0xffff00000ef8bbb0 to 0xffff00000ef8bcf0)&lt;BR /&gt;[ 265.361373] bba0: ffff7e0000606700 ffff000008b2bee0&lt;BR /&gt;[ 265.369209] bbc0: ffff80001819cf80 000080001743d000 ffff80001819cf80 0000000000000000&lt;BR /&gt;[ 265.377046] bbe0: 49856764efcba631 ffff8000180fe980 ffff8000180ff140 ffff00000ef8bad0&lt;BR /&gt;[ 265.384881] bc00: 00000000000008e0 0000000000000000 0000003dbf0c5fba 0000000000000000&lt;BR /&gt;[ 265.392718] bc20: 001406f400000000 000061c164000000 ffff00000813dcc0 0000ffffa5980100&lt;BR /&gt;[ 265.400554] bc40: 0000ffff971fd194 ffff7e0000606700 ffff80001819cf80 ffff800012403c80&lt;BR /&gt;[ 265.408390] bc60: 00000000000bf6e4 ffff0000085c7d60 0000000000000001 ffff8000182b4880&lt;BR /&gt;[ 265.416226] bc80: ffff80001a1fe700 0000000000000020 ffff8000182b4900 ffff00000ef8bcf0&lt;BR /&gt;[ 265.424062] bca0: ffff0000085c7d60 ffff00000ef8bcf0 ffff0000081f7ee0 0000000060000145&lt;BR /&gt;[ 265.431898] bcc0: 0000000000000000 0000000000000020 0000ffffffffffff 0000000000000020&lt;BR /&gt;[ 265.439733] bce0: ffff00000ef8bcf0 ffff0000081f7ee0&lt;BR /&gt;[ 265.444616] [&amp;lt;ffff0000081f7ee0&amp;gt;] kfree+0x1e8/0x1f8&lt;BR /&gt;[ 265.449412] [&amp;lt;ffff0000085c7d60&amp;gt;] kso_cleanup_data+0x20/0x28&lt;BR /&gt;[ 265.454989] [&amp;lt;ffff0000085c79e4&amp;gt;] sm_release_keystore+0x1c/0x30&lt;BR /&gt;[ 265.460827] [&amp;lt;ffff0000085cc85c&amp;gt;] kb_ioctl+0x2d4/0x738&lt;BR /&gt;[ 265.465884] [&amp;lt;ffff000008228efc&amp;gt;] do_vfs_ioctl+0xa4/0x8e8&lt;BR /&gt;[ 265.471199] [&amp;lt;ffff0000082297bc&amp;gt;] SyS_ioctl+0x7c/0x98&lt;BR /&gt;[ 265.476167] Exception stack(0xffff00000ef8bec0 to 0xffff00000ef8c000)&lt;BR /&gt;[ 265.482607] bec0: 0000000000000124 00000000c0244b04 0000ffff56b84e80 0000000000000001&lt;BR /&gt;[ 265.490443] bee0: 0000000000000125 0000000000000000 0000000000000000 fefeff6a62606b61&lt;BR /&gt;[ 265.498279] bf00: 000000000000001d cfa95fbf65be5be4 0101010101010101 0000000000000003&lt;BR /&gt;[ 265.506115] bf20: cd7e31f5626cf658 6548eba4563d4c25 000000000000004f 0000000000000000&lt;BR /&gt;[ 265.513952] bf40: 0000ffff952ab528 0000ffffa596b910 0000ffffa59f3a70 0000ffff9808af38&lt;BR /&gt;[ 265.521788] bf60: 0000ffff56b86050 0000ffffa5844130 0000000000000000 0000000000000005&lt;BR /&gt;[ 265.529624] bf80: 0000ffff56b860c8 00000000f91ad238 0000ffff5d9a1ba8 0000000000000000&lt;BR /&gt;[ 265.537460] bfa0: 0000ffff5815d800 0000ffff56b84e10 0000ffff9528df30 0000ffff56b84e10&lt;BR /&gt;[ 265.545296] bfc0: 0000ffffa596b91c 0000000020000000 0000000000000124 000000000000001d&lt;BR /&gt;[ 265.553132] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000&lt;BR /&gt;[ 265.560969] [&amp;lt;ffff000008083318&amp;gt;] __sys_trace_return+0x0/0x4&lt;BR /&gt;[ 265.566547] Code: 97fffd2c a9425bb5 17ffffd9 d503201f (d4210000) &lt;BR /&gt;[ 265.572648] ---[ end trace 835bf4fb1829feed ]---&lt;BR /&gt;[ 265.577265] Kernel panic - not syncing: Fatal exception&lt;BR /&gt;[ 265.582494] SMP: stopping secondary CPUs&lt;BR /&gt;[ 265.586413] Kernel Offset: disabled&lt;BR /&gt;[ 265.589905] CPU features: 0x0802008&lt;BR /&gt;[ 265.593386] Memory Limit: none&lt;BR /&gt;[ 265.596438] Rebooting in 10 seconds..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue2: (This is coming from different location in kb_ioctl)&lt;/P&gt;&lt;P&gt;[ 418.582943] ISV = 0, ISS = 0x00000004&lt;BR /&gt;[ 418.593123] CM = 0, WnR = 0&lt;BR /&gt;[ 418.602490] [007f71028331b6f2] address between user and kernel address ranges&lt;BR /&gt;[ 418.615337] Internal error: Oops: 96000004 [#1] PREEMPT SMP&lt;BR /&gt;[ 418.625082] Modules linked in: cryptodev(O)&lt;BR /&gt;[ 418.629281] CPU: 0 PID: 2596 Comm: java Tainted: G O 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea #1&lt;BR /&gt;[ 418.638933] Hardware name: Freescale i.MX8DX MEK (DT)&lt;BR /&gt;[ 418.643982] task: ffff8000061d8000 task.stack: ffff00000f268000&lt;BR /&gt;[ 418.655554] PC is at &lt;STRONG&gt;__memcpy+0x2c/0x180&lt;/STRONG&gt;&lt;BR /&gt;[ 418.659485] LR is at &lt;STRONG&gt;kb_ioctl+0x288/0x738&lt;/STRONG&gt;&lt;BR /&gt;[ 418.663494] pc : [&amp;lt;ffff00000883302c&amp;gt;] lr : [&amp;lt;ffff0000085cc810&amp;gt;] pstate: 00000145&lt;BR /&gt;[ 418.670894] sp : ffff00000f26bd50&lt;BR /&gt;[ 418.674204] x29: ffff00000f26bd50 x28: ffff80001a058800 &lt;BR /&gt;[ 418.679521] x27: 0000000000000020 x26: ffff80001a20c100 &lt;BR /&gt;[ 418.684838] x25: ffff80001a058f80 x24: 0000000000000001 &lt;BR /&gt;[ 418.690154] x23: ffff00000f26bdd8 x22: ffff8000121d4010 &lt;BR /&gt;[ 418.695471] x21: 0000000000000020 x20: ffff80001a058080 &lt;BR /&gt;[ 418.700788] x19: 0000ffff6483ccd0 x18: 0000ffffae5cba70 &lt;BR /&gt;[ 418.706105] x17: 0000ffffae543910 x16: ffff000008229740 &lt;BR /&gt;[ 418.711421] x15: 0000000000000000 x14: 0000000000000000 &lt;BR /&gt;[ 418.716738] x13: 0000000000000000 x12: 0000006171e95db8 &lt;BR /&gt;[ 418.722055] x11: 0000000000000001 x10: 00000000000008e0 &lt;BR /&gt;[ 418.727371] x9 : 0000000000000000 x8 : ffff80001a058100 &lt;BR /&gt;[ 418.732688] x7 : 0000000000000000 x6 : ffff80001a058080 &lt;BR /&gt;[ 418.738005] x5 : 0000000000000040 x4 : 000000000000000e &lt;BR /&gt;[ 418.743321] x3 : 0000000000000200 x2 : 0000000000000012 &lt;BR /&gt;[ 418.748639] x1 : ff7f71028331b6f2 x0 : ffff80001a058080 &lt;BR /&gt;[ 418.753957] Process java (pid: 2596, stack limit = 0xffff00000f268000)&lt;BR /&gt;[ 418.760489] Call trace:&lt;BR /&gt;[ 418.762932] Exception stack(0xffff00000f26bc10 to 0xffff00000f26bd50)&lt;BR /&gt;[ 418.769379] bc00: ffff80001a058080 ff7f71028331b6f2&lt;BR /&gt;[ 418.777216] bc20: 0000000000000012 0000000000000200 000000000000000e 0000000000000040&lt;BR /&gt;[ 418.785052] bc40: ffff80001a058080 0000000000000000 ffff80001a058100 0000000000000000&lt;BR /&gt;[ 418.792888] bc60: 00000000000008e0 0000000000000001 0000006171e95db8 0000000000000000&lt;BR /&gt;[ 418.800724] bc80: 0000000000000000 0000000000000000 ffff000008229740 0000ffffae543910&lt;BR /&gt;[ 418.808561] bca0: 0000ffffae5cba70 0000ffff6483ccd0 ffff80001a058080 0000000000000020&lt;BR /&gt;[ 418.816397] bcc0: ffff8000121d4010 ffff00000f26bdd8 0000000000000001 ffff80001a058f80&lt;BR /&gt;[ 418.824233] bce0: ffff80001a20c100 0000000000000020 ffff80001a058800 ffff00000f26bd50&lt;BR /&gt;[ 418.832069] bd00: ffff0000085cc810 ffff00000f26bd50 ffff00000883302c 0000000000000145&lt;BR /&gt;[ 418.839905] bd20: ffff00000f26bdd8 0000000000000001 0000ffffffffffff ffff80001a20c100&lt;BR /&gt;[ 418.847739] bd40: ffff00000f26bd50 ffff00000883302c&lt;BR /&gt;[ 418.852624] [&amp;lt;ffff00000883302c&amp;gt;] __memcpy+0x2c/0x180&lt;BR /&gt;[ 418.857596] [&amp;lt;ffff000008228efc&amp;gt;] do_vfs_ioctl+0xa4/0x8e8&lt;BR /&gt;[ 418.862908] [&amp;lt;ffff0000082297bc&amp;gt;] SyS_ioctl+0x7c/0x98&lt;BR /&gt;[ 418.867876] Exception stack(0xffff00000f26bec0 to 0xffff00000f26c000)&lt;BR /&gt;[ 418.874325] bec0: 0000000000000124 00000000c0244b04 0000ffff6483ccd0 0000000000000001&lt;BR /&gt;[ 418.882161] bee0: 0000000000000125 0000000000000000 0000000000000000 fefeff6a62606b61&lt;BR /&gt;[ 418.889998] bf00: 000000000000001d cfa95fbf65be5be4 0101010101010101 0000000000000003&lt;BR /&gt;[ 418.897833] bf20: cd7e31f5626cf658 6548eba4563d4c25 000000000000004f 0000000000000000&lt;BR /&gt;[ 418.905669] bf40: 0000ffff8de7b528 0000ffffae543910 0000ffffae5cba70 0000ffffa008af38&lt;BR /&gt;[ 418.913506] bf60: 0000ffff6483dea0 0000ffffae41c130 0000000000000000 00000000fb25ce40&lt;BR /&gt;[ 418.921342] bf80: 0000ffff6483df18 00000000f91f5ab8 0000ffff6687bba8 0000000000000000&lt;BR /&gt;[ 418.929178] bfa0: 0000ffff6c037000 0000ffff6483cc60 0000ffff8de5df30 0000ffff6483cc60&lt;BR /&gt;[ 418.937014] bfc0: 0000ffffae54391c 0000000020000000 0000000000000124 000000000000001d&lt;BR /&gt;[ 418.944849] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000&lt;BR /&gt;[ 418.952687] [&amp;lt;ffff000008083318&amp;gt;] __sys_trace_return+0x0/0x4&lt;BR /&gt;[ 418.958265] Code: 36000064 38401423 380014c3 36080064 (78402423) &lt;BR /&gt;[ 418.964367] ---[ end trace 26fdd9f03c114792 ]---&lt;BR /&gt;[ 418.968982] Kernel panic - not syncing: Fatal exception&lt;BR /&gt;[ 418.974212] SMP: stopping secondary CPUs&lt;BR /&gt;[ 418.978144] Kernel Offset: disabled&lt;BR /&gt;[ 418.981632] CPU features: 0x0802008&lt;BR /&gt;[ 418.985121] Memory Limit: none&lt;BR /&gt;[ 418.988176] Rebooting in 10 seconds..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2020 02:13:52 GMT</pubDate>
    <dc:creator>yellapu_anishkh</dc:creator>
    <dc:date>2020-08-18T02:13:52Z</dc:date>
    <item>
      <title>Kernel oops during data storage using key blob, kb_ioctl (cryptodev)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040801#M153324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on imx8dx based target.&lt;/P&gt;&lt;P&gt;Linux:4.14.98&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using keyblob for storing and getting the keys/certificates, when we try to store the certificate, it internally uses blob generation and encryption functions, which internally calls "kb_ioctl" in the driver(drivers/crypto/caam/key_blob.c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we try to store some data, sometimes we are getting below issue. Can you please help us, why is this happening sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue1:&lt;/P&gt;&lt;P&gt;#113 I[ 265.198310] ------------[ cut here ]------------&lt;BR /&gt;[ 265.205957] kernel BUG at /usr/src/kernel/mm/slub.c:294!&lt;BR /&gt;[ 265.211271] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP&lt;BR /&gt;NFO &amp;gt; [SequenceEngine:DiagCommEngine] : Session with sessoin I[ 265.216761] Modules linked in: cryptodev(O)&lt;BR /&gt;[ 265.226590] CPU: 0 PID: 2546 Comm: java Tainted: G O 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea #1&lt;BR /&gt;[ 265.236244] Hardware name: Freescale i.MX8DX MEK (DT)&lt;BR /&gt;[ 265.241293] task: ffff8000180fe800 task.stack: ffff00000ef88000&lt;BR /&gt;[ 265.247225] PC is at kfree+0x1e8/0x1f8&lt;BR /&gt;[ 265.250975] LR is at kso_cleanup_data+0x20/0x28&lt;BR /&gt;[ 265.255505] pc : [&amp;lt;ffff0000081f7ee0&amp;gt;] lr : [&amp;lt;ffff0000085c7d60&amp;gt;] pstate: 60000145&lt;BR /&gt;[ 265.262896] sp : ffff00000ef8bcf0&lt;BR /&gt;[ 265.266207] x29: ffff00000ef8bcf0 x28: ffff8000182b4900 &lt;BR /&gt;[ 265.271523] x27: 0000000000000020 x26: ffff80001a1fe700 &lt;BR /&gt;[ 265.276840] x25: ffff8000182b4880 x24: 0000000000000001 &lt;BR /&gt;[ 265.282157] x23: ffff0000085c7d60 x22: 00000000000bf6e4 &lt;BR /&gt;[ 265.287473] x21: ffff800012403c80 x20: ffff80001819cf80 &lt;BR /&gt;[ 265.292790] x19: ffff7e0000606700 x18: 0000ffff971fd194 &lt;BR /&gt;[ 265.298107] x17: 0000ffffa5980100 x16: ffff00000813dcc0 &lt;BR /&gt;[ 265.303424] x15: 000061c164000000 x14: 001406f400000000 &lt;BR /&gt;[ 265.308740] x13: 0000000000000000 x12: 0000003dbf0c5fba &lt;BR /&gt;[ 265.314057] x11: 0000000000000000 x10: 00000000000008e0 &lt;BR /&gt;[ 265.319374] x9 : ffff00000ef8bad0 x8 : ffff8000180ff140 &lt;BR /&gt;[ 265.324691] x7 : ffff8000180fe980 x6 : 49856764efcba631 &lt;BR /&gt;[ 265.330007] x5 : 0000000000000000 x4 : ffff80001819cf80 &lt;BR /&gt;[ 265.335324] x3 : 000080001743d000 x2 : ffff80001819cf80 &lt;BR /&gt;[ 265.340641] x1 : ffff000008b2bee0 x0 : ffff7e0000606700 &lt;BR /&gt;[ 265.345959] Process java (pid: 2546, stack limit = 0xffff00000ef88000)&lt;BR /&gt;[ 265.352482] Call trace:&lt;BR /&gt;[ 265.354926] Exception stack(0xffff00000ef8bbb0 to 0xffff00000ef8bcf0)&lt;BR /&gt;[ 265.361373] bba0: ffff7e0000606700 ffff000008b2bee0&lt;BR /&gt;[ 265.369209] bbc0: ffff80001819cf80 000080001743d000 ffff80001819cf80 0000000000000000&lt;BR /&gt;[ 265.377046] bbe0: 49856764efcba631 ffff8000180fe980 ffff8000180ff140 ffff00000ef8bad0&lt;BR /&gt;[ 265.384881] bc00: 00000000000008e0 0000000000000000 0000003dbf0c5fba 0000000000000000&lt;BR /&gt;[ 265.392718] bc20: 001406f400000000 000061c164000000 ffff00000813dcc0 0000ffffa5980100&lt;BR /&gt;[ 265.400554] bc40: 0000ffff971fd194 ffff7e0000606700 ffff80001819cf80 ffff800012403c80&lt;BR /&gt;[ 265.408390] bc60: 00000000000bf6e4 ffff0000085c7d60 0000000000000001 ffff8000182b4880&lt;BR /&gt;[ 265.416226] bc80: ffff80001a1fe700 0000000000000020 ffff8000182b4900 ffff00000ef8bcf0&lt;BR /&gt;[ 265.424062] bca0: ffff0000085c7d60 ffff00000ef8bcf0 ffff0000081f7ee0 0000000060000145&lt;BR /&gt;[ 265.431898] bcc0: 0000000000000000 0000000000000020 0000ffffffffffff 0000000000000020&lt;BR /&gt;[ 265.439733] bce0: ffff00000ef8bcf0 ffff0000081f7ee0&lt;BR /&gt;[ 265.444616] [&amp;lt;ffff0000081f7ee0&amp;gt;] kfree+0x1e8/0x1f8&lt;BR /&gt;[ 265.449412] [&amp;lt;ffff0000085c7d60&amp;gt;] kso_cleanup_data+0x20/0x28&lt;BR /&gt;[ 265.454989] [&amp;lt;ffff0000085c79e4&amp;gt;] sm_release_keystore+0x1c/0x30&lt;BR /&gt;[ 265.460827] [&amp;lt;ffff0000085cc85c&amp;gt;] kb_ioctl+0x2d4/0x738&lt;BR /&gt;[ 265.465884] [&amp;lt;ffff000008228efc&amp;gt;] do_vfs_ioctl+0xa4/0x8e8&lt;BR /&gt;[ 265.471199] [&amp;lt;ffff0000082297bc&amp;gt;] SyS_ioctl+0x7c/0x98&lt;BR /&gt;[ 265.476167] Exception stack(0xffff00000ef8bec0 to 0xffff00000ef8c000)&lt;BR /&gt;[ 265.482607] bec0: 0000000000000124 00000000c0244b04 0000ffff56b84e80 0000000000000001&lt;BR /&gt;[ 265.490443] bee0: 0000000000000125 0000000000000000 0000000000000000 fefeff6a62606b61&lt;BR /&gt;[ 265.498279] bf00: 000000000000001d cfa95fbf65be5be4 0101010101010101 0000000000000003&lt;BR /&gt;[ 265.506115] bf20: cd7e31f5626cf658 6548eba4563d4c25 000000000000004f 0000000000000000&lt;BR /&gt;[ 265.513952] bf40: 0000ffff952ab528 0000ffffa596b910 0000ffffa59f3a70 0000ffff9808af38&lt;BR /&gt;[ 265.521788] bf60: 0000ffff56b86050 0000ffffa5844130 0000000000000000 0000000000000005&lt;BR /&gt;[ 265.529624] bf80: 0000ffff56b860c8 00000000f91ad238 0000ffff5d9a1ba8 0000000000000000&lt;BR /&gt;[ 265.537460] bfa0: 0000ffff5815d800 0000ffff56b84e10 0000ffff9528df30 0000ffff56b84e10&lt;BR /&gt;[ 265.545296] bfc0: 0000ffffa596b91c 0000000020000000 0000000000000124 000000000000001d&lt;BR /&gt;[ 265.553132] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000&lt;BR /&gt;[ 265.560969] [&amp;lt;ffff000008083318&amp;gt;] __sys_trace_return+0x0/0x4&lt;BR /&gt;[ 265.566547] Code: 97fffd2c a9425bb5 17ffffd9 d503201f (d4210000) &lt;BR /&gt;[ 265.572648] ---[ end trace 835bf4fb1829feed ]---&lt;BR /&gt;[ 265.577265] Kernel panic - not syncing: Fatal exception&lt;BR /&gt;[ 265.582494] SMP: stopping secondary CPUs&lt;BR /&gt;[ 265.586413] Kernel Offset: disabled&lt;BR /&gt;[ 265.589905] CPU features: 0x0802008&lt;BR /&gt;[ 265.593386] Memory Limit: none&lt;BR /&gt;[ 265.596438] Rebooting in 10 seconds..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue2: (This is coming from different location in kb_ioctl)&lt;/P&gt;&lt;P&gt;[ 418.582943] ISV = 0, ISS = 0x00000004&lt;BR /&gt;[ 418.593123] CM = 0, WnR = 0&lt;BR /&gt;[ 418.602490] [007f71028331b6f2] address between user and kernel address ranges&lt;BR /&gt;[ 418.615337] Internal error: Oops: 96000004 [#1] PREEMPT SMP&lt;BR /&gt;[ 418.625082] Modules linked in: cryptodev(O)&lt;BR /&gt;[ 418.629281] CPU: 0 PID: 2596 Comm: java Tainted: G O 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea #1&lt;BR /&gt;[ 418.638933] Hardware name: Freescale i.MX8DX MEK (DT)&lt;BR /&gt;[ 418.643982] task: ffff8000061d8000 task.stack: ffff00000f268000&lt;BR /&gt;[ 418.655554] PC is at &lt;STRONG&gt;__memcpy+0x2c/0x180&lt;/STRONG&gt;&lt;BR /&gt;[ 418.659485] LR is at &lt;STRONG&gt;kb_ioctl+0x288/0x738&lt;/STRONG&gt;&lt;BR /&gt;[ 418.663494] pc : [&amp;lt;ffff00000883302c&amp;gt;] lr : [&amp;lt;ffff0000085cc810&amp;gt;] pstate: 00000145&lt;BR /&gt;[ 418.670894] sp : ffff00000f26bd50&lt;BR /&gt;[ 418.674204] x29: ffff00000f26bd50 x28: ffff80001a058800 &lt;BR /&gt;[ 418.679521] x27: 0000000000000020 x26: ffff80001a20c100 &lt;BR /&gt;[ 418.684838] x25: ffff80001a058f80 x24: 0000000000000001 &lt;BR /&gt;[ 418.690154] x23: ffff00000f26bdd8 x22: ffff8000121d4010 &lt;BR /&gt;[ 418.695471] x21: 0000000000000020 x20: ffff80001a058080 &lt;BR /&gt;[ 418.700788] x19: 0000ffff6483ccd0 x18: 0000ffffae5cba70 &lt;BR /&gt;[ 418.706105] x17: 0000ffffae543910 x16: ffff000008229740 &lt;BR /&gt;[ 418.711421] x15: 0000000000000000 x14: 0000000000000000 &lt;BR /&gt;[ 418.716738] x13: 0000000000000000 x12: 0000006171e95db8 &lt;BR /&gt;[ 418.722055] x11: 0000000000000001 x10: 00000000000008e0 &lt;BR /&gt;[ 418.727371] x9 : 0000000000000000 x8 : ffff80001a058100 &lt;BR /&gt;[ 418.732688] x7 : 0000000000000000 x6 : ffff80001a058080 &lt;BR /&gt;[ 418.738005] x5 : 0000000000000040 x4 : 000000000000000e &lt;BR /&gt;[ 418.743321] x3 : 0000000000000200 x2 : 0000000000000012 &lt;BR /&gt;[ 418.748639] x1 : ff7f71028331b6f2 x0 : ffff80001a058080 &lt;BR /&gt;[ 418.753957] Process java (pid: 2596, stack limit = 0xffff00000f268000)&lt;BR /&gt;[ 418.760489] Call trace:&lt;BR /&gt;[ 418.762932] Exception stack(0xffff00000f26bc10 to 0xffff00000f26bd50)&lt;BR /&gt;[ 418.769379] bc00: ffff80001a058080 ff7f71028331b6f2&lt;BR /&gt;[ 418.777216] bc20: 0000000000000012 0000000000000200 000000000000000e 0000000000000040&lt;BR /&gt;[ 418.785052] bc40: ffff80001a058080 0000000000000000 ffff80001a058100 0000000000000000&lt;BR /&gt;[ 418.792888] bc60: 00000000000008e0 0000000000000001 0000006171e95db8 0000000000000000&lt;BR /&gt;[ 418.800724] bc80: 0000000000000000 0000000000000000 ffff000008229740 0000ffffae543910&lt;BR /&gt;[ 418.808561] bca0: 0000ffffae5cba70 0000ffff6483ccd0 ffff80001a058080 0000000000000020&lt;BR /&gt;[ 418.816397] bcc0: ffff8000121d4010 ffff00000f26bdd8 0000000000000001 ffff80001a058f80&lt;BR /&gt;[ 418.824233] bce0: ffff80001a20c100 0000000000000020 ffff80001a058800 ffff00000f26bd50&lt;BR /&gt;[ 418.832069] bd00: ffff0000085cc810 ffff00000f26bd50 ffff00000883302c 0000000000000145&lt;BR /&gt;[ 418.839905] bd20: ffff00000f26bdd8 0000000000000001 0000ffffffffffff ffff80001a20c100&lt;BR /&gt;[ 418.847739] bd40: ffff00000f26bd50 ffff00000883302c&lt;BR /&gt;[ 418.852624] [&amp;lt;ffff00000883302c&amp;gt;] __memcpy+0x2c/0x180&lt;BR /&gt;[ 418.857596] [&amp;lt;ffff000008228efc&amp;gt;] do_vfs_ioctl+0xa4/0x8e8&lt;BR /&gt;[ 418.862908] [&amp;lt;ffff0000082297bc&amp;gt;] SyS_ioctl+0x7c/0x98&lt;BR /&gt;[ 418.867876] Exception stack(0xffff00000f26bec0 to 0xffff00000f26c000)&lt;BR /&gt;[ 418.874325] bec0: 0000000000000124 00000000c0244b04 0000ffff6483ccd0 0000000000000001&lt;BR /&gt;[ 418.882161] bee0: 0000000000000125 0000000000000000 0000000000000000 fefeff6a62606b61&lt;BR /&gt;[ 418.889998] bf00: 000000000000001d cfa95fbf65be5be4 0101010101010101 0000000000000003&lt;BR /&gt;[ 418.897833] bf20: cd7e31f5626cf658 6548eba4563d4c25 000000000000004f 0000000000000000&lt;BR /&gt;[ 418.905669] bf40: 0000ffff8de7b528 0000ffffae543910 0000ffffae5cba70 0000ffffa008af38&lt;BR /&gt;[ 418.913506] bf60: 0000ffff6483dea0 0000ffffae41c130 0000000000000000 00000000fb25ce40&lt;BR /&gt;[ 418.921342] bf80: 0000ffff6483df18 00000000f91f5ab8 0000ffff6687bba8 0000000000000000&lt;BR /&gt;[ 418.929178] bfa0: 0000ffff6c037000 0000ffff6483cc60 0000ffff8de5df30 0000ffff6483cc60&lt;BR /&gt;[ 418.937014] bfc0: 0000ffffae54391c 0000000020000000 0000000000000124 000000000000001d&lt;BR /&gt;[ 418.944849] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000&lt;BR /&gt;[ 418.952687] [&amp;lt;ffff000008083318&amp;gt;] __sys_trace_return+0x0/0x4&lt;BR /&gt;[ 418.958265] Code: 36000064 38401423 380014c3 36080064 (78402423) &lt;BR /&gt;[ 418.964367] ---[ end trace 26fdd9f03c114792 ]---&lt;BR /&gt;[ 418.968982] Kernel panic - not syncing: Fatal exception&lt;BR /&gt;[ 418.974212] SMP: stopping secondary CPUs&lt;BR /&gt;[ 418.978144] Kernel Offset: disabled&lt;BR /&gt;[ 418.981632] CPU features: 0x0802008&lt;BR /&gt;[ 418.985121] Memory Limit: none&lt;BR /&gt;[ 418.988176] Rebooting in 10 seconds..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 02:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040801#M153324</guid>
      <dc:creator>yellapu_anishkh</dc:creator>
      <dc:date>2020-08-18T02:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel oops during data storage using key blob, kb_ioctl (cryptodev)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040802#M153325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reason may be in software version, as for example "Linux:4.14.98"&lt;/P&gt;&lt;P&gt;support i.MX8QXP only starting from Linux 4.14.98_2.3.0, also please&lt;/P&gt;&lt;P&gt;review&amp;nbsp;&amp;nbsp;&amp;nbsp;Linux 4.14.98_2.3.1 Patch : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.3.1_MX8DX&amp;amp;appType=license"&gt;i.MX 8DualX MEK (1GB MEM)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;described on documentation link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" title="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab"&gt;Embedded Linux for i.MX Applications Processors | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also all parts of software like, SECO, &lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.14.98_2.3.0_SCFWKIT-1.3.0&amp;amp;appType=license"&gt;SCFW Porting Kit&lt;/A&gt;, e.t.c.&lt;/P&gt;&lt;P&gt;should be linked to each other, not recommended to mix them from other&lt;/P&gt;&lt;P&gt;bsp revisions. Had board passed ddr test, as this also may be reason for&lt;/P&gt;&lt;P&gt;"Kernel panic - not syncing" errors. Recommended to use latest RPA tool&lt;/P&gt;&lt;P&gt;from below link, following "Notes" for recommended SCFW version.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-346060"&gt;i.MX 8/8X Family DDR Tools Release &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 07:02:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040802#M153325</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-08-18T07:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel oops during data storage using key blob, kb_ioctl (cryptodev)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040803#M153326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-avatarid="1034" data-externalid="" data-online="false" data-presence="null" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;"&gt;igorpadykov&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information. Sorry for the delayed feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current test setup:&lt;/STRONG&gt; We have created 512 DDR configuration using latest tool, using the same file&amp;nbsp; on 1GB hardware.&lt;/P&gt;&lt;P&gt;Still we are facing oops from USB and key blob drivers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please confirm, issue can be from driver side or memory. As in all of the failures PC is at kmalloc, kfree and slab_free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline; "&gt;USB Driver Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ 913.340663] Unable to handle kernel paging request at virtual address 8071028819747a&lt;BR /&gt;[ 913.349627] Mem abort info:&lt;BR /&gt;[ 913.358206] Exception class = DABT (current EL), IL = 32 bits&lt;BR /&gt;[ 913.369635] SET = 0, FnV = 0&lt;BR /&gt;[ 913.378778] EA = 0, S1PTW = 0&lt;BR /&gt;[ 913.387176] Data abort info:&lt;BR /&gt;[ 913.405086] CM = 0, WnR = 0&lt;BR /&gt;[ 913.413670] [008071028819747a] address between user and kernel address ranges&lt;BR /&gt;[ 913.426424] Internal error: Oops: 96000004 [#1] PREEMPT SMP&lt;BR /&gt;[ 913.437610] Modules linked in: cryptodev(O)&lt;BR /&gt;[ 913.447441] CPU: 1 PID: 2235 Comm: java Tainted: G O 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea #1&lt;BR /&gt;[ 913.462732] Hardware name: Freescale i.MX8DX MEK (DT)&lt;BR /&gt;[ 913.473428] task: ffff80001b94e800 task.stack: ffff00000e838000&lt;BR /&gt;[ 913.485001] PC is at __kmalloc+0xb8/0x270&lt;BR /&gt;[ 913.494643] LR is at __kmalloc+0x28/0x270&lt;BR /&gt;[ 913.504295] pc : [&amp;lt;ffff0000081f6c20&amp;gt;] lr : [&amp;lt;ffff0000081f6b90&amp;gt;] pstate: 60000145&lt;BR /&gt;[ 913.517333] sp : ffff00000e83b830&lt;BR /&gt;[ 913.526290] x29: ffff00000e83b830 x28: ffff800016e80c00 &lt;BR /&gt;[ 913.537245] x27: ffff800016e80c00 x26: 008071028819747a &lt;BR /&gt;[ 913.548199] x25: 0000000000000004 x24: 0000000000000001 &lt;BR /&gt;[ 913.559154] x23: 0000000000067d89 x22: ffff000008525ea8 &lt;BR /&gt;[ 913.570109] x21: 00000000014080c0 x20: 008071028819747a &lt;BR /&gt;[ 913.581064] x19: ffff800012403c80 x18: 0000000000000001 &lt;BR /&gt;[ 913.592019] x17: 0000ffff8ea16808 x16: ffff000008211bd8 &lt;BR /&gt;[ 913.602974] x15: 0000000000000000 x14: 0000000000000000 &lt;BR /&gt;[ 913.613929] x13: ffff000008f2de30 x12: 0000000000000400 &lt;BR /&gt;[ 913.624884] x11: ffff00000e83ba60 x10: 0000000000000040 &lt;BR /&gt;[ 913.635839] x9 : 0000000000000000 x8 : ffff800006198c28 &lt;BR /&gt;[ 913.646794] x7 : 0000000000000004 x6 : 0000000000000000 &lt;BR /&gt;[ 913.657749] x5 : 0000000000000001 x4 : ffff80001a92fc00 &lt;BR /&gt;[ 913.668704] x3 : 0080f1029b269272 x2 : 0000000000000000 &lt;BR /&gt;[ 913.679659] x1 : ffff80001b94e800 x0 : 0000000000000000 &lt;BR /&gt;[ 913.690615] Process java (pid: 2235, stack limit = 0xffff00000e838000)&lt;BR /&gt;[ 913.702785] Call trace:&lt;BR /&gt;[ 913.710876] Exception stack(0xffff00000e83b6f0 to 0xffff00000e83b830)&lt;BR /&gt;[ 913.722961] b6e0: 0000000000000000 ffff80001b94e800&lt;BR /&gt;[ 913.736435] b700: 0000000000000000 0080f1029b269272 ffff80001a92fc00 0000000000000001&lt;BR /&gt;[ 913.749910] b720: 0000000000000000 0000000000000004 ffff800006198c28 0000000000000000&lt;BR /&gt;[ 913.852948] Unable to handle kernel paging request at virtual address 7f710280a3d6f2&lt;BR /&gt;[ 913.857904] b740: 0000000000000040 ffff00000e83ba60 0000000000000400 ffff000008f2de30&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 01:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040803#M153326</guid>
      <dc:creator>yellapu_anishkh</dc:creator>
      <dc:date>2020-08-20T01:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel oops during data storage using key blob, kb_ioctl (cryptodev)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040804#M153327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anish&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;based on below log, this is not usb but memory issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;USB Driver Issue:&lt;BR /&gt;&amp;gt;Unable to handle kernel paging request at virtual address 8071028819747a&lt;BR /&gt;&amp;gt;Mem abort info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;We have created 512 DDR configuration using latest tool, using the same file&amp;nbsp; on 1GB hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 512 DDR configuration "same file&amp;nbsp; on 1GB hardware" should not be used.&lt;/P&gt;&lt;P&gt;Software modiciations should be performed using documentation from&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-346060"&gt;i.MX 8/8X Family DDR Tools Release &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggest to try first configuration without OPTee, follow sect.5.6.10 OP-TEE enablement&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf" style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;"&gt;i.MX Yocto Project User’s Guide&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 03:27:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-oops-during-data-storage-using-key-blob-kb-ioctl/m-p/1040804#M153327</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-08-20T03:27:28Z</dc:date>
    </item>
  </channel>
</rss>

