From 45468c535679073d66091fc7b94dacd46257d337 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 14 Feb 2015 11:47:40 +0000 Subject: Properly interpose libc spinlocks, was missed in r276630. In particular, stdio locking was affected. Reported and tested by: "Matthew D. Fuller" Sponsored by: The FreeBSD Foundation MFC after: 3 days --- lib/libc/sys/interposing_table.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libc/sys/interposing_table.c') diff --git a/lib/libc/sys/interposing_table.c b/lib/libc/sys/interposing_table.c index d3037791b56b..0fd6c75ce99c 100644 --- a/lib/libc/sys/interposing_table.c +++ b/lib/libc/sys/interposing_table.c @@ -73,6 +73,8 @@ interpos_func_t __libc_interposing[INTERPOS_MAX] = { SLOT(write, __sys_write), SLOT(writev, __sys_writev), SLOT(_pthread_mutex_init_calloc_cb, _pthread_mutex_init_calloc_cb_stub), + SLOT(spinlock, __libc_spinlock_stub), + SLOT(spinunlock, __libc_spinunlock_stub), }; #undef SLOT -- cgit v1.2.3