5.15.174-rc1 review
Subsystems (4)
Greg Kroah-Hartman
maintainerPATCH 548/565 drm/amd/display: Check BIOS images before it is used
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alex Hung <[email protected]>
commit 8b0ddf19cca2a352b2a7e01d99d3ba949a99c84c upstream.
BIOS images may fail to load and null checks are added before they are used.
This fixes 6 NULL_RETURNS issues reported by Coverity.
--- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +14 -0
@@ -664,6 +664,9 @@ static enum bp_result get_ss_info_v3_1( ss_table_header_include =GET_IMAGE (ATOM_ASIC_INTERNAL_SS_INFO_V3 ,DATA_TABLES (ASIC_InternalSS_Info)); +if (!ss_table_header_include) +return BP_RESULT_UNSUPPORTED ; + table_size = (le16_to_cpu (ss_table_header_include->sHeader.usStructureSize) -sizeof (ATOM_COMMON_TABLE_HEADER ))
@@ -1031,6 +1034,8 @@ static enum bp_result get_ss_info_from_i header =GET_IMAGE (ATOM_ASIC_INTERNAL_SS_INFO_V2 ,DATA_TABLES (ASIC_InternalSS_Info)); +if (!header) +return result;memset (info,0 ,sizeof (struct spread_spectrum_info ));
@@ -1104,6 +1109,8 @@ static enum bp_result get_ss_info_from_sget_atom_data_table_revision (header, &revision); tbl =GET_IMAGE (ATOM_SPREAD_SPECTRUM_INFO ,DATA_TABLES (SS_Info)); +if (!tbl) +return result;if (1 != revision.major ||2 > revision.minor)return result;
@@ -1631,6 +1638,8 @@ static uint32_t get_ss_entry_number_from tbl =GET_IMAGE (ATOM_SPREAD_SPECTRUM_INFO ,DATA_TABLES (SS_Info)); +if (!tbl) +return number;if (1 != revision.major ||2 > revision.minor)return number;
@@ -1711,6 +1720,8 @@ static uint32_t get_ss_entry_number_from header_include =GET_IMAGE (ATOM_ASIC_INTERNAL_SS_INFO_V2 ,DATA_TABLES (ASIC_InternalSS_Info)); +if (!header_include) +return 0 ; size = (le16_to_cpu (header_include->sHeader.usStructureSize) -sizeof (ATOM_COMMON_TABLE_HEADER ))
@@ -1748,6 +1759,9 @@ static uint32_t get_ss_entry_number_from header_include =GET_IMAGE (ATOM_ASIC_INTERNAL_SS_INFO_V3 ,DATA_TABLES (ASIC_InternalSS_Info)); +if (!header_include) +return number; + size = (le16_to_cpu (header_include->sHeader.usStructureSize) -sizeof (ATOM_COMMON_TABLE_HEADER )) /sizeof (ATOM_ASIC_SS_ASSIGNMENT_V3 );
Greg Kroah-Hartman
maintainerPATCH 549/565 ocfs2: Revert "ocfs2: fix the la space leak when unmounting an ocfs2 volume"
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Heming Zhao <[email protected]>
This reverts commit dfe6c5692fb5 ("ocfs2: fix the la space leak when unmounting an ocfs2 volume").
In commit dfe6c5692fb5, the commit log "This bug has existed since the initial OCFS2 code." is wrong. The correct introduction commit is 30dd3478c3cd ("ocfs2: correctly use ocfs2_find_next_zero_bit()").
The influence of commit dfe6c5692fb5 is that it provides a correct fix for the latest kernel. however, it shouldn't be pushed to stable branches. Let's use this commit to revert all branches that include dfe6c5692fb5 and use a new fix method to fix commit 30dd3478c3cd.
--- fs/ocfs2/localalloc.c | 19 ------------------- 1 file changed, 19 deletions(-)
fs/ocfs2/localalloc.c +0 -19
@@ -1008,25 +1008,6 @@ static int ocfs2_sync_local_to_main(stru start = bit_off +1 ; } -/* clear the contiguous bits until the end boundary */ -if (count) { - blkno = la_start_blk + -ocfs2_clusters_to_blocks (osb->sb, - start - count); - -trace_ocfs2_sync_local_to_main_free ( - count, start - count, - (unsigned long long )la_start_blk, - (unsigned long long )blkno); - - status =ocfs2_release_clusters (handle, - main_bm_inode, - main_bm_bh, blkno, - count); -if (status <0 ) -mlog_errno (status); - } - bail:if (status)mlog_errno (status);
Greg Kroah-Hartman
maintainerPATCH 550/565 crypto: hisilicon/qm - inject error before stopping queue
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Weili Qian <[email protected]>
commit b04f06fc0243600665b3b50253869533b7938468 upstream.
The master ooo cannot be completely closed when the accelerator core reports memory error. Therefore, the driver needs to inject the qm error to close the master ooo. Currently, the qm error is injected after stopping queue, memory may be released immediately after stopping queue, causing the device to access the released memory. Therefore, error is injected to close master ooo before stopping queue to ensure that the device does not access the released memory.
--- drivers/crypto/hisilicon/qm.c | 51 +++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 27 deletions(-)
drivers/crypto/hisilicon/qm.c +24 -27
@@ -4638,6 +4638,28 @@ static int qm_set_vf_mse(struct hisi_qmreturn -ETIMEDOUT ; } +static void qm_dev_ecc_mbit_handle (struct hisi_qm *qm) +{ +u32 nfe_enb =0 ; + +/* Kunpeng930 hardware automatically close master ooo when NFE occurs */ +if (qm->ver >=QM_HW_V3 ) +return ; + +if (!qm->err_status.is_dev_ecc_mbit && + qm->err_status.is_qm_ecc_mbit && + qm->err_ini->close_axi_master_ooo) { + qm->err_ini->close_axi_master_ooo (qm); + }else if (qm->err_status.is_dev_ecc_mbit && + !qm->err_status.is_qm_ecc_mbit && + !qm->err_ini->close_axi_master_ooo) { + nfe_enb =readl (qm->io_base +QM_RAS_NFE_ENABLE ); +writel (nfe_enb &QM_RAS_NFE_MBIT_DISABLE , + qm->io_base +QM_RAS_NFE_ENABLE ); +writel (QM_ECC_MBIT , qm->io_base +QM_ABNORMAL_INT_SET ); + } +} +static int qm_vf_reset_prepare (struct hisi_qm *qm,enum qm_stop_reason stop_reason) {
@@ -4742,6 +4764,8 @@ static int qm_controller_reset_prepare(sreturn ret; } +qm_dev_ecc_mbit_handle (qm); +/* PF obtains the information of VF by querying the register. */ qm_cmd_uninit (qm);
@@ -4766,31 +4790,6 @@ static int qm_controller_reset_prepare(sreturn 0 ; } -static void qm_dev_ecc_mbit_handle (struct hisi_qm *qm) -{ -u32 nfe_enb =0 ; - -/* Kunpeng930 hardware automatically close master ooo when NFE occurs */ -if (qm->ver >=QM_HW_V3 ) -return ; - -if (!qm->err_status.is_dev_ecc_mbit && - qm->err_status.is_qm_ecc_mbit && - qm->err_ini->close_axi_master_ooo) { - - qm->err_ini->close_axi_master_ooo (qm); - - }else if (qm->err_status.is_dev_ecc_mbit && - !qm->err_status.is_qm_ecc_mbit && - !qm->err_ini->close_axi_master_ooo) { - - nfe_enb =readl (qm->io_base +QM_RAS_NFE_ENABLE ); -writel (nfe_enb &QM_RAS_NFE_MBIT_DISABLE , - qm->io_base +QM_RAS_NFE_ENABLE ); -writel (QM_ECC_MBIT , qm->io_base +QM_ABNORMAL_INT_SET ); - } -} -static int qm_soft_reset (struct hisi_qm *qm) {struct pci_dev *pdev = qm->pdev;
@@ -4816,8 +4815,6 @@ static int qm_soft_reset(struct hisi_qmreturn ret; } -qm_dev_ecc_mbit_handle (qm); -/* OOO register set and check */ writel (ACC_MASTER_GLOBAL_CTRL_SHUTDOWN , qm->io_base +ACC_MASTER_GLOBAL_CTRL );
Greg Kroah-Hartman
maintainerPATCH 551/565 ima: Fix use-after-free on a dentrys dname.name
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Stefan Berger <[email protected]>
commit be84f32bb2c981ca670922e047cdde1488b233de upstream.
->d_name.name can change on rename and the earlier value can be freed; there are conditions sufficient to stabilize it (->d_lock on dentry, ->d_lock on its parent, ->i_rwsem exclusive on the parent's inode, rename_lock), but none of those are met at any of the sites. Take a stable snapshot of the name instead.
--- security/integrity/ima/ima_api.c | 16 ++++++++++++---- security/integrity/ima/ima_template_lib.c | 17 ++++++++++++++--- 2 files changed, 26 insertions(+), 7 deletions(-)
security/integrity/ima/ima_api.c +12 -4
@@ -217,7 +217,7 @@ int ima_collect_measurement(struct integconst char *audit_cause ="failed" ;struct inode *inode =file_inode (file);struct inode *real_inode =d_real_inode (file_dentry (file)); -const char *filename = file->f_path.dentry->d_name.name; +struct name_snapshot filename;int result =0 ;int length;void *tmpbuf;
@@ -280,9 +280,13 @@ out:if (file->f_flags &O_DIRECT ) audit_cause ="failed(directio)" ; +take_dentry_name_snapshot (&filename, file->f_path.dentry); +integrity_audit_msg (AUDIT_INTEGRITY_DATA , inode, - filename,"collect_data" , audit_cause, - result,0 ); + filename.name.name,"collect_data" , + audit_cause, result,0 ); + +release_dentry_name_snapshot (&filename); }return result; }
@@ -395,6 +399,7 @@ out:*/ const char *ima_d_path (const struct path *path,char **pathbuf,char *namebuf) { +struct name_snapshot filename;char *pathname =NULL ; *pathbuf =__getname ();
@@ -408,7 +413,10 @@ const char *ima_d_path(const struct path }if (!pathname) { -strlcpy (namebuf, path->dentry->d_name.name,NAME_MAX ); +take_dentry_name_snapshot (&filename, path->dentry); +strscpy (namebuf, filename.name.name,NAME_MAX ); +release_dentry_name_snapshot (&filename); + pathname = namebuf; }
security/integrity/ima/ima_template_lib.c +14 -3
@@ -426,7 +426,10 @@ static int ima_eventname_init_common(str bool size_limit) {const char *cur_filename =NULL ; +struct name_snapshot filename;u32 cur_filename_len =0 ; +bool snapshot = false; +int ret;BUG_ON (event_data->filename ==NULL && event_data->file ==NULL );
@@ -439,7 +442,10 @@ static int ima_eventname_init_common(str }if (event_data->file) { - cur_filename = event_data->file->f_path.dentry->d_name.name; +take_dentry_name_snapshot (&filename, + event_data->file->f_path.dentry); + snapshot = true; + cur_filename = filename.name.name; cur_filename_len =strlen (cur_filename); }else /*
@@ -448,8 +454,13 @@ static int ima_eventname_init_common(str*/ cur_filename_len =IMA_EVENT_NAME_LEN_MAX ; out: -return ima_write_template_field_data (cur_filename, cur_filename_len, -DATA_FMT_STRING , field_data); + ret =ima_write_template_field_data (cur_filename, cur_filename_len, +DATA_FMT_STRING , field_data); + +if (snapshot) +release_dentry_name_snapshot (&filename); + +return ret; }/*
Greg Kroah-Hartman
maintainerPATCH 552/565 fou: remove warn in gue_gro_receive on unsupported protocol
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Willem de Bruijn <[email protected]>
commit dd89a81d850fa9a65f67b4527c0e420d15bf836c upstream.
Drop the WARN_ON_ONCE inn gue_gro_receive if the encapsulated type is not known or does not have a GRO handler.
Such a packet is easily constructed. Syzbot generates them and sets off this warning.
Remove the warning as it is expected and not actionable.
The warning was previously reduced from WARN_ON to WARN_ON_ONCE in commit 270136613bf7 ("fou: Do WARN_ON_ONCE in gue_gro_receive for bad proto callbacks").
--- net/ipv4/fou.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/fou.c +1 -1
@@ -453,7 +453,7 @@ next_proto: offloads =NAPI_GRO_CB (skb)->is_ipv6 ? inet6_offloads : inet_offloads; ops =rcu_dereference (offloads[proto]); -if (WARN_ON_ONCE (!ops || !ops->callbacks.gro_receive)) +if (!ops || !ops->callbacks.gro_receive) goto out; pp =call_gro_receive (ops->callbacks.gro_receive, head, skb);
Greg Kroah-Hartman
maintainerPATCH 553/565 Revert "drm/amdgpu: add missing size check in amdgpu_debugfs_gprwave_read()"
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zhang Zekun <[email protected]>
This reverts commit aaf6160a4b7f9ee3cd91aa5b3251f5dbe2170f42.
The origin mainline patch fix a buffer overflow issue in amdgpu_debugfs_gprwave_read(), but it has not been introduced in kernel 6.1 and older kernels. This patch add a check in a wrong function in the same file.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +1 -1
@@ -401,7 +401,7 @@ static ssize_t amdgpu_debugfs_regs_didt_ssize_t result =0 ;int r; -if (size >4096 || size &0x3 || *pos &0x3 ) +if (size &0x3 || *pos &0x3 )return -EINVAL ;if (!adev->didt_wreg)
Greg Kroah-Hartman
maintainerPATCH 554/565 scsi: core: Fix scsi_mode_select() buffer length handling
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Damien Le Moal <[email protected]>
commit a7d6840bed0c2b16ac3071b74b5fcf08fc488241 upstream.
The MODE SELECT(6) command allows handling mode page buffers that are up to 255 bytes, including the 4 byte header needed in front of the page buffer. For requests larger than this limit, automatically use the MODE SELECT(10) command.
In both cases, since scsi_mode_select() adds the mode select page header, checks on the buffer length value must include this header size to avoid overflows of the command CDB allocation length field.
While at it, use put_unaligned_be16() for setting the header block descriptor length and CDB allocation length when using MODE SELECT(10).
[mkp: fix MODE SENSE vs. MODE SELECT confusion]
--- drivers/scsi/scsi_lib.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-)
drivers/scsi/scsi_lib.c +13 -8
@@ -2044,8 +2044,15 @@ scsi_mode_select(struct scsi_device *sdememset (cmd,0 ,sizeof (cmd)); cmd[1 ] = (pf ?0x10 :0 ) | (sp ?0x01 :0 ); -if (sdev->use_10_for_ms) { -if (len >65535 ) +/* +* Use MODE SELECT(10) if the device asked for it or if the mode page +* and the mode select header cannot fit within the maximumm 255 bytes +* of the MODE SELECT(6) command. +*/ +if (sdev->use_10_for_ms || + len +4 >255 || + data->block_descriptor_length >255 ) { +if (len >65535 -8 )return -EINVAL ; real_buffer =kmalloc (8 + len,GFP_KERNEL );if (!real_buffer)
@@ -2058,15 +2065,13 @@ scsi_mode_select(struct scsi_device *sde real_buffer[3 ] = data->device_specific; real_buffer[4 ] = data->longlba ?0x01 :0 ; real_buffer[5 ] =0 ; - real_buffer[6 ] = data->block_descriptor_length >>8 ; - real_buffer[7 ] = data->block_descriptor_length; +put_unaligned_be16 (data->block_descriptor_length, + &real_buffer[6 ]); cmd[0 ] =MODE_SELECT_10 ; - cmd[7 ] = len >>8 ; - cmd[8 ] = len; +put_unaligned_be16 (len, &cmd[7 ]); }else { -if (len >255 || data->block_descriptor_length >255 || - data->longlba) +if (data->longlba)return -EINVAL ; real_buffer =kmalloc (4 + len,GFP_KERNEL );
Greg Kroah-Hartman
maintainerPATCH 545/565 mm/damon/vaddr: fix issue in damon_va_evenly_split_region()
In reply to Greg Kroah-Hartman5.15-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zheng Yejian <[email protected]>
commit f3c7a1ede435e2e45177d7a490a85fb0a0ec96d1 upstream.
Patch series "mm/damon/vaddr: Fix issue indamon_va_evenly_split_region()". v2.
According to the logic of damon_va_evenly_split_region(), currently following split case would not meet the expectation:
Suppose DAMON_MIN_REGION=0x1000,
Case: Split [0x0, 0x3000) into 2 pieces, then the result would be
acutually 3 regions:
[0x0, 0x1000), [0x1000, 0x2000), [0x2000, 0x3000)
but NOT the expected 2 regions:
[0x0, 0x1000), [0x1000, 0x3000) !!!
The root cause is that when calculating size of each split piece in damon_va_evenly_split_region():
sz_piece = ALIGN_DOWN(sz_orig / nr_pieces, DAMON_MIN_REGION);
both the dividing and the ALIGN_DOWN may cause loss of precision, then each time split one piece of size 'sz_piece' from origin 'start' to 'end' would cause more pieces are split out than expected!!!
To fix it, count for each piece split and make sure no more than 'nr_pieces'. In addition, add above case into damon_test_split_evenly().
And add 'nr_piece == 1' check in damon_va_evenly_split_region() for better code readability and add a corresponding kunit testcase.
This patch (of 2):
According to the logic of damon_va_evenly_split_region(), currently following split case would not meet the expectation:
Suppose DAMON_MIN_REGION=0x1000,
Case: Split [0x0, 0x3000) into 2 pieces, then the result would be
acutually 3 regions:
[0x0, 0x1000), [0x1000, 0x2000), [0x2000, 0x3000)
but NOT the expected 2 regions:
[0x0, 0x1000), [0x1000, 0x3000) !!!
The root cause is that when calculating size of each split piece in damon_va_evenly_split_region():
sz_piece = ALIGN_DOWN(sz_orig / nr_pieces, DAMON_MIN_REGION);
both the dividing and the ALIGN_DOWN may cause loss of precision, then each time split one piece of size 'sz_piece' from origin 'start' to 'end' would cause more pieces are split out than expected!!!
To fix it, count for each piece split and make sure no more than 'nr_pieces'. In addition, add above case into damon_test_split_evenly().
After this patch, damon-operations test passed:
# ./tools/testing/kunit/kunit.py run damon-operations [...] ============== damon-operations (6 subtests) =============== [PASSED] damon_test_three_regions_in_vmas [PASSED] damon_test_apply_three_regions1 [PASSED] damon_test_apply_three_regions2 [PASSED] damon_test_apply_three_regions3 [PASSED] damon_test_apply_three_regions4 [PASSED] damon_test_split_evenly ================ [PASSED] damon-operations =================
--- mm/damon/vaddr-test.h | 1 + mm/damon/vaddr.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
mm/damon/vaddr-test.h +1 -0
@@ -306,6 +306,7 @@ static void damon_test_split_evenly(strudamon_test_split_evenly_fail (test,0 ,100 ,0 );damon_test_split_evenly_succ (test,0 ,100 ,10 );damon_test_split_evenly_succ (test,5 ,59 ,5 ); +damon_test_split_evenly_succ (test,0 ,3 ,2 );damon_test_split_evenly_fail (test,5 ,6 ,2 );damon_destroy_ctx (c);
mm/damon/vaddr.c +2 -2
@@ -69,6 +69,7 @@ static int damon_va_evenly_split_region(unsigned long sz_orig, sz_piece, orig_end;struct damon_region *n =NULL , *next;unsigned long start; +unsigned int i;if (!r || !nr_pieces)return -EINVAL ;
@@ -82,8 +83,7 @@ static int damon_va_evenly_split_region( r->ar.end = r->ar.start + sz_piece; next =damon_next_region (r); -for (start = r->ar.end; start + sz_piece <= orig_end; - start += sz_piece) { +for (start = r->ar.end, i =1 ; i < nr_pieces; start += sz_piece, i++) { n =damon_new_region (start, start + sz_piece);if (!n)return -ENOMEM ;
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.174-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels, build tested on BMIPS_GENERIC:
Signature · 1 line
Florian
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.174-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
All tests passing for Tegra ...
Test results for stable-v5.15:
10 builds: 10 pass, 0 fail
26 boots: 26 pass, 0 fail
101 tests: 101 pass, 0 failLinux version: 5.15.174-rc1-g4b281055ccfb
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra194-p2972-0000, tegra194-p3509-0000+p3668-0000,
tegra20-ventana, tegra210-p2371-2180,
tegra210-p3450-0000, tegra30-cardhu-a04Jon
Quoted 4 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.174-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
The following build warnings were noticed on Linux stable-rc linux-5.15.y while building parisc.
* parisc, build
- gcc-11-allnoconfig
- gcc-11-defconfigcd
- gcc-11-tinyconfig
Build log:
-----------arch/parisc/include/asm/cache.h:28: note: this is the location of the previous definition
28 | #define ARCH_KMALLOC_MINALIGN 16 /* ldcw requires
16-byte alignment */
|
In file included from include/linux/skbuff.h:31,
from include/net/net_namespace.h:42,
from init/main.c:104:include/linux/dma-mapping.h:546:47: error: macro "cache_line_size" passed 1 arguments, but takes just 0
546 | static inline int dma_get_cache_alignment(void)
| ^
Links:
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2q7pt39eCahVwI49vKMQD6qe12I/
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.173-566-g4b281055ccfb/testrun/26287983/suite/build/test/gcc-11-defconfig/log
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.173-566-g4b281055ccfb/testrun/26287983/suite/build/test/gcc-11-defconfig/history/
Steps to reproduce:
- # tuxmake --runtime podman --target-arch parisc --toolchain gcc-11
--kconfig defconfig
## Build
* kernel: 5.15.174-rc1
* git: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
* git commit: 4b281055ccfba614e9358cac95fc81a1e79a5d7e
* git describe: v5.15.173-566-g4b281055ccfb
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.173-566-g4b281055ccfb
## Test Regressions (compared to v5.15.171-100-g056657e11366)
## Metric Regressions (compared to v5.15.171-100-g056657e11366)
## Test Fixes (compared to v5.15.171-100-g056657e11366)
## Metric Fixes (compared to v5.15.171-100-g056657e11366)
## Test result summary
total: 54603, pass: 38929, fail: 2776, skip: 12823, xfail: 75
## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 101 total, 101 passed, 0 failed
* arm64: 28 total, 28 passed, 0 failed
* i386: 22 total, 22 passed, 0 failed
* mips: 22 total, 22 passed, 0 failed
* parisc: 3 total, 0 passed, 3 failed
* powerpc: 22 total, 22 passed, 0 failed
* riscv: 8 total, 8 passed, 0 failed
* s390: 9 total, 9 passed, 0 failed
* sh: 10 total, 10 passed, 0 failed
* sparc: 6 total, 6 passed, 0 failed
* x86_64: 24 total, 24 passed, 0 failed
## Test suites summary
* boot
* kselftest-arm64
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-cgroup
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-cpufreq
* kselftest-efivarfs
* kselftest-exec
* kselftest-filesystems
* kselftest-filesystems-binderfs
* kselftest-filesystems-epoll
* kselftest-firmware
* kselftest-fpu
* kselftest-ftrace
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-kcmp
* kselftest-livepatch
* kselftest-membarrier
* kselftest-memfd
* kselftest-mincore
* kselftest-mqueue
* kselftest-net
* kselftest-net-mptcp
* kselftest-openat2
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-seccomp
* kselftest-sigaltstack
* kselftest-size
* kselftest-tc-testing
* kselftest-timers
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user_events
* kselftest-vDSO
* kselftest-x86
* kunit
* kvm-unit-tests
* libgpiod
* libhugetlbfs
* log-parser-boot
* log-parser-build-clang
* log-parser-build-gcc
* log-parser-test
* ltp-commands
* ltp-containers
* ltp-controllers
* ltp-crypto
* ltp-cve
* ltp-dio
* ltp-fcntl-locktests
* ltp-filecaps
* ltp-fs
* ltp-fs_bind
* ltp-fs_perms_simple
* ltp-hugetlb
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-smoke
* ltp-syscalls
* ltp-tracing
* perf
* rcutorture
--
Linaro LKFT
https://lkft.linaro.org
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.174-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
Compiled and booted on my test system. No dmesg regressions.
thanks,
-- Shuah
Hello,
Quoted 7 lines · On Thu, 12 Dec 2024 15:53:15 +0100 Greg Kroah-Hartman…
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
This rc kernel passes DAMON functionality test[1] on my test machine. Attaching the test results summary below. Please note that I retrieved the kernel from linux-stable-rc tree[2].
[1] https://github.com/damonitor/damon-tests/tree/next/corr
[2] 8d1a4b85ba4b ("Linux 5.15.174-rc1")
Thanks,
SJ
[...]
---
ok 1 selftests: damon: debugfs_attrs.sh
ok 1 selftests: damon-tests: kunit.sh
ok 2 selftests: damon-tests: huge_count_read_write.sh
ok 3 selftests: damon-tests: buffer_overflow.sh
ok 4 selftests: damon-tests: rm_contexts.sh
ok 5 selftests: damon-tests: record_null_deref.sh
ok 6 selftests: damon-tests: dbgfs_target_ids_read_before_terminate_race.sh ok 7 selftests: damon-tests: dbgfs_target_ids_pid_leak.sh
ok 8 selftests: damon-tests: damo_tests.sh
ok 9 selftests: damon-tests: masim-record.sh
ok 10 selftests: damon-tests: build_i386.sh
ok 11 selftests: damon-tests: build_arm64.sh # SKIP
ok 12 selftests: damon-tests: build_m68k.sh # SKIP
ok 13 selftests: damon-tests: build_i386_idle_flag.sh
ok 14 selftests: damon-tests: build_i386_highpte.sh
ok 15 selftests: damon-tests: build_nomemcg.sh
[33m
[92mPASS [39m
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.174-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.15.y
and the diffstat can be found below.thanks,
greg k-h
Built and booted successfully on RISC-V RV64 (HiFive Unmatched).
Hi Greg,
Quoted 4 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
No problems seen on x86_64 and aarch64 with our testing.
Thanks,
Harshit
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
All parisc builds fail.
In file included from include/linux/pci-dma-compat.h:8,
from include/linux/pci.h:2477:
include/linux/dma-mapping.h:546:47: error: macro "cache_line_size" passed 1 arguments, but takes just 0
546 | static inline int dma_get_cache_alignment(void)
| ^arch/parisc/include/asm/cache.h:31: note: macro "cache_line_size" defined here
31 | #define cache_line_size() dcache_stride
|
include/linux/dma-mapping.h:547:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
547 | {
There are also lots of warnings.
./include/linux/slab.h:208: warning: "ARCH_KMALLOC_MINALIGN" redefined
208 | #define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN
./arch/parisc/include/asm/cache.h:28: note: this is the location of the previous definition
28 | #define ARCH_KMALLOC_MINALIGN 16 /* ldcw requires 16-byte alignment */
Bisect log attached. Reverting the offending patch fixes the build error and the warnings.
Guenter
---
# bad: [963e654022cc32d72c184b4ab86a76226b3e3b8d] Linux 5.15.174
# good: [0a51d2d4527b43c5e467ffa6897deefeaf499358] Linux 5.15.173
git bisect start 'HEAD' 'v5.15.173'
# good: [16aa78edf6dd33d13320a0802322cade7a9e587b] net: hsr: fix hsr_init_sk() vs network/transport headers. git bisect good 16aa78edf6dd33d13320a0802322cade7a9e587b
# bad: [c20f91bd939553be347196ecf4ab7b69dff19193] ethtool: Fix wrong mod state in case of verbose and no_mask bitset git bisect bad c20f91bd939553be347196ecf4ab7b69dff19193
# bad: [f5872a2a84ec889d0a8f264d3ed0936670860479] rpmsg: glink: Propagate TX failures in intentless mode as well git bisect bad f5872a2a84ec889d0a8f264d3ed0936670860479
# bad: [1d1e618c170643dfb07ebd1f6cab64278bfa06eb] exfat: fix uninit-value in __exfat_get_dentry_set git bisect bad 1d1e618c170643dfb07ebd1f6cab64278bfa06eb
# bad: [13327d78229f954995a8535b369d4aa7f1d721dc] Revert "drivers: clk: zynqmp: update divider round rate logic" git bisect bad 13327d78229f954995a8535b369d4aa7f1d721dc
# good: [098480edee1b64b6e811e0bf101b32cd11e71582] misc: apds990x: Fix missing pm_runtime_disable() git bisect good 098480edee1b64b6e811e0bf101b32cd11e71582
# bad: [dadac97f066a67334268132c1e2d0fd599fbcbec] parisc: fix a possible DMA corruption
git bisect bad dadac97f066a67334268132c1e2d0fd599fbcbec
# good: [3c7355690f375bcfa3639aea7daa801789a85532] ALSA: hda/realtek: Update ALC256 depop procedure git bisect good 3c7355690f375bcfa3639aea7daa801789a85532
# good: [487b128f07b82294bd0847c2c462dfcf1de9660a] apparmor: fix 'Do simple duplicate message elimination' git bisect good 487b128f07b82294bd0847c2c462dfcf1de9660a
# first bad commit: [dadac97f066a67334268132c1e2d0fd599fbcbec] parisc: fix a possible DMA corruption
Greg Kroah-Hartman
maintainerQuoted 57 lines · Guenter Roeck
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.15.174 release. There are 565 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Sat, 14 Dec 2024 14:41:35 +0000. Anything received after that time might be too late.
All parisc builds fail.
In file included from
include/linux/pci-dma-compat.h:8,from include/linux/pci.h:2477:
include/linux/dma-mapping.h:546:47: error: macro "cache_line_size" passed 1 arguments, but takes just 0
546 | static inline intdma_get_cache_alignment(void)
| ^arch/parisc/include/asm/cache.h:31: note: macro "cache_line_size" defined here
31 | #definecache_line_size()dcache_stride|
include/linux/dma-mapping.h:547:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
547 | {There are also lots of warnings.
./include/linux/slab.h:208: warning: "ARCH_KMALLOC_MINALIGN" redefined
208 | #defineARCH_KMALLOC_MINALIGNARCH_DMA_MINALIGN
./arch/parisc/include/asm/cache.h:28: note: this is the location of the previous definition
28 | #defineARCH_KMALLOC_MINALIGN16 /* ldcw requires 16-byte alignment */Bisect log attached. Reverting the offending patch fixes the build error and the warnings.
Guenter
---
# bad: [963e654022cc32d72c184b4ab86a76226b3e3b8d] Linux 5.15.174
# good: [0a51d2d4527b43c5e467ffa6897deefeaf499358] Linux 5.15.173
git bisect start 'HEAD' 'v5.15.173'
# good: [16aa78edf6dd33d13320a0802322cade7a9e587b] net: hsr: fixhsr_init_sk()vs network/transport headers. git bisect good16aa78edf6dd33d13320a0802322cade7a9e587b
# bad: [c20f91bd939553be347196ecf4ab7b69dff19193] ethtool: Fix wrong mod state in case of verbose andno_maskbitset git bisect badc20f91bd939553be347196ecf4ab7b69dff19193
# bad: [f5872a2a84ec889d0a8f264d3ed0936670860479] rpmsg: glink: Propagate TX failures in intentless mode as well git bisect badf5872a2a84ec889d0a8f264d3ed0936670860479
# bad: [1d1e618c170643dfb07ebd1f6cab64278bfa06eb] exfat: fix uninit-value in__exfat_get_dentry_setgit bisect bad1d1e618c170643dfb07ebd1f6cab64278bfa06eb
# bad: [13327d78229f954995a8535b369d4aa7f1d721dc] Revert "drivers: clk: zynqmp: update divider round rate logic" git bisect bad13327d78229f954995a8535b369d4aa7f1d721dc
# good: [098480edee1b64b6e811e0bf101b32cd11e71582] misc: apds990x: Fix missingpm_runtime_disable()git bisect good098480edee1b64b6e811e0bf101b32cd11e71582
# bad: [dadac97f066a67334268132c1e2d0fd599fbcbec] parisc: fix a possible DMA corruption
git bisect baddadac97f066a67334268132c1e2d0fd599fbcbec
# good: [3c7355690f375bcfa3639aea7daa801789a85532] ALSA: hda/realtek: Update ALC256 depop procedure git bisect good3c7355690f375bcfa3639aea7daa801789a85532
# good: [487b128f07b82294bd0847c2c462dfcf1de9660a] apparmor: fix 'Do simple duplicate message elimination' git bisect good487b128f07b82294bd0847c2c462dfcf1de9660a
Quoted 1 line
# first bad commit: [dadac97f066a67334268132c1e2d0fd599fbcbec] parisc: fix a possible DMA corruption
Offending commit now reverted, thanks!
greg k-h