]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cpuset: Fix the KASAN and KMSAN builds
authorMark Johnston <markj@FreeBSD.org>
Fri, 20 May 2022 14:11:31 +0000 (10:11 -0400)
committerMark Johnston <markj@FreeBSD.org>
Fri, 20 May 2022 14:34:25 +0000 (10:34 -0400)
commit4a3e51335e86cee02569c04b9f1e95ca9abcb170
treedc12a8fa283c87c67fa6895392615a8571a10787
parentb3fa36efe797445cb0b4fd26d79226836db2a2b3
cpuset: Fix the KASAN and KMSAN builds

Rename the "copyin" and "copyout" fields of struct cpuset_copy_cb to
something less generic, since sanitizers define interceptors for
copyin() and copyout() using #define.

Reported by: syzbot+2db5d644097fc698fb6f@syzkaller.appspotmail.com
Fixes: 47a57144af25 ("cpuset: Byte swap cpuset for compat32 on big endian architectures")
Sponsored by: The FreeBSD Foundation
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/linux/linux_misc.c
sys/kern/kern_cpuset.c
sys/sys/cpuset.h