Files
linux-stable-mirror/include/linux
Linus Torvalds 9d235ac01f Merge branch 'ucount-fixes-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull ucounts fixes from Eric Biederman:
 "There has been one very hard to track down bug in the ucount code that
  we have been tracking since roughly v5.14 was released. Alex managed
  to find a reliable reproducer a few days ago and then I was able to
  instrument the code and figure out what the issue was.

  It turns out the sigqueue_alloc single atomic operation optimization
  did not play nicely with ucounts multiple level rlimits. It turned out
  that either sigqueue_alloc or sigqueue_free could be operating on
  multiple levels and trigger the conditions for the optimization on
  more than one level at the same time.

  To deal with that situation I have introduced inc_rlimit_get_ucounts
  and dec_rlimit_put_ucounts that just focuses on the optimization and
  the rlimit and ucount changes.

  While looking into the big bug I found I couple of other little issues
  so I am including those fixes here as well.

  When I have time I would very much like to dig into process ownership
  of the shared signal queue and see if we could pick a single owner for
  the entire queue so that all of the rlimits can count to that owner.
  That should entirely remove the need to call get_ucounts and
  put_ucounts in sigqueue_alloc and sigqueue_free. It is difficult
  because Linux unlike POSIX supports setuid that works on a single
  thread"

* 'ucount-fixes-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
  ucounts: Move get_ucounts from cred_alloc_blank to key_change_session_keyring
  ucounts: Proper error handling in set_cred_ucounts
  ucounts: Pair inc_rlimit_ucounts with dec_rlimit_ucoutns in commit_creds
  ucounts: Fix signal ucount refcounting
2021-10-21 17:27:17 -10:00
..
2021-09-20 12:43:34 +01:00
2021-05-06 19:24:11 -07:00
2021-10-07 16:51:57 +02:00
2021-08-16 10:50:32 -06:00
2018-06-15 18:10:01 -03:00
2021-09-08 15:32:35 -07:00
2019-10-09 19:33:43 -07:00
2020-12-02 22:10:35 -08:00
2018-06-22 13:43:27 +09:00
2020-09-16 08:54:53 -05:00
2020-12-15 16:19:31 +01:00
2021-08-19 09:02:55 +09:00
2019-12-11 09:12:38 +01:00
2021-01-21 16:16:10 +00:00
2021-09-23 11:01:12 -04:00
2020-05-08 00:12:42 +02:00
2018-04-12 09:41:19 -07:00
2021-06-29 10:53:53 -07:00
2020-05-09 13:57:12 +02:00
2019-02-08 15:02:49 -08:00
2021-09-17 13:52:17 +01:00
2021-02-26 09:40:59 -08:00
2021-02-03 19:05:50 +01:00
2017-11-09 10:23:28 +01:00
2021-07-20 06:55:20 -07:00
2019-06-15 12:25:49 +02:00
2021-10-07 16:51:57 +02:00
2020-12-03 11:20:52 +01:00
2021-03-17 14:16:15 -05:00
2021-01-16 23:19:26 +01:00
2021-03-18 12:58:27 -04:00
2020-12-10 16:17:15 +01:00
2021-05-10 16:03:35 -07:00
2021-08-06 13:41:48 -07:00
2021-08-19 09:02:55 +09:00
2021-08-19 09:02:55 +09:00
2020-10-30 21:57:04 +01:00
2021-07-27 12:12:08 +02:00
2021-09-15 09:22:35 -06:00
2021-03-30 13:42:33 -04:00
2021-02-08 22:58:55 +01:00