phen Smalley, NSA
* Elena Reshetova, Intel
* John Johansen, Canonical
* Kees Cook, Google
* Casey Schaufler, Intel
* Mimi Zohar, IBM
* David A. Wheeler, Institute for Defense Analyses
The program committee may be contacted as a group via email:
ls
g in common.
[4] https://www.openwall.com/lists/kernel-hardening/2019/02/08/6
Signed-off-by: Elena Reshetova
---
arch/Kconfig| 15 +++
arch/x86/Kconfig| 1 +
arch/x86/entry/common.c | 18 ++
3 files changed, 34 insertions(+)
diff --git a/arch/Kconfi
es, the implementation
of RANDKSTACK and RANDOMIZE_KSTACK_OFFSET has nothing in common.
[4] https://www.openwall.com/lists/kernel-hardening/2019/02/08/6
Signed-off-by: Elena Reshetova
---
arch/Kconfig| 15 +++
arch/x86/Kconfig| 1 +
arch/x86/entry/common.c | 13 +
3 files c
Resending the patch since the first attempt never made
it to lkml.
changes in v2:
- alloca() is changed to __builtin_alloca() in order
to be compatible with 32 bit versions
Elena Reshetova (1):
x86/entry/64: randomize kernel stack offset upon syscall
arch/Kconfig| 15
rences, the implementation
of RANDKSTACK and RANDOMIZE_KSTACK_OFFSET has nothing in common.
[4] https://www.openwall.com/lists/kernel-hardening/2019/02/08/6
Signed-off-by: Elena Reshetova
---
arch/Kconfig | 15 +++
arch/x86/Kconfig | 1 +
arch/x86/
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/cred.h | 7 ---
kernel/cred.c| 2 +-
kernel/groups.c | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/include/linux/cred.h b
atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/nsproxy.h | 6 +++---
kernel/nsproxy.c| 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/linux/nsproxy.h b
in refcount_dec_and_test() only
provides RELEASE ordering and ACQUIRE ordering on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/cred.h | 8
kernel/cred.c
be cherry-picked and
discussed separately. More information about each conversion in each patch
separately.
Elena Reshetova (3):
nsproxy: convert nsproxy.count to refcount_t
groups: convert group_info.usage to refcount_t
creds: convert cred.usage to refcount_t
include/linux/cred.h| 15
Commit-ID: 49262de2270e09882d7bd8866a691cdd69ab32f6
Gitweb: https://git.kernel.org/tip/49262de2270e09882d7bd8866a691cdd69ab32f6
Author: Elena Reshetova
AuthorDate: Tue, 5 Feb 2019 14:24:27 +0200
Committer: Ingo Molnar
CommitDate: Mon, 11 Feb 2019 11:37:16 +0100
futex: Convert
atomic counterpart
- put_pi_state(): decrement in refcount_dec_and_test() provides
RELEASE ordering and ACQUIRE ordering on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
Commit-ID: 47b8f3ab9c49daa824af848f9e02889662d8638f
Gitweb: https://git.kernel.org/tip/47b8f3ab9c49daa824af848f9e02889662d8638f
Author: Elena Reshetova
AuthorDate: Wed, 30 Jan 2019 13:18:51 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 09:03:31 +0100
refcount_t: Add ACQUIRE
Commit-ID: f0b89d3958d73cd0785ec381f0ddf8efb6f183d8
Gitweb: https://git.kernel.org/tip/f0b89d3958d73cd0785ec381f0ddf8efb6f183d8
Author: Elena Reshetova
AuthorDate: Fri, 18 Jan 2019 14:27:30 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:53:56 +0100
sched/core: Convert
Commit-ID: ec1d281923cf81cc660343d0cb8ffc837ffb991d
Gitweb: https://git.kernel.org/tip/ec1d281923cf81cc660343d0cb8ffc837ffb991d
Author: Elena Reshetova
AuthorDate: Fri, 18 Jan 2019 14:27:29 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:53:55 +0100
sched/core: Convert
Commit-ID: c45a77952427b678aa9205e1b0ee3bcf9a2e
Gitweb: https://git.kernel.org/tip/c45a77952427b678aa9205e1b0ee3bcf9a2e
Author: Elena Reshetova
AuthorDate: Fri, 18 Jan 2019 14:27:28 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:53:54 +0100
sched/fair: Convert
Commit-ID: 60d4de3ff7f775509deba94b3db3c1abe55bf7a5
Gitweb: https://git.kernel.org/tip/60d4de3ff7f775509deba94b3db3c1abe55bf7a5
Author: Elena Reshetova
AuthorDate: Fri, 18 Jan 2019 14:27:27 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:53:53 +0100
sched/core: Convert
Commit-ID: d036bda7d0e7269c2982eb979acfef855f5d7977
Gitweb: https://git.kernel.org/tip/d036bda7d0e7269c2982eb979acfef855f5d7977
Author: Elena Reshetova
AuthorDate: Fri, 18 Jan 2019 14:27:26 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:53:52 +0100
sched/core: Convert
Commit-ID: ca3bb3d027f69ac3ab1dafb32bde2f5a3a44439c
Gitweb: https://git.kernel.org/tip/ca3bb3d027f69ac3ab1dafb32bde2f5a3a44439c
Author: Elena Reshetova
AuthorDate: Mon, 28 Jan 2019 14:27:28 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:46:17 +0100
perf/ring_buffer
Commit-ID: fecb8ed2ce7010db373f8517ee815380d8e3c0c4
Gitweb: https://git.kernel.org/tip/fecb8ed2ce7010db373f8517ee815380d8e3c0c4
Author: Elena Reshetova
AuthorDate: Mon, 28 Jan 2019 14:27:27 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:46:16 +0100
perf/ring_buffer
Commit-ID: 8c94abbbe1ba24961278055434504b7dc3595415
Gitweb: https://git.kernel.org/tip/8c94abbbe1ba24961278055434504b7dc3595415
Author: Elena Reshetova
AuthorDate: Mon, 28 Jan 2019 14:27:26 +0200
Committer: Ingo Molnar
CommitDate: Mon, 4 Feb 2019 08:46:15 +0100
perf: Convert
-by: Elena Reshetova
---
Documentation/core-api/refcount-vs-atomic.rst | 24 +---
arch/x86/include/asm/refcount.h | 22 ++
lib/refcount.c| 18 +-
3 files changed, 52 insertions(+), 12 deletions
letter, because I think
it is Intel mailer that malformed the patch last time for god knows
what reason...
Elena Reshetova (1):
refcount_t: add ACQUIRE ordering on success for dec(sub)_and_test
variants
Documentation/core-api/refcount-vs-atomic.rst | 24 +---
arch/x86
-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/perf_event.h | 3 ++-
kernel/events/core.c | 12 ++--
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 1d5c551
Another set of old patches, rebased and this time the commits
also updated since we merged the docs in past and also
refcount_dec_and_test() gets new acquire ordering on success
very soon, which is also reflected in commit messages.
Elena Reshetova (3):
perf: convert
counterpart
- rb_free_aux(): decrement in refcount_dec_and_test() only
provides RELEASE ordering and ACQUIRE ordering + control dependency
on success vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
- ring_buffer_put(): decrement in refcount_dec_and_test() only
provides RELEASE ordering and ACQUIRE ordering + control dependency
on success vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
-by: Elena Reshetova
---
Documentation/core-api/refcount-vs-atomic.rst | 28 +++
arch/x86/include/asm/refcount.h | 21
lib/refcount.c| 16 ++-
3 files changed, 52 insertions(+), 13 deletions(-)
diff
Signed-off-by: Elena Reshetova
---
kernel/sched/fair.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 7303e0b..32a2382 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -1035,7 +1035,7 @@ unsigned int
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/sched.h | 3 ++-
include/linux/sched/task.h | 4 ++--
init/init_task.c | 2 +-
kernel
-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/init_task.h| 1 +
include/linux/sched.h| 2 +-
include/linux/sched/task_stack.h | 2 +-
init/init_task.c | 2 +-
kernel/fork.c| 6 +++---
5 files changed, 7 insertions(+), 6
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/sched/signal.h | 2 +-
init/init_task.c | 2 +-
kernel/fork.c| 6
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/exec.c| 4 ++--
fs/proc/task_nommu.c | 2 +-
include/linux/sched/signal.h | 3
vulnerabilities.
The patches are fully independent and can be cherry-picked separately.
More information about each conversion in each patch separately.
Elena Reshetova (5):
sched: convert sighand_struct.count to refcount_t
sched: convert signal_struct.sigcnt to refcount_t
sched: convert
on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
kernel/events/uprobes.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/events/uprobes.c b/kernel
on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
kernel/kcov.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/kernel/kcov.c b/kernel/kcov.c
index
Some functions from refcount_t API provide different
memory ordering guarantees that their atomic counterparts.
This adds a document outlining these differences (
Documentation/core-api/refcount-vs-atomic.rst) as well as
some other minor improvements.
Signed-off-by: Elena Reshetova <elena.res
Some functions from refcount_t API provide different
memory ordering guarantees that their atomic counterparts.
This adds a document outlining these differences (
Documentation/core-api/refcount-vs-atomic.rst) as well as
some other minor improvements.
Signed-off-by: Elena Reshetova
Signed-off
:
* definitions now in the beginning
* confusing examples removed
* less redundancy overall and more up-to-the-point text
- definitions try to follow LKMM defined in
github.com/aparri/memory-model/blob/master/Documentation/explanation.txt
Elena Reshetova (1):
refcount_t: documentation
:
* definitions now in the beginning
* confusing examples removed
* less redundancy overall and more up-to-the-point text
- definitions try to follow LKMM defined in
github.com/aparri/memory-model/blob/master/Documentation/explanation.txt
Elena Reshetova (1):
refcount_t: documentation
Some functions from refcount_t API provide different
memory ordering guarantees that their atomic counterparts.
This adds a document outlining these differences.
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
Documentation/core-api/index.rst | 1 +
Documen
Some functions from refcount_t API provide different
memory ordering guarantees that their atomic counterparts.
This adds a document outlining these differences.
Signed-off-by: Elena Reshetova
---
Documentation/core-api/index.rst | 1 +
Documentation/core-api/refcount-vs
nt and can be cherry-picked separately.
If there are no objections to the patches, please merge them via respective
trees.
Elena Reshetova (5):
fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to
refcount_t
fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to
refco
nt and can be cherry-picked separately.
If there are no objections to the patches, please merge them via respective
trees.
Elena Reshetova (5):
fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to
refcount_t
fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to
refco
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elen
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/xfs/xfs_refcount_item.c | 6 +++---
fs/xfs/xfs_refcount_item.h | 2 +-
2 files changed
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elen
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com&g
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/xfs/xfs_rmap_item.c | 6 +++---
fs/xfs/xfs_rmap_item.h | 2 +-
2 files changed, 4
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/xfs/xfs_log.c | 10 +-
fs/xfs/xfs_log_priv.h | 2 +-
2 files changed, 6 insertions(+), 6
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elen
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/xfs/xfs_bmap_item.c | 6 +++---
fs/xfs/xfs_bmap_item.h | 2 +-
fs/xfs/xfs_linux.h
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elen
RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/xfs/xfs_extfree_item.c | 6 +++---
fs/xfs/xfs_extfree_item.h | 2 +-
2 files changed, 4
ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
fs/mbcache.c| 16 +++
ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/mbcache.c| 16
include/linux/mbcache.h | 6 +++---
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/fs
counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
fs/f2fs/acl.c | 2 +-
fs/posix_acl.c
counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/f2fs/acl.c | 2 +-
fs/posix_acl.c| 6 +++---
include/linux/posix_acl.h | 7 ---
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git
dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/mount.h | 5 +++--
fs/namespace.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git
viewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
drivers/staging/lustre/lustre/llite/llite_lib.c | 2 +-
fs/cifs/cifsfs.c|
-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
drivers/staging/lustre/lustre/llite/llite_lib.c | 2 +-
fs/cifs/cifsfs.c| 2 +-
fs/devpts/inode.c | 2 +-
fs/gfs2/super.c | 2 +-
fs/kernfs
viewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
fs/userfaultfd.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/fs/userfaultfd.c b/fs/use
-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/userfaultfd.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c
index ac9a4e6..b63ebcac 100644
--- a/fs/userfaultfd.c
+++ b/fs/userfaultfd.c
@@ -29,6 +29,7 @@
#include
com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
fs/lockd/clntproc.c | 6 +++---
include/linux/lockd/lockd.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c
index 066ac31..112173d 100644
--- a/fs/l
, control dependency on success and
holds a spin lock on success vs. fully ordered atomic counterpart.
No changes in spin lock guarantees.
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/lockd/clntproc.c | 6
com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
fs/lockd/host.c | 2 +-
fs/lockd/mon.c | 14 +++---
include/linux/lockd/lockd.h | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index
dependency on success
and holds a spin lock on success vs. fully ordered atomic
counterpart. No change for the spin lock guarantees.
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/lockd/host.c | 2 +-
fs
in this case since object freeing happens under mutex
lock anyway.
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com&
in this case since object freeing happens under mutex
lock anyway.
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/lockd/host.c | 14 +++---
include/linux/lockd/lockd.h | 3 ++-
2 files changed, 9 insertions
provides RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshe
provides RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
fs/lockd/clntproc.c | 8
fs/lockd/svcproc.c | 2
and can be cherry-picked separately.
If there are no objections to the patches, please merge them via respective
tree.
Elena Reshetova (4):
lockd: convert nlm_host.h_count from atomic_t to refcount_t
lockd: convert nsm_handle.sm_count from atomic_t to refcount_t
lockd: convert
and can be cherry-picked separately.
If there are no objections to the patches, please merge them via respective
tree.
Elena Reshetova (4):
lockd: convert nlm_host.h_count from atomic_t to refcount_t
lockd: convert nsm_handle.sm_count from atomic_t to refcount_t
lockd: convert
ordering
and control dependency on success vs. fully ordered
atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elen
ordering
and control dependency on success vs. fully ordered
atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/nsproxy.h | 6 +++---
kernel/nsproxy.c| 6 +++---
2 files changed, 6
separately.
If there are no objections to the patches, please merge them via respective
trees.
Elena Reshetova (16):
futex: convert futex_pi_state.refcount to refcount_t
sched: convert sighand_struct.count to refcount_t
sched: convert signal_struct.sigcnt to refcount_t
sched: convert user_struct
separately.
If there are no objections to the patches, please merge them via respective
trees.
Elena Reshetova (16):
futex: convert futex_pi_state.refcount to refcount_t
sched: convert sighand_struct.count to refcount_t
sched: convert signal_struct.sigcnt to refcount_t
sched: convert user_struct
on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
kernel/events/u
on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
kernel/events/uprobes.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/events/uprobes.c b/kernel
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.co
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/init_task.h | 2 +-
include/linux/sched.h | 3 ++-
include/linux/sched/task.h | 4 ++--
kernel
David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
include/linux/init_task.h| 3 ++-
include/linux/sched.h| 2 +-
include/linux/sched/task_stack
-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/init_task.h| 3 ++-
include/linux/sched.h| 2 +-
include/linux/sched/task_stack.h | 2 +-
kernel/fork.c| 6 +++---
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/include/linux
counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
include/linux/perf_event.h | 3 ++-
kernel/
counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/perf_event.h | 3 ++-
kernel/events/core.c | 12 ++--
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/include/linux
gt;
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
include/linux/cred.h | 6 +++---
kernel/cred.c| 44 ++--
2 files changed, 25 insertions(+), 25 deletions(-)
diff --git
ordered
atomic counterpart
- put_cred(): decrement in refcount_dec_and_test() only
provides RELEASE ordering and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena
() on success vs. fully ordered atomic
counterpart. Note, there is no difference in spin lock
locking.
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshe
() on success vs. fully ordered atomic
counterpart. Note, there is no difference in spin lock
locking.
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/backing-dev-defs.h | 3 ++-
include/linux/backing-dev.h
on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
kernel/kcov
on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
kernel/kcov.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/kernel/kcov.c b/kernel/kcov.c
index
dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/cred.h | 7 ---
kernel/cred.c| 2 +-
kernel/groups.c | 2 +-
3 files changed, 6
<dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
kernel/events/core.c| 4 ++--
kernel/events/internal.h| 3 ++-
kernel/events/ring_buffer.c | 2 +-
3 files changed, 5 insertions(
Liljestrand
Signed-off-by: Elena Reshetova
---
kernel/events/core.c| 4 ++--
kernel/events/internal.h| 3 ++-
kernel/events/ring_buffer.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 29c381f..3497c6a 100644
--- a/kernel
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook <keesc...@chromium.org>
Reviewed-by: David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.co
and control dependency on success
vs. fully ordered atomic counterpart
Suggested-by: Kees Cook
Reviewed-by: David Windsor
Reviewed-by: Hans Liljestrand
Signed-off-by: Elena Reshetova
---
include/linux/sched/signal.h | 2 +-
kernel/fork.c| 6 +++---
2 files changed, 4
David Windsor <dwind...@gmail.com>
Reviewed-by: Hans Liljestrand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
kernel/events/core.c| 2 +-
kernel/events/internal.h| 2 +-
kernel/events/ring_buffer.c | 6 +++---
3 files changed, 5 in
Liljestrand
Signed-off-by: Elena Reshetova
---
kernel/events/core.c| 2 +-
kernel/events/internal.h| 2 +-
kernel/events/ring_buffer.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 3497c6a..5f087f4 100644
rand <ishkam...@gmail.com>
Signed-off-by: Elena Reshetova <elena.reshet...@intel.com>
---
include/linux/sched/user.h | 5 +++--
kernel/user.c | 8
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h
index
1 - 100 of 1219 matches
Mail list logo