linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] keys: Miscellaneous fixes
@ 2020-11-27 16:45 David Howells
  2020-11-27 16:46 ` [PATCH 6/9] security: keys: delete repeated words in comments David Howells
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Howells @ 2020-11-27 16:45 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: James Morris, Krzysztof Kozlowski, Jarkko Sakkinen, Jann Horn,
	Gabriel Krisman Bertazi, Jarkko Sakkinen, Alexander A. Klimov,
	Ben Boeckel, linux-security-module, Denis Efremov, keyrings,
	Gustavo A. R. Silva, Randy Dunlap, Tom Rix, Serge E. Hallyn,
	dhowells, keyrings, linux-kernel


Hi Jarkko,

I've collected together a bunch of minor keyrings fixes, but I'm not sure
there's anything that can't wait for the next merge window.

The patches can be found on the following branch:

	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-fixes

David
---
Alexander A. Klimov (1):
      encrypted-keys: Replace HTTP links with HTTPS ones

Denis Efremov (1):
      security/keys: use kvfree_sensitive()

Gabriel Krisman Bertazi (1):
      watch_queue: Drop references to /dev/watch_queue

Gustavo A. R. Silva (1):
      security: keys: Fix fall-through warnings for Clang

Jann Horn (1):
      keys: Remove outdated __user annotations

Krzysztof Kozlowski (1):
      KEYS: asymmetric: Fix kerneldoc

Randy Dunlap (2):
      security: keys: delete repeated words in comments
      crypto: asymmetric_keys: fix some comments in pkcs7_parser.h

Tom Rix (1):
      KEYS: remove redundant memset


 Documentation/security/keys/core.rst     |  4 ++--
 crypto/asymmetric_keys/asymmetric_type.c |  6 ++++--
 crypto/asymmetric_keys/pkcs7_parser.h    |  5 ++---
 include/keys/encrypted-type.h            |  2 +-
 samples/Kconfig                          |  2 +-
 samples/watch_queue/watch_test.c         |  2 +-
 security/keys/Kconfig                    |  8 ++++----
 security/keys/big_key.c                  |  9 +++------
 security/keys/keyctl.c                   |  2 +-
 security/keys/keyctl_pkey.c              |  2 --
 security/keys/keyring.c                  | 10 +++++-----
 11 files changed, 24 insertions(+), 28 deletions(-)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 6/9] security: keys: delete repeated words in comments
  2020-11-27 16:45 [PATCH 0/9] keys: Miscellaneous fixes David Howells
@ 2020-11-27 16:46 ` David Howells
  2020-11-29  3:38 ` [PATCH 0/9] keys: Miscellaneous fixes Jarkko Sakkinen
  2020-11-30  9:21 ` David Howells
  2 siblings, 0 replies; 5+ messages in thread
From: David Howells @ 2020-11-27 16:46 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: Randy Dunlap, keyrings, James Morris, Serge E. Hallyn,
	linux-security-module, dhowells, keyrings, linux-kernel

From: Randy Dunlap <rdunlap@infradead.org>

Drop repeated words in comments.
{to, will, the}

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: keyrings@vger.kernel.org
Cc: James Morris <jmorris@namei.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: linux-security-module@vger.kernel.org
---

 security/keys/keyctl.c  |    2 +-
 security/keys/keyring.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
index 61a614c21b9b..96a92a645216 100644
--- a/security/keys/keyctl.c
+++ b/security/keys/keyctl.c
@@ -506,7 +506,7 @@ long keyctl_keyring_clear(key_serial_t ringid)
  * keyring, otherwise replace the link to the matching key with a link to the
  * new key.
  *
- * The key must grant the caller Link permission and the the keyring must grant
+ * The key must grant the caller Link permission and the keyring must grant
  * the caller Write permission.  Furthermore, if an additional link is created,
  * the keyring's quota will be extended.
  *
diff --git a/security/keys/keyring.c b/security/keys/keyring.c
index 977066208387..5e6a90760753 100644
--- a/security/keys/keyring.c
+++ b/security/keys/keyring.c
@@ -881,7 +881,7 @@ static bool search_nested_keyrings(struct key *keyring,
  *
  * Keys are matched to the type provided and are then filtered by the match
  * function, which is given the description to use in any way it sees fit.  The
- * match function may use any attributes of a key that it wishes to to
+ * match function may use any attributes of a key that it wishes to
  * determine the match.  Normally the match function from the key type would be
  * used.
  *
@@ -1204,7 +1204,7 @@ static int keyring_detect_cycle_iterator(const void *object,
 }
 
 /*
- * See if a cycle will will be created by inserting acyclic tree B in acyclic
+ * See if a cycle will be created by inserting acyclic tree B in acyclic
  * tree A at the topmost level (ie: as a direct child of A).
  *
  * Since we are adding B to A at the top level, checking for cycles should just



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/9] keys: Miscellaneous fixes
  2020-11-27 16:45 [PATCH 0/9] keys: Miscellaneous fixes David Howells
  2020-11-27 16:46 ` [PATCH 6/9] security: keys: delete repeated words in comments David Howells
@ 2020-11-29  3:38 ` Jarkko Sakkinen
  2020-11-30  9:21 ` David Howells
  2 siblings, 0 replies; 5+ messages in thread
From: Jarkko Sakkinen @ 2020-11-29  3:38 UTC (permalink / raw)
  To: David Howells
  Cc: Jarkko Sakkinen, James Morris, Krzysztof Kozlowski,
	Jarkko Sakkinen, Jann Horn, Gabriel Krisman Bertazi,
	Alexander A. Klimov, Ben Boeckel, linux-security-module,
	Denis Efremov, keyrings, Gustavo A. R. Silva, Randy Dunlap,
	Tom Rix, Serge E. Hallyn, linux-kernel

On Fri, Nov 27, 2020 at 04:45:24PM +0000, David Howells wrote:
> 
> Hi Jarkko,
> 
> I've collected together a bunch of minor keyrings fixes, but I'm not sure
> there's anything that can't wait for the next merge window.
> 
> The patches can be found on the following branch:
> 
> 	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-fixes
> 
> David


I think that looks good, thank you. I'm sending PR next week. Should I
bundle those to that?

/Jarkko


> ---
> Alexander A. Klimov (1):
>       encrypted-keys: Replace HTTP links with HTTPS ones
> 
> Denis Efremov (1):
>       security/keys: use kvfree_sensitive()
> 
> Gabriel Krisman Bertazi (1):
>       watch_queue: Drop references to /dev/watch_queue
> 
> Gustavo A. R. Silva (1):
>       security: keys: Fix fall-through warnings for Clang
> 
> Jann Horn (1):
>       keys: Remove outdated __user annotations
> 
> Krzysztof Kozlowski (1):
>       KEYS: asymmetric: Fix kerneldoc
> 
> Randy Dunlap (2):
>       security: keys: delete repeated words in comments
>       crypto: asymmetric_keys: fix some comments in pkcs7_parser.h
> 
> Tom Rix (1):
>       KEYS: remove redundant memset
> 
> 
>  Documentation/security/keys/core.rst     |  4 ++--
>  crypto/asymmetric_keys/asymmetric_type.c |  6 ++++--
>  crypto/asymmetric_keys/pkcs7_parser.h    |  5 ++---
>  include/keys/encrypted-type.h            |  2 +-
>  samples/Kconfig                          |  2 +-
>  samples/watch_queue/watch_test.c         |  2 +-
>  security/keys/Kconfig                    |  8 ++++----
>  security/keys/big_key.c                  |  9 +++------
>  security/keys/keyctl.c                   |  2 +-
>  security/keys/keyctl_pkey.c              |  2 --
>  security/keys/keyring.c                  | 10 +++++-----
>  11 files changed, 24 insertions(+), 28 deletions(-)
> 
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/9] keys: Miscellaneous fixes
  2020-11-27 16:45 [PATCH 0/9] keys: Miscellaneous fixes David Howells
  2020-11-27 16:46 ` [PATCH 6/9] security: keys: delete repeated words in comments David Howells
  2020-11-29  3:38 ` [PATCH 0/9] keys: Miscellaneous fixes Jarkko Sakkinen
@ 2020-11-30  9:21 ` David Howells
  2020-12-02 16:43   ` Jarkko Sakkinen
  2 siblings, 1 reply; 5+ messages in thread
From: David Howells @ 2020-11-30  9:21 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: dhowells, Jarkko Sakkinen, James Morris, Krzysztof Kozlowski,
	Jarkko Sakkinen, Jann Horn, Gabriel Krisman Bertazi,
	Alexander A. Klimov, Ben Boeckel, linux-security-module,
	Denis Efremov, keyrings, Gustavo A. R. Silva, Randy Dunlap,
	Tom Rix, Serge E. Hallyn, linux-kernel

Jarkko Sakkinen <jarkko@kernel.org> wrote:

> I think that looks good, thank you. I'm sending PR next week. Should I
> bundle those to that?

I've updated the branch to include an ack from you, plus added the
semicolon-removal patch and a #include-removal patch.

You can try sending them on, though I don't think any of them are really
critical patches (and we are in -rc6).

David


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/9] keys: Miscellaneous fixes
  2020-11-30  9:21 ` David Howells
@ 2020-12-02 16:43   ` Jarkko Sakkinen
  0 siblings, 0 replies; 5+ messages in thread
From: Jarkko Sakkinen @ 2020-12-02 16:43 UTC (permalink / raw)
  To: David Howells
  Cc: Jarkko Sakkinen, James Morris, Krzysztof Kozlowski,
	Jarkko Sakkinen, Jann Horn, Gabriel Krisman Bertazi,
	Alexander A. Klimov, Ben Boeckel, linux-security-module,
	Denis Efremov, keyrings, Gustavo A. R. Silva, Randy Dunlap,
	Tom Rix, Serge E. Hallyn, linux-kernel

On Mon, Nov 30, 2020 at 09:21:32AM +0000, David Howells wrote:
> Jarkko Sakkinen <jarkko@kernel.org> wrote:
> 
> > I think that looks good, thank you. I'm sending PR next week. Should I
> > bundle those to that?
> 
> I've updated the branch to include an ack from you, plus added the
> semicolon-removal patch and a #include-removal patch.
> 
> You can try sending them on, though I don't think any of them are really
> critical patches (and we are in -rc6).
> 
> David

I think I'll pass then and focus on SGX for the time being. Getting that
to the mainline will release quite a lot of bandwidth, i.e. on average
the best way to go forward.

I'll test this patch set once we are in 5.11-rc1:

https://lore.kernel.org/keyrings/20201120180426.922572-1-mic@digikod.net/

/Jarkko

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-02 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27 16:45 [PATCH 0/9] keys: Miscellaneous fixes David Howells
2020-11-27 16:46 ` [PATCH 6/9] security: keys: delete repeated words in comments David Howells
2020-11-29  3:38 ` [PATCH 0/9] keys: Miscellaneous fixes Jarkko Sakkinen
2020-11-30  9:21 ` David Howells
2020-12-02 16:43   ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).