!14 sg3_utils: solve coredump problem, rename patches and set release to 2 for CI
From: @liuzhiqiang26 Reviewed-by: @volcanodragon Signed-off-by: @wubo009
This commit is contained in:
commit
a3da76cf7c
29
0004-sg3_utils-fix-memset-coredump.patch
Normal file
29
0004-sg3_utils-fix-memset-coredump.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From dd2a61c9551ac5d2ac0c5902172fd8312edc22cb Mon Sep 17 00:00:00 2001
|
||||||
|
From: yanglongkang <yanglongkang@huawei.com>
|
||||||
|
Date: Tue, 9 Feb 2021 11:39:32 +0800
|
||||||
|
Subject: [PATCH] sg3_utils: fix memset coredump
|
||||||
|
|
||||||
|
alloc MX_ALLOC_LEN size mem to enc_stat_rsp for
|
||||||
|
solving coredump problem.
|
||||||
|
|
||||||
|
Signed-off-by: yanglongkang <yanglongkang@huawei.com>
|
||||||
|
---
|
||||||
|
src/sg_ses.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/sg_ses.c b/src/sg_ses.c
|
||||||
|
index 23fc3b9..cf344b7 100644
|
||||||
|
--- a/src/sg_ses.c
|
||||||
|
+++ b/src/sg_ses.c
|
||||||
|
@@ -5582,7 +5582,7 @@ main(int argc, char * argv[])
|
||||||
|
enumerate_work(op);
|
||||||
|
goto early_out;
|
||||||
|
}
|
||||||
|
- enc_stat_rsp = sg_memalign(op->maxlen, 0, &free_enc_stat_rsp, false);
|
||||||
|
+ enc_stat_rsp = sg_memalign(MX_ALLOC_LEN, 0, &free_enc_stat_rsp, false);
|
||||||
|
if (NULL == enc_stat_rsp) {
|
||||||
|
pr2serr("Unable to get heap for enc_stat_rsp\n");
|
||||||
|
goto err_out;
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
@ -1,15 +1,16 @@
|
|||||||
Name: sg3_utils
|
Name: sg3_utils
|
||||||
Version: 1.45
|
Version: 1.45
|
||||||
Release: 0
|
Release: 2
|
||||||
Summary: Utilities that send SCSI commands to devices.
|
Summary: Utilities that send SCSI commands to devices.
|
||||||
License: GPL-2.0-or-later AND BSD
|
License: GPL-2.0-or-later AND BSD
|
||||||
URL: http://sg.danny.cz/sg/sg3_utils.html
|
URL: http://sg.danny.cz/sg/sg3_utils.html
|
||||||
Source0: http://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.xz
|
Source0: http://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.xz
|
||||||
|
|
||||||
Patch9000: 9000-sg3_utils-1.37-rescan-scsi-findremapped-enhance.patch
|
Patch0: 0000-sg3_utils-1.37-rescan-scsi-findremapped-enhance.patch
|
||||||
Patch9001: 9001-sg3_utils-1.37-rescan-downpress.patch
|
Patch1: 0001-sg3_utils-1.37-rescan-downpress.patch
|
||||||
Patch9002: 9002-bugfix-sg3_utils-fix-syntax-error.patch
|
Patch2: 0002-bugfix-sg3_utils-fix-syntax-error.patch
|
||||||
Patch9003: 9003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-err.patch
|
Patch3: 0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-err.patch
|
||||||
|
Patch4: 0004-sg3_utils-fix-memset-coredump.patch
|
||||||
|
|
||||||
Provides: %{name}-libs
|
Provides: %{name}-libs
|
||||||
Obsoletes: %{name}-libs
|
Obsoletes: %{name}-libs
|
||||||
@ -70,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 9 2021 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.45-2
|
||||||
|
- solve coredump problem, rename patches and set release to 2 for CI
|
||||||
|
|
||||||
* Fri Apr 17 2020 renxudong <renxudong1@huawei.com> - 1.45-0
|
* Fri Apr 17 2020 renxudong <renxudong1@huawei.com> - 1.45-0
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user