<?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>9301</bug_id>
          
          <creation_ts>2024-06-07 18:11:58 +0000</creation_ts>
          <short_desc>Annotate data-races around sk-&gt;sk_state in UNIX_DIAG</short_desc>
          <delta_ts>2024-06-07 20:43:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>ANCK</classification>
          <product>ANCK 5.10 Dev</product>
          <component>net</component>
          <version>5.10.y-14</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="NoobSteven">jiangzhe202107</reporter>
          <assigned_to name="XuanZhuo">xuanzhuo</assigned_to>
          <cc>dust.li</cc>
          
          <qa_contact name="shuming">qingming.su</qa_contact>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28815</commentid>
    <comment_count>0</comment_count>
    <who name="NoobSteven">jiangzhe202107</who>
    <bug_when>2024-06-07 18:11:58 +0000</bug_when>
    <thetext>While dumping AF_UNIX sockets via UNIX_DIAG, sk-&gt;sk_state is read
locklessly.

Let&apos;s use READ_ONCE() there.

Note that the result could be inconsistent if the socket is dumped
during the state change.  This is common for other SOCK_DIAG and
similar interfaces.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28816</commentid>
    <comment_count>1</comment_count>
    <who name="小龙">yongchao</who>
    <bug_when>2024-06-07 20:43:12 +0000</bug_when>
    <thetext>The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3327</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>