freebsd-dev/sys
Konstantin Belousov 1b0a4974c5 thread_create(): call cpu_copy_thread() after td_pflags is zeroed
By calling the function too early we might still have the td_pflags
value cached from the previous struct thread use. cpu_copy_thread()
depends on correct value for TDP_KTHREAD at least on x86.

Reported, bisected, and tested by:	pho
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D36069
2022-08-08 19:44:17 +03:00
..
amd64 AST: rework 2022-08-02 21:11:09 +03:00
arm arm: Clear TTBCR before enabling the MMU 2022-08-05 16:21:09 -04:00
arm64 Add drive strength setting for RK3568 pinctrl driver. 2022-08-08 04:42:22 +00:00
bsm
cam Delay GEOM disk_create() until CAM periph probe completes. 2022-07-14 16:17:36 -04:00
cddl stand/libsa: zfs use standard ZFS_EARLY stuff 2022-07-24 16:53:36 -06:00
compat thread_create(): call cpu_copy_thread() after td_pflags is zeroed 2022-08-08 19:44:17 +03:00
conf qat: Rename to qat_c2xxx and remove support for modern chipsets 2022-07-27 11:10:52 -04:00
contrib zlib: Fix a bug when getting a gzip header extra field with inflate(). 2022-08-04 22:30:20 -04:00
crypto skein: Update guard define check 2022-07-24 16:53:35 -06:00
ddb Adjust db_flush_line() definition to avoid clang 15 warning 2022-07-19 20:37:15 +02:00
dev XHCI: remove a self-assignment 2022-08-07 22:46:55 +00:00
dts sys/dts: Remove MIPS files 2022-05-20 17:11:27 +01:00
fs nullfs(5): Fix a typo in a source code comment 2022-08-07 14:04:53 +02:00
gdb ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
geom Adjust g_waitidle() visibility and definition 2022-08-02 21:11:10 +03:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-04 09:32:59 -04:00
i386 AST: rework 2022-08-02 21:11:09 +03:00
isa Adjust function definition in isa's pnp.c to avoid clang 15 warning 2022-07-27 21:13:59 +02:00
kern thread_create(): call cpu_copy_thread() after td_pflags is zeroed 2022-08-08 19:44:17 +03:00
kgssapi
libkern libkern: Fix a typo in a source code comment 2022-06-05 08:57:26 +02:00
modules qat: Move qat_c2xxx firmware files and build glue into separate dirs 2022-08-04 09:37:55 -04:00
net debugnet: Fix a typo in a source code comment 2022-08-07 16:07:01 +02:00
net80211 net80211(4): Fix a typo in a source code comment 2022-08-07 16:01:13 +02:00
netgraph Adjust ng_{name,ID}_rehash() definitions to avoid clang 15 warnings 2022-07-25 20:02:31 +02:00
netinet tcp_input: update comment to match reality. 2022-08-07 11:18:30 -07:00
netinet6 inet6(4): Fix a typo in a source code comment 2022-08-07 14:20:52 +02:00
netipsec ipsec: Improve validation of PMTU 2022-07-27 16:12:34 +02:00
netpfil Introduce and use the NET_EPOCH_DRAIN_CALLBACKS() macro 2022-07-29 21:21:10 +02:00
netsmb
nfs nfs: skip bootpc when vfs.root.mountfrom is other than nfs 2022-05-31 16:07:27 -03:00
nfsclient
nfsserver
nlm
ofed ofed/infiniband: fix ifdefs for new INET changes, fixing LINT-NOIP 2022-07-18 08:02:01 -05:00
opencrypto ddb: annotate some commands with DB_CMD_MEMSAFE 2022-07-18 22:06:09 +00:00
powerpc powerpc/booke: Clamp MAXCPU to 32 for Book-E platforms 2022-08-06 11:42:19 -04:00
riscv AST: rework 2022-08-02 21:11:09 +03:00
rpc Adjust authnone_create() definition to avoid clang 15 warning 2022-07-25 00:40:13 +02:00
security AST: rework 2022-08-02 21:11:09 +03:00
sys Bump __FreeBSD_version after linuxkpi changes. 2022-08-08 15:22:36 +02:00
teken
tests
tools firmware: Map '@' in filenames to '_' in symbols. 2022-06-14 10:50:51 -07:00
ufs AST: rework 2022-08-02 21:11:09 +03:00
vm swap_pager: Reduce the scope of the object lock in putpages 2022-07-18 22:35:49 -05:00
x86 x86/iommu: Reduce the number of queued invalidation interrupts 2022-08-06 13:05:58 -05:00
xdr
xen xenbus: improve device tracking 2022-06-07 12:29:53 +02:00
Makefile