Re: [PATCHv2 1/6] kexec: Change the image probe's prototype

2023-06-28 Thread Pingfan Liu
I have another try, which drops the changes of the prototype of the probe method. Instead, introducing the 'probe2' interface and migrating all arm64 image probe methods to that interface. I will do more test on the new series and sent it out soon Thanks, Pingfan On Thu, Jun 1, 2023 at 9:45 

Re: [PATCH v9 2/4] tpm: of: Make of-tree specific function commonly available

2023-06-28 Thread Jarkko Sakkinen
On Fri, 2023-06-09 at 14:49 -0400, Stefan Berger wrote: > > On 6/9/23 14:18, Jarkko Sakkinen wrote: > > On Thu May 25, 2023 at 1:56 AM EEST, Jerry Snitselaar wrote: > > > On Tue, Apr 18, 2023 at 09:44:07AM -0400, Stefan Berger wrote: > > > > Simplify tpm_read_log_of() by moving reusable parts of

[PATCH v24 00/10] crash: Kernel handling of CPU and memory hot un/plug

2023-06-28 Thread Eric DeVolder
This series is dependent upon "refactor Kconfig to consolidate KEXEC and CRASH options". https://lore.kernel.org/lkml/20230626161332.183214-1-eric.devol...@oracle.com/ Once the kdump service is loaded, if changes to CPUs or memory occur, either by hot un/plug or off/onlining, the crash

[PATCH v24 01/10] drivers/base: refactor cpu.c to use .is_visible()

2023-06-28 Thread Eric DeVolder
Greg Kroah-Hartman requested that this file use the .is_visible() method instead of #ifdefs for the attributes in cpu.c. static struct attribute *cpu_root_attrs[] = { #ifdef CONFIG_ARCH_CPU_PROBE_RELEASE _attr_probe.attr, _attr_release.attr, #endif _attrs[0].attr.attr,

[PATCH v24 09/10] crash: change crash_prepare_elf64_headers() to for_each_possible_cpu()

2023-06-28 Thread Eric DeVolder
The function crash_prepare_elf64_headers() generates the elfcorehdr which describes the CPUs and memory in the system for the crash kernel. In particular, it writes out ELF PT_NOTEs for memory regions and the CPUs in the system. With respect to the CPUs, the current implementation utilizes

[PATCH v24 07/10] x86/crash: add x86 crash hotplug support

2023-06-28 Thread Eric DeVolder
When CPU or memory is hot un/plugged, or off/onlined, the crash elfcorehdr, which describes the CPUs and memory in the system, must also be updated. A new elfcorehdr is generated from the available CPUs and memory and replaces the existing elfcorehdr. The segment containing the elfcorehdr is

[PATCH v24 10/10] x86/crash: optimize CPU changes

2023-06-28 Thread Eric DeVolder
crash_prepare_elf64_headers() writes into the elfcorehdr an ELF PT_NOTE for all possible CPUs. As such, subsequent changes to CPUs (ie. hot un/plug, online/offline) do not need to rewrite the elfcorehdr. The kimage->file_mode term covers kdump images loaded via the kexec_file_load() syscall.

[PATCH v24 08/10] crash: hotplug support for kexec_load()

2023-06-28 Thread Eric DeVolder
The hotplug support for kexec_load() requires changes to the userspace kexec-tools and a little extra help from the kernel. Given a kdump capture kernel loaded via kexec_load(), and a subsequent hotplug event, the crash hotplug handler finds the elfcorehdr and rewrites it to reflect the hotplug

[PATCH v24 06/10] crash: memory and CPU hotplug sysfs attributes

2023-06-28 Thread Eric DeVolder
Introduce the crash_hotplug attribute for memory and CPUs for use by userspace. These attributes directly facilitate the udev rule for managing userspace re-loading of the crash kernel upon hot un/plug changes. For memory, expose the crash_hotplug attribute to the /sys/devices/system/memory

[PATCH v24 04/10] crash: add generic infrastructure for crash hotplug support

2023-06-28 Thread Eric DeVolder
To support crash hotplug, a mechanism is needed to update the crash elfcorehdr upon CPU or memory changes (eg. hot un/plug or off/ onlining). The crash elfcorehdr describes the CPUs and memory to be written into the vmcore. To track CPU changes, callbacks are registered with the cpuhp mechanism

[PATCH v24 03/10] crash: move a few code bits to setup support of crash hotplug

2023-06-28 Thread Eric DeVolder
The crash hotplug support leans on the work for the kexec_file_load() syscall. To also support the kexec_load() syscall, a few bits of code need to be move outside of CONFIG_KEXEC_FILE. As such, these bits are moved out of kexec_file.c and into a common location crash_core.c. No functionality

[PATCH v24 05/10] kexec: exclude elfcorehdr from the segment digest

2023-06-28 Thread Eric DeVolder
When a crash kernel is loaded via the kexec_file_load() syscall, the kernel places the various segments (ie crash kernel, crash initrd, boot_params, elfcorehdr, purgatory, etc) in memory. For those architectures that utilize purgatory, a hash digest of the segments is calculated for integrity

[PATCH v24 02/10] drivers/base: refactor memory.c to use .is_visible()

2023-06-28 Thread Eric DeVolder
Greg Kroah-Hartman requested that this file use the .is_visible() method instead of #ifdefs for the attributes in memory.c. static struct attribute *memory_memblk_attrs[] = { _attr_phys_index.attr, _attr_state.attr, _attr_phys_device.attr, _attr_removable.attr, #ifdef

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Jiri Slaby
On 21. 06. 23, 11:09, Joel Granados wrote: In order to remove the end element from the ctl_table struct arrays, we explicitly define the size when registering the targes. We add a size argument to the register_sysctl_init call and pass an ARRAY_SIZE for all the callers. Hi, I am missing here

Re: [PATCH v6 02/14] Documentation/x86: Secure Launch kernel documentation

2023-06-28 Thread Ross Philipson
On 5/6/23 04:48, Bagas Sanjaya wrote: On Thu, May 04, 2023 at 02:50:11PM +, Ross Philipson wrote: += +System Launch Integrity documentation += + +.. toctree:: By convention, doc toctree have 2-level depth (only page

[PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Joel Granados
In order to remove the end element from the ctl_table struct arrays, we explicitly define the size when registering the targes. We add a size argument to the register_sysctl_init call and pass an ARRAY_SIZE for all the callers. Signed-off-by: Joel Granados --- arch/x86/kernel/cpu/intel.c |

Re: [PATCH 3/6] fs: distinguish between user initiated freeze and kernel initiated freeze

2023-06-28 Thread Jan Kara
On Mon 22-05-23 16:42:00, Darrick J. Wong wrote: > How about this as an alternative patch? Kernel and userspace freeze > state are stored in s_writers; each type cannot block the other (though > you still can't have nested kernel or userspace freezes); and the freeze > is maintained until /both/

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Joel Granados
On Thu, Jun 22, 2023 at 06:21:48AM +0200, Jiri Slaby wrote: > On 21. 06. 23, 15:15, Joel Granados wrote: > > On Wed, Jun 21, 2023 at 12:47:58PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Jun 21, 2023 at 11:09:57AM +0200, Joel Granados wrote: > > > > static int __init

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Petr Mladek
On Thu 2023-06-22 16:00:21, Joel Granados wrote: > On Thu, Jun 22, 2023 at 06:21:48AM +0200, Jiri Slaby wrote: > > On 21. 06. 23, 15:15, Joel Granados wrote: > > > On Wed, Jun 21, 2023 at 12:47:58PM +0200, Greg Kroah-Hartman wrote: > > > > On Wed, Jun 21, 2023 at 11:09:57AM +0200, Joel Granados

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Jiri Slaby
On 21. 06. 23, 15:15, Joel Granados wrote: On Wed, Jun 21, 2023 at 12:47:58PM +0200, Greg Kroah-Hartman wrote: On Wed, Jun 21, 2023 at 11:09:57AM +0200, Joel Granados wrote: static int __init random_sysctls_init(void) { - register_sysctl_init("kernel/random", random_table); +

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Jiri Slaby
On 21. 06. 23, 15:11, Joel Granados wrote: On Wed, Jun 21, 2023 at 11:56:03AM +0200, Jiri Slaby wrote: On 21. 06. 23, 11:09, Joel Granados wrote: In order to remove the end element from the ctl_table struct arrays, we explicitly define the size when registering the targes. We add a size

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Joel Granados
On Wed, Jun 21, 2023 at 01:36:46PM +0200, Petr Mladek wrote: > On Wed 2023-06-21 11:09:57, Joel Granados wrote: > > In order to remove the end element from the ctl_table struct arrays, we > > explicitly define the size when registering the targes. We add a size > > argument to the

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Joel Granados
On Wed, Jun 21, 2023 at 12:47:58PM +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 21, 2023 at 11:09:57AM +0200, Joel Granados wrote: > > static int __init random_sysctls_init(void) > > { > > - register_sysctl_init("kernel/random", random_table); > > + register_sysctl_init("kernel/random",

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Joel Granados
On Wed, Jun 21, 2023 at 11:56:03AM +0200, Jiri Slaby wrote: > On 21. 06. 23, 11:09, Joel Granados wrote: > > In order to remove the end element from the ctl_table struct arrays, we > > explicitly define the size when registering the targes. We add a size > > argument to the register_sysctl_init

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Joel Granados
On Thu, Jun 22, 2023 at 06:25:15AM +0200, Jiri Slaby wrote: > On 21. 06. 23, 15:11, Joel Granados wrote: > > On Wed, Jun 21, 2023 at 11:56:03AM +0200, Jiri Slaby wrote: > > > On 21. 06. 23, 11:09, Joel Granados wrote: > > > > In order to remove the end element from the ctl_table struct arrays, we

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Greg Kroah-Hartman
On Wed, Jun 21, 2023 at 11:09:57AM +0200, Joel Granados wrote: > static int __init random_sysctls_init(void) > { > - register_sysctl_init("kernel/random", random_table); > + register_sysctl_init("kernel/random", random_table, > + ARRAY_SIZE(random_table)); As

Re: [PATCH 08/11] sysctl: Add size to register_sysctl_init

2023-06-28 Thread Petr Mladek
On Wed 2023-06-21 11:09:57, Joel Granados wrote: > In order to remove the end element from the ctl_table struct arrays, we > explicitly define the size when registering the targes. We add a size > argument to the register_sysctl_init call and pass an ARRAY_SIZE for all > the callers. This does

Słowa kluczowe do wypozycjonowania

2023-06-28 Thread Kamil Tralewski
Dzień dobry, zapoznałem się z Państwa ofertą i z przyjemnością przyznaję, że przyciąga uwagę i zachęca do dalszych rozmów. Pomyślałem, że może mógłbym mieć swój wkład w Państwa rozwój i pomóc dotrzeć z tą ofertą do większego grona odbiorców. Pozycjonuję strony www, dzięki czemu generują