From: Paul Menzel <pmenzel@molgen.mpg.de>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: "Theodore Y. Ts'o" <tytso@mit.edu>,
LKML <linux-kernel@vger.kernel.org>,
Dominik Brodowski <linux@dominikbrodowski.net>,
Jann Horn <jannh@google.com>
Subject: Re: BUG: KCSAN: data-race in add_device_randomness+0x20d/0x290
Date: Tue, 15 Feb 2022 10:16:41 +0100 [thread overview]
Message-ID: <5b3d6ad6-a506-7dae-0eb7-b7da080f6454@molgen.mpg.de> (raw)
In-Reply-To: <CAHmME9pktmNpcBS_DJhJ5Z+6xO9P1wroQ9_gwx8KZMBxk1FBeQ@mail.gmail.com>
Dear Jason,
Thank you for your quick response, and sorry for the late reply.
Am 07.02.22 um 19:42 schrieb Jason A. Donenfeld:
> Thanks for the report. I assume that this is actually an old bug. Do
> you have a vmlinux or a random.o from this kernel you could send me to
> double check?
I had unfortunately already overwritten these files. I was unable to
fully reproduce the same trace with a build from the same commit, and
only got:
```
[…]
[ 12.819273] BUG: KCSAN: data-race in _mix_pool_bytes+0x5d/0x1c0
[ 12.822917] race at unknown origin, with read to 0xffffa21c07003009
of 1 bytes by task 1035 on cpu 0:
[ 12.823580] _mix_pool_bytes+0x5d/0x1c0
[ 12.823678] add_device_randomness+0x97/0x290
[ 12.823691] release_task+0x231/0xb20
[ 12.823735] wait_consider_task+0x883/0x17d0
[ 12.823755] do_wait+0x35f/0x4d0
[ 12.823768] kernel_wait4+0xdb/0x180
[ 12.823778] __do_sys_wait4+0x85/0x90
[ 12.823787] __x64_sys_wait4+0x49/0x50
[ 12.823797] do_syscall_64+0x39/0x80
[ 12.823819] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 12.824028] value changed: 0x56 -> 0xc1
[ 12.824415] Reported by Kernel Concurrency Sanitizer on:
[ 12.824688] CPU: 0 PID: 1035 Comm: postfix-script Not tainted
5.17.0-rc2-00352-g90c9e950c0de #40
[ 12.824705] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.15.0-1 04/01/2014
[…]
```
So instead of the former (used as subject line)
add_device_randomness+0x20d/0x290
there is
add_device_randomness+0x97/0x290
I uploaded `random.o` [1].
Kind regards,
Paul
[1]: https://owww.molgen.mpg.de/~pmenzel/random.o
next prev parent reply other threads:[~2022-02-15 9:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-07 16:14 Paul Menzel
2022-02-07 18:42 ` Jason A. Donenfeld
2022-02-07 21:45 ` Jann Horn
2022-02-07 21:50 ` Jann Horn
2022-02-07 21:53 ` Jann Horn
2022-02-07 21:57 ` Jason A. Donenfeld
2022-02-07 22:20 ` Jason A. Donenfeld
2022-02-07 21:49 ` Jann Horn
2022-02-08 0:10 ` Marco Elver
2022-02-08 0:12 ` Marco Elver
2022-02-08 0:36 ` Jason A. Donenfeld
2022-02-08 9:23 ` Marco Elver
2022-02-15 9:16 ` Paul Menzel [this message]
2022-02-15 11:44 ` Jason A. Donenfeld
2022-02-15 12:12 ` Oleg Nesterov
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=5b3d6ad6-a506-7dae-0eb7-b7da080f6454@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=Jason@zx2c4.com \
--cc=jannh@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=tytso@mit.edu \
/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
all inboxes | Powered by JetHome®