Date: Sun, 06 Sep 2020 14:54:51 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 249150] KCSAN reported race conditions Message-ID: <bug-249150-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249150 Bug ID: 249150 Summary: KCSAN reported race conditions Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: gbe@FreeBSD.org While running a KCSAN-enabled kernel on a recent -CURRENT (r365373) the ker= nel reports the following race conditions or racy access. Please note that these messages where generated during three boot attempts. CSan: Racy Access [Cpu0 Write Addr=3D0xfffffe000852d0c8 Size=3D4 PC=3D0xffffffff8119730a<tdq_add>] [Cpu1 Read Addr=3D0xfffffe000852d0c8 Size= =3D4 PC=3D0xffffffff81198368<sched_idletd>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800fee00320 Size=3D4 PC=3D0xffffffff8193cb08<lapic_et_start>] [Cpu1 Write Addr=3D0xfffff800fee00= 320 Size=3D4 PC=3D0xffffffff8193cb08<lapic_et_start>] CSan: Racy Access [Cpu0 Write Addr=3D0xffffffff82316a00 Size=3D8 PC=3D0xffffffff81167c84<tc_windup>] [Cpu1 Read Addr=3D0xffffffff82316a00 Si= ze=3D8 PC=3D0xffffffff8116633c<binuptime>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800fee00320 Size=3D4 PC=3D0xffffffff8193cb08<lapic_et_start>] [Cpu0 Write Addr=3D0xfffff800fee00= 320 Size=3D4 PC=3D0xffffffff8193cb08<lapic_et_start>] CSan: Racy Access [Cpu0 Read Addr=3D0xffffffff836310c8 Size=3D4 PC=3D0xffffffff8119261a<cpu_search_highest>] [Cpu1 Write Addr=3D0xffffffff8= 36310c8 Size=3D4 PC=3D0xffffffff8119730a<tdq_add>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffffe0038df5748 Size=3D4 PC=3D0xffffffff8116d18e<thread_exit>] [Cpu1 Read Addr=3D0xfffffe0038df5748 = Size=3D4 PC=3D0xffffffff811166e9<__mtx_lock_sleep>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800fee00320 Size=3D4 PC=3D0xffffffff8193cb08<lapic_et_start>] [Cpu1 Write Addr=3D0xfffff80CSan: = Racy Access [Cpu0 Write Addr=3D0xffffffff82204027 Size=3D1 PC=3D0xffffffff8114c508<vpanic>] [Cpu1 Read Addr=3D0xffffffff82204027 Size= =3D1 PC=3D0xffffffff817df03a<cpustop_handler>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800fee00380 Size=3D4 PC=3D0xffffffff8193cb61<lapic_et_start>] [Cpu1 Write Addr=3D0xfffff800fee00= 380 Size=3D4 PC=3D0xffffffff8193cb61<lapic_et_start>] CSan: Racy Access [Cpu1 Write Addr=3D0xffffffff823167a8 Size=3D8 PC=3D0xffffffff81167c71<tc_windup>] [Cpu0 Read Addr=3D0xffffffff823167a8 Si= ze=3D8 PC=3D0xffffffff81168732<cpu_tick_calibration>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800fee00320 Size=3D4 PC=3D0xffffffff8193cb08<lapic_et_start>] [Cpu0 Write Addr=3D0xfffff800fee00= 320 Size=3D4 PC=3D0xffffffff8193cb08<lapic_et_start>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800fee000b0 Size=3D4 PC=3D0xffffffff8193a170<native_lapic_eoi>] [Cpu0 Write Addr=3D0xfffff800fee= 000b0 Size=3D4 PC=3D0xffffffff8193a170<native_lapic_eoi>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800fee000b0 Size=3D4 PC=3D0xffffffff8193a170<native_lapic_eoi>] [Cpu1 Write Addr=3D0xfffff800fee= 000b0 Size=3D4 PC=3D0xffffffff8193a170<native_lapic_eoi>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800f6b219f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu0 Write Addr=3D0xfffff800f6b219f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800f6b22368 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu0 Write Addr=3D0xfffff800f6b2236= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b217f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b217f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b217f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b217f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b217f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b217f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219e8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219e= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219e8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219e= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800f6b219e8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu0 Write Addr=3D0xfffff800f6b219e= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219e8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219e= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b217e8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b217e= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xffffffff836310dc Size=3D1 PC=3D0xffffffff81196f35<sched_choose>] [Cpu1 Read Addr=3D0xffffffff836310dc= Size=3D1 PC=3D0xffffffff8119225b<cpu_search_lowest>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800f6b217e8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu0 Write Addr=3D0xfffff800f6b217e= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu1 Write Addr=3D0xffffffff823167a8 Size=3D8 PC=3D0xffffffff81167c71<tc_windup>] [Cpu0 Read Addr=3D0xffffffff823167a8 Si= ze=3D8 PC=3D0xffffffff81168706<cpu_tick_calibration>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b219e8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b219e= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffff800f6b21968 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] [Cpu1 Write Addr=3D0xfffff800f6b2196= 8 Size=3D8 PC=3D0xffffffff811fd33e<witness_lock>] CSan: Racy Access [Cpu0 Write Addr=3D0xfffffe000852d0c8 Size=3D4 PC=3D0xffffffff8119730a<tdq_add>] [Cpu1 Read Addr=3D0xfffffe000852d0c8 Size= =3D4 PC=3D0xffffffff81196e8d<sched_runnable>] CSan: Racy Access [Cpu1 Write Addr=3D0xfffff800f6b217f0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] [Cpu0 Write Addr=3D0xfffff800f6b217f= 0 Size=3D4 PC=3D0xffffffff811fd34f<witness_lock>] --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249150-227>