[ANNOUNCE][CFP] Linux Security Summit Europe 2020

2020-05-07 Thread Elena Reshetova
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

[PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-15 Thread Elena Reshetova
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

[PATCH 1/1] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-10 Thread Elena Reshetova
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

[PATCH 0/1] v2, randomize stack offset upon syscall

2019-04-10 Thread Elena Reshetova
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

[RFC PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-03-18 Thread Elena Reshetova
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/

[PATCH 2/3] groups: convert group_info.usage to refcount_t

2019-03-06 Thread Elena Reshetova
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

[PATCH 1/3] nsproxy: convert nsproxy.count to refcount_t

2019-03-06 Thread Elena Reshetova
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

[PATCH 3/3] creds: convert cred.usage to refcount_t

2019-03-06 Thread Elena Reshetova
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

[PATCH 0/3] creds/cgroups/ns_proxy refcount_t conversions

2019-03-06 Thread Elena Reshetova
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

[tip:locking/core] futex: Convert futex_pi_state.refcount to refcount_t

2019-02-11 Thread tip-bot for Elena Reshetova
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

[PATCH] futex: convert futex_pi_state.refcount to refcount_t

2019-02-05 Thread Elena Reshetova
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

[tip:locking/core] refcount_t: Add ACQUIRE ordering on success for dec(sub)_and_test() variants

2019-02-04 Thread tip-bot for 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

[tip:sched/core] sched/core: Convert task_struct.stack_refcount to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[tip:sched/core] sched/core: Convert task_struct.usage to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[tip:sched/core] sched/fair: Convert numa_group.refcount to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[tip:sched/core] sched/core: Convert signal_struct.sigcnt to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[tip:sched/core] sched/core: Convert sighand_struct.count to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[tip:perf/core] perf/ring_buffer: Convert ring_buffer.aux_refcount to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[tip:perf/core] perf/ring_buffer: Convert ring_buffer.refcount to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[tip:perf/core] perf: Convert perf_event_context.refcount to refcount_t

2019-02-04 Thread tip-bot for Elena Reshetova
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

[PATCH] refcount_t: add ACQUIRE ordering on success for dec(sub)_and_test variants

2019-01-30 Thread Elena Reshetova
-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

[PATCH v2] Adding smp_acquire__after_ctrl_dep barrier

2019-01-30 Thread Elena Reshetova
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

[PATCH 1/3] perf: convert perf_event_context.refcount to refcount_t

2019-01-28 Thread Elena Reshetova
-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

[PATCH 0/3] perf refcount_t conversions

2019-01-28 Thread Elena Reshetova
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

[PATCH 3/3] perf/ring_buffer: convert ring_buffer.aux_refcount to refcount_t

2019-01-28 Thread Elena Reshetova
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

[PATCH 2/3] perf/ring_buffer: convert ring_buffer.refcount to refcount_t

2019-01-28 Thread 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

[PATCH] refcount_t: add ACQUIRE ordering on success for dec(sub)_and_test variants

2019-01-28 Thread 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

[PATCH 3/5] sched: convert numa_group.refcount to refcount_t

2019-01-18 Thread Elena Reshetova
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

[PATCH 4/5] sched/task_struct: convert task_struct.usage to refcount_t

2019-01-18 Thread Elena Reshetova
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

[PATCH 5/5] sched/task_struct: convert task_struct.stack_refcount to refcount_t

2019-01-18 Thread Elena Reshetova
-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

[PATCH 2/5] sched: convert signal_struct.sigcnt to refcount_t

2019-01-18 Thread Elena Reshetova
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

[PATCH 1/5] sched: convert sighand_struct.count to refcount_t

2019-01-18 Thread Elena Reshetova
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

[PATCH 0/5] sched refcount_t conversions

2019-01-18 Thread Elena Reshetova
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

[PATCH] uprobes: convert uprobe.ref to refcount_t

2019-01-16 Thread Elena Reshetova
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

[PATCH] kcov: convert kcov.refcount to refcount_t

2019-01-16 Thread Elena Reshetova
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

[PATCH] docs: refcount_t documentation

2017-12-05 Thread Elena Reshetova
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

[PATCH] docs: refcount_t documentation

2017-12-05 Thread Elena Reshetova
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

[PATCH v3] refcount_t vs. atomic_t ordering differences

2017-11-29 Thread Elena Reshetova
: * 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

[PATCH v3] refcount_t vs. atomic_t ordering differences

2017-11-29 Thread Elena Reshetova
: * 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

[PATCH] refcount_t: documentation for memory ordering differences

2017-11-29 Thread Elena Reshetova
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

[PATCH] refcount_t: documentation for memory ordering differences

2017-11-29 Thread Elena Reshetova
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

[PATCH 0/5] v2 xfs refcount conversions

2017-11-29 Thread Elena Reshetova
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

[PATCH 0/5] v2 xfs refcount conversions

2017-11-29 Thread Elena Reshetova
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

[PATCH 4/5] fs, xfs: convert xfs_cui_log_item.cui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 4/5] fs, xfs: convert xfs_cui_log_item.cui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 5/5] fs, xfs: convert xfs_rui_log_item.rui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 3/5] fs, xfs: convert xlog_ticket.t_ref from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 5/5] fs, xfs: convert xfs_rui_log_item.rui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 3/5] fs, xfs: convert xlog_ticket.t_ref from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 1/5] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 1/5] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 2/5] fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 2/5] fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH] mbcache: convert mb_cache_entry.e_refcnt from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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 +++

[PATCH] mbcache: convert mb_cache_entry.e_refcnt from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH] posix_acl: convert posix_acl.a_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH] posix_acl: convert posix_acl.a_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH] mnt_namespace: convert mnt_namespace.count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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>

[PATCH] mnt_namespace: convert mnt_namespace.count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH] fs: convert super_block.s_active from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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|

[PATCH] fs: convert super_block.s_active from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
-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

[PATCH] userfaultfd: convert userfaultfd_ctx.refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH] userfaultfd: convert userfaultfd_ctx.refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
-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

[PATCH 3/4] lockd: convert nlm_lockowner.count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 3/4] lockd: convert nlm_lockowner.count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
, 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

[PATCH 2/4] lockd: convert nsm_handle.sm_count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 2/4] lockd: convert nsm_handle.sm_count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 1/4] lockd: convert nlm_host.h_count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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&

[PATCH 1/4] lockd: convert nlm_host.h_count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 4/4] lockd: convert nlm_rqst.a_count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 4/4] lockd: convert nlm_rqst.a_count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
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

[PATCH 0/4] lockd refcount conversions

2017-11-29 Thread Elena Reshetova
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

[PATCH 0/4] lockd refcount conversions

2017-11-29 Thread Elena Reshetova
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

[PATCH 12/16] nsproxy: convert nsproxy.count to refcount_t

2017-11-16 Thread Elena Reshetova
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

[PATCH 12/16] nsproxy: convert nsproxy.count to refcount_t

2017-11-16 Thread Elena Reshetova
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

[PATCH 00/16] v6 kernel core pieces refcount conversions

2017-11-16 Thread Elena Reshetova
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

[PATCH 00/16] v6 kernel core pieces refcount conversions

2017-11-16 Thread Elena Reshetova
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

[PATCH 11/16] uprobes: convert uprobe.ref to refcount_t

2017-11-16 Thread Elena Reshetova
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

[PATCH 11/16] uprobes: convert uprobe.ref to refcount_t

2017-11-16 Thread Elena Reshetova
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

[PATCH 06/16] sched/task_struct: convert task_struct.usage to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 06/16] sched/task_struct: convert task_struct.usage to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 07/16] sched/task_struct: convert task_struct.stack_refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 07/16] sched/task_struct: convert task_struct.stack_refcount to refcount_t

2017-11-15 Thread Elena Reshetova
-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

[PATCH 08/16] perf: convert perf_event_context.refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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/

[PATCH 08/16] perf: convert perf_event_context.refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 14/16] creds: convert cred.usage to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 14/16] creds: convert cred.usage to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 16/16] bdi: convert bdi_writeback_congested.refcnt from atomic_t to refcount_t

2017-11-15 Thread Elena Reshetova
() 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

[PATCH 16/16] bdi: convert bdi_writeback_congested.refcnt from atomic_t to refcount_t

2017-11-15 Thread Elena Reshetova
() 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

[PATCH 15/16] kcov: convert kcov.refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 15/16] kcov: convert kcov.refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 13/16] groups: convert group_info.usage to refcount_t

2017-11-15 Thread Elena Reshetova
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> ---

[PATCH 13/16] groups: convert group_info.usage to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 09/16] perf/ring_buffer: convert ring_buffer.refcount to refcount_t

2017-11-15 Thread Elena Reshetova
<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(

[PATCH 09/16] perf/ring_buffer: convert ring_buffer.refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 03/16] sched: convert signal_struct.sigcnt to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 03/16] sched: convert signal_struct.sigcnt to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 10/16] perf/ring_buffer: convert ring_buffer.aux_refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 10/16] perf/ring_buffer: convert ring_buffer.aux_refcount to refcount_t

2017-11-15 Thread Elena Reshetova
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

[PATCH 04/16] sched: convert user_struct.__count to refcount_t

2017-11-15 Thread Elena Reshetova
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   2   3   4   5   6   7   8   9   10   >