signal: remove warning about using SI_TKILL in rt_[tg]sigqueueinfo
authorVladimir Davydov <vdavydov@parallels.com>
Thu, 16 Apr 2015 19:47:35 +0000 (12:47 -0700)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Aug 2016 21:22:33 +0000 (23:22 +0200)
commit15db6bf1002c974b80cfcb274c21efa06d6d6c9f
treea86d4feeb81aa5e4d869e2ad37d590951fa3258b
parent55e1f395ceb2d6e26ae8e3699eb756abc394fbbe
signal: remove warning about using SI_TKILL in rt_[tg]sigqueueinfo

commit 69828dce7af2cb6d08ef5a03de687d422fb7ec1f upstream.

Sending SI_TKILL from rt_[tg]sigqueueinfo was deprecated, so now we issue
a warning on the first attempt of doing it.  We use WARN_ON_ONCE, which is
not informative and, what is worse, taints the kernel, making the trinity
syscall fuzzer complain false-positively from time to time.

It does not look like we need this warning at all, because the behaviour
changed quite a long time ago (2.6.39), and if an application relies on
the old API, it gets EPERM anyway and can issue a warning by itself.

So let us zap the warning in kernel.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
kernel/signal.c