ALT Linux Bugzilla
– Attachment 14071 Details for
Bug 46911
udisks2:После обновления проблема с загрузкой системы
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
disable sanitize-log
udisks-2.10.0-disable-sanitize-log.patch (text/plain), 1.85 KB, created by
Олег Соловьев
on 2023-08-11 16:13:23 MSK
(
hide
)
Description:
disable sanitize-log
Filename:
MIME Type:
Creator:
Олег Соловьев
Created:
2023-08-11 16:13:23 MSK
Size:
1.85 KB
patch
obsolete
>commit f562e1128475e4395f4dc041af71974d1800367f >Author: Oleg Solovyov <mcpain@altlinux.org> >Date: Fri Aug 11 16:10:36 2023 +0300 > > disable sanitize-log > > Under certain conditions, bd_nvme_get_sanitize_log() causes stack > smashing, which heavily impacts performance. > https://github.com/storaged-project/udisks/issues/1152 > > This will disable any sanitize operations for a while until the original > issue is resolved. > >diff --git a/udisks/src/udiskslinuxnvmecontroller.c b/udisks/src/udiskslinuxnvmecontroller.c >index eb129ff..49b6244 100644 >--- a/udisks/src/udiskslinuxnvmecontroller.c >+++ b/udisks/src/udiskslinuxnvmecontroller.c >@@ -398,10 +398,13 @@ udisks_linux_nvme_controller_refresh_smart_sync (UDisksLinuxNVMeController *ctr > smart_log = bd_nvme_get_smart_log (dev_file, error); > if ((device->nvme_ctrl_info->features & BD_NVME_CTRL_FEAT_SELFTEST) == BD_NVME_CTRL_FEAT_SELFTEST) > selftest_log = bd_nvme_get_self_test_log (dev_file, NULL); >+// sanitize-log is known to smash stack on certain conditions >+#if 0 > if ((device->nvme_ctrl_info->features & BD_NVME_CTRL_FEAT_SANITIZE_CRYPTO) == BD_NVME_CTRL_FEAT_SANITIZE_CRYPTO || > (device->nvme_ctrl_info->features & BD_NVME_CTRL_FEAT_SANITIZE_BLOCK) == BD_NVME_CTRL_FEAT_SANITIZE_BLOCK || > (device->nvme_ctrl_info->features & BD_NVME_CTRL_FEAT_SANITIZE_OVERWRITE) == BD_NVME_CTRL_FEAT_SANITIZE_OVERWRITE) > sanitize_log = bd_nvme_get_sanitize_log (dev_file, NULL); >+#endif > if (smart_log || selftest_log || sanitize_log) > { > g_mutex_lock (&ctrl->smart_lock); >@@ -1121,6 +1124,9 @@ handle_sanitize_start (UDisksNVMeController *_object, > gint64 time_est = 0; > GError *error = NULL; > >+ // this uses sanitize-log which is known to smash stack on certain conditions >+ goto out; >+ > object = udisks_daemon_util_dup_object (ctrl, &error); > if (object == NULL) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 46911
:
13823
|
13827
|
13828
|
13829
|
13830
|
13847
|
13865
|
13889
|
13890
|
13891
| 14071 |
14248
|
15694
|
15695
|
15696
|
15697