lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: Jin Huang via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Subject: [lttng-dev] [URCU]Bug Report
Date: Fri, 14 Aug 2020 01:28:59 -0400	[thread overview]
Message-ID: <CACV+narvs1f+YXz1BhssmgtmiF4=Pp_Cg7u_1sdHCdaggKi7VQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1634 bytes --]

Hi, my name is Jin Huang.
I want to report 2 data races in userspace-rcu-master

Data Race 1: WW

Variable: crdp, defined at src/urcu-call-rcu-impl.h:424

Thread1: userspace-rcu/src/urcu-call-rcu-impl.h

Line 211, inside function set_thread_cpu_affinity:

if (++crdp->gp_count & SET_AFFINITY_CHECK_PERIOD_MASK)

Call order:

(1)pthread_create [src/urcu-call-rcu-impl.h:437]

(2)call_rcu_thread [src/urcu-call-rcu-impl.h:437]

(3)set_thread_cpu_affinity [src/urcu-call-rcu-impl.h:318]

Thread2: userspace-rcu/src/urcu-call-rcu-impl.h

Line 211, inside function set_thread_cpu_affinity:

if (++crdp->gp_count & SET_AFFINITY_CHECK_PERIOD_MASK)

Call order:

(1)pthread_create [src/urcu-call-rcu-impl.h:437]

(2)call_rcu_thread [src/urcu-call-rcu-impl.h:437]

(3)set_thread_cpu_affinity [src/urcu-call-rcu-impl.h:318]


Data Race 2: RW

Variable: crdp, defined at src/urcu-call-rcu-impl.h:424

Thread1: userspace-rcu/src/urcu-call-rcu-impl.h

Line 433, inside function call_rcu_data_init:

crdp->cpu_affinity = cpu_affinity;

Call order:

(1)perftest [src/rcutorture.h:590]

(2)perftestrun [src/rcutorture.h:244]

(3)urcu_signal_free_all_cpu_call_rcu_data [src/rcutorture.h:227]

(4)urcu_signal_get_default_call_rcu_data [src/urcu-call-rcu-impl.h:777]

(5)call_rcu_data_init [src/urcu-call-rcu-impl.h:572]

Thread2: userspace-rcu/src/urcu-call-rcu-impl.h

Line 209, inside function set_thread_cpu_affinity:

if (crdp->cpu_affinity < 0)

Call order:

(1)pthread_create [src/urcu-call-rcu-impl.h:437]

(2)call_rcu_thread [src/urcu-call-rcu-impl.h:437]

(3)set_thread_cpu_affinity [src/urcu-call-rcu-impl.h:318]




Thank You
Best
Jin Huang

[-- Attachment #1.2: Type: text/html, Size: 14690 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

                 reply	other threads:[~2020-08-14 13:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACV+narvs1f+YXz1BhssmgtmiF4=Pp_Cg7u_1sdHCdaggKi7VQ@mail.gmail.com' \
    --to=lttng-dev@lists.lttng.org \
    --cc=andy.jinhuang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).