Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: herbert@gondor.apana.org.au
Cc: davem@davemloft.net, eadavis@qq.com,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	olivia@selenic.com,
	syzbot+c52ab18308964d248092@syzkaller.appspotmail.com,
	syzkaller-bugs@googlegroups.com
Subject: Re: [PATCH] hwrng: core - fix task hung in hwrng_fillfn
Date: Fri,  1 Dec 2023 20:34:12 +0800	[thread overview]
Message-ID: <tencent_B2D2C5864C49BDAEE0AEC1CC9627E3C6CF06@qq.com> (raw)
In-Reply-To: <ZWnGV39HJr9uUB2/@gondor.apana.org.au>

On Fri, 1 Dec 2023 19:41:11 +0800, Herbert Xu wrote:
> >
> > Reduce the scope of critical zone protection.
> > The original critical zone contains a too large range, especially like
> > copy_to_user() should not be included in the critical zone.
> 
> Which part in particular is taking 143 seconds? The buffer is
> only 128 bytes long.  Why is a 128-byte copy taking 143 seconds,
> even with a page fault?
According to splat, after a page fault occurred, the attempt to retrieve 
rcu_read_lock() failed, resulting in a timeout of 143s. This is my speculation.

Edward


  reply	other threads:[~2023-12-01 12:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-25 13:21 [syzbot] [crypto?] INFO: task hung in hwrng_fillfn syzbot
2023-11-26  7:07 ` [PATCH] hwrng: core - fix " Edward Adam Davis
2023-12-01  9:56   ` Herbert Xu
2023-12-01 11:37     ` Edward Adam Davis
2023-12-01 11:41       ` Herbert Xu
2023-12-01 12:34         ` Edward Adam Davis [this message]
2023-12-01 23:38           ` Herbert Xu
2023-12-02  1:01             ` [PATCH] hwrng: core - Fix page fault dead lock on mmap-ed hwrng Herbert Xu
2023-12-12 14:03               ` PrasannaKumar Muralidharan

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=tencent_B2D2C5864C49BDAEE0AEC1CC9627E3C6CF06@qq.com \
    --to=eadavis@qq.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olivia@selenic.com \
    --cc=syzbot+c52ab18308964d248092@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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