[PATCH v3 1/2] hugetlbfs: support tracepoint

2024-07-22 Thread Hongbo Li
Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li --- MAINTAINERS | 1 + include/trace/events/hugetlbfs.h | 156 +++ 2 files changed

[PATCH v3 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-22 Thread Hongbo Li
mode 0100644 size 2097152 nlink 0 seals 1 blocks 0 -0 [007] ..s1. 110.059441: hugetlbfs_free_inode: dev 0,51 ino 24621 mode 0100644 size 2097152 nlink 0 seals 1 blocks 0 ``` Signed-off-by: Hongbo Li --- fs/hugetlbfs/inode.c | 17 +++-- 1 file changed, 15 insertions(+), 2

[PATCH v3 0/2] Introduce tracepoint for hugetlbfs

2024-07-22 Thread Hongbo Li
separated. v1 can be found at: https://lore.kernel.org/linux-mm/20240701194906.3a9b6...@gandalf.local.home/T/ Changes since v1: - Decrease the parameters for setattr tracer suggested by Steve and Mathieu. - Replace current_user_ns() with init_user_ns when translate uid/gid. Hongbo Li (2

Re: [PATCH v2 1/2] hugetlbfs: support tracepoint

2024-07-05 Thread Hongbo Li
On 2024/7/5 7:34, Dave Chinner wrote: On Thu, Jul 04, 2024 at 10:13:22AM -0400, Steven Rostedt wrote: On Thu, 4 Jul 2024 22:56:29 +1000 Dave Chinner wrote: Having to do this is additional work when writing use-once scripts that get thrown away when the tracepoint output analysis is done

Re: [PATCH v2 1/2] hugetlbfs: support tracepoint

2024-07-04 Thread Hongbo Li
On 2024/7/4 11:37, Matthew Wilcox wrote: On Thu, Jul 04, 2024 at 11:07:03AM +0800, Hongbo Li wrote: + TP_printk("dev = (%d,%d), ino = %lu, dir = %lu, mode = 0%o", + MAJOR(__entry->dev), MINOR(__entry->dev), + (unsigned lo

[PATCH v2 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-03 Thread Hongbo Li
= 2097152, i_nlink = 0, seals = 1, i_blocks = 0 ``` Signed-off-by: Hongbo Li --- fs/hugetlbfs/inode.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 412f295acebe..2e826bbcb6ed 100644 --- a/fs/hugetlbfs/inode.c

[PATCH v2 0/2] Introduce tracepoint for hugetlbfs

2024-07-03 Thread Hongbo Li
and Mathieu. - Replace current_user_ns() with init_user_ns when translate uid/gid. Hongbo Li (2): hugetlbfs: support tracepoint hugetlbfs: use tracepoints in hugetlbfs functions. MAINTAINERS | 1 + fs/hugetlbfs/inode.c | 17 +++- include/trace/events

[PATCH v2 1/2] hugetlbfs: support tracepoint

2024-07-03 Thread Hongbo Li
Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li --- MAINTAINERS | 1 + include/trace/events/hugetlbfs.h | 160 +++ 2 files changed

Re: [PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-02 Thread Hongbo Li
On 2024/7/2 21:30, Mathieu Desnoyers wrote: On 2024-07-02 07:55, Hongbo Li wrote: On 2024/7/2 7:49, Steven Rostedt wrote: On Wed, 12 Jun 2024 09:11:56 +0800 Hongbo Li wrote: @@ -934,6 +943,12 @@ static int hugetlbfs_setattr(struct mnt_idmap *idmap,   if (error)   return

Re: [PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-07-02 Thread Hongbo Li
On 2024/7/2 7:49, Steven Rostedt wrote: On Wed, 12 Jun 2024 09:11:56 +0800 Hongbo Li wrote: @@ -934,6 +943,12 @@ static int hugetlbfs_setattr(struct mnt_idmap *idmap, if (error) return error; + trace_hugetlbfs_setattr(inode, dentry->d_name.len, den

Re: [PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-06-20 Thread Hongbo Li
Just a friendly ping to the patch :) https://lore.kernel.org/all/20240612011156.2891254-1-lihongb...@huawei.com/ Thanks, Hongbo On 2024/6/12 9:11, Hongbo Li wrote: Here we use the hugetlbfs tracepoint to track the call stack. And the output in trace is as follows: ``` touch-5307[004

[PATCH 1/2] hugetlbfs: support tracepoint

2024-06-11 Thread Hongbo Li
Add basic tracepoints for {alloc, evict, free}_inode, setattr and fallocate. These can help users to debug hugetlbfs more conveniently. Signed-off-by: Hongbo Li --- MAINTAINERS | 1 + include/trace/events/hugetlbfs.h | 164 +++ 2 files changed

[PATCH 2/2] hugetlbfs: use tracepoints in hugetlbfs functions.

2024-06-11 Thread Hongbo Li
= 21380, i_mode = 0100644, i_size = 2097152, i_nlink = 0, seals = 1, i_blocks = 0 ``` Signed-off-by: Hongbo Li --- fs/hugetlbfs/inode.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 412f295acebe

[PATCH 0/2] Introduce tracepoint for hugetlbfs

2024-06-11 Thread Hongbo Li
Here we add some basic tracepoints for debugging hugetlbfs: {alloc, free, evict}_inode, setattr and fallocate. Hongbo Li (2): hugetlbfs: support tracepoint hugetlbfs: use tracepoints in hugetlbfs functions. MAINTAINERS | 1 + fs/hugetlbfs/inode.c | 21

[PATCH v4 4/4] ima: add support for rsa pss verification

2021-04-07 Thread Hongbo Li
This patch adds support for ima verification for rsa with pss encoding. And a rsa-pss patch for ima-evm-utils has been sent. Signed-off-by: Hongbo Li --- security/integrity/digsig_asymmetric.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/security

[PATCH v4 3/4] crypto: add rsa pss test vector

2021-04-07 Thread Hongbo Li
This patch adds the test vector for rsa with pss encoding. Signed-off-by: Hongbo Li --- crypto/testmgr.c | 7 + crypto/testmgr.h | 90 2 files changed, 97 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 10c5b3b

[PATCH v4 2/4] crypto: support rsa-pss encoding

2021-04-07 Thread Hongbo Li
the verification according to RFC8017 section 8.1.2 and 9.1.2 Signed-off-by: Hongbo Li --- crypto/Makefile | 7 +- crypto/rsa-psspad.c | 398 ++ crypto/rsa.c | 14 +- crypto/rsa_helper.c | 127 ++ crypto

[PATCH v4 1/4] x509: add support for rsa-pss

2021-04-07 Thread Hongbo Li
This patch make x509 support rsa with pss encoding. The sha algo is in the RSASSA-PSS-params, so we need to parse the sha parameter, and could skip other params. Also add two oids used by rsa-pss. Signed-off-by: Hongbo Li --- crypto/asymmetric_keys/Makefile| 7 ++- crypto

[PATCH v4 0/4] crypto: add rsa pss support for x509

2021-04-07 Thread Hongbo Li
From: Hongbo Li This series of patches add support for x509 cert signed by RSA with PSS encoding method which is described in RFC8017 [1]. According to RFC8017, there're two encoding methods for signing and verification. One is PKCS1-v1_5 which is already supported by linux, the other one

Re: [PATCH 01/18] X.509: Parse RSASSA-PSS style certificates

2021-04-07 Thread hongbo li
Hello Varad, I also made an implementation of rsa pss: "[PATCH v3 0/4] crypto: add rsa pss support for x509". I notice your patches and did some review, find the following differences between our patches: 1. You rework the rsa pad framework. This is reasonable. 2. You did some changes on the

[PATCH v3 4/4] ima: add support for rsa pss verification

2021-04-06 Thread Hongbo Li
This patch adds support for ima verification for rsa with pss encoding. And a patch for ima-evm-utils will be sent later. Signed-off-by: Hongbo Li --- security/integrity/digsig_asymmetric.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/security

[PATCH v3 3/4] crypto: add rsa pss test vector

2021-04-06 Thread Hongbo Li
This patch adds the test vector for rsa with pss encoding. Signed-off-by: Hongbo Li --- crypto/testmgr.c | 7 + crypto/testmgr.h | 90 2 files changed, 97 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 10c5b3b

[PATCH v3 2/4] crypto: support rsa-pss encoding

2021-04-06 Thread Hongbo Li
This patch add the support of rsa-pss encoding which is described rfc8017. Similar to rsa-pkcs1, we create a pss template. Signed-off-by: Hongbo Li --- crypto/Makefile | 7 +- crypto/rsa-psspad.c | 398 ++ crypto/rsa.c

[PATCH v3 1/4] x509: add support for rsa-pss

2021-04-06 Thread Hongbo Li
This patch make x509 support rsa-pss, because the sha algo is in paramters, so we need to parse the sha parameter, and skip other params. Signed-off-by: Hongbo Li --- crypto/asymmetric_keys/Makefile| 7 ++- crypto/asymmetric_keys/public_key.c| 5 ++ crypto

[PATCH v3 0/4] crypto: add rsa pss support for x509

2021-04-06 Thread Hongbo Li
From: Hongbo Li This series of patches adds support for x509 cert signed by RSA with PSS encoding method. RSA PSS is described in rfc8017. Patch1 make x509 support rsa pss encoding and parse hash parameter. Patch2 add rsa pss template. Patch3 add test vector for rsa pss. Patch4 is the rsa

[PATCH v2 0/4] crypto: add rsa pss support for x509

2021-04-06 Thread Hongbo Li
From: Hongbo Li This series of patches adds support for x509 cert signed by RSA with PSS encoding method. RSA PSS is described in rfc8017. Patch1 make x509 support rsa pss encoding and parse hash parameter. Patch2 add rsa pss template. Patch3 add test vector for rsa pss. Patch4 is the rsa

[PATCH v2 4/4] ima: add support for rsa pss verification

2021-04-06 Thread Hongbo Li
This patch adds support for ima verification for rsa with pss encoding. And a patch for ima-evm-utils will be sent later. Signed-off-by: Hongbo Li --- security/integrity/digsig_asymmetric.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/security

[PATCH v2 3/4] crypto: add rsa pss test vector

2021-04-06 Thread Hongbo Li
This patch adds the test vector for rsa with pss encoding. Signed-off-by: Hongbo Li --- crypto/testmgr.c | 7 + crypto/testmgr.h | 90 2 files changed, 97 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 10c5b3b

[PATCH v2 2/4] crypto: support rsa-pss encoding

2021-04-06 Thread Hongbo Li
This patch add the support of rsa-pss encoding which is described rfc8017. Similar to rsa-pkcs1, we create a pss template. Signed-off-by: Hongbo Li --- crypto/Makefile | 7 ++- crypto/rsa.c | 14 ++--- crypto/rsa_helper.c | 127

[PATCH v2 1/4] x509: add support for rsa-pss

2021-04-06 Thread Hongbo Li
This patch make x509 support rsa-pss, because the sha algo is in paramters, so we need to parse the sha parameter, and skip other params. Signed-off-by: Hongbo Li --- crypto/asymmetric_keys/Makefile| 7 ++- crypto/asymmetric_keys/public_key.c| 5 ++ crypto

[PATCH 0/5] crypto: add rsa pss support for x509

2021-04-06 Thread Hongbo Li
From: Hongbo Li This series of patches adds support for x509 cert signed by RSA with PSS encoding method. RSA PSS is described in rfc8017. Patch1 make x509 support rsa pss encoding and parse hash parameter. Patch2 add rsa pss template. Patch3 add test vector for rsa pss. Patch4 is the rsa

[PATCH 5/5] ima: add support for rsa pss verification

2021-04-06 Thread Hongbo Li
From: Hongbo Li This patch adds support for ima verification for rsa with pss encoding. And a patch for ima-evm-utils will be sent later. Signed-off-by: Hongbo Li --- security/integrity/digsig_asymmetric.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/security

[PATCH 4/5] crypto: ecdsa ima support

2021-04-06 Thread Hongbo Li
From: Hongbo Li This patch is borrowed from Stefan Berger's ecdsa patch series, will be removed when ecdsa is merged into kernel. Signed-off-by: Hongbo Li --- include/keys/asymmetric-type.h | 6 ++ security/integrity/digsig_asymmetric.c | 29 ++--- 2 files

[PATCH 3/5] crypto: add rsa pss test vector

2021-04-06 Thread Hongbo Li
From: Hongbo Li This patch adds the test vector for rsa with pss encoding. Signed-off-by: Hongbo Li --- crypto/testmgr.c | 7 + crypto/testmgr.h | 87 2 files changed, 94 insertions(+) diff --git a/crypto/testmgr.c b/crypto

[PATCH 2/5] crypto: support rsa-pss encoding

2021-04-06 Thread Hongbo Li
From: Hongbo Li This patch add the support of rsa-pss encoding which is described rfc8017. Similar to rsa-pkcs1, we create a pss template. Signed-off-by: Hongbo Li --- crypto/Makefile | 7 ++- crypto/rsa.c | 14 ++--- crypto/rsa_helper.c | 127

[PATCH 1/5] x509: add support for rsa-pss

2021-04-06 Thread Hongbo Li
From: Hongbo Li This patch make x509 support rsa-pss, because the sha algo is in signature, so we need to parse the sha parameter, and skip other params. Signed-off-by: Hongbo Li --- crypto/asymmetric_keys/Makefile | 7 ++- crypto/asymmetric_keys/public_key.c | 5 +++ crypto

[PATCH 0/5] crypto: add rsa pss support for x509

2021-04-06 Thread Hongbo Li
From: Hongbo Li This series of patches adds support for x509 cert signed by RSA with PSS encoding method. RSA PSS is described in rfc8017. This series of patches adds support for x509 cert signed by RSA with PSS encoding method. RSA PSS is described in rfc8017. Patch1 make x509 support rsa pss

[PATCH] netdev: add netdev_pagefrag_enabled sysctl

2017-11-09 Thread Hongbo Li
From: Hongbo Li <herberth...@tencent.com> This patch solves a memory frag issue when allocating skb. I found this issue in a udp scenario, here is my test model: 1. About five hundreds udp threads listen on server, and five hundreds client threads send udp pkts to them. Some thread

[PATCH] netdev: add netdev_pagefrag_enabled sysctl

2017-11-09 Thread Hongbo Li
From: Hongbo Li This patch solves a memory frag issue when allocating skb. I found this issue in a udp scenario, here is my test model: 1. About five hundreds udp threads listen on server, and five hundreds client threads send udp pkts to them. Some threads send pkts in a faster speed than