* keyctl_capabilities and buflen
@ 2019-06-05 13:02 Ben Boeckel
2019-06-19 13:30 ` Ben Boeckel
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ben Boeckel @ 2019-06-05 13:02 UTC (permalink / raw)
To: keyrings
Hi,
I'm looking at the implementation of `keyctl_capabilities` in the `next`
branch and it's not clear if `buflen` is the size of the memory pointed
to by `buffer` in array size or in byte size by its documentation. It
seems to be the size in bytes by the code (the &3) could probably
warrant a comment to make it clearer that it is related to
sizeof(unsigned int) here). This seems very odd to me, or is it just a
common kernel pattern I haven't seen before?
Thanks,
--Ben
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: keyctl_capabilities and buflen
2019-06-05 13:02 keyctl_capabilities and buflen Ben Boeckel
@ 2019-06-19 13:30 ` Ben Boeckel
2019-06-19 14:56 ` David Howells
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Ben Boeckel @ 2019-06-19 13:30 UTC (permalink / raw)
To: keyrings
On Wed, Jun 05, 2019 at 09:02:47 -0400, Ben Boeckel wrote:
> I'm looking at the implementation of `keyctl_capabilities` in the `next`
> branch and it's not clear if `buflen` is the size of the memory pointed
> to by `buffer` in array size or in byte size by its documentation. It
> seems to be the size in bytes by the code (the &3) could probably
> warrant a comment to make it clearer that it is related to
> sizeof(unsigned int) here). This seems very odd to me, or is it just a
> common kernel pattern I haven't seen before?
I see that this is now `unsigned char*` instead of `unsigned int` on
`next` now and in the kernel by the newest patch submission.
Thanks,
--Ben
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: keyctl_capabilities and buflen
2019-06-05 13:02 keyctl_capabilities and buflen Ben Boeckel
2019-06-19 13:30 ` Ben Boeckel
@ 2019-06-19 14:56 ` David Howells
2019-06-19 15:15 ` Ben Boeckel
2019-06-19 15:22 ` David Howells
3 siblings, 0 replies; 5+ messages in thread
From: David Howells @ 2019-06-19 14:56 UTC (permalink / raw)
To: keyrings
Ben Boeckel <mathstuf@gmail.com> wrote:
> I see that this is now `unsigned char*` instead of `unsigned int` on
> `next` now and in the kernel by the newest patch submission.
If you're okay with the patch, could you reply to it with a Reviewed-by?
Thanks,
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: keyctl_capabilities and buflen
2019-06-05 13:02 keyctl_capabilities and buflen Ben Boeckel
2019-06-19 13:30 ` Ben Boeckel
2019-06-19 14:56 ` David Howells
@ 2019-06-19 15:15 ` Ben Boeckel
2019-06-19 15:22 ` David Howells
3 siblings, 0 replies; 5+ messages in thread
From: Ben Boeckel @ 2019-06-19 15:15 UTC (permalink / raw)
To: keyrings
On Wed, Jun 19, 2019 at 15:56:15 +0100, David Howells wrote:
> If you're okay with the patch, could you reply to it with a Reviewed-by?
I'm not confident enough in the kernel side to give such a tag, sorry.
I'm more interested in the libkeyutils patches which tend to just show
up in the repo rather than for review on the list (where I'd happily
give such tags where I can).
--Ben
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: keyctl_capabilities and buflen
2019-06-05 13:02 keyctl_capabilities and buflen Ben Boeckel
` (2 preceding siblings ...)
2019-06-19 15:15 ` Ben Boeckel
@ 2019-06-19 15:22 ` David Howells
3 siblings, 0 replies; 5+ messages in thread
From: David Howells @ 2019-06-19 15:22 UTC (permalink / raw)
To: keyrings
Ben Boeckel <mathstuf@gmail.com> wrote:
> I'm not confident enough in the kernel side to give such a tag, sorry.
> I'm more interested in the libkeyutils patches which tend to just show
> up in the repo rather than for review on the list (where I'd happily
> give such tags where I can).
Okay, thanks.
David
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-06-19 15:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-05 13:02 keyctl_capabilities and buflen Ben Boeckel
2019-06-19 13:30 ` Ben Boeckel
2019-06-19 14:56 ` David Howells
2019-06-19 15:15 ` Ben Boeckel
2019-06-19 15:22 ` David Howells
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.