FreeBSD Bugzilla – Attachment 232378 Details for
Bug 253175
virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
hackish-aplha-preliminary-proof-of-concept patch
virtio_random.c.diff (text/plain), 680 bytes, created by
Eugene Grosbein
on 2022-03-11 00:51:48 UTC
(
hide
)
Description:
hackish-aplha-preliminary-proof-of-concept patch
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2022-03-11 00:51:48 UTC
Size:
680 bytes
patch
obsolete
>--- sys/dev/virtio/random/virtio_random.c.orig 2022-02-04 20:36:41.288163000 +0000 >+++ sys/dev/virtio/random/virtio_random.c 2022-03-11 00:47:55.303250000 +0000 >@@ -223,6 +223,8 @@ vtrnd_alloc_virtqueue(struct vtrnd_softc *sc) > return (virtio_alloc_virtqueues(dev, 0, 1, &vq_info)); > } > >+extern int rebooting; >+ > static int > vtrnd_harvest(struct vtrnd_softc *sc, void *buf, size_t *sz) > { >@@ -232,6 +234,9 @@ vtrnd_harvest(struct vtrnd_softc *sc, void *buf, size_ > uint32_t value[HARVESTSIZE] __aligned(sizeof(uint32_t) * HARVESTSIZE); > uint32_t rdlen; > int error; >+ >+ if (rebooting) >+ return (EDEADLK); > > _Static_assert(sizeof(value) < PAGE_SIZE, "sglist assumption"); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253175
:
222088
|
222089
|
232376
|
232377
| 232378 |
232380