[PATCH AUTOSEL 4.19 07/12] pstore/ram: Fix crash when setting number of cpus to an odd number

2024-01-15 Thread Sasha Levin
From: Weichen Chen [ Upstream commit d49270a04623ce3c0afddbf3e984cb245aa48e9c ] When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr

[PATCH AUTOSEL 5.4 07/12] pstore/ram: Fix crash when setting number of cpus to an odd number

2024-01-15 Thread Sasha Levin
From: Weichen Chen [ Upstream commit d49270a04623ce3c0afddbf3e984cb245aa48e9c ] When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr

[PATCH AUTOSEL 5.10 07/12] pstore/ram: Fix crash when setting number of cpus to an odd number

2024-01-15 Thread Sasha Levin
From: Weichen Chen [ Upstream commit d49270a04623ce3c0afddbf3e984cb245aa48e9c ] When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr

[PATCH AUTOSEL 5.15 07/13] pstore/ram: Fix crash when setting number of cpus to an odd number

2024-01-15 Thread Sasha Levin
From: Weichen Chen [ Upstream commit d49270a04623ce3c0afddbf3e984cb245aa48e9c ] When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr

[PATCH AUTOSEL 6.1 07/14] pstore/ram: Fix crash when setting number of cpus to an odd number

2024-01-15 Thread Sasha Levin
From: Weichen Chen [ Upstream commit d49270a04623ce3c0afddbf3e984cb245aa48e9c ] When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr

[PATCH AUTOSEL 6.6 09/19] pstore/ram: Fix crash when setting number of cpus to an odd number

2024-01-15 Thread Sasha Levin
From: Weichen Chen [ Upstream commit d49270a04623ce3c0afddbf3e984cb245aa48e9c ] When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr

[PATCH AUTOSEL 6.7 09/19] pstore/ram: Fix crash when setting number of cpus to an odd number

2024-01-15 Thread Sasha Levin
From: Weichen Chen [ Upstream commit d49270a04623ce3c0afddbf3e984cb245aa48e9c ] When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr

[PATCH AUTOSEL 4.19 3/5] PNP: ACPI: fix fortify warning

2024-01-15 Thread Sasha Levin
From: Dmitry Antipov [ Upstream commit ba3f5058db437d919f8468db50483dd9028ff688 ] When compiling with gcc version 14.0.0 20231126 (experimental) and CONFIG_FORTIFY_SOURCE=y, I've noticed the following: In file included from ./include/linux/string.h:295, from ./include/linux/bit

[PATCH AUTOSEL 5.4 5/7] PNP: ACPI: fix fortify warning

2024-01-15 Thread Sasha Levin
From: Dmitry Antipov [ Upstream commit ba3f5058db437d919f8468db50483dd9028ff688 ] When compiling with gcc version 14.0.0 20231126 (experimental) and CONFIG_FORTIFY_SOURCE=y, I've noticed the following: In file included from ./include/linux/string.h:295, from ./include/linux/bit

[PATCH AUTOSEL 5.10 5/8] PNP: ACPI: fix fortify warning

2024-01-15 Thread Sasha Levin
From: Dmitry Antipov [ Upstream commit ba3f5058db437d919f8468db50483dd9028ff688 ] When compiling with gcc version 14.0.0 20231126 (experimental) and CONFIG_FORTIFY_SOURCE=y, I've noticed the following: In file included from ./include/linux/string.h:295, from ./include/linux/bit

[PATCH AUTOSEL 5.15 5/8] PNP: ACPI: fix fortify warning

2024-01-15 Thread Sasha Levin
From: Dmitry Antipov [ Upstream commit ba3f5058db437d919f8468db50483dd9028ff688 ] When compiling with gcc version 14.0.0 20231126 (experimental) and CONFIG_FORTIFY_SOURCE=y, I've noticed the following: In file included from ./include/linux/string.h:295, from ./include/linux/bit

[PATCH AUTOSEL 6.1 5/9] PNP: ACPI: fix fortify warning

2024-01-15 Thread Sasha Levin
From: Dmitry Antipov [ Upstream commit ba3f5058db437d919f8468db50483dd9028ff688 ] When compiling with gcc version 14.0.0 20231126 (experimental) and CONFIG_FORTIFY_SOURCE=y, I've noticed the following: In file included from ./include/linux/string.h:295, from ./include/linux/bit

[PATCH AUTOSEL 6.6 06/14] PNP: ACPI: fix fortify warning

2024-01-15 Thread Sasha Levin
From: Dmitry Antipov [ Upstream commit ba3f5058db437d919f8468db50483dd9028ff688 ] When compiling with gcc version 14.0.0 20231126 (experimental) and CONFIG_FORTIFY_SOURCE=y, I've noticed the following: In file included from ./include/linux/string.h:295, from ./include/linux/bit

[PATCH AUTOSEL 6.7 07/18] PNP: ACPI: fix fortify warning

2024-01-15 Thread Sasha Levin
From: Dmitry Antipov [ Upstream commit ba3f5058db437d919f8468db50483dd9028ff688 ] When compiling with gcc version 14.0.0 20231126 (experimental) and CONFIG_FORTIFY_SOURCE=y, I've noticed the following: In file included from ./include/linux/string.h:295, from ./include/linux/bit

Re: Limited/Broken functionality of ASLR for Libs >= 2MB

2024-01-15 Thread Matthew Wilcox
On Mon, Jan 15, 2024 at 07:21:19PM +0100, m...@horotw.com wrote: > Am 15.01.2024 17:52, schrieb Matthew Wilcox: > > On Mon, Jan 15, 2024 at 04:40:36PM +, Sam James wrote: > > > m...@horotw.com writes: > > > > Hey, I read that ASLR is currently (since kernel >=5.18) broken for > > > > 32bit libs

Re: Limited/Broken functionality of ASLR for Libs >= 2MB

2024-01-15 Thread mail
Am 15.01.2024 17:52, schrieb Matthew Wilcox: On Mon, Jan 15, 2024 at 04:40:36PM +, Sam James wrote: m...@horotw.com writes: > Hey, I read that ASLR is currently (since kernel >=5.18) broken for > 32bit libs and reduced in effectiveness for 64bit libs... (the issue > only arises if a lib is o

Re: [PATCH v2] scsi: csiostor: Use kcalloc() instead of kzalloc()

2024-01-15 Thread Gustavo A. R. Silva
On 1/14/24 04:24, Erick Archer wrote: Use 2-factor multiplication argument form kcalloc() instead of kzalloc(). Also, it is preferred to use sizeof(*pointer) instead of sizeof(type) due to the type of the variable can change and one needs not change the former (unlike the latter). Link: http

Re: [PATCH v2] eventfs: Use kcalloc() instead of kzalloc()

2024-01-15 Thread Gustavo A. R. Silva
On 1/15/24 12:16, Erick Archer wrote: As noted in the "Deprecated Interfaces, Language Features, Attributes, and Conventions" documentation [1], size calculations (especially multiplication) should not be performed in memory allocator (or similar) function arguments due to the risk of them ove

[PATCH v2] eventfs: Use kcalloc() instead of kzalloc()

2024-01-15 Thread Erick Archer
As noted in the "Deprecated Interfaces, Language Features, Attributes, and Conventions" documentation [1], size calculations (especially multiplication) should not be performed in memory allocator (or similar) function arguments due to the risk of them overflowing. This could lead to values wrappin

Re: Limited/Broken functionality of ASLR for Libs >= 2MB

2024-01-15 Thread Matthew Wilcox
On Mon, Jan 15, 2024 at 04:40:36PM +, Sam James wrote: > m...@horotw.com writes: > > Hey, I read that ASLR is currently (since kernel >=5.18) broken for > > 32bit libs and reduced in effectiveness for 64bit libs... (the issue > > only arises if a lib is over 2MB). > > I confirmed this for mysel

Re: Limited/Broken functionality of ASLR for Libs >= 2MB

2024-01-15 Thread Sam James
m...@horotw.com writes: > Hey, I read that ASLR is currently (since kernel >=5.18) broken for > 32bit libs and reduced in effectiveness for 64bit libs... (the issue > only arises if a lib is over 2MB). > I confirmed this for myself but only for the 64bit case. > > I saw that this issue is being

Limited/Broken functionality of ASLR for Libs >= 2MB

2024-01-15 Thread mail
Hey, I read that ASLR is currently (since kernel >=5.18) broken for 32bit libs and reduced in effectiveness for 64bit libs... (the issue only arises if a lib is over 2MB). I confirmed this for myself but only for the 64bit case. I saw that this issue is being tracked by ubuntu (https://bugs.la

Re: [PATCH] eventfs: Use kcalloc() instead of kzalloc()

2024-01-15 Thread Mark Rutland
On Sun, Jan 14, 2024 at 11:53:40AM +0100, Erick Archer wrote: > Use 2-factor multiplication argument form kcalloc() instead > of kzalloc(). > > Link: https://github.com/KSPP/linux/issues/162 > Signed-off-by: Erick Archer Could you put something in the commit message explaining *why* this change