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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15206</bug_id>
          
          <creation_ts>2023-09-04 11:54:05 +0000</creation_ts>
          <short_desc>qemumips BUG using smp_processor_id() in preemptible</short_desc>
          <delta_ts>2023-10-23 14:48:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>4.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>paulg</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96341</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-04 11:54:05 +0000</bug_when>
    <thetext>With current master, qemumips has frequent BUG alerts:

[  130.730686] BUG: using smp_processor_id() in preemptible [00000000] code: systemd/1
[  130.738542] caller is blast_dcache32+0x40/0x190
[  130.745908] CPU: 0 PID: 1 Comm: systemd Not tainted 6.4.11-yocto-standard #1
[  130.753928] Stack : 0000000000000001 0000000000000000 0000000000000018 9000000004937798
[  130.762192]         9000000004937798 90000000049378c8 0000000000000000 0000000000000000
[  130.770458]         008fac6060240fea 0000000000014f20 9000000004937728 0000000000000000
[  130.778826]         00000000000b61b4 0000000000000030 ffffffff80e8eed0 0000000000000004
[  130.787111]         9000000084937577 0000000000000000 0000000000000000 ffffffff810c3b18
[  130.795440]         ffffffff811f0000 0000000000000000 ffffffff81440000 0000000000000000
[  130.803830]         0000000000000000 0000000000000000 ffffffff809842e8 0000000000175097
[  130.812272]         0000000000000001 9000000004934000 9000000004937790 c0000000005d9000
[  130.820722]         ffffffff8010b6fc 0000000000000000 0000000000000000 0000000000000000
[  130.829134]         0000000000000000 0000000000000000 ffffffff8010b71c 008fac6060240fea
[  130.837649]         ...
[  130.845556] Call Trace:
[  130.853432] [&lt;ffffffff8010b71c&gt;] show_stack+0x64/0x158
[  130.861534] [&lt;ffffffff80ea1790&gt;] dump_stack_lvl+0x5c/0x7c
[  130.869565] [&lt;ffffffff80ea29c4&gt;] check_preemption_disabled+0x10c/0x118
[  130.877605] [&lt;ffffffff8012d7c8&gt;] blast_dcache32+0x40/0x190
[  130.885585] [&lt;ffffffff8039f648&gt;] __vmalloc_node_range+0x3e0/0x780
[  130.893527] [&lt;ffffffff8039fbbc&gt;] vzalloc+0x6c/0x78
[  130.901378] [&lt;ffffffff8095d6c4&gt;] n_tty_open+0x1c/0xb8
[  130.909252] [&lt;ffffffff8095f5a8&gt;] tty_ldisc_open+0x50/0xd0
[  130.917053] [&lt;ffffffff80960150&gt;] tty_ldisc_setup+0x20/0x70
[  130.924927] [&lt;ffffffff80958694&gt;] tty_init_dev.part.0+0xbc/0x2c0
[  130.932742] [&lt;ffffffff80958da8&gt;] tty_open+0x4b8/0x730
[  130.940486] [&lt;ffffffff803e6960&gt;] chrdev_open+0xe0/0x250
[  130.948211] [&lt;ffffffff803da7f4&gt;] do_dentry_open+0x274/0x520
[  130.955960] [&lt;ffffffff803f642c&gt;] path_openat+0xbc4/0x10d8
[  130.963718] [&lt;ffffffff803f7460&gt;] do_filp_open+0x148/0x190
[  130.971482] [&lt;ffffffff803dc264&gt;] do_sys_openat2+0xcc/0x1b0
[  130.979288] [&lt;ffffffff803dc710&gt;] sys_openat+0x50/0xa8
[  130.987077] [&lt;ffffffff80119490&gt;] syscall_common+0x34/0x58

Kernel 6.4.11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96342</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-05 09:27:49 +0000</bug_when>
    <thetext>Ah this only happens with DEBUG_PREEMPT enabled.  Did we leave that on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96346</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-09-06 10:51:19 +0000</bug_when>
    <thetext>That is set, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96598</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2023-09-28 22:02:05 +0000</bug_when>
    <thetext>This is also in 6.5, I&apos;ve managed to brute force make this stop happening.

Working on a better fix now.

I can confirm that this isn&apos;t something that we&apos;ve caused as it happens with v6.5/base as well as our branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96599</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2023-09-29 00:17:02 +0000</bug_when>
    <thetext>I have it fixed. It will be part of the upcoming 6.5 reference kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96766</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2023-10-23 14:48:18 +0000</bug_when>
    <thetext>I fixed this in the 6.5 kernel series.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>