From d06d25d3dce33edfa4e95623785bc41a368b45ac Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann Date: Oct 03 2020 20:30:28 +0000 Subject: update 2020-10-03 20:30 --- diff --git a/packages/_/_project/_attribute b/packages/_/_project/_attribute index ab5410a..974385d 100644 --- a/packages/_/_project/_attribute +++ b/packages/_/_project/_attribute @@ -31,7 +31,7 @@ boo#1162853: '20200312' boo#1163655: '20200218' boo#1163766: '20200414' - boo#1164313: '20200930' + boo#1164313: '20201002' boo#1166657: '20200405' boo#1167245: '20200327' boo#1167332: '20200319' @@ -41,7 +41,7 @@ boo#1168371: '20200331' boo#1168629: '20200415' boo#1168849: '20200428' - boo#1169797: '20200930' + boo#1169797: '20201002' boo#1169855: '20200814' boo#1169874: '20200501' boo#1170553: '20200511' @@ -152,7 +152,7 @@ poo#64938: '20200327' poo#64961: '20200411' poo#65334: '20200506' - poo#65633: '20200930' + poo#65633: '20201002' poo#65804: '20200425' poo#65849: '20200425' poo#65986: '20200422' @@ -166,7 +166,7 @@ poo#66331: '20200710' poo#66373: '20200502' poo#66580: '20200627' - poo#66784: '20200930' + poo#66784: '20201002' poo#66967: '20200802' poo#67183: '20200622' poo#67216: '20200526' @@ -200,7 +200,7 @@ poo#71008: '20201002' poo#71344: '20201002' poo#71374: '20201002' - poo#71503: '20200930' + poo#71503: '20201002' poo#71782: '20201002' poo#71929: '20201002' poo#71932: '20201002' @@ -247,7 +247,7 @@ bad-rpmlint-entries = suse-dbus-unauthorized-service suse-pam-unauthorized-modul s/openSUSE-/openSUSE-Staging:$LETTER-/ - 20201002 + 20201003 arch: x86_64 @@ -465,9 +465,9 @@ test_subproject: ToTest set_snapshot_number: True - failed: '20201002' -published: '20200930' -publishing: '20200930' + failed: '' +published: '20201002' +publishing: '20201002' testing: '20201002' diff --git a/packages/_/_project/_staging_workflow b/packages/_/_project/_staging_workflow index 5f6a7cb..9663c9d 100644 --- a/packages/_/_project/_staging_workflow +++ b/packages/_/_project/_staging_workflow @@ -63,5 +63,4 @@ - diff --git a/packages/a/alsa-utils/.files b/packages/a/alsa-utils/.files index 6e3910b..7abadec 100644 Binary files a/packages/a/alsa-utils/.files and b/packages/a/alsa-utils/.files differ diff --git a/packages/a/alsa-utils/.rev b/packages/a/alsa-utils/.rev index 0475b42..6dc2442 100644 --- a/packages/a/alsa-utils/.rev +++ b/packages/a/alsa-utils/.rev @@ -1026,4 +1026,12 @@ 812898 + + 050049e8732c74758d05b5be7e968db4 + 1.2.3 + + dimstar_suse + + 838539 + diff --git a/packages/a/alsa-utils/alsa-utils.changes b/packages/a/alsa-utils/alsa-utils.changes index aeae84a..ab51ceb 100644 --- a/packages/a/alsa-utils/alsa-utils.changes +++ b/packages/a/alsa-utils/alsa-utils.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Sep 29 12:46:19 CEST 2020 - tiwai@suse.de + +- Fix the directory to save asound.state again to /var/lib/alsa, + which was mistakenly changed to /etc + +------------------------------------------------------------------- Tue Jun 9 11:21:59 CEST 2020 - tiwai@suse.de - Update to alsa-utils 1.2.3: diff --git a/packages/a/alsa-utils/alsa-utils.spec b/packages/a/alsa-utils/alsa-utils.spec index ed0a914..146fc23 100644 --- a/packages/a/alsa-utils/alsa-utils.spec +++ b/packages/a/alsa-utils/alsa-utils.spec @@ -83,7 +83,6 @@ autoreconf -fi %endif %configure --with-curses=ncursesw \ --with-systemdsystemunitdir=%{_unitdir} \ - --with-asound-state-dir=%{_sysconfdir} \ --with-udev-rules-dir=%{_udevdir}/rules.d make %{?_smp_mflags} diff --git a/packages/a/alsa/0001-ucm-substitution-remove-duplicate-allow_empty-assign.patch b/packages/a/alsa/0001-ucm-substitution-remove-duplicate-allow_empty-assign.patch new file mode 100644 index 0000000..9658ac6 --- /dev/null +++ b/packages/a/alsa/0001-ucm-substitution-remove-duplicate-allow_empty-assign.patch @@ -0,0 +1,36 @@ +From 485930ea5dc8a14e0d215de44557372ca41b15f4 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Tue, 30 Jun 2020 09:22:12 +0200 +Subject: [PATCH 01/32] ucm: substitution - remove duplicate allow_empty + assignment + +Signed-off-by: Jaroslav Kysela +--- + src/ucm/ucm_subs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/ucm/ucm_subs.c b/src/ucm/ucm_subs.c +index a154aa510ee8..d40e5478b084 100644 +--- a/src/ucm/ucm_subs.c ++++ b/src/ucm/ucm_subs.c +@@ -303,7 +303,6 @@ __std: + } else if (value[1] != '{') { + goto __std; + } +- allow_empty = false; + fcn2 = NULL; + MATCH_VARIABLE(value, "${OpenName}", rval_open_name, false); + MATCH_VARIABLE(value, "${ConfTopDir}", rval_conf_topdir, false); +@@ -365,7 +364,8 @@ __rval: + } + strncpy(r, value, idsize); + r[idsize] = '\0'; +- uc_error("variable '%s' is not defined in this context!", r); ++ uc_error("variable '%s' is %s in this context!", r, ++ rval ? "empty" : "not defined"); + err = -EINVAL; + goto __error; + } +-- +2.16.4 + diff --git a/packages/a/alsa/0002-ucm-fix-parse_get_safe_name-safe-name-must-be-checke.patch b/packages/a/alsa/0002-ucm-fix-parse_get_safe_name-safe-name-must-be-checke.patch new file mode 100644 index 0000000..ecbddca --- /dev/null +++ b/packages/a/alsa/0002-ucm-fix-parse_get_safe_name-safe-name-must-be-checke.patch @@ -0,0 +1,35 @@ +From 30d12e930cfcba777a29af502a9c1dbfa5e37c04 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Fri, 3 Jul 2020 14:48:18 +0200 +Subject: [PATCH 02/32] ucm: fix parse_get_safe_name() - safe name must be + checked after substitution + +Signed-off-by: Jaroslav Kysela +--- + src/ucm/parser.c | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/src/ucm/parser.c b/src/ucm/parser.c +index 3b7fc931362f..d034b8598a85 100644 +--- a/src/ucm/parser.c ++++ b/src/ucm/parser.c +@@ -234,9 +234,14 @@ int parse_get_safe_name(snd_use_case_mgr_t *uc_mgr, snd_config_t *n, + if (err < 0) + return err; + } +- if (!parse_is_name_safe(id)) ++ err = get_string3(uc_mgr, id, name); ++ if (err < 0) ++ return err; ++ if (!parse_is_name_safe(*name)) { ++ free(*name); + return -EINVAL; +- return get_string3(uc_mgr, id, name); ++ } ++ return 0; + } + + /* +-- +2.16.4 + diff --git a/packages/a/alsa/0003-ucm-substitute-the-merged-tree-completely.patch b/packages/a/alsa/0003-ucm-substitute-the-merged-tree-completely.patch new file mode 100644 index 0000000..ecc1586 --- /dev/null +++ b/packages/a/alsa/0003-ucm-substitute-the-merged-tree-completely.patch @@ -0,0 +1,147 @@ +From 32addac948a61c4770f9cdf459fa29879602df38 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Mon, 6 Jul 2020 16:34:33 +0200 +Subject: [PATCH 03/32] ucm: substitute the merged tree completely + +We need to define the common shared configuration like for multiple +HDMI devices or so. Substitute the whole merged configuration tree +including identifiers. + +Fixes: https://github.com/alsa-project/alsa-lib/issues/67 +Fixes: https://github.com/alsa-project/alsa-ucm-conf/commit/dcef48f13d4f5db79b006755074940b94730a883 +Signed-off-by: Jaroslav Kysela +--- + src/ucm/ucm_cond.c | 2 +- + src/ucm/ucm_include.c | 9 +++++++-- + src/ucm/ucm_local.h | 6 +++++- + src/ucm/ucm_subs.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 66 insertions(+), 4 deletions(-) + +diff --git a/src/ucm/ucm_cond.c b/src/ucm/ucm_cond.c +index cc4915396d71..3ca3096e0b19 100644 +--- a/src/ucm/ucm_cond.c ++++ b/src/ucm/ucm_cond.c +@@ -401,7 +401,7 @@ int uc_mgr_evaluate_condition(snd_use_case_mgr_t *uc_mgr, + err = uc_mgr_evaluate_inplace(uc_mgr, a); + if (err < 0) + return err; +- err = uc_mgr_config_tree_merge(parent, a, before, after); ++ err = uc_mgr_config_tree_merge(uc_mgr, parent, a, before, after); + if (err < 0) + return err; + snd_config_delete(a); +diff --git a/src/ucm/ucm_include.c b/src/ucm/ucm_include.c +index c69490f49c6e..94ae944d2001 100644 +--- a/src/ucm/ucm_include.c ++++ b/src/ucm/ucm_include.c +@@ -206,7 +206,8 @@ static int compound_merge(const char *id, + return 0; + } + +-int uc_mgr_config_tree_merge(snd_config_t *parent, snd_config_t *new_ctx, ++int uc_mgr_config_tree_merge(snd_use_case_mgr_t *uc_mgr, ++ snd_config_t *parent, snd_config_t *new_ctx, + snd_config_t *before, snd_config_t *after) + { + snd_config_iterator_t i, next; +@@ -214,6 +215,10 @@ int uc_mgr_config_tree_merge(snd_config_t *parent, snd_config_t *new_ctx, + const char *id; + int err; + ++ err = uc_mgr_substitute_tree(uc_mgr, new_ctx); ++ if (err < 0) ++ return err; ++ + snd_config_for_each(i, next, new_ctx) { + n = snd_config_iterator_entry(i); + err = snd_config_remove(n); +@@ -271,7 +276,7 @@ int uc_mgr_evaluate_include(snd_use_case_mgr_t *uc_mgr, + err = uc_mgr_evaluate_inplace(uc_mgr, a); + if (err < 0) + return err; +- err = uc_mgr_config_tree_merge(parent, a, before, after); ++ err = uc_mgr_config_tree_merge(uc_mgr, parent, a, before, after); + if (err < 0) + return err; + snd_config_delete(a); +diff --git a/src/ucm/ucm_local.h b/src/ucm/ucm_local.h +index 709f4cbd5a20..dd72e3f55f95 100644 +--- a/src/ucm/ucm_local.h ++++ b/src/ucm/ucm_local.h +@@ -307,7 +307,11 @@ int uc_mgr_get_substituted_value(snd_use_case_mgr_t *uc_mgr, + char **_rvalue, + const char *value); + +-int uc_mgr_config_tree_merge(snd_config_t *parent, snd_config_t *new_ctx, ++int uc_mgr_substitute_tree(snd_use_case_mgr_t *uc_mgr, ++ snd_config_t *node); ++ ++int uc_mgr_config_tree_merge(snd_use_case_mgr_t *uc_mgr, ++ snd_config_t *parent, snd_config_t *new_ctx, + snd_config_t *before, snd_config_t *after); + + int uc_mgr_evaluate_inplace(snd_use_case_mgr_t *uc_mgr, +diff --git a/src/ucm/ucm_subs.c b/src/ucm/ucm_subs.c +index d40e5478b084..f608bb0955a6 100644 +--- a/src/ucm/ucm_subs.c ++++ b/src/ucm/ucm_subs.c +@@ -395,3 +395,56 @@ __error: + free(r); + return err; + } ++ ++static inline int uc_mgr_substitute_check(const char *s) ++{ ++ return s && strstr(s, "${") != NULL; ++} ++ ++int uc_mgr_substitute_tree(snd_use_case_mgr_t *uc_mgr, snd_config_t *node) ++{ ++ snd_config_iterator_t i, next; ++ snd_config_t *n; ++ const char *id, *s2; ++ char *s; ++ int err; ++ ++ err = snd_config_get_id(node, &id); ++ if (err < 0) ++ return err; ++ if (uc_mgr_substitute_check(id)) { ++ err = uc_mgr_get_substituted_value(uc_mgr, &s, id); ++ if (err < 0) ++ return err; ++ err = snd_config_set_id(node, s); ++ free(s); ++ if (err < 0) { ++ uc_error("unable to set substituted id '%s' (old id '%s')", s, id); ++ return err; ++ } ++ } ++ if (snd_config_get_type(node) != SND_CONFIG_TYPE_COMPOUND) { ++ if (snd_config_get_type(node) == SND_CONFIG_TYPE_STRING) { ++ err = snd_config_get_string(node, &s2); ++ if (err < 0) ++ return err; ++ if (!uc_mgr_substitute_check(s2)) ++ return 0; ++ err = uc_mgr_get_substituted_value(uc_mgr, &s, s2); ++ if (err < 0) ++ return err; ++ err = snd_config_set_string(node, s); ++ free(s); ++ if (err < 0) ++ return err; ++ } ++ return 0; ++ } ++ snd_config_for_each(i, next, node) { ++ n = snd_config_iterator_entry(i); ++ err = uc_mgr_substitute_tree(uc_mgr, n); ++ if (err < 0) ++ return err; ++ } ++ return 0; ++} +-- +2.16.4 + diff --git a/packages/a/alsa/0004-ctl-improve-documentation-for-identifier-of-control-.patch b/packages/a/alsa/0004-ctl-improve-documentation-for-identifier-of-control-.patch new file mode 100644 index 0000000..5ecdb47 --- /dev/null +++ b/packages/a/alsa/0004-ctl-improve-documentation-for-identifier-of-control-.patch @@ -0,0 +1,36 @@ +From 877bdf95fdfdac840a7a664362ec69b85c59ecb0 Mon Sep 17 00:00:00 2001 +From: Takashi Sakamoto +Date: Fri, 3 Jul 2020 09:37:51 +0900 +Subject: [PATCH 04/32] ctl: improve documentation for identifier of control + element + +In documentation, there're two ways relevant to the identifier of control +element. However, the case of combination has the lack of parameters. + +This commit improves documentation in this point. + +Fixes: f3c24de8c0df ("ctl: add an overview for design of ALSA control interface") +Signed-off-by: Takashi Sakamoto +Signed-off-by: Jaroslav Kysela +--- + src/control/control.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/control/control.c b/src/control/control.c +index 19528ae30a0b..e21e8f1d2621 100644 +--- a/src/control/control.c ++++ b/src/control/control.c +@@ -49,8 +49,8 @@ are managed according to below model. + - An element includes some members to have a value. The value of each member + can be changed by both of userspace applications and drivers in kernel. + +-Each element can be identified by two ways; a combination of name and index, or +-numerical number (numid). ++Each element can be identified by two ways; the numerical number (numid), or the ++combination of interface, device, subdevice, name, and index. + + The type of element set is one of integer, integerr64, boolean, enumerators, + bytes and IEC958 structure. This indicates the type of value for each member in +-- +2.16.4 + diff --git a/packages/a/alsa/0005-pcm-dmix-make-lockless-operation-optional.patch b/packages/a/alsa/0005-pcm-dmix-make-lockless-operation-optional.patch new file mode 100644 index 0000000..d31425c --- /dev/null +++ b/packages/a/alsa/0005-pcm-dmix-make-lockless-operation-optional.patch @@ -0,0 +1,107 @@ +From 4759865c861c708ce4a68fc08060fc820628ccaf Mon Sep 17 00:00:00 2001 +From: Takashi Iwai +Date: Fri, 19 Jun 2020 18:57:05 +0200 +Subject: [PATCH 05/32] pcm: dmix: make lockless operation optional + +The recently reported (but a long-standing) bug about the +unconditional semaphore usage in the dmix implies that basically we've +had no problem with the locking in the practical usages over years. +Although the lockless operation has a clear merit, it's a much higher +CPU usage (especially on some uncached pages), and it might lead to a +potential deadlock in theory (which is hard to reproduce at will, +though). + +This patch introduces a new configure option "--enable-lockless-dmix" +or "--disable-lockless-dmix" to let user choose the default dmix +operation mode. The usage of the lockless mixing has been already +conditionally enabled via asoundrc and card config +"direct_memory_access", so we just need to set the default value based +on it. + +In this patch, the default is set off to the lockless mixing, i.e. the +generic mixing is chosen. It makes more sense from the performance +POV. For any users who still require the lockless operation, it can +be enabled either via configure option or the asoundrc. + +The magic number used in the shmem is also changed depending on the +operation mode. It's just for safety, not to conflict both operation +modes with each other. + +Reviewed-by: Jaroslav Kysela +Signed-off-by: Takashi Iwai +--- + configure.ac | 13 +++++++++++++ + src/pcm/pcm_direct.c | 16 +++++++++++++--- + 2 files changed, 26 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 93a54c909d1d..01357fb9310f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -629,6 +629,19 @@ if test "$build_pcm_mmap_emul" = "yes"; then + AC_DEFINE([BUILD_PCM_PLUGIN_MMAP_EMUL], "1", [Build PCM mmap-emul plugin]) + fi + ++if test "$build_pcm_dmix" = "yes"; then ++AC_MSG_CHECKING(for default lockless dmix) ++AC_ARG_ENABLE(lockless-dmix, ++ AS_HELP_STRING([--enable-lockless-dmix], ++ [use lockless dmix as default on x86]), ++ lockless_dmix="$enableval", lockless_dmix="no") ++if test "$lockless_dmix" = "yes"; then ++ AC_MSG_RESULT(yes) ++ AC_DEFINE([LOCKLESS_DMIX_DEFAULT], "1", [Lockless dmix as default]) ++else ++ AC_MSG_RESULT(no) ++fi ++fi + + dnl Create PCM plugin symbol list for static library + rm -f "$srcdir"/src/pcm/pcm_symbols_list.c +diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c +index 665340954cf3..19c5a811262f 100644 +--- a/src/pcm/pcm_direct.c ++++ b/src/pcm/pcm_direct.c +@@ -82,7 +82,13 @@ int snd_pcm_direct_semaphore_create_or_connect(snd_pcm_direct_t *dmix) + return 0; + } + +-#define SND_PCM_DIRECT_MAGIC (0xa15ad300 + sizeof(snd_pcm_direct_share_t)) ++static unsigned int snd_pcm_direct_magic(snd_pcm_direct_t *dmix) ++{ ++ if (!dmix->direct_memory_access) ++ return 0xa15ad300 + sizeof(snd_pcm_direct_share_t); ++ else ++ return 0xb15ad300 + sizeof(snd_pcm_direct_share_t); ++} + + /* + * global shared memory area +@@ -132,10 +138,10 @@ retryget: + buf.shm_perm.gid = dmix->ipc_gid; + shmctl(dmix->shmid, IPC_SET, &buf); + } +- dmix->shmptr->magic = SND_PCM_DIRECT_MAGIC; ++ dmix->shmptr->magic = snd_pcm_direct_magic(dmix); + return 1; + } else { +- if (dmix->shmptr->magic != SND_PCM_DIRECT_MAGIC) { ++ if (dmix->shmptr->magic != snd_pcm_direct_magic(dmix)) { + snd_pcm_direct_shm_discard(dmix); + return -EINVAL; + } +@@ -1892,7 +1898,11 @@ int snd_pcm_direct_parse_open_conf(snd_config_t *root, snd_config_t *conf, + rec->slowptr = 1; + rec->max_periods = 0; + rec->var_periodsize = 0; ++#ifdef LOCKLESS_DMIX_DEFAULT + rec->direct_memory_access = 1; ++#else ++ rec->direct_memory_access = 0; ++#endif + rec->hw_ptr_alignment = SND_PCM_HW_PTR_ALIGNMENT_AUTO; + rec->tstamp_type = -1; + +-- +2.16.4 + diff --git a/packages/a/alsa/0006-pcm-dmix-Fix-semaphore-usage-with-lockless-operation.patch b/packages/a/alsa/0006-pcm-dmix-Fix-semaphore-usage-with-lockless-operation.patch new file mode 100644 index 0000000..197e19b --- /dev/null +++ b/packages/a/alsa/0006-pcm-dmix-Fix-semaphore-usage-with-lockless-operation.patch @@ -0,0 +1,110 @@ +From d824b461ae807ea436e2df36da9c2212e485e3e6 Mon Sep 17 00:00:00 2001 +From: Takashi Iwai +Date: Fri, 19 Jun 2020 18:40:46 +0200 +Subject: [PATCH 06/32] pcm: dmix: Fix semaphore usage with lockless operation + +As Maarten Baert recently reported, the current dmix code applies the +semaphore unnecessarily around mixing streams even when the lockless +mix operation is used on x86. This was rather introduced mistakenly +at the commit 267d7c728196 ("Add support of little-endian on +i386/x86_64 dmix") where the generic dmix code was included on x86, +too. + +For achieving the original performance back, this patch changes the +semaphore handling to be checked at run time instead of statically at +compile time. + +Reviewed-by: Jaroslav Kysela +Signed-off-by: Takashi Iwai +--- + src/pcm/pcm_direct.h | 1 + + src/pcm/pcm_dmix.c | 18 +++++++++++------- + src/pcm/pcm_dmix_generic.c | 2 +- + src/pcm/pcm_dmix_i386.c | 1 + + src/pcm/pcm_dmix_x86_64.c | 1 + + 5 files changed, 15 insertions(+), 8 deletions(-) + +diff --git a/src/pcm/pcm_direct.h b/src/pcm/pcm_direct.h +index 8a236970a3a1..2150bce15449 100644 +--- a/src/pcm/pcm_direct.h ++++ b/src/pcm/pcm_direct.h +@@ -186,6 +186,7 @@ struct snd_pcm_direct { + mix_areas_32_t *remix_areas_32; + mix_areas_24_t *remix_areas_24; + mix_areas_u8_t *remix_areas_u8; ++ unsigned int use_sem; + } dmix; + struct { + unsigned long long chn_mask; +diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c +index 843fa3168756..e9343b19a536 100644 +--- a/src/pcm/pcm_dmix.c ++++ b/src/pcm/pcm_dmix.c +@@ -292,13 +292,17 @@ static void remix_areas(snd_pcm_direct_t *dmix, + * the area via semaphore + */ + #ifndef DOC_HIDDEN +-#ifdef NO_CONCURRENT_ACCESS +-#define dmix_down_sem(dmix) snd_pcm_direct_semaphore_down(dmix, DIRECT_IPC_SEM_CLIENT) +-#define dmix_up_sem(dmix) snd_pcm_direct_semaphore_up(dmix, DIRECT_IPC_SEM_CLIENT) +-#else +-#define dmix_down_sem(dmix) +-#define dmix_up_sem(dmix) +-#endif ++static void dmix_down_sem(snd_pcm_direct_t *dmix) ++{ ++ if (dmix->u.dmix.use_sem) ++ snd_pcm_direct_semaphore_down(dmix, DIRECT_IPC_SEM_CLIENT); ++} ++ ++static void dmix_up_sem(snd_pcm_direct_t *dmix) ++{ ++ if (dmix->u.dmix.use_sem) ++ snd_pcm_direct_semaphore_up(dmix, DIRECT_IPC_SEM_CLIENT); ++} + #endif + + /* +diff --git a/src/pcm/pcm_dmix_generic.c b/src/pcm/pcm_dmix_generic.c +index 40c08747a74a..8a5b6f148556 100644 +--- a/src/pcm/pcm_dmix_generic.c ++++ b/src/pcm/pcm_dmix_generic.c +@@ -43,7 +43,6 @@ static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, + #ifndef ARCH_ADD + #define ARCH_ADD(p,a) (*(p) += (a)) + #define ARCH_CMPXCHG(p,a,b) (*(p)) /* fake */ +-#define NO_CONCURRENT_ACCESS /* use semaphore to avoid race */ + #define IS_CONCURRENT 0 /* no race check */ + #endif + +@@ -530,6 +529,7 @@ static void generic_mix_select_callbacks(snd_pcm_direct_t *dmix) + dmix->u.dmix.mix_areas_u8 = generic_mix_areas_u8; + dmix->u.dmix.remix_areas_24 = generic_remix_areas_24; + dmix->u.dmix.remix_areas_u8 = generic_remix_areas_u8; ++ dmix->u.dmix.use_sem = 1; + } + + #endif +diff --git a/src/pcm/pcm_dmix_i386.c b/src/pcm/pcm_dmix_i386.c +index 1ab983a8a373..82a91c5c2897 100644 +--- a/src/pcm/pcm_dmix_i386.c ++++ b/src/pcm/pcm_dmix_i386.c +@@ -135,4 +135,5 @@ static void mix_select_callbacks(snd_pcm_direct_t *dmix) + dmix->u.dmix.mix_areas_24 = smp > 1 ? mix_areas_24_smp: mix_areas_24; + dmix->u.dmix.remix_areas_24 = smp > 1 ? remix_areas_24_smp: remix_areas_24; + } ++ dmix->u.dmix.use_sem = 0; + } +diff --git a/src/pcm/pcm_dmix_x86_64.c b/src/pcm/pcm_dmix_x86_64.c +index 34c40d4e9d1d..4d882bfd01bf 100644 +--- a/src/pcm/pcm_dmix_x86_64.c ++++ b/src/pcm/pcm_dmix_x86_64.c +@@ -102,4 +102,5 @@ static void mix_select_callbacks(snd_pcm_direct_t *dmix) + dmix->u.dmix.remix_areas_32 = smp > 1 ? remix_areas_32_smp : remix_areas_32; + dmix->u.dmix.mix_areas_24 = smp > 1 ? mix_areas_24_smp : mix_areas_24; + dmix->u.dmix.remix_areas_24 = smp > 1 ? remix_areas_24_smp : remix_areas_24; ++ dmix->u.dmix.use_sem = 0; + } +-- +2.16.4 + diff --git a/packages/a/alsa/0007-pcm-iec958-implement-HDMI-HBR-audio-formatting.patch b/packages/a/alsa/0007-pcm-iec958-implement-HDMI-HBR-audio-formatting.patch new file mode 100644 index 0000000..31f7db2 --- /dev/null +++ b/packages/a/alsa/0007-pcm-iec958-implement-HDMI-HBR-audio-formatting.patch @@ -0,0 +1,151 @@ +From 8defc5c2a65345a1aee613ebf0999d203c2e0433 Mon Sep 17 00:00:00 2001 +From: Matthias Reichl +Date: Mon, 13 Jul 2020 23:17:03 +0200 +Subject: [PATCH 07/32] pcm: iec958: implement HDMI HBR audio formatting + +High bitrate compressed audio data like DTS HD or MAT is usually +packed into 8-channel data. The HDMI specs state this has to be +formatted as a single IEC958 stream, compared to normal multi- +channel PCM data which has to be formatted as parallel IEC958 streams. + +As this single-stream formatting mode may break existing setups that +expect non-PCM multichannel data to be formatted as parallel IEC958 +streams it needs to be explicitly selected by setting the hdmi_mode +option to true. + +The single-stream formatting implementation is prepared to cope with +arbitrary channel counts but only limited testing was done for channel +counts other than 8. + +Signed-off-by: Matthias Reichl +Signed-off-by: Takashi Iwai +--- + src/pcm/pcm_iec958.c | 37 +++++++++++++++++++++++++++++++++---- + 1 file changed, 33 insertions(+), 4 deletions(-) + +diff --git a/src/pcm/pcm_iec958.c b/src/pcm/pcm_iec958.c +index 76d3ca7b8e3c..17ade9571cae 100644 +--- a/src/pcm/pcm_iec958.c ++++ b/src/pcm/pcm_iec958.c +@@ -63,6 +63,7 @@ struct snd_pcm_iec958 { + unsigned int byteswap; + unsigned char preamble[3]; /* B/M/W or Z/X/Y */ + snd_pcm_fast_ops_t fops; ++ int hdmi_mode; + }; + + enum { PREAMBLE_Z, PREAMBLE_X, PREAMBLE_Y }; +@@ -193,6 +194,10 @@ static void snd_pcm_iec958_encode(snd_pcm_iec958_t *iec, + unsigned int channel; + int32_t sample = 0; + int counter = iec->counter; ++ int single_stream = iec->hdmi_mode && ++ (iec->status[0] & IEC958_AES0_NONAUDIO) && ++ (channels == 8); ++ int counter_step = single_stream ? ((channels + 1) >> 1) : 1; + for (channel = 0; channel < channels; ++channel) { + const char *src; + uint32_t *dst; +@@ -205,7 +210,12 @@ static void snd_pcm_iec958_encode(snd_pcm_iec958_t *iec, + src_step = snd_pcm_channel_area_step(src_area); + dst_step = snd_pcm_channel_area_step(dst_area) / sizeof(uint32_t); + frames1 = frames; +- iec->counter = counter; ++ ++ if (single_stream) ++ iec->counter = (counter + (channel >> 1)) % 192; ++ else ++ iec->counter = counter; ++ + while (frames1-- > 0) { + goto *get; + #define GET32_END after +@@ -217,9 +227,11 @@ static void snd_pcm_iec958_encode(snd_pcm_iec958_t *iec, + *dst = sample; + src += src_step; + dst += dst_step; +- iec->counter++; ++ iec->counter += counter_step; + iec->counter %= 192; + } ++ if (single_stream) /* set counter to ch0 value for next iteration */ ++ iec->counter = (counter + frames * counter_step) % 192; + } + } + #endif /* DOC_HIDDEN */ +@@ -473,6 +485,7 @@ static const snd_pcm_ops_t snd_pcm_iec958_ops = { + * \param close_slave When set, the slave PCM handle is closed with copy PCM + * \param status_bits The IEC958 status bits + * \param preamble_vals The preamble byte values ++ * \param hdmi_mode When set, enable HDMI compliant formatting + * \retval zero on success otherwise a negative error code + * \warning Using of this function might be dangerous in the sense + * of compatibility reasons. The prototype might be freely +@@ -481,7 +494,8 @@ static const snd_pcm_ops_t snd_pcm_iec958_ops = { + int snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, + snd_pcm_t *slave, int close_slave, + const unsigned char *status_bits, +- const unsigned char *preamble_vals) ++ const unsigned char *preamble_vals, ++ int hdmi_mode) + { + snd_pcm_t *pcm; + snd_pcm_iec958_t *iec; +@@ -519,6 +533,8 @@ int snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sfo + + memcpy(iec->preamble, preamble_vals, 3); + ++ iec->hdmi_mode = hdmi_mode; ++ + err = snd_pcm_new(&pcm, SND_PCM_TYPE_IEC958, name, slave->stream, slave->mode); + if (err < 0) { + free(iec); +@@ -566,9 +582,14 @@ pcm.name { + [preamble.z or preamble.b val] + [preamble.x or preamble.m val] + [preamble.y or preamble.w val] ++ [hdmi_mode true] + } + \endcode + ++When hdmi_mode is true, 8-channel compressed data is ++formatted as 4 contiguous frames of a single IEC958 stream as required ++by the HDMI HBR specification. ++ + \subsection pcm_plugins_iec958_funcref Function reference + +
    +@@ -605,6 +626,7 @@ int _snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name, + unsigned char preamble_vals[3] = { + 0x08, 0x02, 0x04 /* Z, X, Y */ + }; ++ int hdmi_mode = 0; + + snd_config_for_each(i, next, conf) { + snd_config_t *n = snd_config_iterator_entry(i); +@@ -633,6 +655,13 @@ int _snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name, + preamble = n; + continue; + } ++ if (strcmp(id, "hdmi_mode") == 0) { ++ err = snd_config_get_bool(n); ++ if (err < 0) ++ continue; ++ hdmi_mode = err; ++ continue; ++ } + SNDERR("Unknown field %s", id); + return -EINVAL; + } +@@ -707,7 +736,7 @@ int _snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name, + return err; + err = snd_pcm_iec958_open(pcmp, name, sformat, spcm, 1, + status ? status_bits : NULL, +- preamble_vals); ++ preamble_vals, hdmi_mode); + if (err < 0) + snd_pcm_close(spcm); + return err; +-- +2.16.4 + diff --git a/packages/a/alsa/0008-pcm-iec958-set-channel-status-bits-according-to-rate.patch b/packages/a/alsa/0008-pcm-iec958-set-channel-status-bits-according-to-rate.patch new file mode 100644 index 0000000..38e0cd2 --- /dev/null +++ b/packages/a/alsa/0008-pcm-iec958-set-channel-status-bits-according-to-rate.patch @@ -0,0 +1,123 @@ +From 36e4b296d2f4ad0034f7028256c64b8af003068d Mon Sep 17 00:00:00 2001 +From: Matthias Reichl +Date: Mon, 13 Jul 2020 23:17:04 +0200 +Subject: [PATCH 08/32] pcm: iec958: set channel status bits according to rate + and format + +This mimics snd_pcm_create_iec958_consumer in the kernel. + +The rate and wordlength bits will only be modified if they are +set to "not indicated", which is now the default if no status +option is used. + +This allows applications to override parameters determined from +the stream or implement channel status bits extensions without +needing to change pcm_iec958 code. + +Signed-off-by: Matthias Reichl +Signed-off-by: Takashi Iwai +--- + src/pcm/pcm_iec958.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++++--- + 1 file changed, 76 insertions(+), 4 deletions(-) + +diff --git a/src/pcm/pcm_iec958.c b/src/pcm/pcm_iec958.c +index 17ade9571cae..a11a043924f6 100644 +--- a/src/pcm/pcm_iec958.c ++++ b/src/pcm/pcm_iec958.c +@@ -365,9 +365,80 @@ static int snd_pcm_iec958_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params + iec->byteswap = format != SND_PCM_FORMAT_IEC958_SUBFRAME; + } + } +- /* FIXME: needs to adjust status_bits according to the format +- * and sample rate +- */ ++ ++ if ((iec->status[0] & IEC958_AES0_PROFESSIONAL) == 0) { ++ if ((iec->status[3] & IEC958_AES3_CON_FS) == IEC958_AES3_CON_FS_NOTID) { ++ unsigned int rate = 0; ++ unsigned char fs; ++ ++ err = INTERNAL(snd_pcm_hw_params_get_rate)(params, &rate, 0); ++ if (err < 0) ++ rate = 0; ++ ++ switch (rate) { ++ case 22050: ++ fs = IEC958_AES3_CON_FS_22050; ++ break; ++ case 24000: ++ fs = IEC958_AES3_CON_FS_24000; ++ break; ++ case 32000: ++ fs = IEC958_AES3_CON_FS_32000; ++ break; ++ case 44100: ++ fs = IEC958_AES3_CON_FS_44100; ++ break; ++ case 48000: ++ fs = IEC958_AES3_CON_FS_48000; ++ break; ++ case 88200: ++ fs = IEC958_AES3_CON_FS_88200; ++ break; ++ case 96000: ++ fs = IEC958_AES3_CON_FS_96000; ++ break; ++ case 176400: ++ fs = IEC958_AES3_CON_FS_176400; ++ break; ++ case 192000: ++ fs = IEC958_AES3_CON_FS_192000; ++ break; ++ case 768000: ++ fs = IEC958_AES3_CON_FS_768000; ++ break; ++ default: ++ fs = IEC958_AES3_CON_FS_NOTID; ++ break; ++ } ++ ++ iec->status[3] &= ~IEC958_AES3_CON_FS; ++ iec->status[3] |= fs; ++ } ++ ++ if ((iec->status[4] & IEC958_AES4_CON_WORDLEN) == IEC958_AES4_CON_WORDLEN_NOTID) { ++ unsigned char ws; ++ switch (snd_pcm_format_width(format)) { ++ case 16: ++ ws = IEC958_AES4_CON_WORDLEN_20_16; ++ break; ++ case 18: ++ ws = IEC958_AES4_CON_WORDLEN_22_18; ++ break; ++ case 20: ++ ws = IEC958_AES4_CON_WORDLEN_20_16 | IEC958_AES4_CON_MAX_WORDLEN_24; ++ break; ++ case 24: ++ case 32: /* Assume 24-bit width for 32-bit samples. */ ++ ws = IEC958_AES4_CON_WORDLEN_24_20 | IEC958_AES4_CON_MAX_WORDLEN_24; ++ break; ++ default: ++ ws = IEC958_AES4_CON_WORDLEN_NOTID; ++ break; ++ } ++ iec->status[4] &= ~(IEC958_AES4_CON_MAX_WORDLEN_24 | IEC958_AES4_CON_WORDLEN); ++ iec->status[4] |= ws; ++ } ++ } + return 0; + } + +@@ -504,7 +575,8 @@ int snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sfo + IEC958_AES0_CON_EMPHASIS_NONE, + IEC958_AES1_CON_ORIGINAL | IEC958_AES1_CON_PCM_CODER, + 0, +- IEC958_AES3_CON_FS_48000 ++ IEC958_AES3_CON_FS_NOTID, /* will be set in hwparams */ ++ IEC958_AES4_CON_WORDLEN_NOTID /* will be set in hwparams */ + }; + + assert(pcmp && slave); +-- +2.16.4 + diff --git a/packages/a/alsa/0009-conf-pcm-USB-Added-S-PDIF-fix-for-Asus-Xonar-SE.patch b/packages/a/alsa/0009-conf-pcm-USB-Added-S-PDIF-fix-for-Asus-Xonar-SE.patch new file mode 100644 index 0000000..8e12634 --- /dev/null +++ b/packages/a/alsa/0009-conf-pcm-USB-Added-S-PDIF-fix-for-Asus-Xonar-SE.patch @@ -0,0 +1,27 @@ +From a80606d1abfd3c2bccfa179c31af8b6e7c0a9031 Mon Sep 17 00:00:00 2001 +From: omar +Date: Mon, 20 Jul 2020 11:46:46 -0400 +Subject: [PATCH 09/32] conf: pcm - USB - Added S/PDIF fix for Asus Xonar SE + +Resolves #70 +From: omar +Signed-off-by: Jaroslav Kysela +--- + src/conf/cards/USB-Audio.conf | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf +index 01664abfc263..297629f34d77 100644 +--- a/src/conf/cards/USB-Audio.conf ++++ b/src/conf/cards/USB-Audio.conf +@@ -42,6 +42,7 @@ USB-Audio.pcm.iec958_device { + "ASUS XONAR U5" 1 + "XONAR U5" 1 + "XONAR SOUND CARD" 1 ++ "Xonar SoundCard" 2 + + # The below don't have digital in/out, so prevent them from being opened. + "Andrea PureAudio USB-SA Headset" 999 +-- +2.16.4 + diff --git a/packages/a/alsa/0010-control-ctlparse-fix-enum-values-in-or.patch b/packages/a/alsa/0010-control-ctlparse-fix-enum-values-in-or.patch new file mode 100644 index 0000000..ecef084 --- /dev/null +++ b/packages/a/alsa/0010-control-ctlparse-fix-enum-values-in-or.patch @@ -0,0 +1,60 @@ +From a3ca4803cb8db73d01231c69620e2d18573ffba9 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Mon, 27 Jul 2020 13:18:20 +0200 +Subject: [PATCH 10/32] control: ctlparse - fix enum values in '' or "" + +This comit fixes the enum value string parser +(fixes aaf3a081bff1cc85635f7a3c3d4287c4addbbd84). + +BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/40 +Signed-off-by: Jaroslav Kysela +--- + src/control/ctlparse.c | 26 +++++++++++++++----------- + 1 file changed, 15 insertions(+), 11 deletions(-) + +diff --git a/src/control/ctlparse.c b/src/control/ctlparse.c +index ee1e0602cbf7..74f76cca9ca4 100644 +--- a/src/control/ctlparse.c ++++ b/src/control/ctlparse.c +@@ -282,23 +282,27 @@ static int get_ctl_enum_item_index(snd_ctl_t *handle, + if (items <= 0) + return -1; + ++ end = *ptr; ++ if (end == '\'' || end == '"') ++ ptr++; ++ else ++ end = '\0'; ++ + for (i = 0; i < items; i++) { + snd_ctl_elem_info_set_item(info, i); + if (snd_ctl_elem_info(handle, info) < 0) + return -1; + name = snd_ctl_elem_info_get_item_name(info); +- end = *ptr; +- if (end == '\'' || end == '"') +- ptr++; +- else +- end = '\0'; + len = strlen(name); +- if (strncmp(name, ptr, len) == 0) { +- if (ptr[len] == end || ptr[len] == ',' || ptr[len] == '\n') { +- ptr += len; +- *ptrp = ptr; +- return i; +- } ++ if (strncmp(name, ptr, len)) ++ continue; ++ if (end == '\0' && (ptr[len] == '\0' || ptr[len] == ',' || ptr[len] == '\n')) { ++ *ptrp = ptr + len; ++ return i; ++ } ++ if (end != '\0' && ptr[len] == end) { ++ *ptrp = ptr + len + 1; ++ return i; + } + } + return -1; +-- +2.16.4 + diff --git a/packages/a/alsa/0011-conf-USB-Audio-Disable-IEC958-on-Lenovo-ThinkStation.patch b/packages/a/alsa/0011-conf-USB-Audio-Disable-IEC958-on-Lenovo-ThinkStation.patch new file mode 100644 index 0000000..78fc871 --- /dev/null +++ b/packages/a/alsa/0011-conf-USB-Audio-Disable-IEC958-on-Lenovo-ThinkStation.patch @@ -0,0 +1,31 @@ +From 464c2f8b61855cb22d61c4b232f74d6767fac5fb Mon Sep 17 00:00:00 2001 +From: Kai-Heng Feng +Date: Mon, 3 Aug 2020 23:57:45 +0800 +Subject: [PATCH 11/32] conf: USB-Audio: Disable IEC958 on Lenovo ThinkStation + P620 + +Both USB audio cards on Lenovo ThinkStation P620 don't support IEC958, +so disable IEC958 accordingly. + +Signed-off-by: Kai-Heng Feng +Signed-off-by: Takashi Iwai +--- + src/conf/cards/USB-Audio.conf | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf +index 297629f34d77..9b64af3c0da9 100644 +--- a/src/conf/cards/USB-Audio.conf ++++ b/src/conf/cards/USB-Audio.conf +@@ -63,6 +63,8 @@ USB-Audio.pcm.iec958_device { + "Scarlett 2i4 USB" 999 + "Sennheiser USB headset" 999 + "SWTOR Gaming Headset by Razer" 999 ++ "ThinkStation P620 Main" 999 ++ "ThinkStation P620 Rear" 999 + "Thunderbolt Dock Audio Headset" 999 + "Thunderbolt Dock Audio Module" 999 + "USB Device 0x46d_0x821" 999 +-- +2.16.4 + diff --git a/packages/a/alsa/0012-pcm-dmix-fix-access-to-sum-buffer-in-non-interleaved.patch b/packages/a/alsa/0012-pcm-dmix-fix-access-to-sum-buffer-in-non-interleaved.patch new file mode 100644 index 0000000..a4a8854 --- /dev/null +++ b/packages/a/alsa/0012-pcm-dmix-fix-access-to-sum-buffer-in-non-interleaved.patch @@ -0,0 +1,92 @@ +From 82cb27c165d4337fe3183668bd0fa21ff6287e8e Mon Sep 17 00:00:00 2001 +From: Vijay Palaniswamy +Date: Thu, 23 Jul 2020 11:49:10 +0530 +Subject: [PATCH 12/32] pcm: dmix: fix access to sum-buffer in non-interleaved + mixing mode + +When dmix uses non-interleaved mixing mode the offset and step width +to sum_buffer was calculated by using the dmix channels instead of +the slave channels. This leads to audio distortions due to frame +corruption. + +example: +- With below configuratio, Do aplay on both device in parallel for +audio distortion + +pcm.dmix_2_channels { + type dmix + ipc_key 5678293 + ipc_perm 0660 + ipc_gid audio + bindings [0 1] + + slave { + pcm "hardware" + channels 2 + periods 4 + period_time 40000 + } +} + +pcm.dmix_1_channels { + type dmix + ipc_key 5678293 + ipc_perm 0660 + ipc_gid audio + bindings [0] + + slave { + pcm "hardware" + channels 1 + periods 4 + period_time 40000 + } +} + +pcm.hardware { + type hw + card 0 + channels 2 + rate 48000 + format S16_LE +} + +Signed-off-by: Vijay Palaniswamy +Signed-off-by: Takashi Iwai +--- + src/pcm/pcm_dmix.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c +index e9343b19a536..8bce7aca85f7 100644 +--- a/src/pcm/pcm_dmix.c ++++ b/src/pcm/pcm_dmix.c +@@ -212,10 +212,10 @@ static void mix_areas(snd_pcm_direct_t *dmix, + do_mix_areas(size, + ((unsigned char *)dst_areas[dchn].addr + dst_areas[dchn].first / 8) + dst_ofs * dst_step, + ((unsigned char *)src_areas[chn].addr + src_areas[chn].first / 8) + src_ofs * src_step, +- dmix->u.dmix.sum_buffer + channels * dst_ofs + chn, ++ dmix->u.dmix.sum_buffer + dmix->shmptr->s.channels * dst_ofs + dchn, + dst_step, + src_step, +- channels * sizeof(signed int)); ++ dmix->shmptr->s.channels * sizeof(signed int)); + } + } + +@@ -280,10 +280,10 @@ static void remix_areas(snd_pcm_direct_t *dmix, + do_remix_areas(size, + ((unsigned char *)dst_areas[dchn].addr + dst_areas[dchn].first / 8) + dst_ofs * dst_step, + ((unsigned char *)src_areas[chn].addr + src_areas[chn].first / 8) + src_ofs * src_step, +- dmix->u.dmix.sum_buffer + channels * dst_ofs + chn, ++ dmix->u.dmix.sum_buffer + dmix->shmptr->s.channels * dst_ofs + dchn, + dst_step, + src_step, +- channels * sizeof(signed int)); ++ dmix->shmptr->s.channels * sizeof(signed int)); + } + } + +-- +2.16.4 + diff --git a/packages/a/alsa/0014-control-Add-documentation-for-snd_ctl_elem_list_.patch b/packages/a/alsa/0014-control-Add-documentation-for-snd_ctl_elem_list_.patch new file mode 100644 index 0000000..6d4e8c4 --- /dev/null +++ b/packages/a/alsa/0014-control-Add-documentation-for-snd_ctl_elem_list_.patch @@ -0,0 +1,278 @@ +From e097dd491a8f25418a90d38aea549bb4668de955 Mon Sep 17 00:00:00 2001 +From: "Tanjeff-N. Moos" +Date: Fri, 14 Aug 2020 08:40:28 +0200 +Subject: [PATCH 14/32] control: Add documentation for snd_ctl_elem_list_*. + +Signed-off-by: Tanjeff-N. Moos +Signed-off-by: Takashi Iwai +--- + include/control.h | 81 +++++++++++++++++++++++++++++++++++++++++++++++++-- + src/control/control.c | 80 +++++++++++++++++++++++++++++++++++++++++++------- + 2 files changed, 148 insertions(+), 13 deletions(-) + +diff --git a/include/control.h b/include/control.h +index 02db72d413ae..9deec6f3dee4 100644 +--- a/include/control.h ++++ b/include/control.h +@@ -56,7 +56,75 @@ typedef struct _snd_ctl_card_info snd_ctl_card_info_t; + /** CTL element identifier container */ + typedef struct _snd_ctl_elem_id snd_ctl_elem_id_t; + +-/** CTL element identifier list container */ ++/** CTL element list container ++ * ++ * This is a list of CTL elements. The list contains management ++ * information (e.g. how many elements the sound card has) as well as ++ * the element identifiers. All functions which operate on the list ++ * are named snd_ctl_elem_list_*(). ++ * ++ * \par Memory management ++ * ++ * There are two memory areas to deal with: The list container itself ++ * and the memory for the element identifiers. ++ * ++ * To manage the area for the list container, the following functions ++ * are used: ++ * ++ * - snd_ctl_elem_list_malloc() / snd_ctl_elem_list_free() to allocate ++ * and free memory on the heap, or ++ * - snd_ctl_elem_list_alloca() to allocate the memory on the ++ * stack. This memory is auto-released when the stack is unwound. ++ * ++ * To manage the space for the element identifiers, the ++ * snd_ctl_elem_list_alloc_space() and snd_ctl_elem_list_free_space() ++ * are used. Allocating the right amount of space can be achieved by ++ * first obtaining the number of elements and then calling ++ * snd_ctl_elem_list_alloc_space(): ++ * ++ * \code ++ * snd_ctl_elem_list_t* list; ++ * int count; ++ * ++ * // Initialise list ++ * snd_ctl_elem_list_malloc(&list); ++ * ++ * // Get number of elements ++ * snd_ctl_elem_list(ctl, list); ++ * count = snd_ctl_elem_list_get_count(list); ++ * ++ * // Allocate space for identifiers ++ * snd_ctl_elem_list_alloc_space(list, count); ++ * ++ * // Get identifiers ++ * snd_ctl_elem_list(ctl, list); // yes, this is same as above :) ++ * ++ * // Do something useful with the list... ++ * ++ * // Cleanup ++ * snd_ctl_elem_list_free_space(list); ++ * snd_ctl_elem_list_free(list); ++ * \endcode ++ * ++ * ++ * \par The Elements ++ * ++ * The elements in the list are accessed using an index. This index is ++ * the location in the list; Don't confuse it with the 'index' of the ++ * element identifier. For example: ++ * ++ * \code ++ * snd_ctl_elem_list_t list; ++ * unsigned int element_index; ++ * ++ * // Allocate space, fill list ... ++ * ++ * element_index = snd_ctl_elem_list_get_index(&list, 2); ++ * \endcode ++ * ++ * This will access the 3rd element in the list (index=2) and get the ++ * elements index from the driver (which might be 13, for example). ++ */ + typedef struct _snd_ctl_elem_list snd_ctl_elem_list_t; + + /** CTL element info container */ +@@ -354,11 +422,18 @@ void snd_ctl_event_copy(snd_ctl_event_t *dst, const snd_ctl_event_t *src); + snd_ctl_event_type_t snd_ctl_event_get_type(const snd_ctl_event_t *obj); + + size_t snd_ctl_elem_list_sizeof(void); ++ + /** \hideinitializer +- * \brief allocate an invalid #snd_ctl_elem_list_t using standard alloca +- * \param ptr returned pointer ++ * ++ * \brief Allocate a #snd_ctl_elem_list_t using standard alloca. ++ * ++ * The memory is allocated on the stack and will automatically be ++ * released when the stack unwinds (i.e. no free() is needed). ++ * ++ * \param ptr Pointer to allocated memory. + */ + #define snd_ctl_elem_list_alloca(ptr) __snd_alloca(ptr, snd_ctl_elem_list) ++ + int snd_ctl_elem_list_malloc(snd_ctl_elem_list_t **ptr); + void snd_ctl_elem_list_free(snd_ctl_elem_list_t *obj); + void snd_ctl_elem_list_clear(snd_ctl_elem_list_t *obj); +diff --git a/src/control/control.c b/src/control/control.c +index e21e8f1d2621..1bcf1ab2e431 100644 +--- a/src/control/control.c ++++ b/src/control/control.c +@@ -280,6 +280,21 @@ int snd_ctl_card_info(snd_ctl_t *ctl, snd_ctl_card_info_t *info) + + /** + * \brief Get a list of element identifiers ++ * ++ * Before calling this function, memoru must be allocated using ++ * snd_ctl_elem_list_malloc(). ++ * ++ * This function obtains data from the sound card driver and puts it ++ * into the list. ++ * ++ * If there was space allocated for the element identifiers (using ++ * snd_ctl_elem_list_alloc_space()), information will be filled in. If ++ * too little space was allocated, only a part of the elements will be ++ * queried. If there was too much space allocated, some of it remains ++ * unused. Use snd_ctl_elem_list_get_count() and ++ * snd_ctl_elem_list_get_used() to obtain information about space ++ * usage. See #snd_ctl_elem_list_t to learn more. ++ * + * \param ctl CTL handle + * \param list CTL element identifiers list pointer + * \return 0 on success otherwise a negative error code +@@ -1508,9 +1523,14 @@ const char *snd_ctl_event_type_name(snd_ctl_event_type_t type) + + /** + * \brief allocate space for CTL element identifiers list +- * \param obj CTL element identifiers list +- * \param entries Entries to allocate +- * \return 0 on success otherwise a negative error code ++ * ++ * The space can be released with snd_ctl_elem_list_free_space(). ++ * ++ * \param obj CTL element identifiers list. ++ * \param entries How many entries to allocate. See ++ * #snd_ctl_elem_list_t to learn how to obtain ++ * this number in advance. ++ * \return 0 on success otherwise a negative error code. + */ + int snd_ctl_elem_list_alloc_space(snd_ctl_elem_list_t *obj, unsigned int entries) + { +@@ -1526,6 +1546,10 @@ int snd_ctl_elem_list_alloc_space(snd_ctl_elem_list_t *obj, unsigned int entries + + /** + * \brief free previously allocated space for CTL element identifiers list ++ * ++ * Releases space previously allocated using ++ * snd_ctl_elem_list_alloc_space(). ++ * + * \param obj CTL element identifiers list + */ + void snd_ctl_elem_list_free_space(snd_ctl_elem_list_t *obj) +@@ -2016,7 +2040,7 @@ snd_ctl_event_type_t snd_ctl_event_get_type(const snd_ctl_event_t *obj) + } + + /** +- * \brief get size of #snd_ctl_elem_list_t ++ * \brief get size of #snd_ctl_elem_list_t. + * \return size in bytes + */ + size_t snd_ctl_elem_list_sizeof() +@@ -2025,7 +2049,10 @@ size_t snd_ctl_elem_list_sizeof() + } + + /** +- * \brief allocate an invalid #snd_ctl_elem_list_t using standard malloc ++ * \brief allocate a #snd_ctl_elem_list_t using standard malloc. ++ * ++ * The memory can be released using snd_ctl_elem_list_free(). ++ * + * \param ptr returned pointer + * \return 0 on success otherwise negative error code + */ +@@ -2039,7 +2066,15 @@ int snd_ctl_elem_list_malloc(snd_ctl_elem_list_t **ptr) + } + + /** +- * \brief frees a previously allocated #snd_ctl_elem_list_t ++ * \brief frees a previously allocated #snd_ctl_elem_list_t. ++ * ++ * Release memory previously allocated using ++ * snd_ctl_elem_list_malloc(). ++ * ++ * If you used snd_ctl_elem_list_alloc_space() on the list, you must ++ * use snd_ctl_elem_list_free_space() \em before calling this ++ * function. ++ * + * \param obj pointer to object to free + */ + void snd_ctl_elem_list_free(snd_ctl_elem_list_t *obj) +@@ -2048,7 +2083,15 @@ void snd_ctl_elem_list_free(snd_ctl_elem_list_t *obj) + } + + /** +- * \brief clear given #snd_ctl_elem_list_t object ++ * \brief Clear given #snd_ctl_elem_list_t object. ++ * ++ * This will make the stored identifiers inaccessible without freeing ++ * their space. ++ * ++ * \warning The element identifier space cannot be freed after calling ++ * this function. Therefore, snd_ctl_elem_list_free_space() ++ * must be called in advance. ++ * + * \param obj pointer to object to clear + */ + void snd_ctl_elem_list_clear(snd_ctl_elem_list_t *obj) +@@ -2057,7 +2100,11 @@ void snd_ctl_elem_list_clear(snd_ctl_elem_list_t *obj) + } + + /** +- * \brief copy one #snd_ctl_elem_list_t to another ++ * \brief copy one #snd_ctl_elem_list_t to another. ++ * ++ * This performs a shallow copy. That means the both lists will share ++ * the same space for the elements. The elements will not be copied. ++ * + * \param dst pointer to destination + * \param src pointer to source + */ +@@ -2080,6 +2127,12 @@ void snd_ctl_elem_list_set_offset(snd_ctl_elem_list_t *obj, unsigned int val) + + /** + * \brief Get number of used entries in CTL element identifiers list ++ * ++ * This function returns how many entries are actually filled with ++ * useful information. ++ * ++ * See also snd_ctl_elem_list_get_count(). ++ * + * \param obj CTL element identifier list + * \return number of used entries + */ +@@ -2090,7 +2143,14 @@ unsigned int snd_ctl_elem_list_get_used(const snd_ctl_elem_list_t *obj) + } + + /** +- * \brief Get total count of elements present in CTL device (information present in every filled CTL element identifiers list) ++ * \brief Get total count of elements present in CTL device ++ * ++ * This function returns how many entries were allocated using ++ * snd_ctl_elem_list_alloc_space(). This information is present after ++ * snd_ctl_elem_list() was called. ++ * ++ * See also snd_ctl_elem_list_get_used(). ++ * + * \param obj CTL element identifier list + * \return total number of elements + */ +@@ -2140,7 +2200,7 @@ snd_ctl_elem_iface_t snd_ctl_elem_list_get_interface(const snd_ctl_elem_list_t * + } + + /** +- * \brief Get device part of CTL element identifier for an entry of a CTL element identifiers list ++ * \brief Get the device part of CTL element identifier for an entry of a CTL element identifiers list + * \param obj CTL element identifier list + * \param idx Index of entry + * \return CTL element related device +-- +2.16.4 + diff --git a/packages/a/alsa/0015-conf-quote-also-strings-with-and-characters-in-strin.patch b/packages/a/alsa/0015-conf-quote-also-strings-with-and-characters-in-strin.patch new file mode 100644 index 0000000..ac737a9 --- /dev/null +++ b/packages/a/alsa/0015-conf-quote-also-strings-with-and-characters-in-strin.patch @@ -0,0 +1,27 @@ +From ed752498522b0a99a9fbec99247d9c73b10abb3e Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Tue, 18 Aug 2020 16:53:23 +0200 +Subject: [PATCH 15/32] conf: quote also strings with '*' and '#' characters in + string_print() + +Signed-off-by: Jaroslav Kysela +--- + src/conf.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/conf.c b/src/conf.c +index 8518f90c5d60..7df2b4e77759 100644 +--- a/src/conf.c ++++ b/src/conf.c +@@ -1536,6 +1536,8 @@ static void string_print(char *str, int id, snd_output_t *out) + case ']': + case '\'': + case '"': ++ case '*': ++ case '#': + goto quoted; + default: + if (*p <= 31 || *p >= 127) +-- +2.16.4 + diff --git a/packages/a/alsa/0016-topology-decode-Fix-channel-map-memory-allocation.patch b/packages/a/alsa/0016-topology-decode-Fix-channel-map-memory-allocation.patch new file mode 100644 index 0000000..fc88125 --- /dev/null +++ b/packages/a/alsa/0016-topology-decode-Fix-channel-map-memory-allocation.patch @@ -0,0 +1,54 @@ +From 1ac965184eaefe503939e454273223a1d8d32f41 Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:08:54 +0200 +Subject: [PATCH 16/32] topology: decode: Fix channel map memory allocation +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Memory allocated on the stack was referenced outside of the function scope +caused undefined behaviour. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/ctl.c | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index 90241b6318c5..6e6c1d163aa3 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -1330,7 +1330,6 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg, + void *bin, size_t size) + { + struct snd_soc_tplg_enum_control *ec = bin; +- struct snd_tplg_channel_map_template cmt; + int i; + + if (size < sizeof(*ec)) { +@@ -1375,11 +1374,13 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg, + } + } + +- et->map = &cmt; +- memset(&cmt, 0, sizeof(cmt)); +- cmt.num_channels = ec->num_channels; +- for (i = 0; i < cmt.num_channels; i++) { +- struct snd_tplg_channel_elem *channel = &cmt.channel[i]; ++ et->map = tplg_calloc(heap, sizeof(struct snd_tplg_channel_map_template)); ++ if (!et->map) ++ return -ENOMEM; ++ et->map->num_channels = ec->num_channels; ++ for (i = 0; i < et->map->num_channels; i++) { ++ struct snd_tplg_channel_elem *channel = &et->map->channel[i]; ++ + tplg_log(tplg, 'D', pos + ((void *)&ec->channel[i] - (void *)ec), + "enum: channel size %d", ec->channel[i].size); + channel->reg = ec->channel[i].reg; +-- +2.16.4 + diff --git a/packages/a/alsa/0017-topology-decode-Fix-infinite-loop-in-decoding-enum-c.patch b/packages/a/alsa/0017-topology-decode-Fix-infinite-loop-in-decoding-enum-c.patch new file mode 100644 index 0000000..8e4ce01 --- /dev/null +++ b/packages/a/alsa/0017-topology-decode-Fix-infinite-loop-in-decoding-enum-c.patch @@ -0,0 +1,36 @@ +From 346a5efa87c38a0d5ff9bd5b5d08be27b6c9bfaf Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:08:55 +0200 +Subject: [PATCH 17/32] topology: decode: Fix infinite loop in decoding enum + control +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Accessing memory outside of allocated boundaries caused segmentation fault. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/ctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index 6e6c1d163aa3..0aa49ab82c1e 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -1367,7 +1367,7 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg, + et->texts = tplg_calloc(heap, sizeof(char *) * ec->items); + if (!et->texts) + return -ENOMEM; +- for (i = 0; ec->items; i++) { ++ for (i = 0; i < ec->items; i++) { + unsigned int j = i * sizeof(int) * ENUM_VAL_SIZE; + et->texts[i] = ec->texts[i]; + et->values[i] = (int *)&ec->values[j]; +-- +2.16.4 + diff --git a/packages/a/alsa/0018-topology-decode-Remove-decoding-values-for-enum-cont.patch b/packages/a/alsa/0018-topology-decode-Remove-decoding-values-for-enum-cont.patch new file mode 100644 index 0000000..3dc3f47 --- /dev/null +++ b/packages/a/alsa/0018-topology-decode-Remove-decoding-values-for-enum-cont.patch @@ -0,0 +1,42 @@ +From 11d4a5aa721dce2c3f7430996caf244a73dd5099 Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:08:56 +0200 +Subject: [PATCH 18/32] topology: decode: Remove decoding values for enum + control +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Values have no representation in standard ALSA configuration files, +therefore there is no need to populate them. Also memory for values +wasn't allocated which was causing undefined behaviour. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/ctl.c | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index 0aa49ab82c1e..02e482e7d05d 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -1367,11 +1367,8 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg, + et->texts = tplg_calloc(heap, sizeof(char *) * ec->items); + if (!et->texts) + return -ENOMEM; +- for (i = 0; i < ec->items; i++) { +- unsigned int j = i * sizeof(int) * ENUM_VAL_SIZE; ++ for (i = 0; i < ec->items; i++) + et->texts[i] = ec->texts[i]; +- et->values[i] = (int *)&ec->values[j]; +- } + } + + et->map = tplg_calloc(heap, sizeof(struct snd_tplg_channel_map_template)); +-- +2.16.4 + diff --git a/packages/a/alsa/0019-topology-decode-Add-enum-control-texts-as-separate-e.patch b/packages/a/alsa/0019-topology-decode-Add-enum-control-texts-as-separate-e.patch new file mode 100644 index 0000000..ae1e1a4 --- /dev/null +++ b/packages/a/alsa/0019-topology-decode-Add-enum-control-texts-as-separate-e.patch @@ -0,0 +1,50 @@ +From f1435207a2fbe35bf616c6d58eecd8801dbe5642 Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:08:57 +0200 +Subject: [PATCH 19/32] topology: decode: Add enum control texts as separate + element +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Texts are separate sections that should referenced by enum control. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/ctl.c | 14 +++++++++++--- + 1 file changed, 11 insertions(+), 3 deletions(-) + +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index 02e482e7d05d..1f3984616a65 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -1088,11 +1088,19 @@ int tplg_add_enum(snd_tplg_t *tplg, struct snd_tplg_enum_template *enum_ctl, + } + + if (enum_ctl->texts != NULL) { ++ struct tplg_elem *texts = tplg_elem_new_common(tplg, NULL, ++ enum_ctl->hdr.name, SND_TPLG_TYPE_TEXT); ++ ++ texts->texts->num_items = num_items; + for (i = 0; i < num_items; i++) { +- if (enum_ctl->texts[i] != NULL) +- snd_strlcpy(ec->texts[i], enum_ctl->texts[i], +- SNDRV_CTL_ELEM_ID_NAME_MAXLEN); ++ if (!enum_ctl->texts[i]) ++ continue; ++ snd_strlcpy(ec->texts[i], enum_ctl->texts[i], ++ SNDRV_CTL_ELEM_ID_NAME_MAXLEN); ++ snd_strlcpy(texts->texts->items[i], enum_ctl->texts[i], ++ SNDRV_CTL_ELEM_ID_NAME_MAXLEN); + } ++ tplg_ref_add(elem, SND_TPLG_TYPE_TEXT, enum_ctl->hdr.name); + } + + if (enum_ctl->values != NULL) { +-- +2.16.4 + diff --git a/packages/a/alsa/0020-topology-decode-Fix-printing-texts-section.patch b/packages/a/alsa/0020-topology-decode-Fix-printing-texts-section.patch new file mode 100644 index 0000000..c046797 --- /dev/null +++ b/packages/a/alsa/0020-topology-decode-Fix-printing-texts-section.patch @@ -0,0 +1,33 @@ +From 56a096ca2ceaf1dec944258d961c274e6550b27a Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:08:58 +0200 +Subject: [PATCH 20/32] topology: decode: Fix printing texts section +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/text.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/topology/text.c b/src/topology/text.c +index 507c5450ab14..b899b2813ab4 100644 +--- a/src/topology/text.c ++++ b/src/topology/text.c +@@ -103,7 +103,7 @@ int tplg_save_text(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + return 0; + err = tplg_save_printf(dst, pfx, "'%s'.values [\n", elem->id); + for (i = 0; err >= 0 && i < texts->num_items; i++) +- err = tplg_save_printf(dst, pfx, "\t'%s'\n", texts->items[i][0]); ++ err = tplg_save_printf(dst, pfx, "\t'%s'\n", texts->items[i]); + if (err >= 0) + err = tplg_save_printf(dst, pfx, "]\n"); + return err; +-- +2.16.4 + diff --git a/packages/a/alsa/0021-topology-decode-Change-declaration-of-enum-decoding-.patch b/packages/a/alsa/0021-topology-decode-Change-declaration-of-enum-decoding-.patch new file mode 100644 index 0000000..b4e4bda --- /dev/null +++ b/packages/a/alsa/0021-topology-decode-Change-declaration-of-enum-decoding-.patch @@ -0,0 +1,95 @@ +From c32498603aea7cc2f3fa3f850f9e4ea0f6ce03b2 Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:08:59 +0200 +Subject: [PATCH 21/32] topology: decode: Change declaration of enum decoding + function +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Size constraints are always checked before invoking +tplg_decode_control_enum1. There is no need to validate it twice. +Alos moved debug print about size to invoking function, since now it's it +responsibility to check size. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/ctl.c | 19 +++++-------------- + src/topology/dapm.c | 3 +-- + src/topology/tplg_local.h | 2 +- + 3 files changed, 7 insertions(+), 17 deletions(-) + +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index 1f3984616a65..47db400fd4d1 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -1335,22 +1335,10 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg, + struct list_head *heap, + struct snd_tplg_enum_template *et, + size_t pos, +- void *bin, size_t size) ++ struct snd_soc_tplg_enum_control *ec) + { +- struct snd_soc_tplg_enum_control *ec = bin; + int i; + +- if (size < sizeof(*ec)) { +- SNDERR("enum: small size %d", size); +- return -EINVAL; +- } +- +- tplg_log(tplg, 'D', pos, "enum: size %d private size %d", +- ec->size, ec->priv.size); +- if (size != ec->size + ec->priv.size) { +- SNDERR("enum: unexpected element size %d", size); +- return -EINVAL; +- } + if (ec->num_channels > SND_TPLG_MAX_CHAN || + ec->num_channels > SND_SOC_TPLG_MAX_CHAN) { + SNDERR("enum: unexpected channel count %d", ec->num_channels); +@@ -1427,7 +1415,10 @@ next: + return -EINVAL; + } + +- err = tplg_decode_control_enum1(tplg, &heap, &et, pos, bin, size); ++ tplg_log(tplg, 'D', pos, "enum: size %d private size %d", ++ ec->size, ec->priv.size); ++ ++ err = tplg_decode_control_enum1(tplg, &heap, &et, pos, ec); + if (err >= 0) { + t.enum_ctl = &et; + err = snd_tplg_add_object(tplg, &t); +diff --git a/src/topology/dapm.c b/src/topology/dapm.c +index cd1a87704681..73a9390340c2 100644 +--- a/src/topology/dapm.c ++++ b/src/topology/dapm.c +@@ -972,8 +972,7 @@ next: + err = -EINVAL; + goto retval; + } +- err = tplg_decode_control_enum1(tplg, &heap, et, pos, +- bin, size2); ++ err = tplg_decode_control_enum1(tplg, &heap, et, pos, ec); + break; + case SND_SOC_TPLG_TYPE_BYTES: + bt = tplg_calloc(&heap, sizeof(*bt)); +diff --git a/src/topology/tplg_local.h b/src/topology/tplg_local.h +index 5ace0d1919e1..acb01a831f30 100644 +--- a/src/topology/tplg_local.h ++++ b/src/topology/tplg_local.h +@@ -398,7 +398,7 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg, + struct list_head *heap, + struct snd_tplg_enum_template *et, + size_t pos, +- void *bin, size_t size); ++ struct snd_soc_tplg_enum_control *ec); + int tplg_decode_control_enum(snd_tplg_t *tplg, size_t pos, + struct snd_soc_tplg_hdr *hdr, + void *bin, size_t size); +-- +2.16.4 + diff --git a/packages/a/alsa/0022-topology-decode-Fix-decoding-PCM-formats-and-rates.patch b/packages/a/alsa/0022-topology-decode-Fix-decoding-PCM-formats-and-rates.patch new file mode 100644 index 0000000..420eb18 --- /dev/null +++ b/packages/a/alsa/0022-topology-decode-Fix-decoding-PCM-formats-and-rates.patch @@ -0,0 +1,46 @@ +From acbb0e3b1741107d01f03ee06f7819fd7f90bec4 Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:09:00 +0200 +Subject: [PATCH 22/32] topology: decode: Fix decoding PCM formats and rates +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Not checking _LAST format and rate, which are valid indexes in arrays, +makes data loss while converting binary to standard ALSA configuration +file. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/pcm.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/topology/pcm.c b/src/topology/pcm.c +index b15b95045ab5..db401145f3ec 100644 +--- a/src/topology/pcm.c ++++ b/src/topology/pcm.c +@@ -549,7 +549,7 @@ int tplg_save_stream_caps(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + if (err >= 0 && sc->formats) { + err = tplg_save_printf(dst, pfx, "\tformats '"); + first = 1; +- for (i = 0; err >= 0 && i < SND_PCM_FORMAT_LAST; i++) { ++ for (i = 0; err >= 0 && i <= SND_PCM_FORMAT_LAST; i++) { + if (sc->formats & (1ULL << i)) { + s = snd_pcm_format_name(i); + err = tplg_save_printf(dst, NULL, "%s%s", +@@ -563,7 +563,7 @@ int tplg_save_stream_caps(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + if (err >= 0 && sc->rates) { + err = tplg_save_printf(dst, pfx, "\trates '"); + first = 1; +- for (i = 0; err >= 0 && i < SND_PCM_RATE_LAST; i++) { ++ for (i = 0; err >= 0 && i <= SND_PCM_RATE_LAST; i++) { + if (sc->rates & (1ULL << i)) { + s = get_rate_name(i); + err = tplg_save_printf(dst, NULL, "%s%s", +-- +2.16.4 + diff --git a/packages/a/alsa/0023-topology-decode-Print-sig_bits-field-in-PCM-capabili.patch b/packages/a/alsa/0023-topology-decode-Print-sig_bits-field-in-PCM-capabili.patch new file mode 100644 index 0000000..186960a --- /dev/null +++ b/packages/a/alsa/0023-topology-decode-Print-sig_bits-field-in-PCM-capabili.patch @@ -0,0 +1,38 @@ +From d93b3462996a20951bc0ca753d0304bbbb9850fc Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:09:01 +0200 +Subject: [PATCH 23/32] topology: decode: Print sig_bits field in PCM + capabilities section +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Not printing this field makes data loss while converting from binary +to standard ALSA configuration file. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/pcm.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/topology/pcm.c b/src/topology/pcm.c +index db401145f3ec..49c5eaba8b82 100644 +--- a/src/topology/pcm.c ++++ b/src/topology/pcm.c +@@ -604,6 +604,9 @@ int tplg_save_stream_caps(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + if (err >= 0 && sc->buffer_size_max) + err = tplg_save_printf(dst, pfx, "\tbuffer_size_max %u\n", + sc->buffer_size_max); ++ if (err >= 0 && sc->sig_bits) ++ err = tplg_save_printf(dst, pfx, "\tsig_bits %u\n", ++ sc->sig_bits); + if (err >= 0) + err = tplg_save_printf(dst, pfx, "}\n"); + return err; +-- +2.16.4 + diff --git a/packages/a/alsa/0024-topology-decode-Add-DAI-name-printing.patch b/packages/a/alsa/0024-topology-decode-Add-DAI-name-printing.patch new file mode 100644 index 0000000..7e083e1 --- /dev/null +++ b/packages/a/alsa/0024-topology-decode-Add-DAI-name-printing.patch @@ -0,0 +1,38 @@ +From 6b0fb2bc7e0cfac8e1aedfcad183ab247c85173d Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:09:02 +0200 +Subject: [PATCH 24/32] topology: decode: Add DAI name printing +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +DAI name is a part of topology binary. Not printing makes data loss while +converting from binary to standard ALSA configuration file. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/pcm.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/topology/pcm.c b/src/topology/pcm.c +index 49c5eaba8b82..5a54e1534c95 100644 +--- a/src/topology/pcm.c ++++ b/src/topology/pcm.c +@@ -781,7 +781,9 @@ int tplg_save_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct snd_soc_tplg_pcm *pcm = elem->pcm; + int err = 0; + +- if (pcm->dai_id > 0) ++ if (strlen(pcm->dai_name)) ++ err = tplg_save_printf(dst, pfx, "dai.'%s'.id %u\n", pcm->dai_name, pcm->dai_id); ++ else if (pcm->dai_id > 0) + err = tplg_save_printf(dst, pfx, "dai.0.id %u\n", pcm->dai_id); + return err; + } +-- +2.16.4 + diff --git a/packages/a/alsa/0025-topology-Make-buffer-for-saving-dynamic-size.patch b/packages/a/alsa/0025-topology-Make-buffer-for-saving-dynamic-size.patch new file mode 100644 index 0000000..1071158 --- /dev/null +++ b/packages/a/alsa/0025-topology-Make-buffer-for-saving-dynamic-size.patch @@ -0,0 +1,94 @@ +From d04e72c9a593015952e4858b92ab3f9d821560d9 Mon Sep 17 00:00:00 2001 +From: Piotr Maziarz +Date: Mon, 31 Aug 2020 11:09:03 +0200 +Subject: [PATCH 25/32] topology: Make buffer for saving dynamic size +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Some fields can exceed size limit, e.g. private data has no size +restriction. Therefore it needs to be dynamically increased. + +Signed-off-by: Piotr Maziarz +Reviewed-by: Cezary Rojewski +Reviewed-by: Amadeusz Sławiński +Reviewed-by: Pierre-Louis Bossart +Signed-off-by: Jaroslav Kysela +--- + src/topology/save.c | 34 +++++++++++++++++++++++++++++----- + 1 file changed, 29 insertions(+), 5 deletions(-) + +diff --git a/src/topology/save.c b/src/topology/save.c +index 4ecf86c3ade4..9c74735aea36 100644 +--- a/src/topology/save.c ++++ b/src/topology/save.c +@@ -19,22 +19,43 @@ + #include "tplg_local.h" + + #define SAVE_ALLOC_SHIFT (13) /* 8192 bytes */ ++#define PRINT_BUF_SIZE (1024) ++#define PRINT_BUF_SIZE_MAX (1024 * 1024) + + int tplg_save_printf(char **dst, const char *pfx, const char *fmt, ...) + { + va_list va; +- char buf[1024], *s; ++ char *buf, *s; + size_t n, l, t, pl; ++ int ret = 0; ++ ++ buf = malloc(PRINT_BUF_SIZE); ++ if (!buf) ++ return -ENOMEM; + + if (pfx == NULL) + pfx = ""; + + va_start(va, fmt); +- n = vsnprintf(buf, sizeof(buf), fmt, va); ++ n = vsnprintf(buf, PRINT_BUF_SIZE, fmt, va); + va_end(va); + +- if (n >= sizeof(buf)) +- return -EOVERFLOW; ++ if (n >= PRINT_BUF_SIZE_MAX) { ++ ret = -EOVERFLOW; ++ goto end; ++ } ++ ++ if (n >= PRINT_BUF_SIZE) { ++ char *tmp = realloc(buf, n + 1); ++ if (!tmp) { ++ ret = -ENOMEM; ++ goto end; ++ } ++ buf = tmp; ++ va_start(va, fmt); ++ n = vsnprintf(buf, n + 1, fmt, va); ++ va_end(va); ++ } + + pl = strlen(pfx); + l = *dst ? strlen(*dst) : 0; +@@ -47,7 +68,8 @@ int tplg_save_printf(char **dst, const char *pfx, const char *fmt, ...) + if (s == NULL) { + free(*dst); + *dst = NULL; +- return -ENOMEM; ++ ret = -ENOMEM; ++ goto end; + } + } else { + s = *dst; +@@ -57,6 +79,8 @@ int tplg_save_printf(char **dst, const char *pfx, const char *fmt, ...) + strcpy(s + l, pfx); + strcpy(s + l + pl, buf); + *dst = s; ++end: ++ free(buf); + return 0; + } + +-- +2.16.4 + diff --git a/packages/a/alsa/0026-topology-return-correct-value-in-tplg_save_printf.patch b/packages/a/alsa/0026-topology-return-correct-value-in-tplg_save_printf.patch new file mode 100644 index 0000000..1848b1f --- /dev/null +++ b/packages/a/alsa/0026-topology-return-correct-value-in-tplg_save_printf.patch @@ -0,0 +1,26 @@ +From dc778bade60812a71b98ac827c2c6e3c02f14cf1 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Mon, 31 Aug 2020 13:21:26 +0200 +Subject: [PATCH 26/32] topology: return correct value in tplg_save_printf() + +Signed-off-by: Jaroslav Kysela +--- + src/topology/save.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/topology/save.c b/src/topology/save.c +index 9c74735aea36..16fd694638ef 100644 +--- a/src/topology/save.c ++++ b/src/topology/save.c +@@ -81,7 +81,7 @@ int tplg_save_printf(char **dst, const char *pfx, const char *fmt, ...) + *dst = s; + end: + free(buf); +- return 0; ++ return ret; + } + + int tplg_nice_value_format(char *dst, size_t dst_size, unsigned int value) +-- +2.16.4 + diff --git a/packages/a/alsa/0027-topology-fix-some-gcc10-warnings-labs-signess.patch b/packages/a/alsa/0027-topology-fix-some-gcc10-warnings-labs-signess.patch new file mode 100644 index 0000000..0386342 --- /dev/null +++ b/packages/a/alsa/0027-topology-fix-some-gcc10-warnings-labs-signess.patch @@ -0,0 +1,40 @@ +From 6ca1ddfbcdf97ad46c3767ba314d1144119361fd Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Mon, 31 Aug 2020 13:25:01 +0200 +Subject: [PATCH 27/32] topology: fix some gcc10 warnings (labs, signess) + +Signed-off-by: Jaroslav Kysela +--- + src/topology/builder.c | 2 +- + src/topology/ctl.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/topology/builder.c b/src/topology/builder.c +index 15757668d7d4..f8aba830320e 100644 +--- a/src/topology/builder.c ++++ b/src/topology/builder.c +@@ -55,7 +55,7 @@ static ssize_t write_block_header(snd_tplg_t *tplg, unsigned int type, + " offset 0x%zx is %s by %ld bytes", + tplg->next_hdr_pos, tplg->bin_pos, + tplg->bin_pos > tplg->next_hdr_pos ? "ahead" : "behind", +- labs(tplg->bin_pos - tplg->next_hdr_pos)); ++ tplg->bin_pos - tplg->next_hdr_pos); + return -EINVAL; + } + +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index 47db400fd4d1..1d31b4944abf 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -1363,7 +1363,7 @@ int tplg_decode_control_enum1(snd_tplg_t *tplg, + et->texts = tplg_calloc(heap, sizeof(char *) * ec->items); + if (!et->texts) + return -ENOMEM; +- for (i = 0; i < ec->items; i++) ++ for (i = 0; (unsigned int)i < ec->items; i++) + et->texts[i] = ec->texts[i]; + } + +-- +2.16.4 + diff --git a/packages/a/alsa/0028-topology-fix-sort_config.patch b/packages/a/alsa/0028-topology-fix-sort_config.patch new file mode 100644 index 0000000..77b0640 --- /dev/null +++ b/packages/a/alsa/0028-topology-fix-sort_config.patch @@ -0,0 +1,48 @@ +From 84c6aeef5ca89c0686ae2a9ed90504010f8fe9e6 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Mon, 31 Aug 2020 14:25:56 +0200 +Subject: [PATCH 28/32] topology: fix sort_config() + +The temporary config array must be initialized for all compound types. + +Signed-off-by: Jaroslav Kysela +--- + src/topology/save.c | 14 ++++++-------- + 1 file changed, 6 insertions(+), 8 deletions(-) + +diff --git a/src/topology/save.c b/src/topology/save.c +index 16fd694638ef..631d84b273bf 100644 +--- a/src/topology/save.c ++++ b/src/topology/save.c +@@ -143,7 +143,6 @@ static snd_config_t *sort_config(const char *id, snd_config_t *src) + int index, array, count; + + if (snd_config_get_type(src) != SND_CONFIG_TYPE_COMPOUND) { +- + if (snd_config_copy(&dst, src) >= 0) + return dst; + return NULL; +@@ -155,14 +154,13 @@ static snd_config_t *sort_config(const char *id, snd_config_t *src) + if (a == NULL) + return NULL; + array = snd_config_is_array(src); +- if (array <= 0) { +- index = 0; +- snd_config_for_each(i, next, src) { +- snd_config_t *s = snd_config_iterator_entry(i); +- a[index++] = s; +- } +- qsort(a, count, sizeof(a[0]), _compar); ++ index = 0; ++ snd_config_for_each(i, next, src) { ++ snd_config_t *s = snd_config_iterator_entry(i); ++ a[index++] = s; + } ++ if (array <= 0) ++ qsort(a, count, sizeof(a[0]), _compar); + if (snd_config_make_compound(&dst, id, count == 1)) { + free(a); + return NULL; +-- +2.16.4 + diff --git a/packages/a/alsa/0029-topology-fix-the-unaligned-access.patch b/packages/a/alsa/0029-topology-fix-the-unaligned-access.patch new file mode 100644 index 0000000..020a7fe --- /dev/null +++ b/packages/a/alsa/0029-topology-fix-the-unaligned-access.patch @@ -0,0 +1,159 @@ +From ab73253924ad8d46f94ab1212e0f05ebc2e3dcc5 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Mon, 31 Aug 2020 14:27:26 +0200 +Subject: [PATCH 29/32] topology: fix the unaligned access + +Introduce unaligned_get32/put32 helpers to deal with the +packed structures. + +Use the gcc __BYTE_ORDER__ defines for the endian checks. +It may be improved to support other compilation environment. + +Signed-off-by: Jaroslav Kysela +--- + src/topology/parser.c | 6 ++---- + src/topology/pcm.c | 26 ++++++++++++++------------ + src/topology/tplg_local.h | 13 +++++++++++++ + 3 files changed, 29 insertions(+), 16 deletions(-) + +diff --git a/src/topology/parser.c b/src/topology/parser.c +index 436e48416a43..f34de01bdc53 100644 +--- a/src/topology/parser.c ++++ b/src/topology/parser.c +@@ -427,10 +427,8 @@ void snd_tplg_verbose(snd_tplg_t *tplg, int verbose) + + static bool is_little_endian(void) + { +-#ifdef __BYTE_ORDER +- #if __BYTE_ORDER == __LITTLE_ENDIAN +- return true; +- #endif ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_INT__ == 4 ++ return true; + #endif + return false; + } +diff --git a/src/topology/pcm.c b/src/topology/pcm.c +index 5a54e1534c95..a60ba00d979a 100644 +--- a/src/topology/pcm.c ++++ b/src/topology/pcm.c +@@ -376,19 +376,19 @@ static int split_rate(struct snd_soc_tplg_stream_caps *caps, char *str) + return 0; + } + +-static int parse_unsigned(snd_config_t *n, unsigned int *dst) ++static int parse_unsigned(snd_config_t *n, void *dst) + { + int ival; + + if (tplg_get_integer(n, &ival, 0) < 0) + return -EINVAL; + +- *dst = ival; ++ unaligned_put32(dst, ival); + #if TPLG_DEBUG + { + const char *id; + if (snd_config_get_id(n, &id) >= 0) +- tplg_dbg("\t\t%s: %d", id, *dst); ++ tplg_dbg("\t\t%s: %d", id, ival); + } + #endif + return 0; +@@ -621,7 +621,7 @@ static int tplg_parse_streams(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem = private; + struct snd_soc_tplg_pcm *pcm; + struct snd_soc_tplg_dai *dai; +- unsigned int *playback, *capture; ++ void *playback, *capture; + struct snd_soc_tplg_stream_caps *caps; + const char *id, *value; + int stream; +@@ -651,10 +651,10 @@ static int tplg_parse_streams(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + + if (strcmp(id, "playback") == 0) { + stream = SND_SOC_TPLG_STREAM_PLAYBACK; +- *playback = 1; ++ unaligned_put32(playback, 1); + } else if (strcmp(id, "capture") == 0) { + stream = SND_SOC_TPLG_STREAM_CAPTURE; +- *capture = 1; ++ unaligned_put32(capture, 1); + } else + return -EINVAL; + +@@ -747,6 +747,7 @@ static int tplg_parse_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + snd_config_iterator_t i, next; + snd_config_t *n; + const char *id; ++ unsigned int dai_id; + + snd_config_get_id(cfg, &id); + tplg_dbg("\t\tFE DAI %s:", id); +@@ -761,12 +762,13 @@ static int tplg_parse_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + continue; + + if (strcmp(id, "id") == 0) { +- if (tplg_get_unsigned(n, &pcm->dai_id, 0)) { ++ if (tplg_get_unsigned(n, &dai_id, 0)) { + SNDERR("invalid fe dai ID"); + return -EINVAL; + } + +- tplg_dbg("\t\t\tindex: %d", pcm->dai_id); ++ unaligned_put32(&pcm->dai_id, dai_id); ++ tplg_dbg("\t\t\tindex: %d", dai_id); + } + } + +@@ -790,7 +792,7 @@ int tplg_save_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + + /* parse a flag bit of the given mask */ + static int parse_flag(snd_config_t *n, unsigned int mask_in, +- unsigned int *mask, unsigned int *flags) ++ void *mask, void *flags) + { + int ret; + +@@ -798,11 +800,11 @@ static int parse_flag(snd_config_t *n, unsigned int mask_in, + if (ret < 0) + return ret; + +- *mask |= mask_in; ++ unaligned_put32(mask, unaligned_get32(mask) | mask_in); + if (ret) +- *flags |= mask_in; ++ unaligned_put32(flags, unaligned_get32(flags) | mask_in); + else +- *flags &= ~mask_in; ++ unaligned_put32(flags, unaligned_get32(flags) & (~mask_in)); + + return 0; + } +diff --git a/src/topology/tplg_local.h b/src/topology/tplg_local.h +index acb01a831f30..0c7be2001a63 100644 +--- a/src/topology/tplg_local.h ++++ b/src/topology/tplg_local.h +@@ -225,6 +225,19 @@ struct tplg_table { + extern struct tplg_table tplg_table[]; + extern unsigned int tplg_table_items; + ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_INT__ == 4 ++static inline unsigned int unaligned_get32(void *src) ++{ ++ unsigned int ret; ++ memcpy(&ret, src, sizeof(ret)); ++ return ret; ++} ++static inline void unaligned_put32(void *dst, unsigned int val) ++{ ++ memcpy(dst, &val, sizeof(val)); ++} ++#endif ++ + #define tplg_log(tplg, type, pos, fmt, args...) do { \ + if ((tplg)->verbose) \ + tplg_log_((tplg), (type), (pos), (fmt), ##args); \ +-- +2.16.4 + diff --git a/packages/a/alsa/0030-topology-improve-the-printf-buffer-management.patch b/packages/a/alsa/0030-topology-improve-the-printf-buffer-management.patch new file mode 100644 index 0000000..3bae1bd --- /dev/null +++ b/packages/a/alsa/0030-topology-improve-the-printf-buffer-management.patch @@ -0,0 +1,666 @@ +From 472ab5db67a0ed04de634214773e7b17d10b5415 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela +Date: Mon, 31 Aug 2020 19:44:46 +0200 +Subject: [PATCH 30/32] topology: improve the printf buffer management + +The commit d04e72c9a593015952e4858b92ab3f9d821560d9 introduced +the dynamic printf buffer allocation for each tplg_save_printf() +call. + +Introduce 'struct tplg_buf' which carries extra information about +the temporary printf buffer and the destination buffer to save allocation +requests. + +The printf buffer is also allocated using 1024 bytes chunks. + +A comparison between 'alloc everyting' and 'cache+chunk alloc' for the +random picked topology file: + + 1: 18,620 allocs, 18,620 frees, 7,239,688 bytes allocated + 2: 12,490 allocs, 12,490 frees, 962,568 bytes allocated + +Signed-off-by: Jaroslav Kysela +--- + src/topology/channel.c | 3 +- + src/topology/ctl.c | 14 +++--- + src/topology/dapm.c | 5 ++- + src/topology/data.c | 15 ++++--- + src/topology/ops.c | 6 +-- + src/topology/pcm.c | 18 ++++---- + src/topology/save.c | 108 ++++++++++++++++++++++++++++------------------ + src/topology/text.c | 2 +- + src/topology/tplg_local.h | 56 +++++++++++++----------- + 9 files changed, 130 insertions(+), 97 deletions(-) + +diff --git a/src/topology/channel.c b/src/topology/channel.c +index 47d5ea4c419a..ebdff46968f6 100644 +--- a/src/topology/channel.c ++++ b/src/topology/channel.c +@@ -138,7 +138,8 @@ int tplg_parse_channel(snd_tplg_t *tplg, snd_config_t *cfg, + + int tplg_save_channels(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct snd_soc_tplg_channel *channel, +- unsigned int count, char **dst, const char *pfx) ++ unsigned int count, struct tplg_buf *dst, ++ const char *pfx) + { + struct snd_soc_tplg_channel *c; + const char *s; +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index 1d31b4944abf..a38399631c54 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -105,8 +105,8 @@ int parse_access(snd_config_t *cfg, + + /* Save Access */ + static int tplg_save_access(snd_tplg_t *tplg ATTRIBUTE_UNUSED, +- struct snd_soc_tplg_ctl_hdr *hdr, char **dst, +- const char *pfx) ++ struct snd_soc_tplg_ctl_hdr *hdr, ++ struct tplg_buf *dst, const char *pfx) + { + const char *last; + unsigned int j, count, access, cval; +@@ -399,7 +399,7 @@ int tplg_parse_tlv(snd_tplg_t *tplg, snd_config_t *cfg, + /* save TLV data */ + int tplg_save_tlv(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_ctl_tlv *tlv = elem->tlv; + struct snd_soc_tplg_tlv_dbscale *scale; +@@ -557,7 +557,7 @@ int tplg_parse_control_bytes(snd_tplg_t *tplg, + /* save control bytes */ + int tplg_save_control_bytes(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_bytes_control *be = elem->bytes_ext; + char pfx2[16]; +@@ -697,7 +697,7 @@ int tplg_parse_control_enum(snd_tplg_t *tplg, snd_config_t *cfg, + /* save control eunm */ + int tplg_save_control_enum(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_enum_control *ec = elem->enum_ctrl; + char pfx2[16]; +@@ -858,8 +858,8 @@ int tplg_parse_control_mixer(snd_tplg_t *tplg, + } + + int tplg_save_control_mixer(snd_tplg_t *tplg ATTRIBUTE_UNUSED, +- struct tplg_elem *elem, char **dst, +- const char *pfx) ++ struct tplg_elem *elem, ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_mixer_control *mc = elem->mixer_ctrl; + char pfx2[16]; +diff --git a/src/topology/dapm.c b/src/topology/dapm.c +index 73a9390340c2..46f2f8b3dae5 100644 +--- a/src/topology/dapm.c ++++ b/src/topology/dapm.c +@@ -416,7 +416,8 @@ int tplg_parse_dapm_graph(snd_tplg_t *tplg, snd_config_t *cfg, + } + + /* save DAPM graph */ +-int tplg_save_dapm_graph(snd_tplg_t *tplg, int index, char **dst, const char *pfx) ++int tplg_save_dapm_graph(snd_tplg_t *tplg, int index, ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_dapm_graph_elem *route; + struct list_head *pos; +@@ -669,7 +670,7 @@ int tplg_parse_dapm_widget(snd_tplg_t *tplg, + /* save DAPM widget */ + int tplg_save_dapm_widget(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_dapm_widget *widget = elem->widget; + const char *s; +diff --git a/src/topology/data.c b/src/topology/data.c +index 5742b35773f6..3585af309499 100644 +--- a/src/topology/data.c ++++ b/src/topology/data.c +@@ -121,7 +121,8 @@ int tplg_parse_refs(snd_config_t *cfg, struct tplg_elem *elem, + /* save references */ + int tplg_save_refs(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, unsigned int type, +- const char *id, char **dst, const char *pfx) ++ const char *id, struct tplg_buf *dst, ++ const char *pfx) + { + struct tplg_ref *ref, *last; + struct list_head *pos; +@@ -890,7 +891,7 @@ err: + /* save tuple set */ + static int tplg_save_tuple_set(struct tplg_vendor_tuples *tuples, + unsigned int set_index, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct tplg_tuple_set *set; + struct tplg_tuple *tuple; +@@ -1014,7 +1015,7 @@ static int parse_tuple_sets(snd_config_t *cfg, + /* save tuple sets */ + int tplg_save_tuple_sets(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct tplg_vendor_tuples *tuples = elem->tuples; + unsigned int i; +@@ -1085,7 +1086,7 @@ int tplg_parse_tokens(snd_tplg_t *tplg, snd_config_t *cfg, + /* save vendor tokens */ + int tplg_save_tokens(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct tplg_vendor_tokens *tokens = elem->tokens; + unsigned int i; +@@ -1156,7 +1157,7 @@ int tplg_parse_tuples(snd_tplg_t *tplg, snd_config_t *cfg, + /* save vendor tuples */ + int tplg_save_tuples(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + char pfx2[16]; + int err; +@@ -1242,7 +1243,7 @@ int tplg_parse_manifest_data(snd_tplg_t *tplg, snd_config_t *cfg, + + /* save manifest data */ + int tplg_save_manifest_data(snd_tplg_t *tplg ATTRIBUTE_UNUSED, +- struct tplg_elem *elem, char **dst, ++ struct tplg_elem *elem, struct tplg_buf *dst, + const char *pfx) + { + struct list_head *pos; +@@ -1420,7 +1421,7 @@ int tplg_parse_data(snd_tplg_t *tplg, snd_config_t *cfg, + /* save data element */ + int tplg_save_data(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_private *priv = elem->data; + struct list_head *pos; +diff --git a/src/topology/ops.c b/src/topology/ops.c +index 110eef58851d..da175608557a 100644 +--- a/src/topology/ops.c ++++ b/src/topology/ops.c +@@ -105,8 +105,8 @@ int tplg_parse_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, snd_config_t *cfg, + + /* save control operations */ + int tplg_save_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, +- struct snd_soc_tplg_ctl_hdr *hdr, char **dst, +- const char *pfx) ++ struct snd_soc_tplg_ctl_hdr *hdr, ++ struct tplg_buf *dst, const char *pfx) + { + const char *s; + int err; +@@ -191,7 +191,7 @@ int tplg_parse_ext_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + /* save external control operations */ + int tplg_save_ext_ops(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct snd_soc_tplg_bytes_control *be, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + const char *s; + int err; +diff --git a/src/topology/pcm.c b/src/topology/pcm.c +index a60ba00d979a..191b7a0a92da 100644 +--- a/src/topology/pcm.c ++++ b/src/topology/pcm.c +@@ -538,7 +538,7 @@ int tplg_parse_stream_caps(snd_tplg_t *tplg, + /* save stream caps */ + int tplg_save_stream_caps(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_stream_caps *sc = elem->stream_caps; + const char *s; +@@ -686,7 +686,7 @@ static int tplg_parse_streams(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + /* Save the caps and config of a pcm stream */ + int tplg_save_streams(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + static const char *stream_ids[2] = { + "playback", +@@ -778,7 +778,7 @@ static int tplg_parse_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + /* Save the caps and config of a pcm stream */ + int tplg_save_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_pcm *pcm = elem->pcm; + int err = 0; +@@ -810,7 +810,7 @@ static int parse_flag(snd_config_t *n, unsigned int mask_in, + } + + static int save_flags(unsigned int flags, unsigned int mask, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + static unsigned int flag_masks[3] = { + SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_RATES, +@@ -944,7 +944,7 @@ int tplg_parse_pcm(snd_tplg_t *tplg, snd_config_t *cfg, + /* save PCM */ + int tplg_save_pcm(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_pcm *pcm = elem->pcm; + char pfx2[16]; +@@ -1081,7 +1081,7 @@ int tplg_parse_dai(snd_tplg_t *tplg, snd_config_t *cfg, + /* save DAI */ + int tplg_save_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_dai *dai = elem->dai; + char pfx2[16]; +@@ -1235,7 +1235,7 @@ int tplg_parse_link(snd_tplg_t *tplg, snd_config_t *cfg, + /* save physical link */ + int tplg_save_link(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_link_config *link = elem->link; + char pfx2[16]; +@@ -1315,7 +1315,7 @@ int tplg_parse_cc(snd_tplg_t *tplg, snd_config_t *cfg, + /* save CC */ + int tplg_save_cc(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_link_config *link = elem->link; + char pfx2[16]; +@@ -1611,7 +1611,7 @@ int tplg_parse_hw_config(snd_tplg_t *tplg, snd_config_t *cfg, + /* save hw config */ + int tplg_save_hw_config(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct snd_soc_tplg_hw_config *hc = elem->hw_cfg; + int err; +diff --git a/src/topology/save.c b/src/topology/save.c +index 631d84b273bf..56250af308b2 100644 +--- a/src/topology/save.c ++++ b/src/topology/save.c +@@ -19,25 +19,43 @@ + #include "tplg_local.h" + + #define SAVE_ALLOC_SHIFT (13) /* 8192 bytes */ +-#define PRINT_BUF_SIZE (1024) ++#define PRINT_ALLOC_SHIFT (10) /* 1024 bytes */ + #define PRINT_BUF_SIZE_MAX (1024 * 1024) ++#define NEXT_CHUNK(val, shift) ((((val) >> (shift)) + 1) << (shift)) + +-int tplg_save_printf(char **dst, const char *pfx, const char *fmt, ...) ++void tplg_buf_init(struct tplg_buf *buf) ++{ ++ buf->dst = NULL; ++ buf->dst_len = 0; ++ buf->printf_buf = NULL; ++ buf->printf_buf_size = 0; ++} ++ ++void tplg_buf_free(struct tplg_buf *buf) ++{ ++ free(buf->dst); ++ free(buf->printf_buf); ++} ++ ++char *tplg_buf_detach(struct tplg_buf *buf) ++{ ++ char *ret = buf->dst; ++ free(buf->printf_buf); ++ return ret; ++} ++ ++int tplg_save_printf(struct tplg_buf *dst, const char *pfx, const char *fmt, ...) + { + va_list va; +- char *buf, *s; ++ char *s; + size_t n, l, t, pl; + int ret = 0; + +- buf = malloc(PRINT_BUF_SIZE); +- if (!buf) +- return -ENOMEM; +- + if (pfx == NULL) + pfx = ""; + + va_start(va, fmt); +- n = vsnprintf(buf, PRINT_BUF_SIZE, fmt, va); ++ n = vsnprintf(dst->printf_buf, dst->printf_buf_size, fmt, va); + va_end(va); + + if (n >= PRINT_BUF_SIZE_MAX) { +@@ -45,42 +63,41 @@ int tplg_save_printf(char **dst, const char *pfx, const char *fmt, ...) + goto end; + } + +- if (n >= PRINT_BUF_SIZE) { +- char *tmp = realloc(buf, n + 1); +- if (!tmp) { ++ if (n >= dst->printf_buf_size) { ++ t = NEXT_CHUNK(n + 1, PRINT_ALLOC_SHIFT); ++ s = realloc(dst->printf_buf, t); ++ if (!s) { + ret = -ENOMEM; + goto end; + } +- buf = tmp; ++ dst->printf_buf = s; ++ dst->printf_buf_size = t; + va_start(va, fmt); +- n = vsnprintf(buf, n + 1, fmt, va); ++ n = vsnprintf(dst->printf_buf, n + 1, fmt, va); + va_end(va); + } + + pl = strlen(pfx); +- l = *dst ? strlen(*dst) : 0; ++ l = dst->dst_len; + t = l + pl + n + 1; + /* allocate chunks */ +- if (*dst == NULL || ++ if (dst->dst == NULL || + (l >> SAVE_ALLOC_SHIFT) != (t >> SAVE_ALLOC_SHIFT)) { +- s = realloc(*dst, ((t >> SAVE_ALLOC_SHIFT) + 1) << +- SAVE_ALLOC_SHIFT); ++ s = realloc(dst->dst, NEXT_CHUNK(t, SAVE_ALLOC_SHIFT)); + if (s == NULL) { +- free(*dst); +- *dst = NULL; + ret = -ENOMEM; + goto end; + } + } else { +- s = *dst; ++ s = dst->dst; + } + + if (pl > 0) + strcpy(s + l, pfx); +- strcpy(s + l + pl, buf); +- *dst = s; ++ strcpy(s + l + pl, dst->printf_buf); ++ dst->dst = s; ++ dst->dst_len = t - 1; + end: +- free(buf); + return ret; + } + +@@ -209,7 +226,7 @@ static int tplg_check_quoted(const unsigned char *p) + return 0; + } + +-static int tplg_save_quoted(char **dst, const char *str) ++static int tplg_save_quoted(struct tplg_buf *dst, const char *str) + { + static const char nibble[16] = "0123456789abcdef"; + unsigned char *p, *d, *t; +@@ -263,7 +280,7 @@ static int tplg_save_quoted(char **dst, const char *str) + return tplg_save_printf(dst, NULL, "'%s'", d); + } + +-static int tplg_save_string(char **dst, const char *str, int id) ++static int tplg_save_string(struct tplg_buf *dst, const char *str, int id) + { + const unsigned char *p = (const unsigned char *)str; + +@@ -279,7 +296,7 @@ static int tplg_save_string(char **dst, const char *str, int id) + return tplg_save_printf(dst, NULL, "%s", str); + } + +-static int save_config(char **dst, int level, const char *delim, snd_config_t *src) ++static int save_config(struct tplg_buf *dst, int level, const char *delim, snd_config_t *src) + { + snd_config_iterator_t i, next; + snd_config_t *s; +@@ -400,7 +417,8 @@ retval: + return 0; + } + +-static int tplg_save(snd_tplg_t *tplg, char **dst, int gindex, const char *prefix) ++static int tplg_save(snd_tplg_t *tplg, struct tplg_buf *dst, ++ int gindex, const char *prefix) + { + struct tplg_table *tptr; + struct tplg_elem *elem; +@@ -484,8 +502,6 @@ static int tplg_save(snd_tplg_t *tplg, char **dst, int gindex, const char *prefi + return 0; + + _err: +- free(*dst); +- *dst = NULL; + return err; + } + +@@ -540,9 +556,9 @@ static int tplg_index_groups(snd_tplg_t *tplg, int **indexes) + + int snd_tplg_save(snd_tplg_t *tplg, char **dst, int flags) + { ++ struct tplg_buf buf, buf2; + snd_input_t *in; + snd_config_t *top, *top2; +- char *dst2; + int *indexes, *a; + int err; + +@@ -550,35 +566,41 @@ int snd_tplg_save(snd_tplg_t *tplg, char **dst, int flags) + assert(dst); + *dst = NULL; + ++ tplg_buf_init(&buf); ++ + if (flags & SND_TPLG_SAVE_GROUPS) { + err = tplg_index_groups(tplg, &indexes); + if (err < 0) + return err; + for (a = indexes; err >= 0 && *a >= 0; a++) { +- err = tplg_save_printf(dst, NULL, ++ err = tplg_save_printf(&buf, NULL, + "IndexGroup.%d {\n", + *a); + if (err >= 0) +- err = tplg_save(tplg, dst, *a, "\t"); ++ err = tplg_save(tplg, &buf, *a, "\t"); + if (err >= 0) +- err = tplg_save_printf(dst, NULL, "}\n"); ++ err = tplg_save_printf(&buf, NULL, "}\n"); + } + free(indexes); + } else { +- err = tplg_save(tplg, dst, -1, NULL); ++ err = tplg_save(tplg, &buf, -1, NULL); + } + + if (err < 0) + goto _err; + +- if (*dst == NULL) +- return -EINVAL; ++ if (buf.dst == NULL) { ++ err = -EINVAL; ++ goto _err; ++ } + +- if (flags & SND_TPLG_SAVE_NOCHECK) ++ if (flags & SND_TPLG_SAVE_NOCHECK) { ++ *dst = tplg_buf_detach(&buf); + return 0; ++ } + + /* always load configuration - check */ +- err = snd_input_buffer_open(&in, *dst, strlen(*dst)); ++ err = snd_input_buffer_open(&in, buf.dst, strlen(buf.dst)); + if (err < 0) { + SNDERR("could not create input buffer"); + goto _err; +@@ -610,20 +632,20 @@ int snd_tplg_save(snd_tplg_t *tplg, char **dst, int flags) + top = top2; + } + +- dst2 = NULL; +- err = save_config(&dst2, 0, NULL, top); ++ tplg_buf_init(&buf2); ++ err = save_config(&buf2, 0, NULL, top); + snd_config_delete(top); + if (err < 0) { + SNDERR("could not save configuration"); + goto _err; + } + +- free(*dst); +- *dst = dst2; ++ tplg_buf_free(&buf); ++ *dst = tplg_buf_detach(&buf2); + return 0; + + _err: +- free(*dst); ++ tplg_buf_free(&buf); + *dst = NULL; + return err; + } +diff --git a/src/topology/text.c b/src/topology/text.c +index b899b2813ab4..b07feb999db9 100644 +--- a/src/topology/text.c ++++ b/src/topology/text.c +@@ -93,7 +93,7 @@ int tplg_parse_text(snd_tplg_t *tplg, snd_config_t *cfg, + /* save text data */ + int tplg_save_text(snd_tplg_t *tplg ATTRIBUTE_UNUSED, + struct tplg_elem *elem, +- char **dst, const char *pfx) ++ struct tplg_buf *dst, const char *pfx) + { + struct tplg_texts *texts = elem->texts; + unsigned int i; +diff --git a/src/topology/tplg_local.h b/src/topology/tplg_local.h +index 0c7be2001a63..d553117e2333 100644 +--- a/src/topology/tplg_local.h ++++ b/src/topology/tplg_local.h +@@ -200,6 +200,14 @@ struct map_elem { + int id; + }; + ++/* output buffer */ ++struct tplg_buf { ++ char *dst; ++ size_t dst_len; ++ char *printf_buf; ++ size_t printf_buf_size; ++}; ++ + /* mapping table */ + struct tplg_table { + const char *name; +@@ -214,9 +222,9 @@ struct tplg_table { + void (*free)(void *); + int (*parse)(snd_tplg_t *tplg, snd_config_t *cfg, void *priv); + int (*save)(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *prefix); ++ struct tplg_buf *dst, const char *prefix); + int (*gsave)(snd_tplg_t *tplg, int index, +- char **dst, const char *prefix); ++ struct tplg_buf *dst, const char *prefix); + int (*decod)(snd_tplg_t *tplg, size_t pos, + struct snd_soc_tplg_hdr *hdr, + void *bin, size_t size); +@@ -348,49 +356,49 @@ int tplg_add_dai_object(snd_tplg_t *tplg, snd_tplg_obj_template_t *t); + + int tplg_nice_value_format(char *dst, size_t dst_size, unsigned int value); + +-int tplg_save_printf(char **dst, const char *prefix, const char *fmt, ...); ++int tplg_save_printf(struct tplg_buf *dst, const char *prefix, const char *fmt, ...); + int tplg_save_refs(snd_tplg_t *tplg, struct tplg_elem *elem, unsigned int type, +- const char *id, char **dst, const char *pfx); ++ const char *id, struct tplg_buf *dst, const char *pfx); + int tplg_save_channels(snd_tplg_t *tplg, struct snd_soc_tplg_channel *channel, +- unsigned int channel_count, char **dst, const char *pfx); ++ unsigned int channel_count, struct tplg_buf *dst, const char *pfx); + int tplg_save_ops(snd_tplg_t *tplg, struct snd_soc_tplg_ctl_hdr *hdr, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_ext_ops(snd_tplg_t *tplg, struct snd_soc_tplg_bytes_control *be, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_manifest_data(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_control_mixer(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_control_enum(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_control_bytes(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_tlv(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_data(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_text(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_tokens(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_tuples(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_dapm_graph(snd_tplg_t *tplg, int index, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_dapm_widget(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_link(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_cc(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_pcm(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_hw_config(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_stream_caps(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + int tplg_save_dai(snd_tplg_t *tplg, struct tplg_elem *elem, +- char **dst, const char *pfx); ++ struct tplg_buf *dst, const char *pfx); + + int tplg_decode_template(snd_tplg_t *tplg, + size_t pos, +-- +2.16.4 + diff --git a/packages/a/alsa/0031-control-Improve-general-control-interface-documentat.patch b/packages/a/alsa/0031-control-Improve-general-control-interface-documentat.patch new file mode 100644 index 0000000..a65dc12 --- /dev/null +++ b/packages/a/alsa/0031-control-Improve-general-control-interface-documentat.patch @@ -0,0 +1,111 @@ +From 84185b5c94ec8a214103b8ec02d272f0158c24e6 Mon Sep 17 00:00:00 2001 +From: "Tanjeff-N. Moos" +Date: Wed, 2 Sep 2020 11:27:26 +0200 +Subject: [PATCH 31/32] control: Improve general control interface + documentation. + +Signed-off-by: Tanjeff-N. Moos +Signed-off-by: Takashi Iwai +--- + src/control/control.c | 72 ++++++++++++++++++++++++++++++++++++++++++++------- + 1 file changed, 63 insertions(+), 9 deletions(-) + +diff --git a/src/control/control.c b/src/control/control.c +index 1bcf1ab2e431..497a5399b7e6 100644 +--- a/src/control/control.c ++++ b/src/control/control.c +@@ -31,7 +31,7 @@ + /*! \page control Control interface + +

    Control interface is designed to access primitive controls. There is +-also interface notifying about control and structure changes. ++also an interface for notifying about control and structure changes. + + \section control_general_overview General overview + +@@ -43,20 +43,74 @@ are managed according to below model. + Some element sets can be added to a sound card by drivers in kernel and + userspace applications. + - element +- - An element can be identified by userspace applications. Each element has +- own identical information. ++ - A control element might be a master volume control, for example, or a ++ read-only indicator, such as a sync status. An element has a type (e.g. ++ INTEGER or BOOLEAN) and - depending on the type - min/max values, a step ++ size, a set of possible values (for enums), etc. + - member +- - An element includes some members to have a value. The value of each member +- can be changed by both of userspace applications and drivers in kernel. + +-Each element can be identified by two ways; the numerical number (numid), or the +-combination of interface, device, subdevice, name, and index. ++ - An element includes one or more member(s) to have a value. For ++ example, a stereo volume control element has two members (for ++ left/right). The members share the same properties (e.g. both ++ volume controls have the same min/max values). The value of each ++ member can be changed by both of userspace applications and ++ drivers in kernel. + +-The type of element set is one of integer, integerr64, boolean, enumerators, ++ ++\section identifying_elements Identifying the Elements ++ ++Each element has the following identifying properties: ++ ++ - The numid (a numeric identifier, assigned when the sound card is ++ detected, constant while the sound card is kept connected) ++ ++ - The interface type (e.g. MIXER, CARD or PCM) ++ - The device ++ - The subdevice ++ - Its name ++ - Its index ++ ++An element can be identified either by its numid or by the tuple ++(interface type, device, subdevice, name, index). This tuple is always ++the same (driver updates can change it, but in practice this is ++rare). The numid can change on each boot. In case of an USB sound ++card, the numid can also change when it is reconnected. ++ ++ ++\section element_lists Element Lists ++ ++An element list can be used to obtain a list of all elements of the ++sound card. The list contains generic information (e.g. how many ++elements the card has), and the identifying properties of the elements ++(numid, card, name, ...). See #snd_ctl_elem_list_t to learn more about ++element lists. ++ ++ ++\section working_with_elements Working with Elements ++ ++It is possible to obtain information about an element using the ++snd_ctl_elem_info_*() functions. For enums, the allowed values can be ++obtained, for integers, the min/max values can be obtained, and so ++on. In addition, these functions can report the identifying ++properties. E.g. when the element is addressed using its numid, the ++functions complements the name, index, etc. ++ ++To access the values of a control, use the snd_ctl_elem_value*() ++functions. These allow to get and set the actual values or ++settings. It is also possible to get and set the ID values (such as ++the numid or the name). ++ ++ ++\section element_sets Element Sets ++ ++The type of element set is one of integer, integer64, boolean, enumerators, + bytes and IEC958 structure. This indicates the type of value for each member in + elements included in the element set. + +-When the value of member is changed, corresponding events are transferred to ++ ++\section events Events ++ ++When the value of a member is changed, corresponding events are transferred to + userspace applications. The applications should subscribe any events in advance. + + \section tlv_blob Supplemental data for elements in an element set +-- +2.16.4 + diff --git a/packages/a/alsa/0032-control-Add-documentation-for-snd_ctl_elem_value_.patch b/packages/a/alsa/0032-control-Add-documentation-for-snd_ctl_elem_value_.patch new file mode 100644 index 0000000..cb7f4d3 --- /dev/null +++ b/packages/a/alsa/0032-control-Add-documentation-for-snd_ctl_elem_value_.patch @@ -0,0 +1,828 @@ +From c1e72460de5ddcfdc8b93e73952c6fe9d6f60591 Mon Sep 17 00:00:00 2001 +From: "Tanjeff-N. Moos" +Date: Wed, 2 Sep 2020 11:27:27 +0200 +Subject: [PATCH 32/32] control: Add documentation for snd_ctl_elem_value_*. + +Signed-off-by: Tanjeff-N. Moos +Signed-off-by: Takashi Iwai +--- + include/control.h | 61 ++++++- + src/control/control.c | 454 +++++++++++++++++++++++++++++++++----------------- + 2 files changed, 357 insertions(+), 158 deletions(-) + +diff --git a/include/control.h b/include/control.h +index 9deec6f3dee4..8766f44097ea 100644 +--- a/include/control.h ++++ b/include/control.h +@@ -130,7 +130,53 @@ typedef struct _snd_ctl_elem_list snd_ctl_elem_list_t; + /** CTL element info container */ + typedef struct _snd_ctl_elem_info snd_ctl_elem_info_t; + +-/** CTL element value container */ ++/** CTL element value container ++ * ++ * Contains the value(s) (i.e. members) of a single element. All ++ * values of a given element are of the same type. ++ * ++ * \par Memory management ++ * ++ * To access a value, a snd_ctl_elem_value_t must be allocated using ++ * snd_ctl_elem_value_alloca() or snd_ctl_elem_value_malloc(). When ++ * using the latter, it must be freed again using ++ * snd_ctl_elem_value_free(). ++ * ++ * \par Identifier ++ * ++ * Then, the ID must be filled. It is sufficient to fill only the ++ * numid, if known. Otherwise, interface type, device, subdevice, ++ * name, index must all be given. The following functions can be used ++ * to fill the ID: ++ * ++ * - snd_ctl_elem_value_set_id(): Set the ID. Requires an ++ * snd_ctl_elem_id_t object. ++ * - snd_ctl_elem_value_set_numid(): Set the numid. ++ * - Or use all of the following: ++ * ++ * - snd_ctl_elem_value_set_interface() ++ * - snd_ctl_elem_value_set_device() ++ * - snd_ctl_elem_value_set_subdevice() ++ * - snd_ctl_elem_value_set_name() ++ * - snd_ctl_elem_value_set_index() ++ * ++ * When communicating with the driver (snd_ctl_elem_read(), ++ * snd_ctl_elem_write()), and the numid was given, the interface, ++ * device, ... are filled (even if you set the before). When the numid ++ * is unset (i.e. it is 0), it is filled. ++ * ++ * \par Communicating with the driver ++ * ++ * After the value container was created and filled with the ID of the ++ * desired element, the value(s) can be fetched from the driver (and ++ * thus from the hardware) or written to the driver. ++ * ++ * To fetch a value, use snd_ctl_elem_read(). Thereafter, use the ++ * snd_ctl_elem_value_get_*() functions to obtain the actual value. ++ * ++ * To write a new value, first use a snd_ctl_elem_value_set_*() to set ++ * it, then call snd_ctl_elem_write() to write it to the driver. ++ */ + typedef struct _snd_ctl_elem_value snd_ctl_elem_value_t; + + /** CTL event container */ +@@ -529,11 +575,20 @@ int snd_ctl_elem_add_iec958(snd_ctl_t *ctl, const snd_ctl_elem_id_t *id); + int snd_ctl_elem_remove(snd_ctl_t *ctl, snd_ctl_elem_id_t *id); + + size_t snd_ctl_elem_value_sizeof(void); ++ + /** \hideinitializer +- * \brief allocate an invalid #snd_ctl_elem_value_t using standard alloca +- * \param ptr returned pointer ++ * \brief Allocate an invalid #snd_ctl_elem_value_t on the stack. ++ * ++ * Allocate space for a value object on the stack. The allocated ++ * memory need not be freed, because is on the stack. ++ * ++ * See snd_ctl_elem_value_t for details. ++ * ++ * \param ptr Pointer to a snd_ctl_elem_value_t pointer. The address ++ * of the allocated space will returned here. + */ + #define snd_ctl_elem_value_alloca(ptr) __snd_alloca(ptr, snd_ctl_elem_value) ++ + int snd_ctl_elem_value_malloc(snd_ctl_elem_value_t **ptr); + void snd_ctl_elem_value_free(snd_ctl_elem_value_t *obj); + void snd_ctl_elem_value_clear(snd_ctl_elem_value_t *obj); +diff --git a/src/control/control.c b/src/control/control.c +index 497a5399b7e6..08058c067e28 100644 +--- a/src/control/control.c ++++ b/src/control/control.c +@@ -38,32 +38,39 @@ also an interface for notifying about control and structure changes. + In ALSA control feature, each sound card can have control elements. The elements + are managed according to below model. + +- - element set ++ - Element set ++ + - A set of elements with the same attribute (i.e. name, get/put operations). + Some element sets can be added to a sound card by drivers in kernel and + userspace applications. +- - element ++ ++ - Element ++ + - A control element might be a master volume control, for example, or a + read-only indicator, such as a sync status. An element has a type (e.g. +- INTEGER or BOOLEAN) and - depending on the type - min/max values, a step +- size, a set of possible values (for enums), etc. +- - member ++ SNDRV_CTL_ELEM_TYPE_INTEGER or SNDRV_CTL_ELEM_TYPE_BOOLEAN) and - depending ++ on the type - min/max values, a step size, a set of possible values (for ++ enums), etc. ++ ++ - Member + +- - An element includes one or more member(s) to have a value. For +- example, a stereo volume control element has two members (for +- left/right). The members share the same properties (e.g. both +- volume controls have the same min/max values). The value of each +- member can be changed by both of userspace applications and +- drivers in kernel. ++ - An element usually includes one or more member(s) to have a value. For ++ example, a stereo volume control element has two members (for left/right), ++ while a mono volume has only one member. The member count can be obtained ++ using snd_ctl_elem_info_get_count(). Elements of type ++ "SNDRV_CTL_ELEM_TYPE_BYTES" or "SNDRV_CTL_ELEM_TYPE_IEC958" have no members ++ at all (and thus no member count), they have just a single value. The ++ members share the same properties (e.g. both volume control members have ++ the same min/max values). The value of each member can be changed by both ++ of userspace applications and drivers in kernel. + + +-\section identifying_elements Identifying the Elements ++\section identifying_elements Identifying Elements + + Each element has the following identifying properties: + + - The numid (a numeric identifier, assigned when the sound card is + detected, constant while the sound card is kept connected) +- + - The interface type (e.g. MIXER, CARD or PCM) + - The device + - The subdevice +@@ -95,10 +102,10 @@ on. In addition, these functions can report the identifying + properties. E.g. when the element is addressed using its numid, the + functions complements the name, index, etc. + +-To access the values of a control, use the snd_ctl_elem_value*() +-functions. These allow to get and set the actual values or +-settings. It is also possible to get and set the ID values (such as +-the numid or the name). ++To access the members (i.e. values) of a control, use the ++snd_ctl_elem_value*() functions. These allow to get and set the ++actual values or settings. It is also possible to get and set the ID ++values (such as the numid or the name). + + + \section element_sets Element Sets +@@ -931,10 +938,19 @@ int snd_ctl_elem_remove(snd_ctl_t *ctl, snd_ctl_elem_id_t *id) + } + + /** +- * \brief Get CTL element value +- * \param ctl CTL handle +- * \param data Data of an element. +- * \return 0 on success otherwise a negative error code ++ * \brief Get CTL element value. ++ * ++ * Read information from sound card. You must set the ID of the ++ * element before calling this function. ++ * ++ * See snd_ctl_elem_value_t for details. ++ * ++ * \param ctl CTL handle. ++ * \param data The element value. The ID must be set before calling ++ * the function, and the actual value will be returned ++ * here. ++ * ++ * \return 0 on success otherwise a negative error code. + */ + int snd_ctl_elem_read(snd_ctl_t *ctl, snd_ctl_elem_value_t *data) + { +@@ -943,9 +959,16 @@ int snd_ctl_elem_read(snd_ctl_t *ctl, snd_ctl_elem_value_t *data) + } + + /** +- * \brief Set CTL element value +- * \param ctl CTL handle +- * \param data Data of an element. ++ * \brief Set CTL element value. ++ * ++ * Write new value(s) to the sound card. You must set the ID and the ++ * value of the element before calling this function. ++ * ++ * See snd_ctl_elem_value_t for details. ++ * ++ * \param ctl CTL handle. ++ * \param data The new value. ++ * + * \retval 0 on success + * \retval >0 on success when value was changed + * \retval <0 a negative error code +@@ -2877,9 +2900,16 @@ size_t snd_ctl_elem_value_sizeof() + } + + /** +- * \brief Allocate an invalid #snd_ctl_elem_value_t using standard malloc(3). +- * \param ptr Returned pointer for data of an element. +- * \return 0 on success otherwise negative error code. ++ * \brief Allocate an invalid #snd_ctl_elem_value_t on the heap. ++ * ++ * Allocate space for a value object on the head. The allocated memory ++ * must be freed using snd_ctl_elem_value_free(). ++ * ++ * See snd_ctl_elem_value_t for details. ++ * ++ * \param ptr Pointer to a snd_ctl_elem_value_t pointer. The address ++ * of the allocated space will be returned here. ++ * \return 0 on success, otherwise a negative error code. + */ + int snd_ctl_elem_value_malloc(snd_ctl_elem_value_t **ptr) + { +@@ -2891,8 +2921,10 @@ int snd_ctl_elem_value_malloc(snd_ctl_elem_value_t **ptr) + } + + /** +- * \brief Frees a previously allocated data of an element. +- * \param obj Data of an element. ++ * \brief Free an #snd_ctl_elem_value_t previously allocated using ++ * snd_ctl_elem_value_malloc(). ++ * ++ * \param obj Pointer to the snd_ctl_elem_value_t. + */ + void snd_ctl_elem_value_free(snd_ctl_elem_value_t *obj) + { +@@ -2901,6 +2933,9 @@ void snd_ctl_elem_value_free(snd_ctl_elem_value_t *obj) + + /** + * \brief Clear given data of an element. ++ * ++ * See snd_ctl_elem_value_t for details. ++ * + * \param obj Data of an element. + */ + void snd_ctl_elem_value_clear(snd_ctl_elem_value_t *obj) +@@ -2909,7 +2944,7 @@ void snd_ctl_elem_value_clear(snd_ctl_elem_value_t *obj) + } + + /** +- * \brief Copy two data of elements. ++ * \brief Bitwise copy of a snd_ctl_elem_value_t value. + * \param dst Pointer to destination. + * \param src Pointer to source. + */ +@@ -2921,9 +2956,10 @@ void snd_ctl_elem_value_copy(snd_ctl_elem_value_t *dst, + } + + /** +- * \brief Compare one data of an element to the other. +- * \param left Pointer to first data. +- * \param right Pointer to second data. ++ * \brief Compare two snd_ctl_elem_value_t values, bytewise. ++ * ++ * \param left First value. ++ * \param right Second value. + * \return 0 on match, less than or greater than otherwise, see memcmp(3). + */ + int snd_ctl_elem_value_compare(snd_ctl_elem_value_t *left, +@@ -2934,9 +2970,13 @@ int snd_ctl_elem_value_compare(snd_ctl_elem_value_t *left, + } + + /** +- * \brief Get element identifier from given data of an element. +- * \param obj Data of an element. +- * \param ptr Pointer for element identifier. ++ * \brief Get the element identifier from the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param ptr Pointer to an identifier object. The identifier is ++ * stored there. + */ + void snd_ctl_elem_value_get_id(const snd_ctl_elem_value_t *obj, snd_ctl_elem_id_t *ptr) + { +@@ -2945,9 +2985,12 @@ void snd_ctl_elem_value_get_id(const snd_ctl_elem_value_t *obj, snd_ctl_elem_id_ + } + + /** +- * \brief Get element numeric identifier from given data of an element. +- * \param obj Data of an element. +- * \return Element numeric identifier. ++ * \brief Get the identifiers 'numid' part from the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \return The numid. + */ + unsigned int snd_ctl_elem_value_get_numid(const snd_ctl_elem_value_t *obj) + { +@@ -2956,10 +2999,12 @@ unsigned int snd_ctl_elem_value_get_numid(const snd_ctl_elem_value_t *obj) + } + + /** +- * \brief Get interface part of element identifier from given data of an +- * element. +- * \param obj Data of an element. +- * \return Interface part of element identifier. ++ * \brief Get the identifiers 'interface' part from the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \return The interface part of element identifier. + */ + snd_ctl_elem_iface_t snd_ctl_elem_value_get_interface(const snd_ctl_elem_value_t *obj) + { +@@ -2968,9 +3013,12 @@ snd_ctl_elem_iface_t snd_ctl_elem_value_get_interface(const snd_ctl_elem_value_t + } + + /** +- * \brief Get device part of element identifier from given data of an element. +- * \param obj Data of an element. +- * \return Device part of element identifier. ++ * \brief Get the identifiers 'device' part from the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \return The device part of element identifier. + */ + unsigned int snd_ctl_elem_value_get_device(const snd_ctl_elem_value_t *obj) + { +@@ -2979,10 +3027,12 @@ unsigned int snd_ctl_elem_value_get_device(const snd_ctl_elem_value_t *obj) + } + + /** +- * \brief Get subdevice part of element identifier from given data of an +- * element. +- * \param obj Data of an element. +- * \return Subdevice part of element identifier. ++ * \brief Get the identifiers 'subdevice' part from the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \return The subdevice part of element identifier. + */ + unsigned int snd_ctl_elem_value_get_subdevice(const snd_ctl_elem_value_t *obj) + { +@@ -2991,9 +3041,12 @@ unsigned int snd_ctl_elem_value_get_subdevice(const snd_ctl_elem_value_t *obj) + } + + /** +- * \brief Get name part of element identifier from given data of an element. +- * \param obj Data of an element. +- * \return Name part of element identifier. ++ * \brief Get the identifiers 'name' part from the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \return The "name" part of element identifier. + */ + const char *snd_ctl_elem_value_get_name(const snd_ctl_elem_value_t *obj) + { +@@ -3002,9 +3055,12 @@ const char *snd_ctl_elem_value_get_name(const snd_ctl_elem_value_t *obj) + } + + /** +- * \brief Get index part of element identifier from given data of an element. +- * \param obj Data of an element. +- * \return Index part of element identifier. ++ * \brief Get the identifiers 'index' part from the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \return The index part of element identifier. + */ + unsigned int snd_ctl_elem_value_get_index(const snd_ctl_elem_value_t *obj) + { +@@ -3012,10 +3068,14 @@ unsigned int snd_ctl_elem_value_get_index(const snd_ctl_elem_value_t *obj) + return obj->id.index; + } + ++ + /** +- * \brief Set element identifier to given data of an element. +- * \param obj Data of an element. +- * \param ptr Pointer to an element identifier. ++ * \brief Set the element identifier within the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param ptr The new identifier. + */ + void snd_ctl_elem_value_set_id(snd_ctl_elem_value_t *obj, const snd_ctl_elem_id_t *ptr) + { +@@ -3024,9 +3084,12 @@ void snd_ctl_elem_value_set_id(snd_ctl_elem_value_t *obj, const snd_ctl_elem_id_ + } + + /** +- * \brief Set numeric identifier to given data of an element. +- * \param obj Data of an element. +- * \param val Value for numeric identifier. ++ * \brief Set the identifiers 'numid' part within the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param val The new numid. + */ + void snd_ctl_elem_value_set_numid(snd_ctl_elem_value_t *obj, unsigned int val) + { +@@ -3035,9 +3098,12 @@ void snd_ctl_elem_value_set_numid(snd_ctl_elem_value_t *obj, unsigned int val) + } + + /** +- * \brief Set interface part of element identifier to given data of an element. +- * \param obj Data of an element. +- * \param val Value for interface part of element identifier. ++ * \brief Set the identifiers 'interface' part within the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param val The new interface. + */ + void snd_ctl_elem_value_set_interface(snd_ctl_elem_value_t *obj, snd_ctl_elem_iface_t val) + { +@@ -3046,9 +3112,12 @@ void snd_ctl_elem_value_set_interface(snd_ctl_elem_value_t *obj, snd_ctl_elem_if + } + + /** +- * \brief Set device part of element identifier to given data of an element. +- * \param obj Data of an element. +- * \param val Value for device part of element identifier. ++ * \brief Set the identifiers 'device' part within the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param val The new device. + */ + void snd_ctl_elem_value_set_device(snd_ctl_elem_value_t *obj, unsigned int val) + { +@@ -3057,9 +3126,12 @@ void snd_ctl_elem_value_set_device(snd_ctl_elem_value_t *obj, unsigned int val) + } + + /** +- * \brief Set subdevice part of element identifier to given data of an element. +- * \param obj Data of an element. +- * \param val Value for subdevice part of element identifier. ++ * \brief Set the identifiers 'subdevice' part within the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param val The new subdevice. + */ + void snd_ctl_elem_value_set_subdevice(snd_ctl_elem_value_t *obj, unsigned int val) + { +@@ -3068,9 +3140,12 @@ void snd_ctl_elem_value_set_subdevice(snd_ctl_elem_value_t *obj, unsigned int va + } + + /** +- * \brief Set name part of element identifier to given data of an element. +- * \param obj Data of an element. +- * \param val Value for name part of element identifier, ++ * \brief Set the identifiers 'name' part within the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param val The new name. + */ + void snd_ctl_elem_value_set_name(snd_ctl_elem_value_t *obj, const char *val) + { +@@ -3079,9 +3154,12 @@ void snd_ctl_elem_value_set_name(snd_ctl_elem_value_t *obj, const char *val) + } + + /** +- * \brief Set index part of element identifier to given data of an element. +- * \param obj Data of an element. +- * \param val Value for index part of element identifier. ++ * \brief Set the identifiers 'index' part within the given element value. ++ * ++ * See snd_ctl_elem_value_t for more details. ++ * ++ * \param obj The element value. ++ * \param val The new index. + */ + void snd_ctl_elem_value_set_index(snd_ctl_elem_value_t *obj, unsigned int val) + { +@@ -3090,12 +3168,16 @@ void snd_ctl_elem_value_set_index(snd_ctl_elem_value_t *obj, unsigned int val) + } + + /** +- * \brief Get value of a specified member from given data as an element of +- * boolean type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \return Value for the member. +- */ ++ * \brief Get an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_BOOLEAN. It ++ * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref ++ * control for more details. ++ * ++ * \param obj The element value object ++ * \param idx The index of the member. ++ * \return The members value. ++ */ + int snd_ctl_elem_value_get_boolean(const snd_ctl_elem_value_t *obj, unsigned int idx) + { + assert(obj); +@@ -3104,12 +3186,16 @@ int snd_ctl_elem_value_get_boolean(const snd_ctl_elem_value_t *obj, unsigned int + } + + /** +- * \brief Get value of a specified member from given data as an element of +- * integer type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \return Value for the member. +- */ ++ * \brief Get an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_INTEGER. It ++ * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref ++ * control for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the member. ++ * \return The members value. ++ */ + long snd_ctl_elem_value_get_integer(const snd_ctl_elem_value_t *obj, unsigned int idx) + { + assert(obj); +@@ -3118,12 +3204,16 @@ long snd_ctl_elem_value_get_integer(const snd_ctl_elem_value_t *obj, unsigned in + } + + /** +- * \brief Get value of a specified member from given data as an element of +- * integer64 type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \return Value for the member. +- */ ++ * \brief Get an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_INTEGER64. It ++ * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref ++ * control for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the member. ++ * \return The members value. ++ */ + long long snd_ctl_elem_value_get_integer64(const snd_ctl_elem_value_t *obj, unsigned int idx) + { + assert(obj); +@@ -3132,12 +3222,16 @@ long long snd_ctl_elem_value_get_integer64(const snd_ctl_elem_value_t *obj, unsi + } + + /** +- * \brief Get value of a specified member from given data as an element of +- * enumerated type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \return Value for the member. This is an index of name set in the element. +- */ ++ * \brief Get an element members value. ++ * ++ * Use this function if the element is of type ++ * SNDRV_CTL_ELEM_TYPE_ENUMERATED. It returns the index of the active item. See ++ * \ref snd_ctl_elem_value_t and \ref control for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the requested member. ++ * \return The index of the active item. ++ */ + unsigned int snd_ctl_elem_value_get_enumerated(const snd_ctl_elem_value_t *obj, unsigned int idx) + { + assert(obj); +@@ -3146,12 +3240,16 @@ unsigned int snd_ctl_elem_value_get_enumerated(const snd_ctl_elem_value_t *obj, + } + + /** +- * \brief Get value of a specified member from given data as an element of +- * bytes type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \return Value for the member. +- */ ++ * \brief Get an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_BYTE. It ++ * returns the value of one member. See \ref snd_ctl_elem_value_t and \ref ++ * control for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the member. ++ * \return The members value. ++ */ + unsigned char snd_ctl_elem_value_get_byte(const snd_ctl_elem_value_t *obj, unsigned int idx) + { + assert(obj); +@@ -3160,12 +3258,16 @@ unsigned char snd_ctl_elem_value_get_byte(const snd_ctl_elem_value_t *obj, unsig + } + + /** +- * \brief Set value of a specified member to given data as an element of +- * boolean type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \param val Value for the member. +- */ ++ * \brief Set an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_BOOLEAN. It ++ * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control ++ * for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the member. ++ * \param val The new value. ++ */ + void snd_ctl_elem_value_set_boolean(snd_ctl_elem_value_t *obj, unsigned int idx, long val) + { + assert(obj); +@@ -3174,12 +3276,16 @@ void snd_ctl_elem_value_set_boolean(snd_ctl_elem_value_t *obj, unsigned int idx, + } + + /** +- * \brief Set value of a specified member to given data as an element of +- * integer type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \param val Value for the member. +- */ ++ * \brief Set an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_INTEGER. It ++ * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control ++ * for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the member. ++ * \param val The new value. ++ */ + void snd_ctl_elem_value_set_integer(snd_ctl_elem_value_t *obj, unsigned int idx, long val) + { + assert(obj); +@@ -3188,12 +3294,16 @@ void snd_ctl_elem_value_set_integer(snd_ctl_elem_value_t *obj, unsigned int idx, + } + + /** +- * \brief Set value of a specified member to given data as an element of +- * integer64 type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \param val Value for the member. +- */ ++ * \brief Set an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_INTEGER64. It ++ * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control ++ * for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the member. ++ * \param val The new value. ++ */ + void snd_ctl_elem_value_set_integer64(snd_ctl_elem_value_t *obj, unsigned int idx, long long val) + { + assert(obj); +@@ -3202,12 +3312,16 @@ void snd_ctl_elem_value_set_integer64(snd_ctl_elem_value_t *obj, unsigned int id + } + + /** +- * \brief Set value of a specified member to given data as an element of +- * enumerated type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \param val Value for the member. +- */ ++ * \brief Set an element members value. ++ * ++ * Use this function if the element is of type ++ * SNDRV_CTL_ELEM_TYPE_ENUMERATED. It activates the specified item. See \ref ++ * snd_ctl_elem_value_t and \ref control for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the requested member. ++ * \param val The new index of the item to be activated. ++ */ + void snd_ctl_elem_value_set_enumerated(snd_ctl_elem_value_t *obj, unsigned int idx, unsigned int val) + { + assert(obj); +@@ -3216,12 +3330,16 @@ void snd_ctl_elem_value_set_enumerated(snd_ctl_elem_value_t *obj, unsigned int i + } + + /** +- * \brief Set value for a specified member to given data as an element of byte +- * type. +- * \param obj Data of an element. +- * \param idx Index of member in the element. +- * \param val Value for the member. +- */ ++ * \brief Set an element members value. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_BYTE. It ++ * sets the value of one member. See \ref snd_ctl_elem_value_t and \ref control ++ * for more details. ++ * ++ * \param obj The element value object. ++ * \param idx The index of the member. ++ * \param val The new value. ++ */ + void snd_ctl_elem_value_set_byte(snd_ctl_elem_value_t *obj, unsigned int idx, unsigned char val) + { + assert(obj); +@@ -3230,10 +3348,17 @@ void snd_ctl_elem_value_set_byte(snd_ctl_elem_value_t *obj, unsigned int idx, un + } + + /** +- * \brief Set values to given data as an element of bytes type. +- * \param obj Data of an element. +- * \param data Pointer for byte array. +- * \param size The number of bytes included in the memory block. ++ * \brief Replace the data stored within the element. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_BYTES. It ++ * replaces the data stored in the element. Note that "bytes" elements don't ++ * have members. They have only one single block of data. ++ * ++ * See \ref snd_ctl_elem_value_t and \ref control for more details. ++ * ++ * \param obj The element value object. ++ * \param data Pointer to the new data. ++ * \param size The size of the new data, in bytes. + */ + void snd_ctl_elem_set_bytes(snd_ctl_elem_value_t *obj, void *data, size_t size) + { +@@ -3243,10 +3368,17 @@ void snd_ctl_elem_set_bytes(snd_ctl_elem_value_t *obj, void *data, size_t size) + } + + /** +- * \brief Get memory block from given data as an element of bytes type. +- * \param obj Data of an element. +- * \return Pointer for byte array. +- */ ++ * \brief Get the data stored within the element. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_BYTES. It ++ * returns the data stored in the element. Note that "bytes" elements don't have ++ * members. They have only one single block of data. ++ * ++ * See \ref snd_ctl_elem_value_t and \ref control for more details. ++ * ++ * \param obj The element value object. ++ * \return Pointer to the elements data. ++ */ + const void * snd_ctl_elem_value_get_bytes(const snd_ctl_elem_value_t *obj) + { + assert(obj); +@@ -3254,11 +3386,17 @@ const void * snd_ctl_elem_value_get_bytes(const snd_ctl_elem_value_t *obj) + } + + /** +- * \brief Get value from given data to given pointer as an element of IEC958 +- * type. +- * \param obj Data of an element. +- * \param ptr Pointer to IEC958 data. +- */ ++ * \brief Get an elements IEC958 data. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_IEC958. Note that ++ * "IEC958" elements don't have members. They have only one single ++ * IEC958 information block. ++ * ++ * See \ref snd_ctl_elem_value_t and \ref control for more details. ++ * ++ * \param obj The element value object. ++ * \param ptr Pointer to an IEC958 structure. The data is stored there. ++ */ + void snd_ctl_elem_value_get_iec958(const snd_ctl_elem_value_t *obj, snd_aes_iec958_t *ptr) + { + assert(obj && ptr); +@@ -3266,11 +3404,17 @@ void snd_ctl_elem_value_get_iec958(const snd_ctl_elem_value_t *obj, snd_aes_iec9 + } + + /** +- * \brief Set value from given pointer to given data as an element of IEC958 +- * type. +- * \param obj Data of an element. +- * \param ptr Pointer to IEC958 data. +- */ ++ * \brief Set an elements IEC958 data. ++ * ++ * Use this function if the element is of type SNDRV_CTL_ELEM_TYPE_IEC958. Note ++ * that "IEC958" elements don't have members. They have only one single IEC958 ++ * information block. ++ * ++ * See \ref snd_ctl_elem_value_t and \ref control for more details. ++ * ++ * \param obj The element value object. ++ * \param ptr Pointer to the new IEC958 data. ++ */ + void snd_ctl_elem_value_set_iec958(snd_ctl_elem_value_t *obj, const snd_aes_iec958_t *ptr) + { + assert(obj && ptr); +-- +2.16.4 + diff --git a/packages/a/alsa/alsa.changes b/packages/a/alsa/alsa.changes index 3240adb..91e769e 100644 --- a/packages/a/alsa/alsa.changes +++ b/packages/a/alsa/alsa.changes @@ -1,4 +1,47 @@ ------------------------------------------------------------------- +Tue Sep 29 08:57:00 UTC 2020 - Guillaume GARDET + +- Enable topology support for aarch64 + +------------------------------------------------------------------- +Wed Sep 23 16:49:23 CEST 2020 - tiwai@suse.de + +- Backport upstream fixes: + 0001-ucm-substitution-remove-duplicate-allow_empty-assign.patch + 0002-ucm-fix-parse_get_safe_name-safe-name-must-be-checke.patch + 0003-ucm-substitute-the-merged-tree-completely.patch + 0004-ctl-improve-documentation-for-identifier-of-control-.patch + 0005-pcm-dmix-make-lockless-operation-optional.patch + 0006-pcm-dmix-Fix-semaphore-usage-with-lockless-operation.patch + 0007-pcm-iec958-implement-HDMI-HBR-audio-formatting.patch + 0008-pcm-iec958-set-channel-status-bits-according-to-rate.patch + 0009-conf-pcm-USB-Added-S-PDIF-fix-for-Asus-Xonar-SE.patch + 0010-control-ctlparse-fix-enum-values-in-or.patch + 0011-conf-USB-Audio-Disable-IEC958-on-Lenovo-ThinkStation.patch + 0012-pcm-dmix-fix-access-to-sum-buffer-in-non-interleaved.patch + 0014-control-Add-documentation-for-snd_ctl_elem_list_.patch + 0015-conf-quote-also-strings-with-and-characters-in-strin.patch + 0016-topology-decode-Fix-channel-map-memory-allocation.patch + 0017-topology-decode-Fix-infinite-loop-in-decoding-enum-c.patch + 0018-topology-decode-Remove-decoding-values-for-enum-cont.patch + 0019-topology-decode-Add-enum-control-texts-as-separate-e.patch + 0020-topology-decode-Fix-printing-texts-section.patch + 0021-topology-decode-Change-declaration-of-enum-decoding-.patch + 0022-topology-decode-Fix-decoding-PCM-formats-and-rates.patch + 0023-topology-decode-Print-sig_bits-field-in-PCM-capabili.patch + 0024-topology-decode-Add-DAI-name-printing.patch + 0025-topology-Make-buffer-for-saving-dynamic-size.patch + 0026-topology-return-correct-value-in-tplg_save_printf.patch + 0027-topology-fix-some-gcc10-warnings-labs-signess.patch + 0028-topology-fix-sort_config.patch + 0029-topology-fix-the-unaligned-access.patch + 0030-topology-improve-the-printf-buffer-management.patch + 0031-control-Improve-general-control-interface-documentat.patch + 0032-control-Add-documentation-for-snd_ctl_elem_value_.patch +- Build topology library conditionally; + currently it's supported only for little-endian + +------------------------------------------------------------------- Thu Jul 9 16:01:13 CEST 2020 - tiwai@suse.de - Update to alsa-lib 1.2.3.2: diff --git a/packages/a/alsa/alsa.spec b/packages/a/alsa/alsa.spec index ebd9fd8..e278abe 100644 --- a/packages/a/alsa/alsa.spec +++ b/packages/a/alsa/alsa.spec @@ -25,6 +25,12 @@ %define _udevrulesdir /lib/udev/rules.d/ %endif +%ifarch %ix86 x86_64 %arm aarch64 ppc64le +%define enable_topology 1 +%else +%define enable_topology 0 +%endif + Name: alsa Version: 1.2.3.2 Release: 0 @@ -47,6 +53,37 @@ Source30: all_notes_off Source31: all_notes_off.bin Source32: all_notes_off.mid Source34: alsa-init.sh +Patch1: 0001-ucm-substitution-remove-duplicate-allow_empty-assign.patch +Patch2: 0002-ucm-fix-parse_get_safe_name-safe-name-must-be-checke.patch +Patch3: 0003-ucm-substitute-the-merged-tree-completely.patch +Patch4: 0004-ctl-improve-documentation-for-identifier-of-control-.patch +Patch5: 0005-pcm-dmix-make-lockless-operation-optional.patch +Patch6: 0006-pcm-dmix-Fix-semaphore-usage-with-lockless-operation.patch +Patch7: 0007-pcm-iec958-implement-HDMI-HBR-audio-formatting.patch +Patch8: 0008-pcm-iec958-set-channel-status-bits-according-to-rate.patch +Patch9: 0009-conf-pcm-USB-Added-S-PDIF-fix-for-Asus-Xonar-SE.patch +Patch10: 0010-control-ctlparse-fix-enum-values-in-or.patch +Patch11: 0011-conf-USB-Audio-Disable-IEC958-on-Lenovo-ThinkStation.patch +Patch12: 0012-pcm-dmix-fix-access-to-sum-buffer-in-non-interleaved.patch +Patch14: 0014-control-Add-documentation-for-snd_ctl_elem_list_.patch +Patch15: 0015-conf-quote-also-strings-with-and-characters-in-strin.patch +Patch16: 0016-topology-decode-Fix-channel-map-memory-allocation.patch +Patch17: 0017-topology-decode-Fix-infinite-loop-in-decoding-enum-c.patch +Patch18: 0018-topology-decode-Remove-decoding-values-for-enum-cont.patch +Patch19: 0019-topology-decode-Add-enum-control-texts-as-separate-e.patch +Patch20: 0020-topology-decode-Fix-printing-texts-section.patch +Patch21: 0021-topology-decode-Change-declaration-of-enum-decoding-.patch +Patch22: 0022-topology-decode-Fix-decoding-PCM-formats-and-rates.patch +Patch23: 0023-topology-decode-Print-sig_bits-field-in-PCM-capabili.patch +Patch24: 0024-topology-decode-Add-DAI-name-printing.patch +Patch25: 0025-topology-Make-buffer-for-saving-dynamic-size.patch +Patch26: 0026-topology-return-correct-value-in-tplg_save_printf.patch +Patch27: 0027-topology-fix-some-gcc10-warnings-labs-signess.patch +Patch28: 0028-topology-fix-sort_config.patch +Patch29: 0029-topology-fix-the-unaligned-access.patch +Patch30: 0030-topology-improve-the-printf-buffer-management.patch +Patch31: 0031-control-Improve-general-control-interface-documentat.patch +Patch32: 0032-control-Add-documentation-for-snd_ctl_elem_value_.patch # rest suse fixes Patch101: alsa-lib-ignore-non-accessible-ALSA_CONFIG_PATH.patch BuildRequires: doxygen @@ -88,6 +125,7 @@ Provides: alsadev = %{version} This package contains all necessary include files and libraries needed to develop applications that require ALSA. +%if %enable_topology %package topology-devel Summary: Header files for ALSA topology development License: LGPL-2.1-or-later @@ -98,6 +136,7 @@ Requires: libatopology2 = %{version} %description topology-devel This package contains all necessary include files and libraries needed to develop applications that require ALSA topology. +%endif %package docs Summary: Additional Package Documentation for ALSA @@ -121,6 +160,7 @@ Provides: alsa-lib This package contains the library for ALSA, Advanced Linux Sound Architecture. +%if %enable_topology %package -n libatopology2 Summary: ALSA Topology Library License: LGPL-2.1-or-later @@ -128,9 +168,41 @@ Group: System/Libraries %description -n libatopology2 This package contains the library for ALSA topology support. +%endif %prep %setup -q -n alsa-lib-%{version} +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 +%patch12 -p1 +%patch14 -p1 +%patch15 -p1 +%patch16 -p1 +%patch17 -p1 +%patch18 -p1 +%patch19 -p1 +%patch20 -p1 +%patch21 -p1 +%patch22 -p1 +%patch23 -p1 +%patch24 -p1 +%patch25 -p1 +%patch26 -p1 +%patch27 -p1 +%patch28 -p1 +%patch29 -p1 +%patch30 -p1 +%patch31 -p1 +%patch32 -p1 %patch101 -p1 %build @@ -144,6 +216,9 @@ autoreconf -fi --enable-symbolic-functions \ --disable-aload \ --disable-alisp \ +%if !%enable_topology + --disable-topology \ +%endif --disable-python make V=1 %{?_smp_mflags} # run doxygen @@ -156,6 +231,9 @@ make -C doc doc %{?_smp_mflags} rm -f %{buildroot}%{_libdir}/*.*a # rm -f %{buildroot}%{_libdir}/alsa-lib/smixer/*.*a rm -f %{buildroot}%{_bindir}/aserver +%if !%enable_topology +rm -f %{buildroot}%{_libdir}/pkgconfig/alsa-topology.pc +%endif # # install helper scripts mkdir -p %{buildroot}%{_bindir} @@ -242,8 +320,10 @@ exit 0 %post -n libasound2 -p /sbin/ldconfig %postun -n libasound2 -p /sbin/ldconfig +%if %enable_topology %post -n libatopology2 -p /sbin/ldconfig %postun -n libatopology2 -p /sbin/ldconfig +%endif %files %defattr(-, root, root) @@ -266,16 +346,20 @@ exit 0 %{_libdir}/libasound.so %{_includedir}/sys/* %{_includedir}/alsa +%if %enable_topology %exclude %{_includedir}/alsa/topology.h +%endif %{_includedir}/asoundlib.h %{_datadir}/aclocal/*.m4 %{_libdir}/pkgconfig/alsa.pc +%if %enable_topology %files topology-devel %defattr(-, root, root) %{_libdir}/libatopology.so %{_includedir}/alsa/topology.h %{_libdir}/pkgconfig/alsa-topology.pc +%endif %files docs %defattr(-, root, root) @@ -286,8 +370,10 @@ exit 0 %{_libdir}/libasound.so.* %{_datadir}/alsa +%if %enable_topology %files -n libatopology2 %defattr(-, root, root) %{_libdir}/libatopology.so.* +%endif %changelog diff --git a/packages/b/boost/.files b/packages/b/boost/.files index ab8508f..608c5e7 100644 Binary files a/packages/b/boost/.files and b/packages/b/boost/.files differ diff --git a/packages/b/boost/.rev b/packages/b/boost/.rev index 1df38d9..8452f00 100644 --- a/packages/b/boost/.rev +++ b/packages/b/boost/.rev @@ -1288,4 +1288,12 @@ Boost Software License 1.0 is available in SPDX format on http://www.spdx.org/li serialization library (bsc#1176597) 834901 + + ac886af0fd69d3eea74df2212d1bbb64 + 1.74.0 + + dimstar_suse + + 838553 + diff --git a/packages/b/boost/boost.changes b/packages/b/boost/boost.changes index 973d02f..c22c908 100644 --- a/packages/b/boost/boost.changes +++ b/packages/b/boost/boost.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Sep 29 12:20:56 UTC 2020 - Adam Majer + +- serialization_missing_includes.patch: Add additional missing + includes in the serialization library + +------------------------------------------------------------------- Wed Sep 16 11:57:48 UTC 2020 - Adam Majer - serialization_missing_includes.patch: Add missing includes in the diff --git a/packages/b/boost/serialization_missing_includes.patch b/packages/b/boost/serialization_missing_includes.patch index 088881b..8b5975a 100644 --- a/packages/b/boost/serialization_missing_includes.patch +++ b/packages/b/boost/serialization_missing_includes.patch @@ -10,3 +10,27 @@ Index: boost_1_74_0/boost/serialization/set.hpp #include #include +Index: boost_1_74_0/boost/serialization/unordered_map.hpp +=================================================================== +--- boost_1_74_0.orig/boost/serialization/unordered_map.hpp ++++ boost_1_74_0/boost/serialization/unordered_map.hpp +@@ -22,6 +22,7 @@ + + #include + ++#include + #include + #include + #include +Index: boost_1_74_0/boost/serialization/list.hpp +=================================================================== +--- boost_1_74_0.orig/boost/serialization/list.hpp ++++ boost_1_74_0/boost/serialization/list.hpp +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + namespace boost { + namespace serialization { diff --git a/packages/c/cmake/.files b/packages/c/cmake/.files index 2717d39..c133969 100644 Binary files a/packages/c/cmake/.files and b/packages/c/cmake/.files differ diff --git a/packages/c/cmake/.rev b/packages/c/cmake/.rev index e75a241..e4f494d 100644 --- a/packages/c/cmake/.rev +++ b/packages/c/cmake/.rev @@ -1587,4 +1587,12 @@ Adjust cmake-gui.spec so it uses 2.8.12.1 (forwarded request 208241 from sumski) Automatic submission by obs-autosubmit 835798 + + 98b06553dbb03bf3e239d7ba2e9d9a62 + 3.18.3 + + dimstar_suse + Automatic submission by obs-autosubmit + 838686 + diff --git a/packages/c/cmake/cmake-3.18.2-SHA-256.txt b/packages/c/cmake/cmake-3.18.2-SHA-256.txt deleted file mode 100644 index db056ed..0000000 --- a/packages/c/cmake/cmake-3.18.2-SHA-256.txt +++ /dev/null @@ -1,10 +0,0 @@ -45960e10378c611a00d2b9e76ab88d40e308ea066b25cae694c55732912283a3 cmake-3.18.2-Darwin-x86_64.dmg -7cf5525169b723e6b7544a44c391c36d855df3b51355d60e3aed53d640b8569c cmake-3.18.2-Darwin-x86_64.tar.gz -9d8379f161381d0575afde03adea2643d734287a43504e1f98ae02fc7a47b24b cmake-3.18.2-Linux-x86_64.sh -7b73ef901eb9fe615977a4f2254521cf9ee9da7efcd20c621a61ead51a870948 cmake-3.18.2-Linux-x86_64.tar.gz -3e8b3c690b82402fa01b5e1f7d6155dbb9ae590646e447105620df6cd3a28d4f cmake-3.18.2-win32-x86.msi -209c7e3cf0eb7e83801858397e48322479eaacbf296b8c02d4d7d4614b1ce5e3 cmake-3.18.2-win32-x86.zip -bda320e0fde5a25dd30a0544e7f04ccf55375b36644b06878ef04b00f035de9e cmake-3.18.2-win64-x64.msi -5f4ec834fbd9b62fbf73bc48ed459fa2ea6a86c403106c90fedc2ac76d51612d cmake-3.18.2-win64-x64.zip -5d4e40fc775d3d828c72e5c45906b4d9b59003c9433ff1b36a1cb552bbd51d7e cmake-3.18.2.tar.gz -ccffbd2e983a604ac1b95433e751da8c11e552bbc1e138a953f23fd3e6c594d1 cmake-3.18.2.zip diff --git a/packages/c/cmake/cmake-3.18.2-SHA-256.txt.asc b/packages/c/cmake/cmake-3.18.2-SHA-256.txt.asc deleted file mode 100644 index a899f89..0000000 --- a/packages/c/cmake/cmake-3.18.2-SHA-256.txt.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCgAdFiEExsJlMku+vcNQtRPQLSzvEDSSFoQFAl8+eLAACgkQLSzvEDSS -FoSD4BAAifnXs10NmTlWo0ImN6jBvlRlvYvgNz2sbgj1625TheNwYPd1Sc5ATgwz -2AuccngwDfYdBwTNBbLCBtUOzG967O1Cph6pVu7rGR61Bu6P4Q6H96rpqkFuSX7F -74LMfDWryT3e+qeoKAfCrdiFHmLU9j7sR73T73fZ2dNwgcUHiF+8NxEGUoLhbAiJ -FTfd6io5l8y+div6CeQuyPPfAV47jvb3DubR99rBVFr3b3ANWKYASRI/nvkmiQhI -X+E8sIabfpAP4xpY+hhKIPWukioiehTlgjRfzbIYSIbelmQXio/2oWuQY4vOMDua -t813wH9grHFNCLGb0dGCR5m4bDEPutskVcvVqCcEY9UCOLUfr9nfd1LrPkEje6CF -PZh9uvO7GMBEYXP2TkXz7hAfvyVVFA/cMVbRfyXhhGT4e8HpwEcXnAvfwuYDiMVC -wKtDoBk/csuxHT1Fwzm5onI/B4EQ1nziQrt5TwZdtx+MQXNtJObKxZtD+FxSf1oK -wJQjnAZOy6zzVdZvZYmjhZiPlcL3cYl17Hz5bq3LCgcEOBuUcwFJoN9NGHfkjAmz -tENU8VTkjefhglm0xElxi5JKmc3iT2wC224XswGX+n+Joj96mH7o7EGa+E45Kqj0 -vzs9R3kDnX+kOou98baHZIrStCrNqTvmK+sAm7wWuzjnkzbRz6Y= -=5Hpv ------END PGP SIGNATURE----- diff --git a/packages/c/cmake/cmake-3.18.2.tar.gz b/packages/c/cmake/cmake-3.18.2.tar.gz deleted file mode 120000 index 4fdd1fb..0000000 --- a/packages/c/cmake/cmake-3.18.2.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeidh53togxrpbbkktu44lfdhjinmoohl77jvrztdfp7stxy6j2zuhe \ No newline at end of file diff --git a/packages/c/cmake/cmake-3.18.3-SHA-256.txt b/packages/c/cmake/cmake-3.18.3-SHA-256.txt new file mode 100644 index 0000000..af1eae7 --- /dev/null +++ b/packages/c/cmake/cmake-3.18.3-SHA-256.txt @@ -0,0 +1,10 @@ +7f22ec6c3aa66d25308d1c169898e1f43d458f03883586981a0eb0ee7cd73624 cmake-3.18.3-Darwin-x86_64.dmg +23fdff2063858db8027994660321d9c9cf824fdb92481e20eed148a07fb42953 cmake-3.18.3-Darwin-x86_64.tar.gz +2a72297b246e7a4c6186acb2de8d1084968fd253a7997a5607d31b5b621a4a5a cmake-3.18.3-Linux-x86_64.sh +eb23bac95873cc0bc3946eed5d1aea6876ac03f7c0dcc6ad3a05462354b08228 cmake-3.18.3-Linux-x86_64.tar.gz +f39d53371f5330f0c18c544a78f9654b9f799050b157783bd9e0e20f28f27821 cmake-3.18.3-win32-x86.msi +f3f3ae2dc602100717ccec26436d97c85dd2944c59c02e71a1dc71b2e2f098da cmake-3.18.3-win32-x86.zip +b0c0b297e6be934b2b0d6c6b55b47b6fda52a51f4931f4f7708c3f9b036ab80a cmake-3.18.3-win64-x64.msi +6b442a2e7877105ff80b8e5d116221ef37a5faea840d916658e2defe8551d4b3 cmake-3.18.3-win64-x64.zip +2c89f4e30af4914fd6fb5d00f863629812ada848eee4e2d29ec7e456d7fa32e5 cmake-3.18.3.tar.gz +b06f2bfd4f263bd038edc7f303c4d2832322f8ddc47d7c6c5fb66fbd93c7843c cmake-3.18.3.zip diff --git a/packages/c/cmake/cmake-3.18.3-SHA-256.txt.asc b/packages/c/cmake/cmake-3.18.3-SHA-256.txt.asc new file mode 100644 index 0000000..e70e71b --- /dev/null +++ b/packages/c/cmake/cmake-3.18.3-SHA-256.txt.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEExsJlMku+vcNQtRPQLSzvEDSSFoQFAl9p/wcACgkQLSzvEDSS +FoR5WxAAgOsxV26wxoyl1vzmH3XmG8XKuJrHq1tD+ZVWqCxCv+sBAM7jPaaaIq9p +oU+GxIGJLddM4UVkKc1DqGfi/Fjl95K88CVQ5VyAMnhAOQwTeCA1PGPb8Ow6C+cS +8DYNt3CCvfLCNm/fUjN+Com6xLWDNDGPGTrnq163EaXrFiIK9EgHWgHUE2mzTWcW +k3prvjBaWxxsLV4shzNGmMtbrCe+9vB6JQneUd3tpbbx2hLB42TYFHhK5I/ljacL +XaSBmBoGyQafAMyWC9s9hHGHs7PxYugiyHRs9o39szzXI7iOHRIiP9BdAMMyffa1 +sRE62hB+oUYrLkNErOz9JpzdQKvNtXa1edM0ItswlmYRjJ0PsSjReWgdl7Gq8mSO +Pux9R8mp8HCeaeJiPsLOPxkK7bllwiWVWyP26akh0gtK/ZvvRwEgXtpmMfb/9jHk +0AxttzDAfvRNRJxWeGQDQvrQiKtLjbFCjgiBWgDImh3uKiYb908X6AOOaQ18gqpz +wDirXixSZDtvRos713biiHUQ2CgkKj6Vtak0kXyOiHseHaQ1JJnj30UMt+G++2qA +/goRaiQyVKA619mKu2XM8RTHAK6HL1INp3QYkVniWMZylWew91O5lBHf8sVtjKtb +tGAYeA6xGIuyFeBjz6L9ckI8NwK2rSglFID+AVEyprPnyFusQF4= +=bPq8 +-----END PGP SIGNATURE----- diff --git a/packages/c/cmake/cmake-3.18.3.tar.gz b/packages/c/cmake/cmake-3.18.3.tar.gz new file mode 120000 index 0000000..9840054 --- /dev/null +++ b/packages/c/cmake/cmake-3.18.3.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeia2drpobyyr4xr2zjl27s7ybz66mjp2udisf7wrkxxundthxp6roi \ No newline at end of file diff --git a/packages/c/cmake/cmake.changes b/packages/c/cmake/cmake.changes index b1297c0..e50350e 100644 --- a/packages/c/cmake/cmake.changes +++ b/packages/c/cmake/cmake.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Sep 23 06:16:29 UTC 2020 - Dirk Mueller + +- update to 3.18.3: + * The Compile Features functionality was updated for MSVC 19.28 + +------------------------------------------------------------------- Mon Sep 14 10:29:33 UTC 2020 - Dirk Mueller - reapply this change (bsc#1174581): diff --git a/packages/c/cmake/cmake.spec b/packages/c/cmake/cmake.spec index 7fd34db..ca2fd3f 100644 --- a/packages/c/cmake/cmake.spec +++ b/packages/c/cmake/cmake.spec @@ -37,7 +37,7 @@ %endif %define shortversion 3.18 Name: cmake%{?psuffix} -Version: 3.18.2 +Version: 3.18.3 Release: 0 Summary: Cross-platform make system License: BSD-3-Clause diff --git a/packages/c/cockpit-podman/cockpit-podman-21.tar.gz b/packages/c/cockpit-podman/cockpit-podman-21.tar.gz deleted file mode 120000 index 7c4eedc..0000000 --- a/packages/c/cockpit-podman/cockpit-podman-21.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeigv5623f4yqn3dsizqypnkr3mltxzfz26hiejiuitudwllkatp26i \ No newline at end of file diff --git a/packages/c/cockpit-podman/cockpit-podman-24.tar.gz b/packages/c/cockpit-podman/cockpit-podman-24.tar.gz new file mode 120000 index 0000000..9c866d7 --- /dev/null +++ b/packages/c/cockpit-podman/cockpit-podman-24.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeie4vwvbvtftmqizxckshh3b2kowfwutecxyyklleaox5q7yugfjo4 \ No newline at end of file diff --git a/packages/c/cockpit-podman/cockpit-podman.changes b/packages/c/cockpit-podman/cockpit-podman.changes index 2bea0cb..f1fb121 100644 --- a/packages/c/cockpit-podman/cockpit-podman.changes +++ b/packages/c/cockpit-podman/cockpit-podman.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Oct 2 11:04:07 UTC 2020 - Ludwig Nussel + +- new version 24 + https://cockpit-project.org/blog/cockpit-228.html + +------------------------------------------------------------------- Fri Aug 14 12:16:08 UTC 2020 - Ludwig Nussel - initial package version 21 diff --git a/packages/c/cockpit-podman/cockpit-podman.spec b/packages/c/cockpit-podman/cockpit-podman.spec index f44722d..6d4865e 100644 --- a/packages/c/cockpit-podman/cockpit-podman.spec +++ b/packages/c/cockpit-podman/cockpit-podman.spec @@ -12,16 +12,16 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: cockpit-podman -Version: 21 +Version: 24 Release: 0 Summary: Cockpit component for Podman containers License: LGPL-2.1-or-later -Url: https://github.com/cockpit-project/cockpit-podman +URL: https://github.com/cockpit-project/cockpit-podman Source: https://github.com/cockpit-project/cockpit-podman/releases/download/%{version}/cockpit-podman-%{version}.tar.gz BuildArch: noarch BuildRequires: appstream-glib @@ -29,8 +29,11 @@ Requires: cockpit-bridge >= 138 Requires: cockpit-shell >= 138 Requires: podman >= 2.0.4 # -BuildRequires: translate-toolkit npm nodejs-devel BuildRequires: gcc-c++ +BuildRequires: nodejs-devel +BuildRequires: npm +BuildRequires: translate-toolkit + %description Cockpit component for managing Podman containers @@ -51,4 +54,3 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/* %{_datadir}/metainfo/* %changelog - diff --git a/packages/c/cockpit/cockpit-225.tar.xz b/packages/c/cockpit/cockpit-225.tar.xz deleted file mode 120000 index f174492..0000000 --- a/packages/c/cockpit/cockpit-225.tar.xz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeigr4j3mj2d5tgmxmmivbrnqqscjqteq3mtzeh2uopewzhvivqtsy4 \ No newline at end of file diff --git a/packages/c/cockpit/cockpit-228.tar.xz b/packages/c/cockpit/cockpit-228.tar.xz new file mode 120000 index 0000000..48d77cc --- /dev/null +++ b/packages/c/cockpit/cockpit-228.tar.xz @@ -0,0 +1 @@ +/ipfs/bafybeie5eqqryryrc4p6wvl4i6axp3g63jovkqduciemybsht6owledjnm \ No newline at end of file diff --git a/packages/c/cockpit/cockpit.changes b/packages/c/cockpit/cockpit.changes index df72b74..73ee455 100644 --- a/packages/c/cockpit/cockpit.changes +++ b/packages/c/cockpit/cockpit.changes @@ -1,4 +1,13 @@ ------------------------------------------------------------------- +Thu Oct 1 11:32:48 UTC 2020 - Ludwig Nussel + +- new version 228 + https://cockpit-project.org/blog/cockpit-228.html + https://cockpit-project.org/blog/cockpit-227.html + https://cockpit-project.org/blog/cockpit-226.html +- enable cockpit-machines to manage libvirt + +------------------------------------------------------------------- Thu Sep 10 12:49:00 UTC 2020 - Ludwig Nussel - adjust spec file to match upstream diff --git a/packages/c/cockpit/cockpit.spec b/packages/c/cockpit/cockpit.spec index a174318..dfd641f 100644 --- a/packages/c/cockpit/cockpit.spec +++ b/packages/c/cockpit/cockpit.spec @@ -38,24 +38,11 @@ %define rhel %{centos} %endif -%if "%{!?__python3:1}" -%define __python3 /usr/bin/python3 -%endif - -# for testing this already gets set in fedora.install, as we want the target -# VERSION_ID, not the mock chroot's one -%if "%{!?os_version_id:1}" -%define os_version_id %(. /etc/os-release; echo $VERSION_ID) -%endif - %define _hardened_build 1 -# define to build the dashboard -%define build_dashboard 1 - # build basic packages like cockpit-bridge %define build_basic 1 -# build optional extensions like cockpit-docker +# build optional extensions like cockpit-machines %define build_optional 1 %define __lib lib @@ -76,7 +63,7 @@ Summary: Web Console for Linux servers License: LGPL-2.1-or-later URL: https://cockpit-project.org/ -Version: 225 +Version: 228 %if %{defined wip} Release: 1.%{wip}%{?dist} Source0: cockpit-%{version}.tar.xz @@ -98,7 +85,7 @@ BuildRequires: autoconf automake BuildRequires: make BuildRequires: /usr/bin/python3 BuildRequires: gettext >= 0.19.7 -%if %{defined build_dashboard} +%if 0%{?build_optional} BuildRequires: libssh-devel >= 0.8.5 %endif BuildRequires: openssl-devel @@ -109,7 +96,7 @@ BuildRequires: libxslt-devel BuildRequires: glib-networking BuildRequires: sed -BuildRequires: glib2-devel >= 2.37.4 +BuildRequires: glib2-devel >= 2.50.0 # this is for runtimedir in the tls proxy ace21c8879 BuildRequires: pkgconfig(libsystemd) >= 235 %if 0%{?suse_version} @@ -144,13 +131,6 @@ Recommends: (cockpit-storaged if udisks2) Recommends: cockpit-packagekit Suggests: cockpit-pcp -%ifarch x86_64 %{arm} aarch64 ppc64le i686 s390x -%if (0%{?fedora} == 31 || 0%{?suse_version}) && 0%{?build_optional} -%define build_docker 1 -Recommends: (cockpit-docker if /usr/bin/docker) -%endif -%endif - %if 0%{?rhel} == 0 Recommends: (cockpit-networkmanager if NetworkManager) Suggests: cockpit-selinux @@ -202,10 +182,13 @@ make install-tests DESTDIR=%{buildroot} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d install -p -m 644 tools/cockpit.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit rm -f %{buildroot}/%{_libdir}/cockpit/*.so -# shipped in firewalld since 0.6, everywhere in Fedora/RHEL 8 -rm -f %{buildroot}/%{_prefix}/%{__lib}/firewalld/services/cockpit.xml install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/ +# only ship deprecated PatternFly API for stable releases +%if 0%{?fedora} > 33 || 0%{?rhel} > 8 + rm %{buildroot}/%{_datadir}/cockpit/base1/patternfly.css +%endif + # Build the package lists for resource packages echo '%dir %{_datadir}/cockpit/base1' > base.list echo '%dir %{_datadir}/cockpit/base1/fonts' >> base.list @@ -216,13 +199,8 @@ echo '%dir %{_datadir}/cockpit/ssh' >> base.list find %{buildroot}%{_datadir}/cockpit/ssh -type f >> base.list echo '%{_libexecdir}/cockpit-ssh' >> base.list -%if %{defined build_dashboard} echo '%dir %{_datadir}/cockpit/dashboard' >> dashboard.list find %{buildroot}%{_datadir}/cockpit/dashboard -type f >> dashboard.list -%else -rm -rf %{buildroot}/%{_datadir}/cockpit/dashboard -touch dashboard.list -%endif echo '%dir %{_datadir}/cockpit/pcp' >> pcp.list find %{buildroot}%{_datadir}/cockpit/pcp -type f >> pcp.list @@ -266,15 +244,6 @@ find %{buildroot}%{_datadir}/cockpit/selinux -type f >> selinux.list echo '%dir %{_datadir}/cockpit/playground' > tests.list find %{buildroot}%{_datadir}/cockpit/playground -type f >> tests.list -%if 0%{?build_docker} -echo '%dir %{_datadir}/cockpit/docker' > docker.list -find %{buildroot}%{_datadir}/cockpit/docker -type f >> docker.list -%else -rm -rf %{buildroot}/%{_datadir}/cockpit/docker -rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-docker.metainfo.xml -touch docker.list -%endif - # when not building basic packages, remove their files %if 0%{?build_basic} == 0 for pkg in base1 branding motd kdump networkmanager selinux shell sosreport ssh static systemd tuned users; do @@ -298,7 +267,7 @@ rm -f %{buildroot}%{_datadir}/metainfo/cockpit.appdata.xml # when not building optional packages, remove their files %if 0%{?build_optional} == 0 -for pkg in apps dashboard docker machines packagekit pcp playground storaged; do +for pkg in apps dashboard machines packagekit pcp playground storaged; do rm -rf %{buildroot}/%{_datadir}/cockpit/$pkg done # files from -tests @@ -309,8 +278,6 @@ rm -r %{buildroot}/%{_libexecdir}/cockpit-pcp %{buildroot}/%{_localstatedir}/lib rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml # files from -storaged rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml -# files from -docker -rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-docker.metainfo.xml %endif sed -i "s|%{buildroot}||" *.list @@ -325,8 +292,8 @@ popd # need this in SUSE as post build checks dislike stale symlinks install -m 644 -D /dev/null %{buildroot}/run/cockpit/motd # remove files of not installable packages -rm -r %{buildroot}%{_datadir}/cockpit/{machines,sosreport,selinux} -rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-{machines,selinux,sosreport}.metainfo.xml +rm -r %{buildroot}%{_datadir}/cockpit/{sosreport,selinux} +rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-{selinux,sosreport}.metainfo.xml rm -f %{buildroot}%{_datadir}/pixmaps/cockpit-sosreport.png %else %global _debugsource_packages 1 @@ -468,7 +435,7 @@ This package contains the Cockpit shell and system configuration interfaces. Summary: Cockpit Web Service Requires: glib-networking Requires: openssl -Requires: glib2 >= 2.37.4 +Requires: glib2 >= 2.50.0 Conflicts: firewalld < 0.6.0-1 Recommends: sscg >= 2.3 Recommends: system-logos @@ -675,7 +642,6 @@ These files are not required for running Cockpit. %files -n cockpit-tests -f tests.list %{_prefix}/%{__lib}/cockpit-test-assets -%if !0%{?suse_version} %package -n cockpit-machines BuildArch: noarch Summary: Cockpit user interface for virtual machines @@ -700,7 +666,6 @@ If "virt-install" is installed, you can also create new virtual machines. %files -n cockpit-machines -f machines.list %{_datadir}/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml -%endif %package -n cockpit-pcp Summary: Cockpit PCP integration @@ -715,12 +680,8 @@ Cockpit support for reading PCP metrics and loading PCP archives. %{_localstatedir}/lib/pcp/config/pmlogconf/tools/cockpit %post -n cockpit-pcp -# HACK - https://bugzilla.redhat.com/show_bug.cgi?id=1185764 -# We can't use "systemctl reload-or-try-restart" since systemctl might -# be out of sync with reality. -/usr/share/pcp/lib/pmlogger condrestart +systemctl reload-or-try-restart pmlogger -%if %{defined build_dashboard} %package -n cockpit-dashboard Summary: Cockpit remote server dashboard BuildArch: noarch @@ -732,25 +693,6 @@ Cockpit page for showing performance graphs for up to 20 remote servers. %files -n cockpit-dashboard -f dashboard.list -%endif - -%if 0%{?build_docker} -%package -n cockpit-docker -Summary: Cockpit user interface for Docker containers -Requires: cockpit-bridge >= 122 -Requires: cockpit-shell >= 122 -Requires: (docker or moby-engine or docker-ce) -Requires: %{__python3} - -%description -n cockpit-docker -The Cockpit components for interacting with Docker and user interface. -This package is not yet complete. - -%files -n cockpit-docker -f docker.list -%dir %{_datadir}/cockpit/docker/images -%{_datadir}/metainfo/org.cockpit-project.cockpit-docker.metainfo.xml -%endif - %package -n cockpit-packagekit Summary: Cockpit user interface for packages BuildArch: noarch diff --git a/packages/f/fpc/.files b/packages/f/fpc/.files index a4a237c..6fe5a0f 100644 Binary files a/packages/f/fpc/.files and b/packages/f/fpc/.files differ diff --git a/packages/f/fpc/.rev b/packages/f/fpc/.rev index a7a4c3d..2b7fa03 100644 --- a/packages/f/fpc/.rev +++ b/packages/f/fpc/.rev @@ -86,4 +86,14 @@ 837228 + + ba2adf8659107e51355bd8ac496f3ecc + 3.2.0 + + dimstar_suse + - Add patch to fix build on ppc64le: + * fpc-fix-library-paths-on-ppc64.patch + + 838276 + diff --git a/packages/f/fpc/fpc-fix-library-paths-on-ppc64.patch b/packages/f/fpc/fpc-fix-library-paths-on-ppc64.patch new file mode 100644 index 0000000..8ba28b3 --- /dev/null +++ b/packages/f/fpc/fpc-fix-library-paths-on-ppc64.patch @@ -0,0 +1,11 @@ +--- fpcbuild-3.2.0/fpcsrc/compiler/systems/t_linux.pas.orig 2020-09-25 07:43:31.880558566 +0000 ++++ fpcbuild-3.2.0/fpcsrc/compiler/systems/t_linux.pas 2020-09-25 07:55:16.789263339 +0000 +@@ -141,7 +141,7 @@ begin + if target_info.abi<>abi_powerpc_elfv2 then + LibrarySearchPath.AddLibraryPath(sysrootpath,'=/lib64;=/usr/lib64;=/usr/X11R6/lib64',true) + else +- LibrarySearchPath.AddLibraryPath(sysrootpath,'=/lib64;=/usr/lib/powerpc64le-linux-gnu;=/usr/X11R6/powerpc64le-linux-gnu',true); ++ LibrarySearchPath.AddLibraryPath(sysrootpath,'=/lib64;=/usr/lib64;=/usr/X11R6/lib64',true); + {$else} + {$ifdef aarch64} + LibrarySearchPath.AddLibraryPath(sysrootpath,'=/usr/lib',true); diff --git a/packages/f/fpc/fpc.changes b/packages/f/fpc/fpc.changes index 84a29ea..906901b 100644 --- a/packages/f/fpc/fpc.changes +++ b/packages/f/fpc/fpc.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Sep 25 10:14:45 UTC 2020 - Guillaume GARDET + +- Add patch to fix build on ppc64le: + * fpc-fix-library-paths-on-ppc64.patch + +------------------------------------------------------------------- Thu Sep 24 06:30:04 UTC 2020 - Dirk Mueller - add aarch64-fpc-compilation-fix.patch: pass vfp flags to diff --git a/packages/f/fpc/fpc.spec b/packages/f/fpc/fpc.spec index 593e263..33f0f21 100644 --- a/packages/f/fpc/fpc.spec +++ b/packages/f/fpc/fpc.spec @@ -87,6 +87,7 @@ Patch1: fpc-si_c-x86_64-plt.patch Patch2: aarch64-fpc-compilation-fix.patch # From https://github.com/graemeg/freepascal/commit/aad68409bec902e39f9292930238edd32dbc5ac7 Patch3: aarch64-fpu-initialization.patch +Patch4: fpc-fix-library-paths-on-ppc64.patch BuildRequires: binutils %if 0%{?suse_version} BuildRequires: fdupes @@ -160,6 +161,7 @@ documentation or automatical-code generation purposes. %patch1 -p0 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %if %{with bootstrap} %if "%{flavor}" == "" diff --git a/packages/h/helm/.files b/packages/h/helm/.files index 745c206..41f8423 100644 Binary files a/packages/h/helm/.files and b/packages/h/helm/.files differ diff --git a/packages/h/helm/.rev b/packages/h/helm/.rev index e165ad3..4462d49 100644 --- a/packages/h/helm/.rev +++ b/packages/h/helm/.rev @@ -159,4 +159,12 @@ See changelog in: 835788 + + 71b26e22d47cce66bef80070086f4dc1 + 3.3.4 + + dimstar_suse + + 838470 + diff --git a/packages/h/helm/.servicemark b/packages/h/helm/.servicemark index 68e536f..f8b494b 100644 --- a/packages/h/helm/.servicemark +++ b/packages/h/helm/.servicemark @@ -1 +1 @@ -68bca5c22d01f75848130f21a8aec7b0 +fa325b7ee635fbccb0e0eb9ba81a66f9 diff --git a/packages/h/helm/_service b/packages/h/helm/_service index 51a9e4b..24e8920 100644 --- a/packages/h/helm/_service +++ b/packages/h/helm/_service @@ -5,7 +5,7 @@ .git @PARENT_TAG@ v(.*) - v3.3.3 + v3.3.4 enable diff --git a/packages/h/helm/_servicedata b/packages/h/helm/_servicedata index 71be6b8..dcd0549 100644 --- a/packages/h/helm/_servicedata +++ b/packages/h/helm/_servicedata @@ -1,4 +1,4 @@ https://github.com/kubernetes/helm.git - 55e3ca022e40fe200fbc855938995f40b2a68ce0 \ No newline at end of file + a61ce5633af99708171414353ed49547cf05013d \ No newline at end of file diff --git a/packages/h/helm/helm-3.3.3.tar.gz b/packages/h/helm/helm-3.3.3.tar.gz deleted file mode 120000 index f296677..0000000 --- a/packages/h/helm/helm-3.3.3.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeibmci34zbhwxlg7lmpk454556qdzmasffdhagkeheulz62pdfnzx4 \ No newline at end of file diff --git a/packages/h/helm/helm-3.3.4.tar.gz b/packages/h/helm/helm-3.3.4.tar.gz new file mode 120000 index 0000000..d560d50 --- /dev/null +++ b/packages/h/helm/helm-3.3.4.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeid6zdoamums4pyxqrghing7eqn6b2rk7u4zt42ogxu6gljfyidibu \ No newline at end of file diff --git a/packages/h/helm/helm.changes b/packages/h/helm/helm.changes index 1c4addb..dacee7b 100644 --- a/packages/h/helm/helm.changes +++ b/packages/h/helm/helm.changes @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Mon Sep 28 19:49:33 UTC 2020 - dmueller@suse.com + +- Update to version 3.3.4: + * Fixing import package issue + * use warning function + * Fixing issue with idempotent repo add + +------------------------------------------------------------------- Mon Sep 21 09:10:14 UTC 2020 - Vicente Zepeda Mas - Update to version 3.3.3: diff --git a/packages/h/helm/helm.spec b/packages/h/helm/helm.spec index 3d19bad..ed0bf8e 100644 --- a/packages/h/helm/helm.spec +++ b/packages/h/helm/helm.spec @@ -18,7 +18,7 @@ %define git_commit ac925eb7279f4a6955df663a0128044a8a6b7593 Name: helm -Version: 3.3.3 +Version: 3.3.4 Release: 0 Summary: The Kubernetes Package Manager License: Apache-2.0 diff --git a/packages/h/helm/vendor.tar.gz b/packages/h/helm/vendor.tar.gz index 6f2dbae..756eb09 120000 --- a/packages/h/helm/vendor.tar.gz +++ b/packages/h/helm/vendor.tar.gz @@ -1 +1 @@ -/ipfs/bafybeifpvg2qg6ojfv5togkavdoekwadosq4lpuoqayvrzb64hj66vxhey \ No newline at end of file +/ipfs/bafybeihaxlmvbfmkla7qv3j7iqmy3325mtdyqrvrirjbtnfkl2z4gzmkfm \ No newline at end of file diff --git a/packages/i/ImageMagick/.files b/packages/i/ImageMagick/.files index a4f6706..a1715ba 100644 Binary files a/packages/i/ImageMagick/.files and b/packages/i/ImageMagick/.files differ diff --git a/packages/i/ImageMagick/.rev b/packages/i/ImageMagick/.rev index 60e2f32..11beb15 100644 --- a/packages/i/ImageMagick/.rev +++ b/packages/i/ImageMagick/.rev @@ -2767,4 +2767,19 @@ Use SUSE- proprietary prefix until SPDX upstream accepts ImageMagick as license - remove ImageMagick-set-correct-colorspace.patch, ImageMagick-inkscape-commandilne.patch (upstream) (forwarded request 834244 from dirkmueller) 834263 + + 3a0aa59453b4b626dc1fd4fa148dba61 + 7.0.10.31 + + dimstar_suse + - update to 7.0.10.31: + * Add support for APNG (specify explicitly, e.g. apng:animate.png). + * Add support for WEBM. + * Fixed registry lookup of GhostScript that now writes the patch version to the + registry + * Add endian support to JSON coder. + * Regression: MapCache type cache allocation skipped + * Some DCM images include a thumbnail (forwarded request 838367 from dirkmueller) + 838465 + diff --git a/packages/i/ImageMagick/ImageMagick-7.0.10-29.tar.bz2 b/packages/i/ImageMagick/ImageMagick-7.0.10-29.tar.bz2 deleted file mode 120000 index 015bf41..0000000 --- a/packages/i/ImageMagick/ImageMagick-7.0.10-29.tar.bz2 +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeiae4yopblkijifld6l4llkhgobxr2qmsnh3f7trxlxfipoqkvfrsq \ No newline at end of file diff --git a/packages/i/ImageMagick/ImageMagick-7.0.10-29.tar.bz2.asc b/packages/i/ImageMagick/ImageMagick-7.0.10-29.tar.bz2.asc deleted file mode 100644 index 7ec3647..0000000 --- a/packages/i/ImageMagick/ImageMagick-7.0.10-29.tar.bz2.asc +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iQIcBAABAgAGBQJfVP+OAAoJEImrY9SCdzd6UnYP/j1M4SwWPFyTtqU3jgoAGENc -U6Cq3KSgFvUbp3iJlfntaMsEd54chPAbzfOVGyxjS/Zc0oDNXp0GuX54X9RlsV2L -hnVst7pqgh0V93WsQ7oqJoE6tWGv15d3O1zwPvmZrfzPxiv6qQTq8BqhpRli7dbU -3j01z+bxYy3UjewlaFX5MtCHfm+ZCvxdQbtHXqPnnkICAiL8LsPV1rP6qWARs6+u -rjSaCduHQNFkZ8IUqd6pZWbtTgfDnMI0fCE9WEmidAkN8Kt9GmGjwD3XyXnTfq6M -PxzMnh2Jlu3zsCtpU+NHDNIrb/dNt93kBIjCvSh9Sj4ZRIoTYpbkz6PV1h59Hf41 -+9DPCOI0gsnK5vcNKo1fe+Vf9nukDP0BJ5EnVgvVQJANnwm/oGX/ySTTnVLVQzgG -tDBrSc/+SiTdIiVWhQweS6pCHa1jBG+p+dzTZlzWnev1XJhBHBCQ3s+DQcOPpEjm -tweIx6onRWh3Xm/T0sGawX0Fqqolb/JXZ4qw0JM1p4Je86yTf4+u6sSbvn5Dd9pK -skQIme5Lh40N9dMLRbpAl5ZTu31rgyzJg3akuIC6MpQIvYQ/rlxtaF/+Uzklq1xY -Uc/ubwClEU29FnQVFgtghk+tMORTf+y2afb9nASB3dhkRpl/h/Fl1xL0NF73yoP6 -lTPb3HmAd9av1WPRKktq -=uYtH ------END PGP SIGNATURE----- diff --git a/packages/i/ImageMagick/ImageMagick-7.0.10-31.tar.bz2 b/packages/i/ImageMagick/ImageMagick-7.0.10-31.tar.bz2 new file mode 120000 index 0000000..47c38db --- /dev/null +++ b/packages/i/ImageMagick/ImageMagick-7.0.10-31.tar.bz2 @@ -0,0 +1 @@ +/ipfs/bafybeig2jgu6gdlqxo2ze3ciploxu4gqc44ioioievjczkl6v6qsibtirq \ No newline at end of file diff --git a/packages/i/ImageMagick/ImageMagick-7.0.10-31.tar.bz2.asc b/packages/i/ImageMagick/ImageMagick-7.0.10-31.tar.bz2.asc new file mode 100644 index 0000000..ab76b3e --- /dev/null +++ b/packages/i/ImageMagick/ImageMagick-7.0.10-31.tar.bz2.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEE2Ccu9R2iI+TQW0Zpiatj1IJ3N3oFAl9wqQ8ACgkQiatj1IJ3 +N3pbnQ//eqQD7JMCEvZU3P6uFb4SCiLHlBM3+of4bn/eYzcO1RSREQ5WSiyTTNLj +nNFZ2nnCELtvelW84zVGC7JmleKc9anA0cbwmNTnBUhlKLCVcAH7rm2r09KbR1vd +OSZhCR2iLiutj6yNnnZckwaAJ8BWN+yn5OB2CvfBKvUrfqppNyJaeFdqrXfbZV6y +TCrF8JP0MdpVaF0DeUPFoepv/awXBjvQ1dqkOyXhIPm2nGL1+QgAM5Z/1kmn11un +OcjnZqyEvaT1e+/5JFWwRQacqMKNadqS7/o59w2n9CshG/cZZjtiwX2JNEyuS8Xm +RDNpgt3eSzO6n667KU1kvFWeTA6L074sLBnNDF0hGTm7CuafhLd+HtjXuD100wJs +wFJyiw2NVTXHhICJajatgWAlDfKgQEWYQsSwIQdd0EA3k/H8c1o+1FxbsHe0PSIa +oG6SaXc0GboVvBGhxRS8TbpfAJuCfFXoJIdCTvP/gqGdJOVbv3jTz+ajwfP/+Ll+ +SI+sDDs9aMBzdsS9hltKLWK4YLvCNVMPrccpuvZci0HAeyCr7++OXRcZ83qLMcn4 +aP9ogvhRNDuCe8wSnLpgdPbQdnBJahf2ALVJZ87qyXy/j8c0jyhwWilG8jH5zykV +bn43goXsEyff6o7ZKrha4MiyQYDI5bxxtfm1nDDBp5nXQ891G+c= +=iA2f +-----END PGP SIGNATURE----- diff --git a/packages/i/ImageMagick/ImageMagick.changes b/packages/i/ImageMagick/ImageMagick.changes index 89905f3..16c92a0 100644 --- a/packages/i/ImageMagick/ImageMagick.changes +++ b/packages/i/ImageMagick/ImageMagick.changes @@ -1,4 +1,16 @@ ------------------------------------------------------------------- +Mon Sep 28 19:50:31 UTC 2020 - Dirk Mueller + +- update to 7.0.10.31: + * Add support for APNG (specify explicitly, e.g. apng:animate.png). + * Add support for WEBM. + * Fixed registry lookup of GhostScript that now writes the patch version to the + registry + * Add endian support to JSON coder. + * Regression: MapCache type cache allocation skipped + * Some DCM images include a thumbnail + +------------------------------------------------------------------- Mon Sep 14 07:56:37 UTC 2020 - Dirk Mueller - update to 7.0.10.29: diff --git a/packages/i/ImageMagick/ImageMagick.spec b/packages/i/ImageMagick/ImageMagick.spec index 27781ea..d5edf78 100644 --- a/packages/i/ImageMagick/ImageMagick.spec +++ b/packages/i/ImageMagick/ImageMagick.spec @@ -20,7 +20,7 @@ %define asan_build 0 %define maj 7 %define mfr_version %{maj}.0.10 -%define mfr_revision 29 +%define mfr_revision 31 %define quantum_depth 16 %define source_version %{mfr_version}-%{mfr_revision} %define clibver 7 diff --git a/packages/k/kernel-source/.files b/packages/k/kernel-source/.files index 21488be..ec5824b 100644 Binary files a/packages/k/kernel-source/.files and b/packages/k/kernel-source/.files differ diff --git a/packages/k/kernel-source/.rev b/packages/k/kernel-source/.rev index 665fc00..a06b8dd 100644 --- a/packages/k/kernel-source/.rev +++ b/packages/k/kernel-source/.rev @@ -5202,4 +5202,12 @@ As this is a serious local privilege escalation, I would like to see a timely in 5.8.10 (incl. the block fix) & 5.8.9 & 5.8.8 & other fixes 835796 + + 039a511c41020e471ca8d484793d74ec + 5.8.12 + + dimstar_suse + 5.8.12 & 5.8.11 & small fixes + 838480 + diff --git a/packages/k/kernel-source/config.tar.bz2 b/packages/k/kernel-source/config.tar.bz2 index d4330ae..14ae529 120000 --- a/packages/k/kernel-source/config.tar.bz2 +++ b/packages/k/kernel-source/config.tar.bz2 @@ -1 +1 @@ -/ipfs/bafybeih3okqscghbwsstlz7qro2kietgix7tvqdepwduhxp4qc3ba7plxq \ No newline at end of file +/ipfs/bafybeia2ex4te64djvno3igdneg7vdh52kqwurc64f456ikegq6a4gyuuy \ No newline at end of file diff --git a/packages/k/kernel-source/dtb-aarch64.changes b/packages/k/kernel-source/dtb-aarch64.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/dtb-aarch64.changes +++ b/packages/k/kernel-source/dtb-aarch64.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/dtb-aarch64.spec b/packages/k/kernel-source/dtb-aarch64.spec index cf2b32c..e1e9afc 100644 --- a/packages/k/kernel-source/dtb-aarch64.spec +++ b/packages/k/kernel-source/dtb-aarch64.spec @@ -17,7 +17,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %include %_sourcedir/kernel-spec-macros @@ -29,9 +29,9 @@ %(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,group-source-files.pl,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,log.sh,try-disable-staging-driver,compress-vmlinux.sh,mkspec-dtb,check-module-license,klp-symbols,splitflist,mergedep,moddep,modflist,kernel-subpackage-build}) Name: dtb-aarch64 -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif diff --git a/packages/k/kernel-source/dtb-armv6l.changes b/packages/k/kernel-source/dtb-armv6l.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/dtb-armv6l.changes +++ b/packages/k/kernel-source/dtb-armv6l.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/dtb-armv6l.spec b/packages/k/kernel-source/dtb-armv6l.spec index 25416c8..5aab667 100644 --- a/packages/k/kernel-source/dtb-armv6l.spec +++ b/packages/k/kernel-source/dtb-armv6l.spec @@ -17,7 +17,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %include %_sourcedir/kernel-spec-macros @@ -29,9 +29,9 @@ %(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,group-source-files.pl,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,log.sh,try-disable-staging-driver,compress-vmlinux.sh,mkspec-dtb,check-module-license,klp-symbols,splitflist,mergedep,moddep,modflist,kernel-subpackage-build}) Name: dtb-armv6l -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif diff --git a/packages/k/kernel-source/dtb-armv7l.changes b/packages/k/kernel-source/dtb-armv7l.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/dtb-armv7l.changes +++ b/packages/k/kernel-source/dtb-armv7l.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/dtb-armv7l.spec b/packages/k/kernel-source/dtb-armv7l.spec index 692b202..3f1a68f 100644 --- a/packages/k/kernel-source/dtb-armv7l.spec +++ b/packages/k/kernel-source/dtb-armv7l.spec @@ -17,7 +17,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %include %_sourcedir/kernel-spec-macros @@ -29,9 +29,9 @@ %(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,group-source-files.pl,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,log.sh,try-disable-staging-driver,compress-vmlinux.sh,mkspec-dtb,check-module-license,klp-symbols,splitflist,mergedep,moddep,modflist,kernel-subpackage-build}) Name: dtb-armv7l -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif diff --git a/packages/k/kernel-source/dtb-riscv64.changes b/packages/k/kernel-source/dtb-riscv64.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/dtb-riscv64.changes +++ b/packages/k/kernel-source/dtb-riscv64.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/dtb-riscv64.spec b/packages/k/kernel-source/dtb-riscv64.spec index b886fbf..3d3a31c 100644 --- a/packages/k/kernel-source/dtb-riscv64.spec +++ b/packages/k/kernel-source/dtb-riscv64.spec @@ -17,7 +17,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %include %_sourcedir/kernel-spec-macros @@ -29,9 +29,9 @@ %(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,group-source-files.pl,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,log.sh,try-disable-staging-driver,compress-vmlinux.sh,mkspec-dtb,check-module-license,klp-symbols,splitflist,mergedep,moddep,modflist,kernel-subpackage-build}) Name: dtb-riscv64 -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif diff --git a/packages/k/kernel-source/kernel-64kb.changes b/packages/k/kernel-source/kernel-64kb.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-64kb.changes +++ b/packages/k/kernel-source/kernel-64kb.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-64kb.spec b/packages/k/kernel-source/kernel-64kb.spec index 081de5b..b1656c9 100644 --- a/packages/k/kernel-source/kernel-64kb.spec +++ b/packages/k/kernel-source/kernel-64kb.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-64kb Summary: Kernel with 64kb PAGE_SIZE License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %obsolete_rebuilds %name Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz Source2: source-post.sh @@ -820,6 +820,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -950,6 +959,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1214,13 +1227,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-binary.spec.in b/packages/k/kernel-source/kernel-binary.spec.in index 642c76b..ff2385d 100644 --- a/packages/k/kernel-source/kernel-binary.spec.in +++ b/packages/k/kernel-source/kernel-binary.spec.in @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -675,6 +675,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -805,6 +814,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1068,13 +1081,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-cert-subpackage b/packages/k/kernel-source/kernel-cert-subpackage index bab220b..08d9dde 100644 --- a/packages/k/kernel-source/kernel-cert-subpackage +++ b/packages/k/kernel-source/kernel-cert-subpackage @@ -11,9 +11,15 @@ modules in the %{-n*}-kmp packages. if ! command -v mokutil >/dev/null; then exit 0 fi +# Only apply CA check on the kernel package certs (bsc#1173115) +if [ %{defined _suse_kernel_module_subpackage} = 0 ] && mokutil -h | grep -q "ca-check"; then + MOK_ARG="--ca-check" +else + MOK_ARG="" +fi # XXX: Only call mokutil if UEFI and shim are used for cert in @CERTS@; do - if ! mokutil --import "$cert" --root-pw; then + if ! mokutil --import "$cert" --root-pw ${MOK_ARG}; then echo "Failed to import $cert" fi done diff --git a/packages/k/kernel-source/kernel-debug.changes b/packages/k/kernel-source/kernel-debug.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-debug.changes +++ b/packages/k/kernel-source/kernel-debug.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-debug.spec b/packages/k/kernel-source/kernel-debug.spec index 16c6381..150aa7b 100644 --- a/packages/k/kernel-source/kernel-debug.spec +++ b/packages/k/kernel-source/kernel-debug.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-debug Summary: A Debug Version of the Kernel License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %ifarch ppc64 Provides: kernel-kdump = 2.6.28 Obsoletes: kernel-kdump <= 2.6.28 @@ -826,6 +826,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -956,6 +965,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1226,13 +1239,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-default.changes b/packages/k/kernel-source/kernel-default.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-default.changes +++ b/packages/k/kernel-source/kernel-default.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-default.spec b/packages/k/kernel-source/kernel-default.spec index 8e5ad70..23f8b15 100644 --- a/packages/k/kernel-source/kernel-default.spec +++ b/packages/k/kernel-source/kernel-default.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-default Summary: The Standard Kernel License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %ifarch %ix86 Provides: kernel-smp = 2.6.17 Obsoletes: kernel-smp <= 2.6.17 @@ -869,6 +869,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -999,6 +1008,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1308,13 +1321,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-docs.changes b/packages/k/kernel-source/kernel-docs.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-docs.changes +++ b/packages/k/kernel-source/kernel-docs.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-docs.spec b/packages/k/kernel-source/kernel-docs.spec index c4d1f50..1e0a3ec 100644 --- a/packages/k/kernel-source/kernel-docs.spec +++ b/packages/k/kernel-source/kernel-docs.spec @@ -17,7 +17,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %include %_sourcedir/kernel-spec-macros @@ -31,9 +31,9 @@ Name: kernel-docs Summary: Kernel Documentation License: GPL-2.0 Group: Documentation/Man -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -63,7 +63,7 @@ BuildRequires: texlive-zapfding %endif Url: http://www.kernel.org/ Provides: %name = %version-%source_rel -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz diff --git a/packages/k/kernel-source/kernel-kvmsmall.changes b/packages/k/kernel-source/kernel-kvmsmall.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-kvmsmall.changes +++ b/packages/k/kernel-source/kernel-kvmsmall.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-kvmsmall.spec b/packages/k/kernel-source/kernel-kvmsmall.spec index aba7b03..426b3c4 100644 --- a/packages/k/kernel-source/kernel-kvmsmall.spec +++ b/packages/k/kernel-source/kernel-kvmsmall.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-kvmsmall Summary: The Small Developer Kernel for KVM License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %obsolete_rebuilds %name Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz Source2: source-post.sh @@ -824,6 +824,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -954,6 +963,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1222,13 +1235,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-lpae.changes b/packages/k/kernel-source/kernel-lpae.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-lpae.changes +++ b/packages/k/kernel-source/kernel-lpae.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-lpae.spec b/packages/k/kernel-source/kernel-lpae.spec index 7ff2557..58f2eb4 100644 --- a/packages/k/kernel-source/kernel-lpae.spec +++ b/packages/k/kernel-source/kernel-lpae.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-lpae Summary: Kernel for LPAE enabled systems License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %obsolete_rebuilds %name Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz Source2: source-post.sh @@ -818,6 +818,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -948,6 +957,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1210,13 +1223,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-obs-build.changes b/packages/k/kernel-source/kernel-obs-build.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-obs-build.changes +++ b/packages/k/kernel-source/kernel-obs-build.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-obs-build.spec b/packages/k/kernel-source/kernel-obs-build.spec index 875aa59..bf41503 100644 --- a/packages/k/kernel-source/kernel-obs-build.spec +++ b/packages/k/kernel-source/kernel-obs-build.spec @@ -19,7 +19,7 @@ #!BuildIgnore: post-build-checks -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 @@ -45,7 +45,7 @@ BuildRequires: util-linux %endif %endif %endif -BuildRequires: kernel%kernel_flavor-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +BuildRequires: kernel%kernel_flavor-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %if 0%{?rhel_version} BuildRequires: kernel @@ -64,9 +64,9 @@ BuildRequires: dracut Summary: package kernel and initrd for OBS VM builds License: GPL-2.0 Group: SLES -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif diff --git a/packages/k/kernel-source/kernel-obs-qa.changes b/packages/k/kernel-source/kernel-obs-qa.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-obs-qa.changes +++ b/packages/k/kernel-source/kernel-obs-qa.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-obs-qa.spec b/packages/k/kernel-source/kernel-obs-qa.spec index f2fc759..882465c 100644 --- a/packages/k/kernel-source/kernel-obs-qa.spec +++ b/packages/k/kernel-source/kernel-obs-qa.spec @@ -17,7 +17,7 @@ # needsrootforbuild -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %include %_sourcedir/kernel-spec-macros @@ -36,9 +36,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Basic QA tests for the kernel License: GPL-2.0 Group: SLES -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif diff --git a/packages/k/kernel-source/kernel-pae.changes b/packages/k/kernel-source/kernel-pae.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-pae.changes +++ b/packages/k/kernel-source/kernel-pae.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-pae.spec b/packages/k/kernel-source/kernel-pae.spec index 623b6f6..9669969 100644 --- a/packages/k/kernel-source/kernel-pae.spec +++ b/packages/k/kernel-source/kernel-pae.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-pae Summary: Kernel with PAE Support License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %ifarch %ix86 Provides: kernel-bigsmp = 2.6.17 Obsoletes: kernel-bigsmp <= 2.6.17 @@ -846,6 +846,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -976,6 +985,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1264,13 +1277,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-source.changes b/packages/k/kernel-source/kernel-source.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-source.changes +++ b/packages/k/kernel-source/kernel-source.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-source.spec b/packages/k/kernel-source/kernel-source.spec index 5e46631..1ce8827 100644 --- a/packages/k/kernel-source/kernel-source.spec +++ b/packages/k/kernel-source/kernel-source.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 @@ -30,9 +30,9 @@ Name: kernel-source Summary: The Linux Kernel Sources License: GPL-2.0 Group: Development/Sources -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -43,7 +43,7 @@ BuildRequires: fdupes BuildRequires: sed Requires(post): coreutils sed Provides: %name = %version-%source_rel -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 Provides: linux Provides: multiversion(kernel) Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz diff --git a/packages/k/kernel-source/kernel-syms.changes b/packages/k/kernel-source/kernel-syms.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-syms.changes +++ b/packages/k/kernel-source/kernel-syms.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-syms.spec b/packages/k/kernel-source/kernel-syms.spec index 71613ce..dad6d1a 100644 --- a/packages/k/kernel-source/kernel-syms.spec +++ b/packages/k/kernel-source/kernel-syms.spec @@ -24,10 +24,10 @@ Name: kernel-syms Summary: Kernel Symbol Versions (modversions) License: GPL-2.0 Group: Development/Sources -Version: 5.8.10 +Version: 5.8.12 %if %using_buildservice %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -52,7 +52,7 @@ Requires: kernel-pae-devel = %version-%source_rel %endif Requires: pesign-obs-integration Provides: %name = %version-%source_rel -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 Provides: multiversion(kernel) Source: README.KSYMS Requires: kernel-devel%variant = %version-%source_rel @@ -60,6 +60,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 aarch64 armv6hl armv7hl ppc64 ppc64le riscv64 s390x x86_64 Prefix: /usr/src +# Force bzip2 instead of lzma compression to +# 1) allow install on older dist versions, and +# 2) decrease build times (bsc#962356 boo#1175882) +%define _binary_payload w9.bzdio + %description Kernel symbols, such as functions and variables, have version information attached to them. This package contains the symbol versions diff --git a/packages/k/kernel-source/kernel-syms.spec.in b/packages/k/kernel-source/kernel-syms.spec.in index 65b4db1..269e3d2 100644 --- a/packages/k/kernel-source/kernel-syms.spec.in +++ b/packages/k/kernel-source/kernel-syms.spec.in @@ -49,6 +49,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: @ARCHS@ Prefix: /usr/src +# Force bzip2 instead of lzma compression to +# 1) allow install on older dist versions, and +# 2) decrease build times (bsc#962356 boo#1175882) +%define _binary_payload w9.bzdio + %description Kernel symbols, such as functions and variables, have version information attached to them. This package contains the symbol versions diff --git a/packages/k/kernel-source/kernel-vanilla.changes b/packages/k/kernel-source/kernel-vanilla.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-vanilla.changes +++ b/packages/k/kernel-source/kernel-vanilla.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-vanilla.spec b/packages/k/kernel-source/kernel-vanilla.spec index da43d8e..3709b06 100644 --- a/packages/k/kernel-source/kernel-vanilla.spec +++ b/packages/k/kernel-source/kernel-vanilla.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-vanilla Summary: The Standard Kernel - without any SUSE patches License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %obsolete_rebuilds %name Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz Source2: source-post.sh @@ -817,6 +817,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -947,6 +956,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1208,13 +1221,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/kernel-zfcpdump.changes b/packages/k/kernel-source/kernel-zfcpdump.changes index b7889de..2ab9701 100644 --- a/packages/k/kernel-source/kernel-zfcpdump.changes +++ b/packages/k/kernel-source/kernel-zfcpdump.changes @@ -1,4 +1,310 @@ ------------------------------------------------------------------- +Mon Sep 28 18:54:40 CEST 2020 - jslaby@suse.cz + +- hv_netvsc: Switch the data path at the right time during + hibernation (git-fixes). +- commit 79e03c2 + +------------------------------------------------------------------- +Mon Sep 28 18:52:42 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.12 (bsc#1012628). +- net/mlx5e: Fix endianness when calculating pedit mask first bit + (bsc#1012628). +- net/mlx5e: Use synchronize_rcu to sync with NAPI (bsc#1012628). +- net/mlx5e: Use RCU to protect rq->xdp_prog (bsc#1012628). +- Revert "netns: don't disable BHs when locking "nsid_lock"" + (bsc#1012628). +- net: macb: fix for pause frame receive enable bit (bsc#1012628). +- net: dsa: microchip: ksz8795: really set the correct number + of ports (bsc#1012628). +- net: dsa: link interfaces with the DSA master to get rid of + lockdep warnings (bsc#1012628). +- hv_netvsc: Fix hibernation for mlx5 VF driver (bsc#1012628). +- hinic: fix rewaking txq after netif_tx_disable (bsc#1012628). +- net/mlx5e: Fix memory leak of tunnel info when rule under + multipath not ready (bsc#1012628). +- net: ipa: fix u32_replace_bits by u32p_xxx version + (bsc#1012628). +- wireguard: peerlookup: take lock before checking hash in + replace operation (bsc#1012628). +- wireguard: noise: take lock when removing handshake entry from + table (bsc#1012628). +- net: ethernet: ti: cpsw_new: fix suspend/resume (bsc#1012628). +- net: add __must_check to skb_put_padto() (bsc#1012628). +- net: qrtr: check skb_put_padto() return value (bsc#1012628). +- net: phy: Do not warn in phy_stop() on PHY_DOWN (bsc#1012628). +- net: phy: Avoid NPD upon phy_detach() when driver is unbound + (bsc#1012628). +- net: lantiq: Disable IRQs only if NAPI gets scheduled + (bsc#1012628). +- net: lantiq: Use napi_complete_done() (bsc#1012628). +- net: lantiq: use netif_tx_napi_add() for TX NAPI (bsc#1012628). +- net: lantiq: Wake TX queue again (bsc#1012628). +- bnxt_en: Protect bnxt_set_eee() and bnxt_set_pauseparam() + with mutex (bsc#1012628). +- bnxt_en: return proper error codes in bnxt_show_temp + (bsc#1012628). +- bnxt_en: Use memcpy to copy VPD field info (bsc#1012628). +- net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported + (bsc#1012628). +- net/mlx5e: Enable adding peer miss rules only if merged eswitch + is supported (bsc#1012628). +- tipc: use skb_unshare() instead in tipc_buf_append() + (bsc#1012628). +- tipc: fix shutdown() of connection oriented socket + (bsc#1012628). +- tipc: Fix memory leak in tipc_group_create_member() + (bsc#1012628). +- taprio: Fix allowing too small intervals (bsc#1012628). +- nfp: use correct define to return NONE fec (bsc#1012628). +- net: sctp: Fix IPv6 ancestor_size calc in sctp_copy_descendant + (bsc#1012628). +- net: sch_generic: aviod concurrent reset and enqueue op for + lockless qdisc (bsc#1012628). +- net: sched: initialize with 0 before setting erspan md->u + (bsc#1012628). +- net: phy: call phy_disable_interrupts() in phy_attach_direct() + instead (bsc#1012628). +- net/mlx5: Fix FTE cleanup (bsc#1012628). +- net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC + (bsc#1012628). +- net: Fix bridge enslavement failure (bsc#1012628). +- net: dsa: rtl8366: Properly clear member config (bsc#1012628). +- net: DCB: Validate DCB_ATTR_DCB_BUFFER argument (bsc#1012628). +- net: bridge: br_vlan_get_pvid_rcu() should dereference the + VLAN group under RCU (bsc#1012628). +- ipv6: avoid lockdep issue in fib6_del() (bsc#1012628). +- ipv4: Update exception handling for multipath routes via same + device (bsc#1012628). +- ipv4: Initialize flowi4_multipath_hash in data path + (bsc#1012628). +- ip: fix tos reflection in ack and reset packets (bsc#1012628). +- hinic: bump up the timeout of SET_FUNC_STATE cmd (bsc#1012628). +- hdlc_ppp: add range checks in ppp_cp_parse_cr() (bsc#1012628). +- geneve: add transport ports in route lookup for geneve + (bsc#1012628). +- cxgb4: Fix offset when clearing filter byte counters + (bsc#1012628). +- cxgb4: fix memory leak during module unload (bsc#1012628). +- bnxt_en: Fix NULL ptr dereference crash in bnxt_fw_reset_task() + (bsc#1012628). +- bnxt_en: Avoid sending firmware messages when AER error is + detected (bsc#1012628). +- act_ife: load meta modules before tcf_idr_check_alloc() + (bsc#1012628). +- ibmvnic: add missing parenthesis in do_reset() (bsc#1012628). +- ibmvnic fix NULL tx_pools and rx_tools issue at do_reset + (bsc#1012628). +- commit 4416947 + +------------------------------------------------------------------- +Thu Sep 24 06:12:22 CEST 2020 - jslaby@suse.cz + +- mptcp: sendmsg: reset iter on error redux (git-fixes). +- commit f4bb27a + +------------------------------------------------------------------- +Thu Sep 24 05:45:26 CEST 2020 - jslaby@suse.cz + +- Linux 5.8.11 (bsc#1012628). +- RDMA/bnxt_re: Restrict the max_gids to 256 (bsc#1012628). +- dt-bindings: spi: Fix spi-bcm-qspi compatible ordering + (bsc#1012628). +- mptcp: sendmsg: reset iter on error (bsc#1012628). +- net: handle the return value of pskb_carve_frag_list() correctly + (bsc#1012628). +- dt-bindings: PCI: intel,lgm-pcie: Fix matching on all + snps,dw-pcie instances (bsc#1012628). +- hv_netvsc: Remove "unlikely" from netvsc_select_queue + (bsc#1012628). +- loop: Set correct device size when using LOOP_CONFIGURE + (bsc#1012628). +- xprtrdma: Release in-flight MRs on disconnect (bsc#1012628). +- NFSv4.1 handle ERR_DELAY error reclaiming locking state on + delegation recall (bsc#1012628). +- phy: omap-usb2-phy: disable PHY charger detect (bsc#1012628). +- habanalabs: prevent user buff overflow (bsc#1012628). +- habanalabs: fix report of RAZWI initiator coordinates + (bsc#1012628). +- scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort + (bsc#1012628). +- scsi: libfc: Fix for double free() (bsc#1012628). +- scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt + discovery (bsc#1012628). +- scsi: lpfc: Extend the RDF FPIN Registration descriptor for + additional events (bsc#1012628). +- regulator: pwm: Fix machine constraints application + (bsc#1012628). +- spi: spi-loopback-test: Fix out-of-bounds read (bsc#1012628). +- interconnect: Show bandwidth for disabled paths as zero in + debugfs (bsc#1012628). +- NFS: Zero-stateid SETATTR should first return delegation + (bsc#1012628). +- SUNRPC: stop printk reading past end of string (bsc#1012628). +- rapidio: Replace 'select' DMAENGINES 'with depends on' + (bsc#1012628). +- cifs: fix DFS mount with cifsacl/modefromsid (bsc#1012628). +- openrisc: Fix cache API compile issue when not inlining + (bsc#1012628). +- nvme-fc: cancel async events before freeing event struct + (bsc#1012628). +- nvme-rdma: cancel async events before freeing event struct + (bsc#1012628). +- nvme-tcp: cancel async events before freeing event struct + (bsc#1012628). +- block: only call sched requeue_request() for scheduled requests + (bsc#1012628). +- f2fs: fix indefinite loop scanning for free nid (bsc#1012628). +- f2fs: Return EOF on unaligned end of file DIO read + (bsc#1012628). +- i2c: algo: pca: Reapply i2c bus settings after reset + (bsc#1012628). +- spi: Fix memory leak on splited transfers (bsc#1012628). +- KVM: MIPS: Change the definition of kvm type (bsc#1012628). +- clk: davinci: Use the correct size when allocating memory + (bsc#1012628). +- clk: rockchip: Fix initialization of mux_pll_src_4plls_p + (bsc#1012628). +- ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in + autosuspend delay (bsc#1012628). +- ASoC: qcom: Set card->owner to avoid warnings (bsc#1012628). +- ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt711: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt715: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: rt700: Fix return check for devm_regmap_init_sdw() + (bsc#1012628). +- ASoC: qcom: common: Fix refcount imbalance on error + (bsc#1012628). +- drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp + (bsc#1012628). +- powerpc/book3s64/radix: Fix boot failure with large amount of + guest memory (bsc#1012628). +- ASoC: soc-core: add snd_soc_find_dai_with_mutex() (bsc#1012628). +- ASoC: meson: axg-toddr: fix channel order on g12 platforms + (bsc#1012628). +- ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev + (bsc#1012628). +- ASoC: Intel: haswell: Fix power transition refactor + (bsc#1012628). +- ASoC: core: Do not cleanup uninitialized dais on soc_pcm_open + failure (bsc#1012628). +- Drivers: hv: vmbus: hibernation: do not hang forever in + vmbus_bus_resume() (bsc#1012628). +- scsi: libsas: Fix error path in sas_notify_lldd_dev_found() + (bsc#1012628). +- arm64: Allow CPUs unffected by ARM erratum 1418040 to come in + late (bsc#1012628). +- Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload + (bsc#1012628). +- perf test: Fix the "signal" test inline assembly (bsc#1012628). +- perf record: Don't clear event's period if set by a term + (bsc#1012628). +- MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT (bsc#1012628). +- perf test: Free aliases for PMU event map aliases test + (bsc#1012628). +- perf metric: Fix some memory leaks (bsc#1012628). +- perf evlist: Fix cpu/thread map leak (bsc#1012628). +- perf parse-event: Fix memory leak in evsel->unit (bsc#1012628). +- perf test: Free formats for perf pmu parse test (bsc#1012628). +- drm/i915/gem: Reduce context termination list iteration guard + to RCU (bsc#1012628). +- fbcon: Fix user font detection test at fbcon_resize() + (bsc#1012628). +- MIPS: SNI: Fix spurious interrupts (bsc#1012628). +- drm/mediatek: Use CPU when fail to get cmdq event (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_ddp_comp_init() (bsc#1012628). +- drm/mediatek: Add exception handing in mtk_drm_probe() if + component init fail (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_drm_kms_init() (bsc#1012628). +- drm/mediatek: Add missing put_device() call in + mtk_hdmi_dt_parse_pdata() (bsc#1012628). +- arm64: bpf: Fix branch offset in JIT (bsc#1012628). +- iommu/amd: Fix potential @entry null deref (bsc#1012628). +- iommu/amd: Restore IRTE.RemapEn bit for + amd_iommu_activate_guest_mode (bsc#1012628). +- kconfig: qconf: use delete[] instead of delete to free array + (again) (bsc#1012628). +- i2c: mediatek: Fix generic definitions for bus frequency + (bsc#1012628). +- i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK + (bsc#1012628). +- riscv: Add sfence.vma after early page table changes + (bsc#1012628). +- locking/lockdep: Fix "USED" <- "IN-NMI" inversions + (bsc#1012628). +- efi: efibc: check for efivars write capability (bsc#1012628). +- locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count + (bsc#1012628). +- x86/unwind/fp: Fix FP unwinding in ret_from_fork (bsc#1012628). +- drm/kfd: fix a system crash issue during GPU recovery + (bsc#1012628). +- drm/i915/gem: Delay tracking the GEM context until it is + registered (bsc#1012628). +- drm/i915: Filter wake_flags passed to default_wake_function + (bsc#1012628). +- USB: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD + zhaoxin notebook (bsc#1012628). +- USB: UAS: fix disconnect by unplugging a hub (bsc#1012628). +- usblp: fix race between disconnect() and read() (bsc#1012628). +- usb: typec: ucsi: acpi: Increase command completion timeout + value (bsc#1012628). +- usb: typec: ucsi: Prevent mode overrun (bsc#1012628). +- i2c: i801: Fix resume bug (bsc#1012628). +- Revert "ALSA: hda - Fix silent audio output and corrupted + input on MSI X570-A PRO" (bsc#1012628). +- ALSA: hda: fixup headset for ASUS GX502 laptop (bsc#1012628). +- ALSA: hda/realtek - The Mic on a RedmiBook doesn't work + (bsc#1012628). +- percpu: fix first chunk size calculation for populated bitmap + (bsc#1012628). +- Input: trackpoint - add new trackpoint variant IDs + (bsc#1012628). +- Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset + lists (bsc#1012628). +- thunderbolt: Retry DROM read once if parsing fails + (bsc#1012628). +- serial: 8250_pci: Add Realtek 816a and 816b (bsc#1012628). +- serial: core: fix port-lock initialisation (bsc#1012628). +- serial: core: fix console port-lock regression (bsc#1012628). +- x86/boot/compressed: Disable relocation relaxation + (bsc#1012628). +- ksm: reinstate memcg charge on copied pages (bsc#1012628). +- kprobes: fix kill kprobe which has been marked as gone + (bsc#1012628). +- mm/thp: fix __split_huge_pmd_locked() for migration PMD + (bsc#1012628). +- s390: add 3f program exception handler (bsc#1012628). +- s390/pci: fix leak of DMA tables on hard unplug (bsc#1012628). +- s390/zcrypt: fix kmalloc 256k failure (bsc#1012628). +- ehci-hcd: Move include to keep CRC stable (bsc#1012628). +- arm64: paravirt: Initialize steal time when cpu is online + (bsc#1012628). +- powerpc/dma: Fix dma_map_ops::get_required_mask (bsc#1012628). +- selftests/vm: fix display of page size in map_hugetlb + (bsc#1012628). +- dm/dax: Fix table reference counts (bsc#1012628). +- mm/memory_hotplug: drain per-cpu pages again during memory + offline (bsc#1012628). +- dm: Call proper helper to determine dax support (bsc#1012628). +- dax: Fix compilation for CONFIG_DAX && !CONFIG_FS_DAX + (bsc#1012628). +- mm: memcg: fix memcg reclaim soft lockup (bsc#1012628). +- nvme-loop: set ctrl state connecting after init (bsc#1012628). +- commit f26e9c9 + +------------------------------------------------------------------- +Tue Sep 22 11:36:53 CEST 2020 - msuchanek@suse.de + +- kernel-syms.spec.in: Also use bz compression (boo#1175882). +- commit ecaf78d + +------------------------------------------------------------------- Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - Update @@ -8,6 +314,26 @@ Mon Sep 21 13:00:19 CEST 2020 - jslaby@suse.cz - commit af3e800 ------------------------------------------------------------------- +Mon Sep 21 12:44:24 CEST 2020 - tiwai@suse.de + +- Update config files: turn off CONFIG_SND_CTL_VALIDATION again (bsc#1176200) + This causes errors on ASoC SOF driver. +- commit b7791aa + +------------------------------------------------------------------- +Mon Sep 21 03:15:11 CEST 2020 - glin@suse.com + +- rpm/kernel-cert-subpackage: add CA check on key enrollment (bsc#1173115) + To avoid the unnecessary key enrollment, when enrolling the signing key + of the kernel package, "--ca-check" is added to mokutil so that mokutil + will ignore the request if the CA of the signing key already exists in + MokList or UEFI db. + Since the macro, %_suse_kernel_module_subpackage, is only defined in a + kernel module package (KMP), it's used to determine whether the %post + script is running in a kernel package, or a kernel module package. +- commit b15c9bf + +------------------------------------------------------------------- Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx' @@ -15,6 +341,15 @@ Fri Sep 18 06:36:01 CEST 2020 - jslaby@suse.cz - commit 33939e8 ------------------------------------------------------------------- +Fri Sep 18 03:33:11 CEST 2020 - glin@suse.com + +- rpm/macros.kernel-source: pass -c proerly in kernel module package (bsc#1176698) + The "-c" option wasn't passed down to %_kernel_module_package so the + ueficert subpackage wasn't generated even if the certificate is + specified in the spec file. +- commit 34808fb + +------------------------------------------------------------------- Thu Sep 17 19:44:40 CEST 2020 - jslaby@suse.cz - Linux 5.8.10 (bsc#1012628). @@ -650,6 +985,20 @@ Thu Sep 10 07:39:06 CEST 2020 - jslaby@suse.cz - commit 8b2a0ec ------------------------------------------------------------------- +Tue Sep 8 15:33:35 CEST 2020 - mbenes@suse.cz + +- rpm/kernel-binary.spec.in: pack .ipa-clones files for live patching + When -fdump-ipa-clones option is enabled, GCC reports about its cloning + operation during IPA optimizations. We use the information for live + patches preparation, because it is crucial to know if and how functions + are optimized. + Currently, we create the needed .ipa-clones dump files manually. It is + unnecessary, because the files may be created automatically during our + kernel build. Prepare for the step and provide the resulting files in + -livepatch-devel package. +- commit 98e5a9d + +------------------------------------------------------------------- Mon Sep 7 14:34:36 CEST 2020 - msuchanek@suse.de - rpm/kernel-source.spec.in: Also use bz compression (boo#1175882). diff --git a/packages/k/kernel-source/kernel-zfcpdump.spec b/packages/k/kernel-source/kernel-zfcpdump.spec index ac62f21..1128f70 100644 --- a/packages/k/kernel-source/kernel-zfcpdump.spec +++ b/packages/k/kernel-source/kernel-zfcpdump.spec @@ -18,7 +18,7 @@ %define srcversion 5.8 -%define patchversion 5.8.10 +%define patchversion 5.8.12 %define variant %{nil} %define vanilla_only 0 %define compress_modules xz @@ -51,7 +51,7 @@ # Define some CONFIG variables as rpm macros as well. (rpm cannot handle # defining them all at once.) -%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB +%define config_vars CONFIG_MODULES CONFIG_MODULE_SIG CONFIG_KMSG_IDS CONFIG_SUSE_KERNEL_SUPPORTED CONFIG_EFI_STUB CONFIG_LIVEPATCH_IPA_CLONES %{expand:%(eval "$(test -n "%cpu_arch_flavor" && tar -xjf %_sourcedir/config.tar.bz2 --to-stdout config/%cpu_arch_flavor)"; for config in %config_vars; do echo "%%global $config ${!config:-n}"; done)} %define split_extra (%CONFIG_MODULES == "y" && %CONFIG_SUSE_KERNEL_SUPPORTED == "y") %if %CONFIG_MODULES != "y" @@ -68,9 +68,9 @@ Name: kernel-zfcpdump Summary: The IBM System Z zfcpdump Kernel License: GPL-2.0 Group: System/Kernel -Version: 5.8.10 +Version: 5.8.12 %if 0%{?is_kotd} -Release: .gaf3e800 +Release: .g79e03c2 %else Release: 0 %endif @@ -179,10 +179,10 @@ Conflicts: hyper-v < 4 Conflicts: libc.so.6()(64bit) %endif Provides: kernel = %version-%source_rel -Provides: kernel-%build_flavor-base-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda -Provides: kernel-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: kernel-%build_flavor-base-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 +Provides: kernel-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 # END COMMON DEPS -Provides: %name-srchash-af3e800080ea43fbe9f7197f1b859aa8faafdcda +Provides: %name-srchash-79e03c25f1842966b73fd48825bb1b7d969c0fe5 %obsolete_rebuilds %name Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz Source2: source-post.sh @@ -820,6 +820,15 @@ if [ %CONFIG_MODULES = y ]; then # List of symbols that are used to generate kernel livepatches %if 0%{?klp_symbols} cp Symbols.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/Symbols.list > %my_builddir/livepatch-files.no_dir + + %if %CONFIG_LIVEPATCH_IPA_CLONES == "y" + find %kernel_build_dir -name "*.ipa-clones" ! -size 0 | sed -e 's|^%kernel_build_dir/||' > ipa-clones.list + cp ipa-clones.list %rpm_install_dir/%cpu_arch/%build_flavor + echo %obj_install_dir/%cpu_arch/%build_flavor/ipa-clones.list >> %my_builddir/livepatch-files.no_dir + tar -C %kernel_build_dir --verbatim-files-from -T ipa-clones.list -cf- | tar -C %rpm_install_dir/%cpu_arch/%build_flavor -xvf- + cat ipa-clones.list | sed -e 's|^|%obj_install_dir/%cpu_arch/%build_flavor/|' >> %my_builddir/livepatch-files.no_dir + %endif %endif # Table of types used in exported symbols (for modversion debugging). @@ -950,6 +959,10 @@ add_dirs_to_filelist() { } # Collect the file lists. +if [ -f %my_builddir/livepatch-files.no_dir ] ; then + cat %my_builddir/livepatch-files.no_dir | add_dirs_to_filelist > %my_builddir/livepatch-files +fi + shopt -s nullglob dotglob > %my_builddir/kernel-devel.files for file in %buildroot/boot/symtypes* %buildroot/lib/modules/*/{build,source}; do @@ -1214,13 +1227,7 @@ kernel symbols and its respective kernel object . This list is to be used by the klp-convert tool, which helps livepatch developers by enabling automatic symbol resolution. -%files %{livepatch}-devel -%defattr(-, root, root) -%dir %obj_install_dir -%dir %obj_install_dir/%cpu_arch -%dir %obj_install_dir/%cpu_arch_flavor/ -%obj_install_dir/%cpu_arch_flavor/Symbols.list - +%files %{livepatch}-devel -f livepatch-files %endif %if %CONFIG_SUSE_KERNEL_SUPPORTED == "y" diff --git a/packages/k/kernel-source/macros.kernel-source b/packages/k/kernel-source/macros.kernel-source index b06448b..4dbbcb5 100644 --- a/packages/k/kernel-source/macros.kernel-source +++ b/packages/k/kernel-source/macros.kernel-source @@ -82,9 +82,9 @@ esac) # kernel_module_package: simply pass on all options and arguments. %kernel_module_package(n:v:r:t:f:xp:bc:) \ - %{expand:%%_kernel_module_package %{-x:-X} %{-n} %{-v} %{-r} %{-t} %{-f} %{-p} %{-b} %*} + %{expand:%%_kernel_module_package %{-x:-X} %{-n} %{-v} %{-r} %{-t} %{-f} %{-p} %{-b} %{-c} %*} # suse_kernel_module_package: invert the meaning of the -x flag. (You are not # supposed to understand why a simple %{-x:}%{!-x:-x} won't work.) %suse_kernel_module_package(n:v:r:s:f:xp:bc:) \ - %{expand:%%_kernel_module_package %{-x: }%{!-x:-X} %{-n} %{-v} %{-r} %{-s:-t %{-s*}} %{-f} %{-p} %{-b} %*} + %{expand:%%_kernel_module_package %{-x: }%{!-x:-X} %{-n} %{-v} %{-r} %{-s:-t %{-s*}} %{-f} %{-p} %{-b} %{-c} %*} diff --git a/packages/k/kernel-source/patches.kernel.org.tar.bz2 b/packages/k/kernel-source/patches.kernel.org.tar.bz2 index e2956d3..b947586 120000 --- a/packages/k/kernel-source/patches.kernel.org.tar.bz2 +++ b/packages/k/kernel-source/patches.kernel.org.tar.bz2 @@ -1 +1 @@ -/ipfs/bafybeih7dq2litystvqxtv26ciz2g7dgdxdhar2ucugnpfqnd2gfsfxv6i \ No newline at end of file +/ipfs/bafybeicxuy3z2ngrfuyxavdyhqtv47naaqaukxaldtrllrukfdsumoznay \ No newline at end of file diff --git a/packages/k/kernel-source/patches.suse.tar.bz2 b/packages/k/kernel-source/patches.suse.tar.bz2 index 73ed5ca..2e87266 120000 --- a/packages/k/kernel-source/patches.suse.tar.bz2 +++ b/packages/k/kernel-source/patches.suse.tar.bz2 @@ -1 +1 @@ -/ipfs/bafkreigh744bsojwcfeb2s4zzjvqr34jqe4fc6qmwqwu3k27jal6f7njv4 \ No newline at end of file +/ipfs/bafkreibik7rbqf7y6d6n5tnmnhjcsh4nv54ewpyabzkc3ne7hoy3rzpwqq \ No newline at end of file diff --git a/packages/k/kernel-source/series.conf b/packages/k/kernel-source/series.conf index b1ea958..f30bb7e 100644 --- a/packages/k/kernel-source/series.conf +++ b/packages/k/kernel-source/series.conf @@ -1578,6 +1578,181 @@ patches.kernel.org/5.8.10-175-drm-msm-gpu-make-ringbuffer-readonly.patch patches.kernel.org/5.8.10-176-gcov-add-support-for-GCC-10.1.patch patches.kernel.org/5.8.10-177-Linux-5.8.10.patch + patches.kernel.org/5.8.11-001-RDMA-bnxt_re-Restrict-the-max_gids-to-256.patch + patches.kernel.org/5.8.11-002-dt-bindings-spi-Fix-spi-bcm-qspi-compatible-or.patch + patches.kernel.org/5.8.11-003-mptcp-sendmsg-reset-iter-on-error.patch + patches.kernel.org/5.8.11-004-net-handle-the-return-value-of-pskb_carve_frag.patch + patches.kernel.org/5.8.11-005-dt-bindings-PCI-intel-lgm-pcie-Fix-matching-on.patch + patches.kernel.org/5.8.11-006-hv_netvsc-Remove-unlikely-from-netvsc_select_q.patch + patches.kernel.org/5.8.11-007-loop-Set-correct-device-size-when-using-LOOP_C.patch + patches.kernel.org/5.8.11-008-firmware_loader-fix-memory-leak-for-paged-buff.patch + patches.kernel.org/5.8.11-009-xprtrdma-Release-in-flight-MRs-on-disconnect.patch + patches.kernel.org/5.8.11-010-NFSv4.1-handle-ERR_DELAY-error-reclaiming-lock.patch + patches.kernel.org/5.8.11-011-phy-omap-usb2-phy-disable-PHY-charger-detect.patch + patches.kernel.org/5.8.11-012-habanalabs-prevent-user-buff-overflow.patch + patches.kernel.org/5.8.11-013-habanalabs-fix-report-of-RAZWI-initiator-coord.patch + patches.kernel.org/5.8.11-014-scsi-pm8001-Fix-memleak-in-pm8001_exec_interna.patch + patches.kernel.org/5.8.11-015-scsi-libfc-Fix-for-double-free.patch + patches.kernel.org/5.8.11-016-scsi-lpfc-Fix-FLOGI-PLOGI-receive-race-conditi.patch + patches.kernel.org/5.8.11-017-scsi-lpfc-Extend-the-RDF-FPIN-Registration-des.patch + patches.kernel.org/5.8.11-018-regulator-pwm-Fix-machine-constraints-applicat.patch + patches.kernel.org/5.8.11-019-spi-spi-loopback-test-Fix-out-of-bounds-read.patch + patches.kernel.org/5.8.11-020-interconnect-Show-bandwidth-for-disabled-paths.patch + patches.kernel.org/5.8.11-021-NFS-Zero-stateid-SETATTR-should-first-return-d.patch + patches.kernel.org/5.8.11-022-SUNRPC-stop-printk-reading-past-end-of-string.patch + patches.kernel.org/5.8.11-023-rapidio-Replace-select-DMAENGINES-with-depends.patch + patches.kernel.org/5.8.11-024-cifs-fix-DFS-mount-with-cifsacl-modefromsid.patch + patches.kernel.org/5.8.11-025-openrisc-Fix-cache-API-compile-issue-when-not-.patch + patches.kernel.org/5.8.11-026-nvme-fc-cancel-async-events-before-freeing-eve.patch + patches.kernel.org/5.8.11-027-nvme-rdma-cancel-async-events-before-freeing-e.patch + patches.kernel.org/5.8.11-028-nvme-tcp-cancel-async-events-before-freeing-ev.patch + patches.kernel.org/5.8.11-029-block-only-call-sched-requeue_request-for-sche.patch + patches.kernel.org/5.8.11-030-f2fs-fix-indefinite-loop-scanning-for-free-nid.patch + patches.kernel.org/5.8.11-031-f2fs-Return-EOF-on-unaligned-end-of-file-DIO-r.patch + patches.kernel.org/5.8.11-032-i2c-algo-pca-Reapply-i2c-bus-settings-after-re.patch + patches.kernel.org/5.8.11-033-spi-Fix-memory-leak-on-splited-transfers.patch + patches.kernel.org/5.8.11-034-KVM-MIPS-Change-the-definition-of-kvm-type.patch + patches.kernel.org/5.8.11-035-clk-davinci-Use-the-correct-size-when-allocati.patch + patches.kernel.org/5.8.11-036-clk-rockchip-Fix-initialization-of-mux_pll_src.patch + patches.kernel.org/5.8.11-037-ASoC-Intel-skl_hda_dsp_generic-Fix-NULLptr-der.patch + patches.kernel.org/5.8.11-038-ASoC-qcom-Set-card-owner-to-avoid-warnings.patch + patches.kernel.org/5.8.11-039-ASoC-rt1308-sdw-Fix-return-check-for-devm_regm.patch + patches.kernel.org/5.8.11-040-ASoC-rt711-Fix-return-check-for-devm_regmap_in.patch + patches.kernel.org/5.8.11-041-ASoC-rt715-Fix-return-check-for-devm_regmap_in.patch + patches.kernel.org/5.8.11-042-ASoC-rt700-Fix-return-check-for-devm_regmap_in.patch + patches.kernel.org/5.8.11-043-ASoC-qcom-common-Fix-refcount-imbalance-on-err.patch + patches.kernel.org/5.8.11-044-drm-mediatek-dsi-Fix-scrolling-of-panel-with-s.patch + patches.kernel.org/5.8.11-045-powerpc-book3s64-radix-Fix-boot-failure-with-l.patch + patches.kernel.org/5.8.11-046-ASoC-soc-core-add-snd_soc_find_dai_with_mutex.patch + patches.kernel.org/5.8.11-047-ASoC-meson-axg-toddr-fix-channel-order-on-g12-.patch + patches.kernel.org/5.8.11-048-ASoC-tlv320adcx140-Fix-accessing-uninitialized.patch + patches.kernel.org/5.8.11-049-ASoC-Intel-haswell-Fix-power-transition-refact.patch + patches.kernel.org/5.8.11-050-ASoC-core-Do-not-cleanup-uninitialized-dais-on.patch + patches.kernel.org/5.8.11-051-Drivers-hv-vmbus-hibernation-do-not-hang-forev.patch + patches.kernel.org/5.8.11-052-scsi-libsas-Fix-error-path-in-sas_notify_lldd_.patch + patches.kernel.org/5.8.11-053-arm64-Allow-CPUs-unffected-by-ARM-erratum-1418.patch + patches.kernel.org/5.8.11-054-Drivers-hv-vmbus-Add-timeout-to-vmbus_wait_for.patch + patches.kernel.org/5.8.11-055-perf-test-Fix-the-signal-test-inline-assembly.patch + patches.kernel.org/5.8.11-056-perf-record-Don-t-clear-event-s-period-if-set-.patch + patches.kernel.org/5.8.11-057-MIPS-SNI-Fix-MIPS_L1_CACHE_SHIFT.patch + patches.kernel.org/5.8.11-058-perf-test-Free-aliases-for-PMU-event-map-alias.patch + patches.kernel.org/5.8.11-059-perf-metric-Fix-some-memory-leaks.patch + patches.kernel.org/5.8.11-060-perf-evlist-Fix-cpu-thread-map-leak.patch + patches.kernel.org/5.8.11-061-perf-parse-event-Fix-memory-leak-in-evsel-unit.patch + patches.kernel.org/5.8.11-062-perf-test-Free-formats-for-perf-pmu-parse-test.patch + patches.kernel.org/5.8.11-063-drm-i915-gem-Reduce-context-termination-list-i.patch + patches.kernel.org/5.8.11-064-fbcon-Fix-user-font-detection-test-at-fbcon_re.patch + patches.kernel.org/5.8.11-065-MIPS-SNI-Fix-spurious-interrupts.patch + patches.kernel.org/5.8.11-066-drm-mediatek-Use-CPU-when-fail-to-get-cmdq-eve.patch + patches.kernel.org/5.8.11-067-drm-mediatek-Add-missing-put_device-call-in-mt.patch + patches.kernel.org/5.8.11-068-drm-mediatek-Add-exception-handing-in-mtk_drm_.patch + patches.kernel.org/5.8.11-069-drm-mediatek-Add-missing-put_device-call-in-mt.patch + patches.kernel.org/5.8.11-070-drm-mediatek-Add-missing-put_device-call-in-mt.patch + patches.kernel.org/5.8.11-071-arm64-bpf-Fix-branch-offset-in-JIT.patch + patches.kernel.org/5.8.11-072-iommu-amd-Fix-potential-entry-null-deref.patch + patches.kernel.org/5.8.11-073-iommu-amd-Restore-IRTE.RemapEn-bit-for-amd_iom.patch + patches.kernel.org/5.8.11-074-kconfig-qconf-use-delete-instead-of-delete-to-.patch + patches.kernel.org/5.8.11-075-i2c-mediatek-Fix-generic-definitions-for-bus-f.patch + patches.kernel.org/5.8.11-076-i2c-mxs-use-MXS_DMA_CTRL_WAIT4END-instead-of-D.patch + patches.kernel.org/5.8.11-077-riscv-Add-sfence.vma-after-early-page-table-ch.patch + patches.kernel.org/5.8.11-078-locking-lockdep-Fix-USED-IN-NMI-inversions.patch + patches.kernel.org/5.8.11-079-efi-efibc-check-for-efivars-write-capability.patch + patches.kernel.org/5.8.11-080-locking-percpu-rwsem-Use-this_cpu_-inc-dec-for.patch + patches.kernel.org/5.8.11-081-x86-unwind-fp-Fix-FP-unwinding-in-ret_from_for.patch + patches.kernel.org/5.8.11-082-drm-kfd-fix-a-system-crash-issue-during-GPU-re.patch + patches.kernel.org/5.8.11-083-drm-i915-gem-Delay-tracking-the-GEM-context-un.patch + patches.kernel.org/5.8.11-084-drm-i915-Filter-wake_flags-passed-to-default_w.patch + patches.kernel.org/5.8.11-085-USB-quirks-Add-USB_QUIRK_IGNORE_REMOTE_WAKEUP-.patch + patches.kernel.org/5.8.11-086-USB-UAS-fix-disconnect-by-unplugging-a-hub.patch + patches.kernel.org/5.8.11-087-usblp-fix-race-between-disconnect-and-read.patch + patches.kernel.org/5.8.11-088-usb-typec-ucsi-acpi-Increase-command-completio.patch + patches.kernel.org/5.8.11-089-usb-typec-ucsi-Prevent-mode-overrun.patch + patches.kernel.org/5.8.11-090-i2c-i801-Fix-resume-bug.patch + patches.kernel.org/5.8.11-091-Revert-ALSA-hda-Fix-silent-audio-output-and-co.patch + patches.kernel.org/5.8.11-092-ALSA-hda-fixup-headset-for-ASUS-GX502-laptop.patch + patches.kernel.org/5.8.11-093-ALSA-hda-realtek-The-Mic-on-a-RedmiBook-doesn-.patch + patches.kernel.org/5.8.11-094-percpu-fix-first-chunk-size-calculation-for-po.patch + patches.kernel.org/5.8.11-095-Input-trackpoint-add-new-trackpoint-variant-ID.patch + patches.kernel.org/5.8.11-096-Input-i8042-add-Entroware-Proteus-EL07R4-to-no.patch + patches.kernel.org/5.8.11-097-thunderbolt-Retry-DROM-read-once-if-parsing-fa.patch + patches.kernel.org/5.8.11-098-serial-8250_pci-Add-Realtek-816a-and-816b.patch + patches.kernel.org/5.8.11-099-serial-core-fix-port-lock-initialisation.patch + patches.kernel.org/5.8.11-100-serial-core-fix-console-port-lock-regression.patch + patches.kernel.org/5.8.11-101-x86-boot-compressed-Disable-relocation-relaxat.patch + patches.kernel.org/5.8.11-102-ksm-reinstate-memcg-charge-on-copied-pages.patch + patches.kernel.org/5.8.11-103-kprobes-fix-kill-kprobe-which-has-been-marked-.patch + patches.kernel.org/5.8.11-104-mm-thp-fix-__split_huge_pmd_locked-for-migrati.patch + patches.kernel.org/5.8.11-105-s390-add-3f-program-exception-handler.patch + patches.kernel.org/5.8.11-106-s390-pci-fix-leak-of-DMA-tables-on-hard-unplug.patch + patches.kernel.org/5.8.11-107-s390-zcrypt-fix-kmalloc-256k-failure.patch + patches.kernel.org/5.8.11-108-ehci-hcd-Move-include-to-keep-CRC-stable.patch + patches.kernel.org/5.8.11-109-arm64-paravirt-Initialize-steal-time-when-cpu-.patch + patches.kernel.org/5.8.11-110-powerpc-dma-Fix-dma_map_ops-get_required_mask.patch + patches.kernel.org/5.8.11-111-selftests-vm-fix-display-of-page-size-in-map_h.patch + patches.kernel.org/5.8.11-112-dm-dax-Fix-table-reference-counts.patch + patches.kernel.org/5.8.11-113-mm-memory_hotplug-drain-per-cpu-pages-again-du.patch + patches.kernel.org/5.8.11-114-dm-Call-proper-helper-to-determine-dax-support.patch + patches.kernel.org/5.8.11-115-dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_D.patch + patches.kernel.org/5.8.11-116-mm-memcg-fix-memcg-reclaim-soft-lockup.patch + patches.kernel.org/5.8.11-117-nvme-loop-set-ctrl-state-connecting-after-init.patch + patches.kernel.org/5.8.11-118-Linux-5.8.11.patch + patches.kernel.org/5.8.12-001-ibmvnic-fix-NULL-tx_pools-and-rx_tools-issue-a.patch + patches.kernel.org/5.8.12-002-ibmvnic-add-missing-parenthesis-in-do_reset.patch + patches.kernel.org/5.8.12-003-act_ife-load-meta-modules-before-tcf_idr_check.patch + patches.kernel.org/5.8.12-004-bnxt_en-Avoid-sending-firmware-messages-when-A.patch + patches.kernel.org/5.8.12-005-bnxt_en-Fix-NULL-ptr-dereference-crash-in-bnxt.patch + patches.kernel.org/5.8.12-006-cxgb4-fix-memory-leak-during-module-unload.patch + patches.kernel.org/5.8.12-007-cxgb4-Fix-offset-when-clearing-filter-byte-cou.patch + patches.kernel.org/5.8.12-008-geneve-add-transport-ports-in-route-lookup-for.patch + patches.kernel.org/5.8.12-009-hdlc_ppp-add-range-checks-in-ppp_cp_parse_cr.patch + patches.kernel.org/5.8.12-010-hinic-bump-up-the-timeout-of-SET_FUNC_STATE-cm.patch + patches.kernel.org/5.8.12-011-ip-fix-tos-reflection-in-ack-and-reset-packets.patch + patches.kernel.org/5.8.12-012-ipv4-Initialize-flowi4_multipath_hash-in-data-.patch + patches.kernel.org/5.8.12-013-ipv4-Update-exception-handling-for-multipath-r.patch + patches.kernel.org/5.8.12-014-ipv6-avoid-lockdep-issue-in-fib6_del.patch + patches.kernel.org/5.8.12-015-net-bridge-br_vlan_get_pvid_rcu-should-derefer.patch + patches.kernel.org/5.8.12-016-net-DCB-Validate-DCB_ATTR_DCB_BUFFER-argument.patch + patches.kernel.org/5.8.12-017-net-dsa-rtl8366-Properly-clear-member-config.patch + patches.kernel.org/5.8.12-018-net-Fix-bridge-enslavement-failure.patch + patches.kernel.org/5.8.12-019-net-ipv6-fix-kconfig-dependency-warning-for-IP.patch + patches.kernel.org/5.8.12-020-net-mlx5-Fix-FTE-cleanup.patch + patches.kernel.org/5.8.12-021-net-phy-call-phy_disable_interrupts-in-phy_att.patch + patches.kernel.org/5.8.12-022-net-sched-initialize-with-0-before-setting-ers.patch + patches.kernel.org/5.8.12-023-net-sch_generic-aviod-concurrent-reset-and-enq.patch + patches.kernel.org/5.8.12-024-net-sctp-Fix-IPv6-ancestor_size-calc-in-sctp_c.patch + patches.kernel.org/5.8.12-025-nfp-use-correct-define-to-return-NONE-fec.patch + patches.kernel.org/5.8.12-026-taprio-Fix-allowing-too-small-intervals.patch + patches.kernel.org/5.8.12-027-tipc-Fix-memory-leak-in-tipc_group_create_memb.patch + patches.kernel.org/5.8.12-028-tipc-fix-shutdown-of-connection-oriented-socke.patch + patches.kernel.org/5.8.12-029-tipc-use-skb_unshare-instead-in-tipc_buf_appen.patch + patches.kernel.org/5.8.12-030-net-mlx5e-Enable-adding-peer-miss-rules-only-i.patch + patches.kernel.org/5.8.12-031-net-mlx5e-TLS-Do-not-expose-FPGA-TLS-counter-i.patch + patches.kernel.org/5.8.12-032-bnxt_en-Use-memcpy-to-copy-VPD-field-info.patch + patches.kernel.org/5.8.12-033-bnxt_en-return-proper-error-codes-in-bnxt_show.patch + patches.kernel.org/5.8.12-034-bnxt_en-Protect-bnxt_set_eee-and-bnxt_set_paus.patch + patches.kernel.org/5.8.12-035-net-lantiq-Wake-TX-queue-again.patch + patches.kernel.org/5.8.12-036-net-lantiq-use-netif_tx_napi_add-for-TX-NAPI.patch + patches.kernel.org/5.8.12-037-net-lantiq-Use-napi_complete_done.patch + patches.kernel.org/5.8.12-038-net-lantiq-Disable-IRQs-only-if-NAPI-gets-sche.patch + patches.kernel.org/5.8.12-039-net-phy-Avoid-NPD-upon-phy_detach-when-driver-.patch + patches.kernel.org/5.8.12-040-net-phy-Do-not-warn-in-phy_stop-on-PHY_DOWN.patch + patches.kernel.org/5.8.12-041-net-qrtr-check-skb_put_padto-return-value.patch + patches.kernel.org/5.8.12-042-net-add-__must_check-to-skb_put_padto.patch + patches.kernel.org/5.8.12-043-net-ethernet-ti-cpsw_new-fix-suspend-resume.patch + patches.kernel.org/5.8.12-044-wireguard-noise-take-lock-when-removing-handsh.patch + patches.kernel.org/5.8.12-045-wireguard-peerlookup-take-lock-before-checking.patch + patches.kernel.org/5.8.12-046-net-ipa-fix-u32_replace_bits-by-u32p_xxx-versi.patch + patches.kernel.org/5.8.12-047-net-mlx5e-Fix-memory-leak-of-tunnel-info-when-.patch + patches.kernel.org/5.8.12-048-hinic-fix-rewaking-txq-after-netif_tx_disable.patch + patches.kernel.org/5.8.12-049-hv_netvsc-Fix-hibernation-for-mlx5-VF-driver.patch + patches.kernel.org/5.8.12-050-net-dsa-link-interfaces-with-the-DSA-master-to.patch + patches.kernel.org/5.8.12-051-net-dsa-microchip-ksz8795-really-set-the-corre.patch + patches.kernel.org/5.8.12-052-net-macb-fix-for-pause-frame-receive-enable-bi.patch + patches.kernel.org/5.8.12-053-Revert-netns-don-t-disable-BHs-when-locking-ns.patch + patches.kernel.org/5.8.12-054-net-mlx5e-Use-RCU-to-protect-rq-xdp_prog.patch + patches.kernel.org/5.8.12-055-net-mlx5e-Use-synchronize_rcu-to-sync-with-NAP.patch + patches.kernel.org/5.8.12-056-net-mlx5e-Fix-endianness-when-calculating-pedi.patch + patches.kernel.org/5.8.12-057-Linux-5.8.12.patch ######################################################## # Build fixes that apply to the vanilla kernel too. @@ -1610,8 +1785,9 @@ patches.suse/brcmfmac-Transform-compatible-string-for-FW-loading.patch patches.suse/r8169-rename-RTL8125-to-RTL8125A.patch patches.suse/r8169-add-support-for-RTL8125B.patch - patches.suse/firmware_loader-fix-memory-leak-for-paged-buffer.patch patches.suse/RDMA-bnxt_re-Remove-set-but-not-used-variable-qplib_.patch + patches.suse/mptcp-sendmsg-reset-iter-on-error-redux.patch + patches.suse/hv_netvsc-Switch-the-data-path-at-the-right-time-dur.patch ######################################################## # kbuild/module infrastructure fixes diff --git a/packages/k/kernel-source/source-timestamp b/packages/k/kernel-source/source-timestamp index 42efba0..b3cb1b7 100644 --- a/packages/k/kernel-source/source-timestamp +++ b/packages/k/kernel-source/source-timestamp @@ -1,3 +1,3 @@ -2020-09-21 11:00:19 +0000 -GIT Revision: af3e800080ea43fbe9f7197f1b859aa8faafdcda +2020-09-29 08:27:06 +0000 +GIT Revision: 79e03c25f1842966b73fd48825bb1b7d969c0fe5 GIT Branch: stable diff --git a/packages/k/konversation/.files b/packages/k/konversation/.files index 9d6f1a5..38f2fec 100644 Binary files a/packages/k/konversation/.files and b/packages/k/konversation/.files differ diff --git a/packages/k/konversation/.rev b/packages/k/konversation/.rev index ef5c3b2..b4a8ca3 100644 --- a/packages/k/konversation/.rev +++ b/packages/k/konversation/.rev @@ -430,4 +430,12 @@ 798845 + + 24406b9e77aa8aca0c7f27c3845bedc9 + 1.7.6 + + dimstar_suse + + 838769 + diff --git a/packages/k/konversation/0001-Fix-build-with-Qt-5.13.patch b/packages/k/konversation/0001-Fix-build-with-Qt-5.13.patch deleted file mode 100644 index ab712a9..0000000 --- a/packages/k/konversation/0001-Fix-build-with-Qt-5.13.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 4d0036617becc26a76fd021138c98aceec4c7b53 Mon Sep 17 00:00:00 2001 -From: Luca Beltrame -Date: Sun, 21 Jul 2019 09:14:32 +0200 -Subject: [PATCH] Fix build with Qt 5.13 - ---- - src/irc/outputfilter.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/irc/outputfilter.cpp b/src/irc/outputfilter.cpp -index f9e6253f..45d11fb2 100644 ---- a/src/irc/outputfilter.cpp -+++ b/src/irc/outputfilter.cpp -@@ -32,6 +32,7 @@ - - #include - #include -+#include - #include - #include - #include --- -2.22.0 - diff --git a/packages/k/konversation/add-missing-includes.patch b/packages/k/konversation/add-missing-includes.patch deleted file mode 100644 index a2634ee..0000000 --- a/packages/k/konversation/add-missing-includes.patch +++ /dev/null @@ -1,21 +0,0 @@ -From 461c7dd504299871d6e9068116125b9bd26e8985 Mon Sep 17 00:00:00 2001 -From: Laurent Montel -Date: Thu, 19 Mar 2020 13:55:58 +0100 -Subject: [PATCH] Add missing includes - ---- - src/viewer/viewtree.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/viewer/viewtree.cpp b/src/viewer/viewtree.cpp -index 7178a28e..462ed9bc 100644 ---- a/src/viewer/viewtree.cpp -+++ b/src/viewer/viewtree.cpp -@@ -24,6 +24,7 @@ - #include - #include - #include -+#include - - // FIXME KF5 Port: Not DPI-aware. - #define LED_ICON_SIZE 14 diff --git a/packages/k/konversation/konversation-1.7.5.tar.xz b/packages/k/konversation/konversation-1.7.5.tar.xz deleted file mode 120000 index b05392a..0000000 --- a/packages/k/konversation/konversation-1.7.5.tar.xz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeicr27ldxsgyfixgfxqaafxayth44jdqlqtu53arojrqd5yjqwrini \ No newline at end of file diff --git a/packages/k/konversation/konversation-1.7.6.tar.xz b/packages/k/konversation/konversation-1.7.6.tar.xz new file mode 120000 index 0000000..cdc70c1 --- /dev/null +++ b/packages/k/konversation/konversation-1.7.6.tar.xz @@ -0,0 +1 @@ +/ipfs/bafybeihdl6jcvyimdy7ux4kste73u5ykje5lylgvtysrejff7vhk52eklq \ No newline at end of file diff --git a/packages/k/konversation/konversation.changes b/packages/k/konversation/konversation.changes index 43d9166..4c1026f 100644 --- a/packages/k/konversation/konversation.changes +++ b/packages/k/konversation/konversation.changes @@ -1,4 +1,23 @@ ------------------------------------------------------------------- +Wed Sep 30 10:54:25 UTC 2020 - Wolfgang Bauer + +- Update to 1.7.6: + * Fixed loading of nick icon theme to deal with multiple copies + * Fixed configuration dialogs to have consistent indentation of + subordinate options as well as spacings between labels & fields + * Fixed building against Qt 5.15. + * Fixed building against Qt 5.13. + * Translations improved +- Drop patches merged upstream: + * add-missing-includes.patch + * 0001-Fix-build-with-Qt-5.13.patch + +------------------------------------------------------------------- +Thu Aug 27 11:17:39 UTC 2020 - Christophe Giboudeaux + +- Spec cleanup + +------------------------------------------------------------------- Wed Apr 29 09:46:20 UTC 2020 - Fabian Vogt - Add patch to fix build against Qt 5.15: diff --git a/packages/k/konversation/konversation.spec b/packages/k/konversation/konversation.spec index 7c1a4ec..bf8d464 100644 --- a/packages/k/konversation/konversation.spec +++ b/packages/k/konversation/konversation.spec @@ -18,47 +18,43 @@ %define kf5_version 5.25.0 Name: konversation -Version: 1.7.5 +Version: 1.7.6 Release: 0 Summary: A graphical IRC client by KDE License: GPL-2.0-or-later Group: Productivity/Networking/IRC URL: https://konversation.kde.org/ -Source0: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz -# PATCH-FIX-UPSTREAM -Patch0: 0001-Fix-build-with-Qt-5.13.patch -Patch1: add-missing-includes.patch +Source0: https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: extra-cmake-modules -BuildRequires: karchive-devel >= %{kf5_version} -BuildRequires: kbookmarks-devel >= %{kf5_version} -BuildRequires: kconfig-devel >= %{kf5_version} -BuildRequires: kconfigwidgets-devel >= %{kf5_version} -BuildRequires: kcoreaddons-devel >= %{kf5_version} -BuildRequires: kcrash-devel >= %{kf5_version} -BuildRequires: kdbusaddons-devel >= %{kf5_version} -BuildRequires: kdoctools-devel >= %{kf5_version} -BuildRequires: kemoticons-devel >= %{kf5_version} BuildRequires: kf5-filesystem -BuildRequires: kglobalaccel-devel >= %{kf5_version} -BuildRequires: ki18n-devel >= %{kf5_version} -BuildRequires: kiconthemes-devel >= %{kf5_version} -BuildRequires: kidletime-devel >= %{kf5_version} -BuildRequires: kio-devel >= %{kf5_version} -BuildRequires: kitemviews-devel >= %{kf5_version} -BuildRequires: knotifications-devel >= %{kf5_version} -BuildRequires: knotifyconfig-devel >= %{kf5_version} -BuildRequires: kparts-devel >= %{kf5_version} -BuildRequires: kwallet-devel >= %{kf5_version} -BuildRequires: kwidgetsaddons-devel >= %{kf5_version} -BuildRequires: kwindowsystem-devel >= %{kf5_version} BuildRequires: libqca-qt5-devel -BuildRequires: phonon4qt5-devel -BuildRequires: pkgconfig -BuildRequires: solid-devel >= %{kf5_version} BuildRequires: xz -BuildRequires: pkgconfig(Qt5Core) >= 5.5.0 -BuildRequires: pkgconfig(Qt5Gui) >= 5.5.0 -BuildRequires: pkgconfig(Qt5Widgets) >= 5.5.0 +BuildRequires: cmake(KF5Archive) >= %{kf5_version} +BuildRequires: cmake(KF5Bookmarks) >= %{kf5_version} +BuildRequires: cmake(KF5Config) >= %{kf5_version} +BuildRequires: cmake(KF5ConfigWidgets) >= %{kf5_version} +BuildRequires: cmake(KF5CoreAddons) >= %{kf5_version} +BuildRequires: cmake(KF5Crash) >= %{kf5_version} +BuildRequires: cmake(KF5DBusAddons) >= %{kf5_version} +BuildRequires: cmake(KF5DocTools) >= %{kf5_version} +BuildRequires: cmake(KF5Emoticons) >= %{kf5_version} +BuildRequires: cmake(KF5GlobalAccel) >= %{kf5_version} +BuildRequires: cmake(KF5I18n) >= %{kf5_version} +BuildRequires: cmake(KF5IconThemes) >= %{kf5_version} +BuildRequires: cmake(KF5IdleTime) >= %{kf5_version} +BuildRequires: cmake(KF5ItemViews) >= %{kf5_version} +BuildRequires: cmake(KF5KIO) >= %{kf5_version} +BuildRequires: cmake(KF5Notifications) >= %{kf5_version} +BuildRequires: cmake(KF5NotifyConfig) >= %{kf5_version} +BuildRequires: cmake(KF5Parts) >= %{kf5_version} +BuildRequires: cmake(KF5Solid) >= %{kf5_version} +BuildRequires: cmake(KF5Wallet) >= %{kf5_version} +BuildRequires: cmake(KF5WidgetsAddons) >= %{kf5_version} +BuildRequires: cmake(KF5WindowSystem) >= %{kf5_version} +BuildRequires: cmake(Phonon4Qt5) +BuildRequires: cmake(Qt5Core) >= 5.5.0 +BuildRequires: cmake(Qt5Gui) >= 5.5.0 +BuildRequires: cmake(Qt5Widgets) >= 5.5.0 Recommends: %{name}-lang = %{version} %description @@ -81,11 +77,11 @@ Features: %lang_package %prep -%autosetup -p1 +%setup -q %build %cmake_kf5 -d build -%make_jobs +%cmake_build %install %kf5_makeinstall -C build @@ -95,18 +91,18 @@ Features: %files %license COPYING %doc AUTHORS COPYING-DOCS ChangeLog NEWS README +%doc %{_kf5_htmldir}/en/konversation/ %dir %{_kf5_appstreamdir} %dir %{_kf5_sharedir}/kconf_update/ -%doc %{_kf5_htmldir}/en/konversation/ %{_kf5_applicationsdir}/org.kde.konversation.desktop %{_kf5_appstreamdir}/org.kde.konversation.appdata.xml %{_kf5_bindir}/konversation %{_kf5_iconsdir}/hicolor/*/actions/konv_message.* %{_kf5_iconsdir}/hicolor/*/apps/konversation.* +%{_kf5_kxmlguidir}/konversation/ %{_kf5_notifydir}/konversation.notifyrc %{_kf5_sharedir}/kconf_update/konversation* %{_kf5_sharedir}/konversation/ -%{_kf5_kxmlguidir}/konversation/ %files lang -f %{name}.lang %dir %{_kf5_htmldir}/pt_BR/ diff --git a/packages/liba/libavtp/.files b/packages/liba/libavtp/.files index ca2920d..a9aec67 100644 Binary files a/packages/liba/libavtp/.files and b/packages/liba/libavtp/.files differ diff --git a/packages/liba/libavtp/.rev b/packages/liba/libavtp/.rev index 46c7bc0..10df41f 100644 --- a/packages/liba/libavtp/.rev +++ b/packages/liba/libavtp/.rev @@ -16,4 +16,12 @@ will be required in the next version of alsa-lib plugin. 663807 + + 8715ab568880c6678e1d7bff0e6789ad + 0.1.0+git20200527.9482c11 + + dimstar_suse + + 838557 + diff --git a/packages/liba/libavtp/_service b/packages/liba/libavtp/_service new file mode 100644 index 0000000..44c4316 --- /dev/null +++ b/packages/liba/libavtp/_service @@ -0,0 +1,14 @@ + + + https://github.com/AVnu/libavtp.git + libavtp + 0.1.0+git%cd.%h + git + + + xz + *.tar + + + + diff --git a/packages/liba/libavtp/libavtp-0.1.0+git20200527.9482c11.tar.xz b/packages/liba/libavtp/libavtp-0.1.0+git20200527.9482c11.tar.xz new file mode 120000 index 0000000..a9fa31a --- /dev/null +++ b/packages/liba/libavtp/libavtp-0.1.0+git20200527.9482c11.tar.xz @@ -0,0 +1 @@ +/ipfs/bafkreibehap2mammtwfm7wuh7dkcp3blav2qy2ewcpkrs3jmc4ao74acly \ No newline at end of file diff --git a/packages/liba/libavtp/libavtp-0.1.g2f0b071.tar.xz b/packages/liba/libavtp/libavtp-0.1.g2f0b071.tar.xz deleted file mode 120000 index 8eec576..0000000 --- a/packages/liba/libavtp/libavtp-0.1.g2f0b071.tar.xz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafkreifse6t4hxkykrdt6lv4zwf4xsuai2gtvf23f676vfat4jnc74ripm \ No newline at end of file diff --git a/packages/liba/libavtp/libavtp.changes b/packages/liba/libavtp/libavtp.changes index d6a7471..d7c6c20 100644 --- a/packages/liba/libavtp/libavtp.changes +++ b/packages/liba/libavtp/libavtp.changes @@ -1,4 +1,22 @@ ------------------------------------------------------------------- +Tue Sep 29 14:34:10 CEST 2020 - tiwai@suse.de + +- Don't build / package static library + +------------------------------------------------------------------- +Thu Sep 3 11:22:19 UTC 2020 - Antonio Larrosa + +- Update to 0.1.0+git20200527.9482c11 + * Fix compilation with GCC 9 + * Declare dependency so libavtp can be used as a meson subproject + * Update version to MAJOR.MINOR.PATCH format + * Fix URL in meson.build + * Add IEC 61883/IIDC support + * Many added examples and tests + * Add CVF support - H.264 only + * Factor out "common stream header" from avtp_aaf.c + +------------------------------------------------------------------- Tue Jan 8 17:45:18 UTC 2019 - Jan Engelhardt - Fix SRPM group, and update description to avoid redundancies. diff --git a/packages/liba/libavtp/libavtp.spec b/packages/liba/libavtp/libavtp.spec index 883ab58..9f26486 100644 --- a/packages/liba/libavtp/libavtp.spec +++ b/packages/liba/libavtp/libavtp.spec @@ -1,7 +1,7 @@ # # spec file for package libavtp # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,15 @@ # -%define git_version %{version}.g2f0b071 - +%define _lto_cflags %{nil} Name: libavtp -Version: 0.1 +Version: 0.1.0+git20200527.9482c11 Release: 0 Summary: Audio Video Transport Protocol (AVTP) Support Library License: BSD-3-Clause Group: Development/Libraries/C and C++ URL: https://github.com/AVnu/libavtp.git -Source: %{name}-%{git_version}.tar.xz +Source: %{name}-%{version}.tar.xz BuildRequires: meson BuildRequires: pkgconfig BuildRequires: pkgconfig(cmocka) @@ -52,7 +51,7 @@ This package contains all necessary include files and libraries needed to develop applications that require libavtp. %prep -%setup -q -n %{name} +%setup -q -n %{name}-%{version} %build %meson diff --git a/packages/m/MozillaThunderbird/.files b/packages/m/MozillaThunderbird/.files index ac07d55..20b91e1 100644 Binary files a/packages/m/MozillaThunderbird/.files and b/packages/m/MozillaThunderbird/.files differ diff --git a/packages/m/MozillaThunderbird/.rev b/packages/m/MozillaThunderbird/.rev index 56441d7..d879e48 100644 --- a/packages/m/MozillaThunderbird/.rev +++ b/packages/m/MozillaThunderbird/.rev @@ -3261,4 +3261,41 @@ But as always there are semi-relevant changes from the Gecko 60.4 baseline. Many Automatic submission by obs-autosubmit 832601 + + e92059184da46b9d08afc8bbccc0a8f7 + 78.3.1 + + dimstar_suse + - Mozilla Thunderbird 78.3.1 + * fix crash in nsImapProtocol::CreateNewLineFromSocket (bmo#1667120) + +- Mozilla Thunderbird 78.3.0 + MFSA 2020-44 (bsc#1176756) + * CVE-2020-15677 (bmo#1641487) + Download origin spoofing via redirect + * CVE-2020-15676 (bmo#1646140) + XSS when pasting attacker-controlled data into a + contenteditable element + * CVE-2020-15678 (bmo#1660211) + When recursing through layers while scrolling, an iterator + may have become invalid, resulting in a potential use-after- + free scenario + * CVE-2020-15673 (bmo#1648493, bmo#1660800) + Memory safety bugs fixed in Thunderbird 78.3 +- requires NSPR >= 4.25.1 +- removed obsolete thunderbird-bmo1664607.patch + +- Mozilla Thunderbird 78.2.2 + https://www.thunderbird.net/en-US/thunderbird/78.2.2/releasenotes +- added thunderbird-bmo1664607.patch required for builds w/o updater + (boo#1176384) + +- Mozilla Thunderbird 78.2.1 + * based on Mozilla's 78 ESR codebase + * many new and changed features + https://www.thunderbird.net/en-US/thunderbird/78.0/releasenotes/#whatsnew + * built-in OpenPGP support (enigmail neither required nor supported) +- added platform patches: + 838449 + diff --git a/packages/m/MozillaThunderbird/MozillaThunderbird.changes b/packages/m/MozillaThunderbird/MozillaThunderbird.changes index a315f9f..96a70f5 100644 --- a/packages/m/MozillaThunderbird/MozillaThunderbird.changes +++ b/packages/m/MozillaThunderbird/MozillaThunderbird.changes @@ -1,4 +1,58 @@ ------------------------------------------------------------------- +Fri Sep 25 06:25:54 UTC 2020 - Wolfgang Rosenauer + +- Mozilla Thunderbird 78.3.1 + * fix crash in nsImapProtocol::CreateNewLineFromSocket (bmo#1667120) + +------------------------------------------------------------------- +Wed Sep 23 21:04:45 UTC 2020 - Wolfgang Rosenauer + +- Mozilla Thunderbird 78.3.0 + MFSA 2020-44 (bsc#1176756) + * CVE-2020-15677 (bmo#1641487) + Download origin spoofing via redirect + * CVE-2020-15676 (bmo#1646140) + XSS when pasting attacker-controlled data into a + contenteditable element + * CVE-2020-15678 (bmo#1660211) + When recursing through layers while scrolling, an iterator + may have become invalid, resulting in a potential use-after- + free scenario + * CVE-2020-15673 (bmo#1648493, bmo#1660800) + Memory safety bugs fixed in Thunderbird 78.3 +- requires NSPR >= 4.25.1 +- removed obsolete thunderbird-bmo1664607.patch + +------------------------------------------------------------------- +Sun Sep 13 20:10:39 UTC 2020 - Wolfgang Rosenauer + +- Mozilla Thunderbird 78.2.2 + https://www.thunderbird.net/en-US/thunderbird/78.2.2/releasenotes +- added thunderbird-bmo1664607.patch required for builds w/o updater + (boo#1176384) + +------------------------------------------------------------------- +Mon Aug 31 12:08:25 UTC 2020 - Wolfgang Rosenauer + +- Mozilla Thunderbird 78.2.1 + * based on Mozilla's 78 ESR codebase + * many new and changed features + https://www.thunderbird.net/en-US/thunderbird/78.0/releasenotes/#whatsnew + * built-in OpenPGP support (enigmail neither required nor supported) +- added platform patches: + * mozilla-s390x-skia-gradient.patch + * mozilla-pipewire-0-3.patch + * mozilla-bmo1512162.patch + * mozilla-bmo1626236.patch + * mozilla-bmo998749.patch + * mozilla-sandbox-fips.patch +- removed obsolete platform patches + * mozilla-s390-bigendian.patch + * mozilla-nestegg-big-endian.patch + * mozilla-openaes-decl.patch + * mozilla-cubeb-noreturn.patch + +------------------------------------------------------------------- Sun Aug 30 11:05:01 UTC 2020 - Wolfgang Rosenauer - Mozilla Thunderbird 68.12.0 diff --git a/packages/m/MozillaThunderbird/MozillaThunderbird.spec b/packages/m/MozillaThunderbird/MozillaThunderbird.spec index 066f87b..fd2a670 100644 --- a/packages/m/MozillaThunderbird/MozillaThunderbird.spec +++ b/packages/m/MozillaThunderbird/MozillaThunderbird.spec @@ -25,14 +25,19 @@ # orig_suffix b3 # major 69 # mainver %major.99 -%define major 68 -%define mainver %major.12.0 -%define orig_version 68.12.0 -%define orig_suffix %{nil} -%define update_channel release -%define source_prefix thunderbird-%{mainver} - -# always build with GCC as SUSE Security Team requires that +%define major 78 +%define mainver %major.3.1 +%define orig_version 78.3.1 +%define orig_suffix %{nil} +%define update_channel release +%define source_prefix thunderbird-%{orig_version} + +%if 0%{?suse_version} > 1500 +# PGO builds do not work in TW currently (bmo#1642410) +%define do_profiling 0 +%endif + +# upstream default is clang (to use gcc for large parts set to 0) %define clang_build 0 # PIE, full relro @@ -47,6 +52,7 @@ # general build definitions %define progname thunderbird %define pkgname MozillaThunderbird +%define srcname thunderbird %define appname Thunderbird %define progdir %{_prefix}/%_lib/%{progname} %define gnome_dir %{_prefix} @@ -55,8 +61,13 @@ %define __requires_exclude ^(libmoz.*|liblgpllibs.*|libxul.*|libldap.*|libldif.*|libprldap.*)$ %define localize 1 %define crashreporter 0 - -%define has_system_cairo 0 +%if 0%{?sle_version} > 150100 +# pipewire is too old on Leap <=15.1 +# Activate only on everything newer +%define with_pipewire0_3 1 +%else +%define with_pipewire0_3 0 +%endif Name: %{pkgname} BuildRequires: Mesa-devel @@ -64,55 +75,63 @@ BuildRequires: alsa-devel BuildRequires: autoconf213 BuildRequires: dbus-1-glib-devel BuildRequires: fdupes +BuildRequires: memory-constraints %if 0%{?suse_version} <= 1320 -BuildRequires: gcc7-c++ +BuildRequires: gcc9-c++ %else BuildRequires: gcc-c++ %endif -BuildRequires: cargo >= 1.34 -#BuildRequires: hunspell-devel +BuildRequires: cargo >= 1.41 +BuildRequires: ccache BuildRequires: libXcomposite-devel BuildRequires: libcurl-devel BuildRequires: libidl-devel -BuildRequires: libnotify-devel -BuildRequires: memory-constraints -BuildRequires: mozilla-nspr-devel >= 4.21 -BuildRequires: mozilla-nss-devel >= 3.44.4 -BuildRequires: nasm >= 2.13 -BuildRequires: nodejs10 >= 10.19.0 +BuildRequires: mozilla-nspr-devel >= 4.25.1 +BuildRequires: mozilla-nss-devel >= 3.53.1 +BuildRequires: nasm >= 2.14 +BuildRequires: nodejs10 >= 10.21.0 BuildRequires: python-devel +%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 +BuildRequires: python-libxml2 +BuildRequires: python36 +%else BuildRequires: python2-xml BuildRequires: python3 >= 3.5 -BuildRequires: rust >= 1.34 -BuildRequires: rust-cbindgen >= 0.8.7 -BuildRequires: startup-notification-devel +%endif +BuildRequires: rust >= 1.41 +BuildRequires: rust-cbindgen >= 0.14.1 BuildRequires: unzip BuildRequires: update-desktop-files BuildRequires: xorg-x11-libXt-devel +%if 0%{?do_profiling} +BuildRequires: xvfb-run +%endif BuildRequires: xz BuildRequires: yasm BuildRequires: zip %if 0%{?suse_version} < 1550 BuildRequires: pkgconfig(gconf-2.0) >= 1.2.1 %endif +%if (0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000) +BuildRequires: clang6-devel +%else +BuildRequires: clang-devel >= 5 +%endif BuildRequires: pkgconfig(gdk-x11-2.0) BuildRequires: pkgconfig(glib-2.0) >= 2.22 BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gtk+-2.0) >= 2.18.0 -BuildRequires: pkgconfig(gtk+-3.0) >= 3.4.0 +BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0 BuildRequires: pkgconfig(gtk+-unix-print-2.0) BuildRequires: pkgconfig(gtk+-unix-print-3.0) BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(libpulse) +%if %{with_pipewire0_3} +BuildRequires: pkgconfig(libpipewire-0.3) +%endif %if %{with mozilla_tb_valgrind} BuildRequires: pkgconfig(valgrind) %endif -%if 0%{?suse_version} > 1320 -BuildRequires: llvm-clang-devel >= 3.9.0 -%else -# this covers the workaround to compile on Leap 42 in OBS -BuildRequires: clang4-devel -%endif # libavcodec is required for H.264 support but the # openSUSE version is currently not able to play H.264 # therefore the Packman version is required @@ -136,55 +155,57 @@ License: MPL-2.0 Group: Productivity/Networking/Email/Clients URL: https://www.thunderbird.net/ %if !%{with only_print_mozconfig} -Source: http://ftp.mozilla.org/pub/%{progname}/releases/%{orig_version}%{orig_suffix}/source/%{progname}-%{orig_version}%{orig_suffix}.source.tar.xz +Source: http://ftp.mozilla.org/pub/%{srcname}/releases/%{version}%{orig_suffix}/source/%{srcname}-%{orig_version}%{orig_suffix}.source.tar.xz Source1: thunderbird.desktop Source2: thunderbird-rpmlintrc Source3: mozilla.sh.in Source4: tar_stamps Source6: suse-default-prefs.js -Source7: l10n-%{version}.tar.xz +Source7: l10n-%{orig_version}%{orig_suffix}.tar.xz Source9: thunderbird.appdata.xml +Source13: spellcheck.js Source14: https://github.com/openSUSE/firefox-scripts/raw/5e54f4a/create-tar.sh -Source20: https://ftp.mozilla.org/pub/%{progname}/releases/%{orig_version}%{orig_suffix}/source/%{progname}-%{orig_version}%{orig_suffix}.source.tar.xz.asc -Source21: https://ftp.mozilla.org/pub/%{progname}/releases/%{orig_version}/KEY#/mozilla.keyring +Source20: https://ftp.mozilla.org/pub/%{srcname}/releases/%{version}%{orig_suffix}/source/%{srcname}-%{orig_version}%{orig_suffix}.source.tar.xz.asc +Source21: https://ftp.mozilla.org/pub/%{srcname}/releases/%{version}%{orig_suffix}/KEY#/mozilla.keyring # Gecko/Toolkit Patch1: mozilla-nongnome-proxies.patch Patch2: mozilla-kde.patch Patch3: mozilla-ntlm-full-path.patch -Patch4: mozilla-openaes-decl.patch -Patch5: mozilla-aarch64-startup-crash.patch -Patch6: mozilla-bmo1463035.patch -Patch7: mozilla-cubeb-noreturn.patch -Patch8: mozilla-fix-aarch64-libopus.patch -Patch9: mozilla-disable-wasm-emulate-arm-unaligned-fp-access.patch -Patch10: mozilla-s390-context.patch -Patch11: mozilla-s390-bigendian.patch -Patch12: mozilla-reduce-rust-debuginfo.patch -Patch13: mozilla-ppc-altivec_static_inline.patch -Patch14: mozilla-bmo1005535.patch -Patch15: mozilla-bmo1568145.patch -Patch16: mozilla-bmo849632.patch -Patch17: mozilla-bmo1504834-part1.patch -Patch18: mozilla-bmo1504834-part2.patch -Patch19: mozilla-bmo1504834-part3.patch -Patch20: mozilla-bmo1602730.patch -Patch21: mozilla-bmo1554971.patch -Patch22: mozilla-nestegg-big-endian.patch -Patch24: mozilla-fix-top-level-asm.patch -Patch25: mozilla-bmo1504834-part4.patch +Patch4: mozilla-aarch64-startup-crash.patch +Patch5: mozilla-bmo1463035.patch +Patch6: mozilla-sandbox-fips.patch +Patch7: mozilla-fix-aarch64-libopus.patch +Patch8: mozilla-disable-wasm-emulate-arm-unaligned-fp-access.patch +Patch9: mozilla-s390-context.patch +Patch11: mozilla-reduce-rust-debuginfo.patch +Patch12: mozilla-ppc-altivec_static_inline.patch +Patch13: mozilla-bmo1005535.patch +Patch14: mozilla-bmo1568145.patch +Patch15: mozilla-bmo1504834-part1.patch +Patch16: mozilla-bmo1504834-part2.patch +Patch17: mozilla-bmo1504834-part3.patch +Patch18: mozilla-bmo1554971.patch +Patch19: mozilla-bmo1512162.patch +Patch20: mozilla-fix-top-level-asm.patch +Patch21: mozilla-bmo1504834-part4.patch +Patch22: mozilla-bmo849632.patch +Patch23: mozilla-pipewire-0-3.patch +Patch24: mozilla-bmo1602730.patch +Patch25: mozilla-bmo998749.patch +Patch26: mozilla-bmo1626236.patch +Patch27: mozilla-s390x-skia-gradient.patch %endif # only_print_mozconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: coreutils fileutils textutils /bin/sh -Recommends: libcanberra0 -Recommends: libpulse0 -### build options -%define has_system_cairo 0 ### build options end Requires: mozilla-nspr >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nspr) Requires: mozilla-nss >= %(rpm -q --queryformat '%%{VERSION}' mozilla-nss) +Recommends: libcanberra0 +Recommends: libpulse0 Requires(post): desktop-file-utils Requires(postun): desktop-file-utils %define libgssapi libgssapi_krb5.so.2 +ExcludeArch: armv6l armv6hl %description Thunderbird is a free, open-source, cross-platform application for @@ -207,7 +228,7 @@ of %{appname}. %package translations-other Summary: Extra translations for %{appname} Group: System/Localization -Provides: locale(%{name}:ast;be;bg;br;cak;cy;dsb;et;eu;fy_NL;ga_IE;gd;gl;he;hr;hsb;hy_AM;id;is;ka;kab;kk;lt;ms;nn_NO;rm;ro;si;sk;sl;sq;sr;tr;uk;uz;vi) +Provides: locale(%{name}:ach;af;an;ast;az;be;bg;bn;br;bs;cak;cy;dsb;en_CA;eo;es_MX;et;eu;fa;ff;fy_NL;ga_IE;gd;gl;gn;gu_IN;he;hi_IN;hr;hsb;hy_AM;ia;id;is;ka;kab;kk;km;kn;lij;lt;lv;mk;mr;ms;my;ne_NP;nn_NO;oc;pa_IN;rm;ro;si;sk;sl;son;sq;sr;ta;te;th;tr;uk;ur;uz;vi;xh) Requires: %{name} = %{version} Obsoletes: %{name}-translations < %{version}-%{release} @@ -237,9 +258,10 @@ if (( $(stat -Lc%s "%{SOURCE7}") < MINSIZE)); then echo "Translations tarball %{SOURCE7} not generated properly." exit 1 fi -%setup -q -n %{source_prefix} -b 7 + +%setup -q -n %{srcname}-%{orig_version} -b 7 %else -%setup -q -n %{source_prefix} +%setup -q -n %{srcname}-%{orig_version} %endif %patch1 -p1 %if %{with mozilla_tb_kde4} @@ -252,10 +274,7 @@ fi %patch7 -p1 %patch8 -p1 %patch9 -p1 -%patch10 -p1 -%ifarch s390x ppc64 %patch11 -p1 -%endif %patch12 -p1 %patch13 -p1 %patch14 -p1 @@ -267,18 +286,30 @@ fi %patch20 -p1 %patch21 -p1 %patch22 -p1 +%if %{with_pipewire0_3} +%patch23 -p1 +%endif %patch24 -p1 %patch25 -p1 +%patch26 -p1 +%patch27 -p1 %endif # only_print_mozconfig %build %if !%{with only_print_mozconfig} -%define _lto_cflags %{nil} # no need to add build time to binaries modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" TIME="\"$(date -d "${modified}" "+%%R")\"" find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + + +# SLE-12 provides python36, but that package does not provide a python3 binary +%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 +sed -i "s/python3/python36/g" configure.in +sed -i "s/python3/python36/g" mach +export PYTHON3=/usr/bin/python36 +%endif + # %if %{with mozilla_tb_kde4} kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) @@ -291,13 +322,17 @@ fi source %{SOURCE4} -export SUSE_ASNEEDED=0 +export CARGO_HOME=${RPM_BUILD_DIR}/%{srcname}-%{orig_version}/.cargo +export MOZ_SOURCE_CHANGESET=$RELEASE_TAG +export SOURCE_REPO=$RELEASE_REPO +export source_repo=$RELEASE_REPO +export MOZ_SOURCE_REPO=$RELEASE_REPO export MOZ_BUILD_DATE=$RELEASE_TIMESTAMP export MOZILLA_OFFICIAL=1 export BUILD_OFFICIAL=1 export MOZ_TELEMETRY_REPORTING=1 %if 0%{?suse_version} <= 1320 -export CC=gcc-7 +export CC=gcc-9 %else %if 0%{?clang_build} == 0 export CC=gcc @@ -322,37 +357,42 @@ export MOZCONFIG=$RPM_BUILD_DIR/mozconfig echo "export CC=$CC" echo "export CXX=$CXX" echo "export CFLAGS=\"$CFLAGS\"" +echo "export CXXFLAGS=\"$CXXFLAGS\"" echo "export LDFLAGS=\"$LDFLAGS\"" echo "export RUSTFLAGS=\"$RUSTFLAGS\"" +echo "export CARGO_HOME=\"$CARGO_HOME\"" +echo "export PATH=\"$PATH\"" +echo "export LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH\"" +echo "export PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" +echo "export MOZCONFIG=\"$MOZCONFIG\"" +echo "export MOZILLA_OFFICIAL=1" +echo "export BUILD_OFFICIAL=1" +echo "export MOZ_TELEMETRY_REPORTING=1" echo "" cat << EOF %else +%ifarch ppc64 ppc64le +%limit_build -m 2500 +%else %limit_build -m 2000 +%endif +# TODO: Check if this can be removed export MOZ_DEBUG_FLAGS="-pipe" cat << EOF > $MOZCONFIG %endif mk_add_options MOZILLA_OFFICIAL=1 mk_add_options BUILD_OFFICIAL=1 -mk_add_options MOZ_MILESTONE_RELEASE=1 -%if 0%{?suse_version} > 1320 -%ifarch i586 -mk_add_options MOZ_MAKE_FLAGS=-j1 -%else mk_add_options MOZ_MAKE_FLAGS=%{?jobs:-j%jobs} -%endif -%endif mk_add_options MOZ_OBJDIR=$RPM_BUILD_DIR/obj ac_add_options --prefix=%{_prefix} -ac_add_options --libdir=%{progdir} +ac_add_options --libdir=%{_libdir} ac_add_options --includedir=%{_includedir} ac_add_options --enable-application=comm/mail -ac_add_options --enable-calendar -ac_add_options --disable-tests -ac_add_options --disable-debug -ac_add_options --enable-alsa +ac_add_options --enable-release +%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000 ac_add_options --enable-default-toolkit=cairo-gtk3 -%if 0%{?suse_version} >= 1550 -ac_add_options --disable-gconf +%else +ac_add_options --enable-default-toolkit=cairo-gtk3-wayland %endif # bmo#1441155 - Disable the generation of Rust debug symbols on Linux32 %ifarch %ix86 %arm @@ -360,27 +400,27 @@ ac_add_options --disable-debug-symbols %else ac_add_options --enable-debug-symbols %endif -%if 0%{?suse_version} > 1549 +# building with elf-hack started to fail everywhere with FF73 +#%if 0%{?suse_version} > 1549 %ifnarch aarch64 ppc64 ppc64le s390x ac_add_options --disable-elf-hack %endif -%endif +#%endif ac_add_options --with-system-nspr ac_add_options --with-system-nss -ac_add_options --with-system-zlib -%if 0%{?localize} +ac_add_options --with-ccache +%if %{localize} ac_add_options --with-l10n-base=$RPM_BUILD_DIR/l10n %endif +ac_add_options --with-system-zlib ac_add_options --disable-updater -#ac_add_options --with-system-png # no apng support -#ac_add_options --enable-system-hunspell -ac_add_options --enable-startup-notification +ac_add_options --disable-tests +ac_add_options --enable-alsa +ac_add_options --disable-debug ac_add_options --disable-necko-wifi ac_add_options --enable-update-channel=%{update_channel} -%if %has_system_cairo -ac_add_options --enable-system-cairo -%endif ac_add_options --with-unsigned-addon-scopes=app +ac_add_options --allow-addon-sideload ac_add_options --enable-official-branding %if ! %crashreporter ac_add_options --disable-crashreporter @@ -402,12 +442,15 @@ ac_add_options --enable-optimize="-O1" # LTO needs newer toolchain stack only (at least GCC 8.2.1 (r268506) %if 0%{?suse_version} > 1500 ac_add_options --enable-lto +%if 0%{?do_profiling} +ac_add_options MOZ_PGO=1 %endif %endif %if %{with mozilla_tb_valgrind} ac_add_options --disable-jemalloc ac_add_options --enable-valgrind %endif +%endif EOF %if !%{with only_print_mozconfig} %ifarch ppc64 s390x s390 @@ -420,7 +463,11 @@ echo "Generate big endian version of config/external/icu/data/icud58l.dat" ls -l config/external/icu/data rm -f config/external/icu/data/icudt*l.dat %endif -./mach build +ccache -s +%if 0%{?do_profiling} +xvfb-run --server-args="-screen 0 1920x1080x24" \ +%endif +./mach build -v # build additional locales %if %localize @@ -448,48 +495,32 @@ sed -r '/^(ja-JP-mac|en-US|$)/d;s/ .*$//' $RPM_BUILD_DIR/%{source_prefix}/comm/m %install cd $RPM_BUILD_DIR/obj +source %{SOURCE4} +export MOZ_SOURCE_STAMP=$RELEASE_TAG +export MOZ_SOURCE_REPO=$RELEASE_REPO make -C comm/mail/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0 # copy tree into RPM_BUILD_ROOT mkdir -p %{buildroot}%{progdir} cp -rf $RPM_BUILD_DIR/obj/dist/%{progname}/* %{buildroot}%{progdir} -%if %localize -# repack the lightning xpi with all available locales (boo#939153) (lp#545778) -_extid="{e2fda1a4-762b-4020-b5ad-a41df1933103}" -rm -rf _lightning -mkdir -p _lightning -unzip -q -d _lightning "%{buildroot}%{progdir}/distribution/extensions/${_extid}.xpi" -_langpacks=$(cd "%{buildroot}%{progdir}/extensions/" && find langpack-* -type d -prune -print|cut -d'-' -f2-|cut -d'@' -f1) -for _loc in $_langpacks ; do - _dir="%{buildroot}%{progdir}/extensions/langpack-${_loc}@thunderbird.mozilla.org" - _dir="${_dir}/distribution/extensions/${_extid}" - test -d "_lightning/chrome/calendar-${_loc}" && continue - test -d "_lightning/chrome/lightning-${_loc}" && continue - test -f "${_dir}/chrome.manifest" || continue - cp -rL "${_dir}"/chrome/{calendar,lightning}-"${_loc}" _lightning/chrome/ - cat "${_dir}/chrome.manifest" >> _lightning/chrome.manifest -done -(cd _lightning && zip -q9r ../"${_extid}.xpi" *) -cp -p "${_extid}.xpi" %{buildroot}%{progdir}/distribution/extensions/ -%endif # remove some executable permissions -find %{buildroot}%{_libdir}/%{progname} \ - -name "*.js" -o \ - -name "*.jsm" -o \ - -name "*.rdf" -o \ - -name "*.properties" -o \ - -name "*.dtd" -o \ - -name "*.txt" -o \ - -name "*.xml" -o \ - -name "*.css" \ - -exec chmod a-x {} + +find %{buildroot}%{progdir} \ + -name "*.js" -o \ + -name "*.jsm" -o \ + -name "*.rdf" -o \ + -name "*.properties" -o \ + -name "*.dtd" -o \ + -name "*.txt" -o \ + -name "*.xml" -o \ + -name "*.css" \ + -exec chmod a-x {} + # remove mkdir.done files from installed base find %{buildroot}%{progdir} -type f -name ".mkdir.done" -delete # overwrite the mozilla start-script and link it to /usr/bin mkdir --parents %{buildroot}%{_bindir}/ sed "s:%%PREFIX:%{_prefix}:g s:%%PROGDIR:%{progdir}:g -s:%%APPNAME:thunderbird:g +s:%%APPNAME:%{progname}:g s:%%PROFILE:.thunderbird:g" \ %{SOURCE3} > %{buildroot}%{progdir}/%{progname}.sh chmod 755 %{buildroot}%{progdir}/%{progname}.sh @@ -570,8 +601,6 @@ exit 0 %attr(755,root,root) %{progdir}/%{progname}.sh %dir %{progdir} %{progdir}/application.ini -%{progdir}/blocklist.xml -%{progdir}/chrome.manifest %{progdir}/dependentlibs.list %{progdir}/fonts/ %dir %{progdir}/gtk2 @@ -591,7 +620,6 @@ exit 0 %endif %dir %{progdir}/chrome/ %{progdir}/chrome/icons/ -%{progdir}/distribution/ %{progdir}/defaults/ %{progdir}/features/ %{progdir}/isp/ diff --git a/packages/m/MozillaThunderbird/l10n-68.12.0.tar.xz b/packages/m/MozillaThunderbird/l10n-68.12.0.tar.xz deleted file mode 120000 index 233a8d6..0000000 --- a/packages/m/MozillaThunderbird/l10n-68.12.0.tar.xz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeib26v32vtcwbqxo337s6cjus4vi2bcbndsfoskgj3khfpjxtlaqpu \ No newline at end of file diff --git a/packages/m/MozillaThunderbird/l10n-78.3.1.tar.xz b/packages/m/MozillaThunderbird/l10n-78.3.1.tar.xz new file mode 120000 index 0000000..08c76b2 --- /dev/null +++ b/packages/m/MozillaThunderbird/l10n-78.3.1.tar.xz @@ -0,0 +1 @@ +/ipfs/bafybeia6s6xa6ag2v5pzjzmqqzn6xenqhdzdxl2hj3olbgvlybmfkjv2vy \ No newline at end of file diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1005535.patch b/packages/m/MozillaThunderbird/mozilla-bmo1005535.patch index 96f6e1a..1fa048f 100644 --- a/packages/m/MozillaThunderbird/mozilla-bmo1005535.patch +++ b/packages/m/MozillaThunderbird/mozilla-bmo1005535.patch @@ -3,13 +3,13 @@ # Date 1558451540 -7200 # Tue May 21 17:12:20 2019 +0200 # Node ID 433beec63e6b5f409683af20a0c1ab137cc7bfad -# Parent 42c99b59a87b904063bad3193f10c51d068d2eac +# Parent 0b9b94a6526d4f1aa6e23b95c1f5f7c0bef841a7 Bug 1005535 - Get skia GPU building on big endian. -diff -r 42c99b59a87b -r 433beec63e6b gfx/skia/skia/include/private/GrColor.h ---- a/gfx/skia/skia/include/private/GrColor.h Wed Jun 05 08:48:08 2019 +0200 -+++ b/gfx/skia/skia/include/private/GrColor.h Tue May 21 17:12:20 2019 +0200 -@@ -63,7 +63,7 @@ +diff -r 0b9b94a6526d gfx/skia/skia/src/gpu/GrColor.h +--- a/gfx/skia/skia/src/gpu/GrColor.h Tue May 21 17:26:58 2019 +0200 ++++ b/gfx/skia/skia/src/gpu/GrColor.h Wed Jan 08 12:14:52 2020 +0100 +@@ -64,7 +64,7 @@ * Since premultiplied means that alpha >= color, we construct a color with * each component==255 and alpha == 0 to be "illegal" */ diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1463035.patch b/packages/m/MozillaThunderbird/mozilla-bmo1463035.patch index 2d153d2..cd417e0 100644 --- a/packages/m/MozillaThunderbird/mozilla-bmo1463035.patch +++ b/packages/m/MozillaThunderbird/mozilla-bmo1463035.patch @@ -1,9 +1,9 @@ - # HG changeset patch # User Mike Hommey # Date 1526871862 -32400 -# Node ID 94f21505ff13cd089f7129cd24927cf8b31a0f43 -# Parent fc741a5ea37dbe145e0ca5f85e5dfb100f3c9091 +# Mon May 21 12:04:22 2018 +0900 +# Node ID 74a0c200d7f748a3fe46bb22a38625b074da8e26 +# Parent 0bf4a038a7129aa6bfd7bb27e7455ab649344ac5 Bug 1463035 - Remove MOZ_SIGNAL_TRAMPOLINE. r?darchons For some reason, GNU as is not happy with the assembly generated after @@ -12,39 +12,10 @@ bug 1238661 anymore on Debian armel. OTOH, as mentioned in bug 1238661 comment 4, we actually don't need this workaround anymore, so let's just kill it. -diff --git a/mfbt/moz.build b/mfbt/moz.build ---- a/mfbt/moz.build -+++ b/mfbt/moz.build -@@ -122,20 +122,16 @@ EXPORTS["double-conversion"] = [ - LOCAL_INCLUDES += [ - '/mfbt/double-conversion', - ] - - if CONFIG['OS_ARCH'] == 'WINNT': - EXPORTS.mozilla += [ - 'WindowsVersion.h', - ] --elif CONFIG['OS_ARCH'] == 'Linux': -- EXPORTS.mozilla += [ -- 'LinuxSignal.h', -- ] - - UNIFIED_SOURCES += [ - 'Assertions.cpp', - 'ChaosMode.cpp', - 'double-conversion/double-conversion/bignum-dtoa.cc', - 'double-conversion/double-conversion/bignum.cc', - 'double-conversion/double-conversion/cached-powers.cc', - 'double-conversion/double-conversion/diy-fp.cc', -diff --git a/tools/profiler/core/platform-linux-android.cpp b/tools/profiler/core/platform-linux-android.cpp ---- a/tools/profiler/core/platform-linux-android.cpp -+++ b/tools/profiler/core/platform-linux-android.cpp -@@ -55,17 +55,16 @@ - #ifdef __GLIBC__ - # include // backtrace, backtrace_symbols - #endif // def __GLIBC__ - #include // index - #include +diff -r 0bf4a038a712 -r 74a0c200d7f7 mozglue/baseprofiler/core/platform-linux-android.cpp +--- a/mozglue/baseprofiler/core/platform-linux-android.cpp Tue May 21 14:49:58 2019 +0200 ++++ b/mozglue/baseprofiler/core/platform-linux-android.cpp Mon May 21 12:04:22 2018 +0900 +@@ -60,7 +60,6 @@ #include #include "prenv.h" @@ -52,17 +23,7 @@ diff --git a/tools/profiler/core/platform-linux-android.cpp b/tools/profiler/cor #include "mozilla/PodOperations.h" #include "mozilla/DebugOnly.h" - #include - #include - - using namespace mozilla; - -@@ -248,17 +247,17 @@ Sampler::Sampler(PSLockRef aLock) - - // NOTE: We don't initialize LUL here, instead initializing it in - // SamplerThread's constructor. This is because with the - // profiler_suspend_and_sample_thread entry point, we want to be able to - // sample without waiting for LUL to be initialized. +@@ -271,7 +270,7 @@ // Request profiling signals. struct sigaction sa; @@ -71,8 +32,15 @@ diff --git a/tools/profiler/core/platform-linux-android.cpp b/tools/profiler/cor sigemptyset(&sa.sa_mask); sa.sa_flags = SA_RESTART | SA_SIGINFO; if (sigaction(SIGPROF, &sa, &mOldSigprofHandler) != 0) { - MOZ_CRASH("Error installing SIGPROF handler in the profiler"); - } - } +diff -r 0bf4a038a712 -r 74a0c200d7f7 tools/profiler/core/platform-linux-android.cpp +--- a/tools/profiler/core/platform-linux-android.cpp Tue May 21 14:49:58 2019 +0200 ++++ b/tools/profiler/core/platform-linux-android.cpp Mon May 21 12:04:22 2018 +0900 +@@ -263,7 +263,7 @@ - void Sampler::Disable(PSLockRef aLock) { + // Request profiling signals. + struct sigaction sa; +- sa.sa_sigaction = MOZ_SIGNAL_TRAMPOLINE(SigprofHandler); ++ sa.sa_sigaction = SigprofHandler; + sigemptyset(&sa.sa_mask); + sa.sa_flags = SA_RESTART | SA_SIGINFO; + if (sigaction(SIGPROF, &sa, &mOldSigprofHandler) != 0) { diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1504834-part1.patch b/packages/m/MozillaThunderbird/mozilla-bmo1504834-part1.patch index cb985bb..2708645 100644 --- a/packages/m/MozillaThunderbird/mozilla-bmo1504834-part1.patch +++ b/packages/m/MozillaThunderbird/mozilla-bmo1504834-part1.patch @@ -1,11 +1,16 @@ # HG changeset patch -# Parent 051b75a600dfbf7503c3485cebfd34d4eb29be96 +# Parent 9db312f823881c04c5c16a7623df08cf6aef371d Taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1504834 -diff -r 051b75a600df gfx/2d/DrawTargetSkia.cpp ---- a/gfx/2d/DrawTargetSkia.cpp Fri Jul 05 12:42:44 2019 +0200 -+++ b/gfx/2d/DrawTargetSkia.cpp Mon Jul 08 10:59:30 2019 +0200 -@@ -138,8 +138,7 @@ +diff --git a/gfx/2d/DrawTargetSkia.cpp b/gfx/2d/DrawTargetSkia.cpp +--- a/gfx/2d/DrawTargetSkia.cpp ++++ b/gfx/2d/DrawTargetSkia.cpp +@@ -131,18 +131,17 @@ static IntRect CalculateSurfaceBounds(co + Rect sampledBounds = inverse.TransformBounds(*aBounds); + if (!sampledBounds.ToIntRect(&bounds)) { + return surfaceBounds; + } + return surfaceBounds.Intersect(bounds); } @@ -15,38 +20,68 @@ diff -r 051b75a600df gfx/2d/DrawTargetSkia.cpp static bool VerifyRGBXFormat(uint8_t* aData, const IntSize& aSize, const int32_t aStride, SurfaceFormat aFormat) { -diff -r 051b75a600df gfx/2d/Types.h ---- a/gfx/2d/Types.h Fri Jul 05 12:42:44 2019 +0200 -+++ b/gfx/2d/Types.h Mon Jul 08 10:59:30 2019 +0200 -@@ -85,15 +85,8 @@ + if (aFormat != SurfaceFormat::B8G8R8X8 || aSize.IsEmpty()) { + return true; + } + // We should've initialized the data to be opaque already + // On debug builds, verify that this is actually true. +diff --git a/gfx/2d/Types.h b/gfx/2d/Types.h +--- a/gfx/2d/Types.h ++++ b/gfx/2d/Types.h +@@ -82,25 +82,18 @@ enum class SurfaceFormat : int8_t { + Depth, + + // This represents the unknown format. + UNKNOWN, + // The following values are endian-independent synonyms. The _UINT32 suffix // indicates that the name reflects the layout when viewed as a uint32_t // value. --#if MOZ_LITTLE_ENDIAN +-#if MOZ_LITTLE_ENDIAN() A8R8G8B8_UINT32 = B8G8R8A8, // 0xAARRGGBB - X8R8G8B8_UINT32 = B8G8R8X8 // 0x00RRGGBB --#elif MOZ_BIG_ENDIAN + X8R8G8B8_UINT32 = B8G8R8X8, // 0x00RRGGBB +-#elif MOZ_BIG_ENDIAN() - A8R8G8B8_UINT32 = A8R8G8B8, // 0xAARRGGBB -- X8R8G8B8_UINT32 = X8R8G8B8 // 0x00RRGGBB +- X8R8G8B8_UINT32 = X8R8G8B8, // 0x00RRGGBB -#else -# error "bad endianness" -#endif - }; - static inline int BytesPerPixel(SurfaceFormat aFormat) { -diff -r 051b75a600df gfx/skia/skia/third_party/skcms/skcms.cc ---- a/gfx/skia/skia/third_party/skcms/skcms.cc Fri Jul 05 12:42:44 2019 +0200 -+++ b/gfx/skia/skia/third_party/skcms/skcms.cc Mon Jul 08 10:59:30 2019 +0200 -@@ -17,6 +17,8 @@ - #include - #elif defined(__SSE__) - #include + // The following values are OS and endian-independent synonyms. + // + // TODO(aosmond): When everything blocking bug 1581828 has been resolved, we + // can make this use R8B8G8A8 and R8B8G8X8 for non-Windows platforms. + OS_RGBA = A8R8G8B8_UINT32, + OS_RGBX = X8R8G8B8_UINT32 + }; +diff --git a/gfx/skia/skia/third_party/skcms/skcms.cc b/gfx/skia/skia/third_party/skcms/skcms.cc +--- a/gfx/skia/skia/third_party/skcms/skcms.cc ++++ b/gfx/skia/skia/third_party/skcms/skcms.cc +@@ -25,16 +25,18 @@ + // it'd be a lot slower. But we want all those headers included so we + // can use their features after runtime checks later. + #include + #include + #include + #include + #include + #endif +#else + #define SKCMS_PORTABLE #endif // sizeof(x) will return size_t, which is 32-bit on some machines and 64-bit on others. -@@ -124,20 +126,28 @@ + // We have better testing on 64-bit machines, so force 32-bit machines to behave like 64-bit. + // + // Please do not use sizeof() directly, and size_t only when required. + // (We have no way of enforcing these requests...) + #define SAFE_SIZEOF(x) ((uint64_t)sizeof(x)) +@@ -275,30 +277,38 @@ enum { + skcms_Signature_sf32 = 0x73663332, + // XYZ is also a PCS signature, so it's defined in skcms.h + // skcms_Signature_XYZ = 0x58595A20, + }; + static uint16_t read_big_u16(const uint8_t* ptr) { uint16_t be; memcpy(&be, ptr, sizeof(be)); @@ -79,3 +114,8 @@ diff -r 051b75a600df gfx/skia/skia/third_party/skcms/skcms.cc #endif } + static int32_t read_big_i32(const uint8_t* ptr) { + return (int32_t)read_big_u32(ptr); + } + + static float read_big_fixed(const uint8_t* ptr) { diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1504834-part2.patch b/packages/m/MozillaThunderbird/mozilla-bmo1504834-part2.patch index e6e6aa5..d2d796b 100644 --- a/packages/m/MozillaThunderbird/mozilla-bmo1504834-part2.patch +++ b/packages/m/MozillaThunderbird/mozilla-bmo1504834-part2.patch @@ -1,13 +1,13 @@ # HG changeset patch -# Parent 36563351309ddbc6c29559ba50a41d005f925abb +# Parent 0e579dcbf7328dda4512cbdafc9b42acec4935ea Skia does not support big endian. The places to fix are too numerous and upstream (skia, not Mozilla) has no interest in maintaining big endian. So here we try to swizzle the input for skia, so that skia always works on LE, and when it comes out again, we transform back to BE. -diff -r 36563351309d gfx/2d/ConvolutionFilter.cpp ---- a/gfx/2d/ConvolutionFilter.cpp Mon Sep 09 17:59:28 2019 +0200 -+++ b/gfx/2d/ConvolutionFilter.cpp Tue Sep 10 08:25:13 2019 +0200 +diff -r 0e579dcbf732 gfx/2d/ConvolutionFilter.cpp +--- a/gfx/2d/ConvolutionFilter.cpp Wed Jan 08 12:17:44 2020 +0100 ++++ b/gfx/2d/ConvolutionFilter.cpp Wed Jan 08 12:17:49 2020 +0100 @@ -35,9 +35,38 @@ return true; } @@ -23,7 +23,7 @@ diff -r 36563351309d gfx/2d/ConvolutionFilter.cpp + void ConvolutionFilter::ConvolveHorizontally(const uint8_t* aSrc, uint8_t* aDst, bool aHasAlpha) { -+#if MOZ_BIG_ENDIAN ++#if MOZ_BIG_ENDIAN() + int outputSize = mFilter->numValues(); + + // Input size isn't handed in, so we have to calculate it quickly @@ -40,7 +40,7 @@ diff -r 36563351309d gfx/2d/ConvolutionFilter.cpp + SkOpts::convolve_horizontally(aSrc, *mFilter, aDst, aHasAlpha); + -+#if MOZ_BIG_ENDIAN ++#if MOZ_BIG_ENDIAN() + ByteSwapArray((uint8_t*)aSrc, inputSize); + ByteSwapArray(aDst, outputSize); +#endif @@ -52,7 +52,7 @@ diff -r 36563351309d gfx/2d/ConvolutionFilter.cpp auto filterValues = mFilter->FilterForValue(aRowIndex, &filterOffset, &filterLength); + -+#if MOZ_BIG_ENDIAN ++#if MOZ_BIG_ENDIAN() + for (int filterY = 0; filterY < filterLength; filterY++) { + // Skia only knows LE, so we have to swizzle the input + ByteSwapArray(aSrc[filterY], aRowSize); @@ -62,7 +62,7 @@ diff -r 36563351309d gfx/2d/ConvolutionFilter.cpp SkOpts::convolve_vertically(filterValues, filterLength, aSrc, aRowSize, aDst, aHasAlpha); + -+#if MOZ_BIG_ENDIAN ++#if MOZ_BIG_ENDIAN() + // After skia is finished, we swizzle back to BE, in case + // the input is used again somewhere else + for (int filterY = 0; filterY < filterLength; filterY++) { @@ -74,9 +74,9 @@ diff -r 36563351309d gfx/2d/ConvolutionFilter.cpp } /* ConvolutionFilter::ComputeResizeFactor is derived from Skia's -diff -r 36563351309d gfx/skia/skia/include/core/SkPreConfig.h ---- a/gfx/skia/skia/include/core/SkPreConfig.h Mon Sep 09 17:59:28 2019 +0200 -+++ b/gfx/skia/skia/include/core/SkPreConfig.h Tue Sep 10 08:25:13 2019 +0200 +diff -r 0e579dcbf732 gfx/skia/skia/include/core/SkPreConfig.h +--- a/gfx/skia/skia/include/core/SkPreConfig.h Wed Jan 08 12:17:44 2020 +0100 ++++ b/gfx/skia/skia/include/core/SkPreConfig.h Wed Jan 08 12:17:49 2020 +0100 @@ -73,7 +73,7 @@ defined(__ppc__) || defined(__hppa) || \ defined(__PPC__) || defined(__PPC64__) || \ diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1504834-part4.patch b/packages/m/MozillaThunderbird/mozilla-bmo1504834-part4.patch index 9d2ffc4..9519f79 100644 --- a/packages/m/MozillaThunderbird/mozilla-bmo1504834-part4.patch +++ b/packages/m/MozillaThunderbird/mozilla-bmo1504834-part4.patch @@ -17,7 +17,7 @@ diff -r 46ea866ca3ac -r 6ef20eee3f8f gfx/2d/DrawTargetSkia.cpp SkCanvas::kPreserveLCDText_SaveLayerFlag | (aCopyBackground ? SkCanvas::kInitWithPrevious_SaveLayerFlag : 0)); -+#if MOZ_BIG_ENDIAN ++#if MOZ_BIG_ENDIAN() + // Pushing a layer where an aMask is defined produces wrong output. + // We _should_ endian swap the data, but I couldn't find a workable way to do so + // Therefore I deactivate those layers in the meantime. diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1512162.patch b/packages/m/MozillaThunderbird/mozilla-bmo1512162.patch new file mode 100644 index 0000000..c9f6043 --- /dev/null +++ b/packages/m/MozillaThunderbird/mozilla-bmo1512162.patch @@ -0,0 +1,34 @@ +# HG changeset patch +# Parent e5858dc7ab007042436496f7cfb9a5abf10f5082 +This fixes a broken build for gcc < 9 on ppc64le. +This patch can be removed for newer gcc-versions. + +diff -r e5858dc7ab00 -r 5d3469aabe61 js/xpconnect/src/XPCWrappedNative.cpp +--- a/js/xpconnect/src/XPCWrappedNative.cpp Thu Nov 29 10:07:29 2018 +0100 ++++ b/js/xpconnect/src/XPCWrappedNative.cpp Tue Sep 10 12:42:13 2019 +0200 +@@ -1092,7 +1092,11 @@ + MOZ_ALWAYS_INLINE bool GetOutParamSource(uint8_t paramIndex, + MutableHandleValue srcp) const; + +- MOZ_ALWAYS_INLINE bool GatherAndConvertResults(); ++#if !(__GNUC__ && __linux__ && __PPC64__ && _LITTLE_ENDIAN) ++// Work around a compiler bug on ppc64le (bug 1512162). ++ MOZ_ALWAYS_INLINE ++#endif ++ bool GatherAndConvertResults(); + + MOZ_ALWAYS_INLINE bool QueryInterfaceFastPath(); + +@@ -1139,7 +1143,11 @@ + + ~CallMethodHelper(); + +- MOZ_ALWAYS_INLINE bool Call(); ++#if !(__GNUC__ && __linux__ && __PPC64__ && _LITTLE_ENDIAN) ++// Work around a compiler bug on ppc64le (bug 1512162). ++ MOZ_ALWAYS_INLINE ++#endif ++ bool Call(); + + // Trace implementation so we can put our CallMethodHelper in a Rooted. + void trace(JSTracer* aTrc); diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1602730.patch b/packages/m/MozillaThunderbird/mozilla-bmo1602730.patch index c11f958..b79bb1a 100644 --- a/packages/m/MozillaThunderbird/mozilla-bmo1602730.patch +++ b/packages/m/MozillaThunderbird/mozilla-bmo1602730.patch @@ -1,28 +1,25 @@ -diff -r 6ef20eee3f8f gfx/layers/basic/BasicCompositor.cpp ---- a/gfx/layers/basic/BasicCompositor.cpp Thu Oct 31 09:11:56 2019 +0100 -+++ b/gfx/layers/basic/BasicCompositor.cpp Wed Dec 11 16:16:09 2019 +0100 -@@ -693,9 +693,13 @@ - - RefPtr sourceMask; - Matrix maskTransform; -+ // Setting an alpha-mask here breaks the URL-bar on big endian (s390x) -+ // if the typed URL is too long for the textbox (automatic scrolling needed) -+#if MOZ_LITTLE_ENDIAN - if (aTransform.Is2D()) { - SetupMask(aEffectChain, dest, offset, sourceMask, maskTransform); - } -+#endif - - CompositionOp blendMode = CompositionOp::OP_OVER; - if (Effect* effect = -diff -r 6ef20eee3f8f gfx/layers/composite/CompositableHost.cpp ---- a/gfx/layers/composite/CompositableHost.cpp Thu Oct 31 09:11:56 2019 +0100 -+++ b/gfx/layers/composite/CompositableHost.cpp Wed Dec 11 16:16:09 2019 +0100 -@@ -91,6 +91,7 @@ +# HG changeset patch +# User msirringhaus@suse.de +# Date 1582805890 -3600 +# Thu Feb 27 13:18:10 2020 +0100 +# Node ID 457cbe5705f2a3759d3da36a05c0ed66ec61ea12 +# Parent 7440f4b6bab85068ca2f84e9c48e0706d04330e8 +imported patch mozilla-bmo1602730-FF73.patch + +diff -r 7440f4b6bab8 gfx/layers/composite/CompositableHost.cpp +--- a/gfx/layers/composite/CompositableHost.cpp Thu Feb 27 13:17:56 2020 +0100 ++++ b/gfx/layers/composite/CompositableHost.cpp Wed Jun 17 15:33:32 2020 +0200 +@@ -92,9 +92,13 @@ } MOZ_ASSERT(source); -+ // Alternatively: Comment out these lines where the alpha-mask is set ++ // Setting an alpha-mask here breaks the URL-bar on big endian (s390x) ++ // if the typed URL is too long for the textbox (automatic scrolling needed) ++#if MOZ_LITTLE_ENDIAN() RefPtr effect = new EffectMask(source, source->GetSize(), aTransform); aEffects.mSecondaryEffects[EffectTypes::MASK] = effect; ++#endif + return true; + } + diff --git a/packages/m/MozillaThunderbird/mozilla-bmo1626236.patch b/packages/m/MozillaThunderbird/mozilla-bmo1626236.patch new file mode 100644 index 0000000..b4634ec --- /dev/null +++ b/packages/m/MozillaThunderbird/mozilla-bmo1626236.patch @@ -0,0 +1,85 @@ +# HG changeset patch +# User msirringhaus@suse.de +# Date 1582805876 -3600 +# Thu Feb 27 13:17:56 2020 +0100 +# Node ID cc3d09abea31068e57f1ab918782f9f86fc6a158 +# Parent 9cd90914846f667f18babc491a74c164ae5d6e9f +imported patch decoder_workaround.patch + +diff -r 9cd90914846f image/decoders/nsGIFDecoder2.cpp +--- a/image/decoders/nsGIFDecoder2.cpp Thu Feb 27 12:57:14 2020 +0100 ++++ b/image/decoders/nsGIFDecoder2.cpp Fri Mar 27 13:06:18 2020 +0100 +@@ -422,6 +422,9 @@ + MOZ_ASSERT(mSwizzleFn); + uint8_t* data = reinterpret_cast(aColormap); + mSwizzleFn(data, data, aColors); ++#if MOZ_BIG_ENDIAN() ++ SwizzleRow(SurfaceFormat::A8R8G8B8, SurfaceFormat::B8G8R8A8)(data, data, aColors); ++#endif + } + + LexerResult nsGIFDecoder2::DoDecode(SourceBufferIterator& aIterator, +diff -r 9cd90914846f image/decoders/nsJPEGDecoder.cpp +--- a/image/decoders/nsJPEGDecoder.cpp Thu Feb 27 12:57:14 2020 +0100 ++++ b/image/decoders/nsJPEGDecoder.cpp Fri Mar 27 13:06:18 2020 +0100 +@@ -263,6 +263,9 @@ + case JCS_YCbCr: + // By default, we will output directly to BGRA. If we need to apply + // special color transforms, this may change. ++#if MOZ_BIG_ENDIAN() ++ mInfo.out_color_space = MOZ_JCS_EXT_NATIVE_ENDIAN_XRGB; ++#else + switch (SurfaceFormat::OS_RGBX) { + case SurfaceFormat::B8G8R8X8: + mInfo.out_color_space = JCS_EXT_BGRX; +@@ -277,6 +280,7 @@ + mState = JPEG_ERROR; + return Transition::TerminateFailure(); + } ++#endif + break; + case JCS_CMYK: + case JCS_YCCK: +diff -r 9cd90914846f image/decoders/nsPNGDecoder.cpp +--- a/image/decoders/nsPNGDecoder.cpp Thu Feb 27 12:57:14 2020 +0100 ++++ b/image/decoders/nsPNGDecoder.cpp Fri Mar 27 13:06:18 2020 +0100 +@@ -361,7 +361,7 @@ + IResumable* aOnResume) { + MOZ_ASSERT(!HasError(), "Shouldn't call DoDecode after error!"); + +- return mLexer.Lex(aIterator, aOnResume, ++ LexerResult res = mLexer.Lex(aIterator, aOnResume, + [=](State aState, const char* aData, size_t aLength) { + switch (aState) { + case State::PNG_DATA: +@@ -371,6 +371,14 @@ + } + MOZ_CRASH("Unknown State"); + }); ++ ++#if MOZ_BIG_ENDIAN() ++ if(res.is() && res.as() == TerminalState::SUCCESS) { ++ NativeEndian::swapToLittleEndianInPlace((uint32_t*)(mImageData), mImageDataLength / 4); ++ } ++#endif ++ ++ return res; + } + + LexerTransition nsPNGDecoder::ReadPNGData( +diff -r 9cd90914846f image/decoders/nsWebPDecoder.cpp +--- a/image/decoders/nsWebPDecoder.cpp Thu Feb 27 12:57:14 2020 +0100 ++++ b/image/decoders/nsWebPDecoder.cpp Fri Mar 27 13:06:18 2020 +0100 +@@ -237,7 +237,12 @@ + // WebP doesn't guarantee that the alpha generated matches the hint in the + // header, so we always need to claim the input is BGRA. If the output is + // BGRX, swizzling will mask off the alpha channel. ++#if MOZ_BIG_ENDIAN() ++ mBuffer.colorspace = MODE_ARGB; ++ SurfaceFormat inFormat = mFormat; ++#else + SurfaceFormat inFormat = SurfaceFormat::OS_RGBA; ++#endif + + SurfacePipeFlags pipeFlags = SurfacePipeFlags(); + if (mFormat == SurfaceFormat::OS_RGBA && diff --git a/packages/m/MozillaThunderbird/mozilla-bmo849632.patch b/packages/m/MozillaThunderbird/mozilla-bmo849632.patch index 177fdc3..8485b72 100644 --- a/packages/m/MozillaThunderbird/mozilla-bmo849632.patch +++ b/packages/m/MozillaThunderbird/mozilla-bmo849632.patch @@ -10,7 +10,7 @@ diff -r 6b017d3e9733 gfx/gl/GLContext.h BEFORE_GL_CALL; mSymbols.fReadPixels(x, y, width, height, format, type, pixels); OnSyncCall(); -+#if MOZ_BIG_ENDIAN ++#if MOZ_BIG_ENDIAN() + uint8_t* itr = (uint8_t*)pixels; + for (GLsizei i = 0; i < width * height; i++) { + NativeEndian::swapToLittleEndianInPlace((uint32_t*)itr, 1); diff --git a/packages/m/MozillaThunderbird/mozilla-bmo998749.patch b/packages/m/MozillaThunderbird/mozilla-bmo998749.patch new file mode 100644 index 0000000..50e22b5 --- /dev/null +++ b/packages/m/MozillaThunderbird/mozilla-bmo998749.patch @@ -0,0 +1,29 @@ +# HG changeset patch +# User msirringhaus@suse.de +# Date 1583738770 -3600 +# Mon Mar 09 08:26:10 2020 +0100 +# Node ID 34676feac1a542e409e22acf5b98735f8313b1ce +# Parent 506857dace0a08d1c9685e3ac264646590b3e27f +[mq]: mozilla-bmo998749.patch + +diff -r 506857dace0a -r 34676feac1a5 gfx/2d/FilterProcessing.h +--- a/gfx/2d/FilterProcessing.h Fri Feb 28 12:31:51 2020 +0100 ++++ b/gfx/2d/FilterProcessing.h Mon Mar 09 08:26:10 2020 +0100 +@@ -13,10 +13,17 @@ + namespace mozilla { + namespace gfx { + ++#if MOZ_BIG_ENDIAN() ++const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_B = 3; ++const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_G = 2; ++const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_R = 1; ++const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_A = 0; ++#else + const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_B = 0; + const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_G = 1; + const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_R = 2; + const ptrdiff_t B8G8R8A8_COMPONENT_BYTEOFFSET_A = 3; ++#endif + + class FilterProcessing { + public: diff --git a/packages/m/MozillaThunderbird/mozilla-cubeb-noreturn.patch b/packages/m/MozillaThunderbird/mozilla-cubeb-noreturn.patch deleted file mode 100644 index 575e4b5..0000000 --- a/packages/m/MozillaThunderbird/mozilla-cubeb-noreturn.patch +++ /dev/null @@ -1,18 +0,0 @@ -# HG changeset patch -# User Wolfgang Rosenauer -# Parent a9d61a2614b01b1e0ca37d00a6b11b2571868f86 - -diff --git a/media/libcubeb/src/cubeb_utils.cpp b/media/libcubeb/src/cubeb_utils.cpp ---- a/media/libcubeb/src/cubeb_utils.cpp -+++ b/media/libcubeb/src/cubeb_utils.cpp -@@ -15,9 +15,10 @@ size_t cubeb_sample_size(cubeb_sample_fo - return sizeof(int16_t); - case CUBEB_SAMPLE_FLOAT32LE: - case CUBEB_SAMPLE_FLOAT32BE: - return sizeof(float); - default: - // should never happen as all cases are handled above. - assert(false); - } -+ return 0; - } diff --git a/packages/m/MozillaThunderbird/mozilla-kde.patch b/packages/m/MozillaThunderbird/mozilla-kde.patch index 9c629e4..ae5b040 100644 --- a/packages/m/MozillaThunderbird/mozilla-kde.patch +++ b/packages/m/MozillaThunderbird/mozilla-kde.patch @@ -3,7 +3,7 @@ # Date 1559294891 -7200 # Fri May 31 11:28:11 2019 +0200 # Node ID c2aa7198fb925e7fde96abf65b6f68b9b755f112 -# Parent 93495ad6fa0fe292eadcbfef14e0e27273528497 +# Parent aa58e8c70d1448a08407c6c191ea8b76d61e8bf6 Description: Add KDE integration to Firefox (toolkit parts) Author: Wolfgang Rosenauer Author: Lubos Lunak @@ -13,8 +13,7 @@ Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=140751 diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp --- a/modules/libpref/Preferences.cpp +++ b/modules/libpref/Preferences.cpp -@@ -81,16 +81,17 @@ - #include "nsXPCOMCID.h" +@@ -83,16 +83,17 @@ #include "nsXPCOM.h" #include "nsXULAppAPI.h" #include "nsZipArchive.h" @@ -22,16 +21,17 @@ diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp #include "PLDHashTable.h" #include "plstr.h" #include "prlink.h" + #include "xpcpublic.h" +#include "nsKDEUtils.h" - #ifdef MOZ_MEMORY - # include "mozmemory.h" + #ifdef DEBUG + # include #endif - #ifdef XP_WIN - # include "windows.h" + #ifdef MOZ_MEMORY + # include "mozmemory.h" #endif -@@ -4507,25 +4508,37 @@ static nsresult pref_ReadDefaultPrefs(co +@@ -4566,25 +4567,37 @@ nsresult Preferences::InitInitialObjects // application pref files for backwards compatibility. static const char* specialFiles[] = { #if defined(XP_MACOSX) @@ -69,7 +69,7 @@ diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp // Load jar:$app/omni.jar!/defaults/preferences/*.js // or jar:$gre/omni.jar!/defaults/preferences/*.js. -@@ -4573,17 +4586,17 @@ static nsresult pref_ReadDefaultPrefs(co +@@ -4630,17 +4643,17 @@ nsresult Preferences::InitInitialObjects } nsCOMPtr path = do_QueryInterface(elem); @@ -87,13 +87,13 @@ diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp SetupTelemetryPref(); } - NS_CreateServicesFromCategory(NS_PREFSERVICE_APPDEFAULTS_TOPIC_ID, nullptr, + if (aIsStartup) { diff --git a/modules/libpref/moz.build b/modules/libpref/moz.build --- a/modules/libpref/moz.build +++ b/modules/libpref/moz.build -@@ -31,16 +31,20 @@ EXPORTS.mozilla += [ - 'StaticPrefs.h', +@@ -114,16 +114,20 @@ EXPORTS.mozilla += [ ] + EXPORTS.mozilla += sorted(['!' + g for g in gen_h]) UNIFIED_SOURCES += [ 'Preferences.cpp', @@ -104,18 +104,18 @@ diff --git a/modules/libpref/moz.build b/modules/libpref/moz.build + '/toolkit/xre' +] + - XPCOM_MANIFESTS += [ - 'components.conf', - ] + gen_all_tuple = tuple(gen_h + gen_cpp + gen_rs) - include('/ipc/chromium/chromium-config.mozbuild') + GENERATED_FILES += [gen_all_tuple] - FINAL_LIBRARY = 'xul' + static_pref_list = GENERATED_FILES[gen_all_tuple] + static_pref_list.script = 'init/generate_static_pref_list.py:emit_code' + static_pref_list.inputs = ['init/StaticPrefList.yaml'] diff --git a/python/mozbuild/mozpack/chrome/flags.py b/python/mozbuild/mozpack/chrome/flags.py --- a/python/mozbuild/mozpack/chrome/flags.py +++ b/python/mozbuild/mozpack/chrome/flags.py -@@ -223,16 +223,17 @@ class Flags(OrderedDict): +@@ -227,16 +227,17 @@ class Flags(OrderedDict): 'contentaccessible': Flag, 'os': StringFlag, 'osversion': VersionFlag, @@ -136,7 +136,7 @@ diff --git a/python/mozbuild/mozpack/chrome/flags.py b/python/mozbuild/mozpack/c diff --git a/python/mozbuild/mozpack/chrome/manifest.py b/python/mozbuild/mozpack/chrome/manifest.py --- a/python/mozbuild/mozpack/chrome/manifest.py +++ b/python/mozbuild/mozpack/chrome/manifest.py -@@ -39,16 +39,17 @@ class ManifestEntry(object): +@@ -37,16 +37,17 @@ class ManifestEntry(object): 'platformversion', 'os', 'osversion', @@ -157,7 +157,7 @@ diff --git a/python/mozbuild/mozpack/chrome/manifest.py b/python/mozbuild/mozpac diff --git a/toolkit/components/downloads/moz.build b/toolkit/components/downloads/moz.build --- a/toolkit/components/downloads/moz.build +++ b/toolkit/components/downloads/moz.build -@@ -41,10 +41,14 @@ XPCOM_MANIFESTS += [ +@@ -46,10 +46,14 @@ XPCOM_MANIFESTS += [ if CONFIG['MOZ_PLACES']: EXTRA_JS_MODULES += [ @@ -172,536 +172,10 @@ diff --git a/toolkit/components/downloads/moz.build b/toolkit/components/downloa + with Files('**'): BUG_COMPONENT = ('Toolkit', 'Downloads API') -diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn ---- a/toolkit/content/jar.mn -+++ b/toolkit/content/jar.mn -@@ -63,16 +63,18 @@ toolkit.jar: - content/global/widgets.css - content/global/bindings/autocomplete.xml (widgets/autocomplete.xml) - content/global/bindings/button.xml (widgets/button.xml) - content/global/bindings/calendar.js (widgets/calendar.js) - content/global/bindings/datekeeper.js (widgets/datekeeper.js) - content/global/bindings/datepicker.js (widgets/datepicker.js) - content/global/bindings/datetimebox.css (widgets/datetimebox.css) - * content/global/bindings/dialog.xml (widgets/dialog.xml) -+* content/global/bindings/dialog-kde.xml (widgets/dialog-kde.xml) -+% override chrome://global/content/bindings/dialog.xml chrome://global/content/bindings/dialog-kde.xml desktop=kde - content/global/bindings/general.xml (widgets/general.xml) - content/global/bindings/popup.xml (widgets/popup.xml) - content/global/bindings/richlistbox.xml (widgets/richlistbox.xml) - content/global/bindings/scrollbox.xml (widgets/scrollbox.xml) - content/global/bindings/spinner.js (widgets/spinner.js) - content/global/bindings/tabbox.xml (widgets/tabbox.xml) - * content/global/bindings/textbox.xml (widgets/textbox.xml) - content/global/bindings/timekeeper.js (widgets/timekeeper.js) -diff --git a/toolkit/content/widgets/dialog-kde.xml b/toolkit/content/widgets/dialog-kde.xml -new file mode 100644 ---- /dev/null -+++ b/toolkit/content/widgets/dialog-kde.xml -@@ -0,0 +1,499 @@ -+ -+ -+ -+ -+ %globalKeysDTD; -+]> -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+#else -+ keycode="&openHelp.commandkey;"/> -+#endif -+ -+ -+ -+ -+ -+ null -+ (function(event) { -+ if (!document.documentElement.cancelDialog()) -+ event.preventDefault(); -+ }) -+ -+ -+ [] -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ (screen.availLeft + screen.availWidth)) -+ newX = (screen.availLeft + screen.availWidth) - window.outerWidth - 20; -+ -+ if (newY < screen.availTop) -+ newY = screen.availTop + 20; -+ if ((newY + window.outerHeight) > (screen.availTop + screen.availHeight)) -+ newY = (screen.availTop + screen.availHeight) - window.outerHeight - 60; -+ -+ window.moveTo( newX, newY ); -+ ]]> -+ -+ -+ -+ -+ -+ 0 ? xOffset : 0; -+ yOffset = yOffset > 0 ? yOffset : 0; -+ window.moveTo(xOffset, yOffset); -+ ]]> -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ { -+ window.sizeToContent(); -+ }); -+ } -+ ]]> -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ // see bug 63370 for details -+ this._mStrBundle = Cc["@mozilla.org/intl/stringbundle;1"] -+ .getService(Ci.nsIStringBundleService) -+ .createBundle("chrome://global/locale/dialog.properties"); -+ } -+ return this._mStrBundle; -+ ]]> -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ if (!event.defaultPrevented) -+ this.cancelDialog(); -+ -+#ifdef XP_MACOSX -+ -+#else -+ -+ var btn = this.getButton(this.defaultButton); -+ if (btn) -+ btn.setAttribute("default", event.originalTarget == btn || -+ !(event.originalTarget.localName == "button" || -+ event.originalTarget.localName == "toolbarbutton")); -+ -+#endif -+ -+ -+ -+ -+ diff --git a/toolkit/mozapps/downloads/HelperAppDlg.jsm b/toolkit/mozapps/downloads/HelperAppDlg.jsm --- a/toolkit/mozapps/downloads/HelperAppDlg.jsm +++ b/toolkit/mozapps/downloads/HelperAppDlg.jsm -@@ -1204,36 +1204,66 @@ nsUnknownContentTypeDialog.prototype = { +@@ -1203,36 +1203,66 @@ nsUnknownContentTypeDialog.prototype = { params.handlerApp && params.handlerApp.executable && params.handlerApp.executable.isFile() @@ -791,7 +265,7 @@ diff --git a/toolkit/mozapps/downloads/HelperAppDlg.jsm b/toolkit/mozapps/downlo diff --git a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp b/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp --- a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp +++ b/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp -@@ -14,16 +14,17 @@ +@@ -13,16 +13,17 @@ #include "nsPrintfCString.h" #include "nsNetCID.h" #include "nsNetUtil.h" @@ -809,7 +283,7 @@ diff --git a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp b/toolkit/sy NS_DECL_ISUPPORTS NS_DECL_NSISYSTEMPROXYSETTINGS -@@ -37,16 +38,18 @@ class nsUnixSystemProxySettings final : +@@ -36,16 +37,18 @@ class nsUnixSystemProxySettings final : nsCOMPtr mProxySettings; nsInterfaceHashtable mSchemeProxySettings; @@ -828,7 +302,7 @@ diff --git a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp b/toolkit/sy nsUnixSystemProxySettings::GetMainThreadOnly(bool* aMainThreadOnly) { // dbus prevents us from being threadsafe, but this routine should not block // anyhow -@@ -382,21 +385,50 @@ nsresult nsUnixSystemProxySettings::GetP +@@ -384,21 +387,50 @@ nsresult nsUnixSystemProxySettings::GetP return NS_OK; } @@ -882,7 +356,7 @@ diff --git a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp b/toolkit/sy diff --git a/toolkit/xre/moz.build b/toolkit/xre/moz.build --- a/toolkit/xre/moz.build +++ b/toolkit/xre/moz.build -@@ -83,17 +83,19 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co +@@ -88,17 +88,19 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co '../components/printingui', ] elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit': @@ -890,7 +364,7 @@ diff --git a/toolkit/xre/moz.build b/toolkit/xre/moz.build 'nsNativeAppSupportDefault.cpp', 'UIKitDirProvider.mm', ] - elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']: + elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': + EXPORTS += ['nsKDEUtils.h'] UNIFIED_SOURCES += [ + 'nsKDEUtils.cpp', @@ -1307,7 +781,7 @@ new file mode 100644 diff --git a/uriloader/exthandler/HandlerServiceParent.cpp b/uriloader/exthandler/HandlerServiceParent.cpp --- a/uriloader/exthandler/HandlerServiceParent.cpp +++ b/uriloader/exthandler/HandlerServiceParent.cpp -@@ -1,17 +1,17 @@ +@@ -7,17 +7,17 @@ #include "mozilla/ipc/ProtocolUtils.h" #include "mozilla/Logging.h" #include "HandlerServiceParent.h" @@ -1326,7 +800,7 @@ diff --git a/uriloader/exthandler/HandlerServiceParent.cpp b/uriloader/exthandle using mozilla::dom::RemoteHandlerApp; namespace { -@@ -282,17 +282,17 @@ mozilla::ipc::IPCResult HandlerServicePa +@@ -299,17 +299,17 @@ mozilla::ipc::IPCResult HandlerServicePa mozilla::ipc::IPCResult HandlerServiceParent::RecvExistsForProtocolOS( const nsCString& aProtocolScheme, bool* aHandlerExists) { if (aProtocolScheme.Length() > MAX_SCHEME_LENGTH) { @@ -1345,7 +819,7 @@ diff --git a/uriloader/exthandler/HandlerServiceParent.cpp b/uriloader/exthandle /* * Check if a handler exists for the provided protocol. Check the datastore -@@ -311,17 +311,17 @@ mozilla::ipc::IPCResult HandlerServicePa +@@ -328,17 +328,17 @@ mozilla::ipc::IPCResult HandlerServicePa nsCOMPtr protoSvc = do_GetService(NS_EXTERNALPROTOCOLSERVICE_CONTRACTID, &rv); if (NS_WARN_IF(NS_FAILED(rv))) { @@ -1367,14 +841,14 @@ diff --git a/uriloader/exthandler/HandlerServiceParent.cpp b/uriloader/exthandle diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build --- a/uriloader/exthandler/moz.build +++ b/uriloader/exthandler/moz.build -@@ -83,17 +83,19 @@ else: +@@ -85,17 +85,19 @@ else: SOURCES += [ osdir + '/nsOSHelperAppService.cpp', ] if CONFIG['CC_TYPE'] in ('clang', 'gcc'): CXXFLAGS += ['-Wno-error=shadow'] - if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']: + if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': UNIFIED_SOURCES += [ + 'unix/nsCommonRegistry.cpp', 'unix/nsGNOMERegistry.cpp', @@ -1387,7 +861,7 @@ diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build 'android/nsExternalURLHandlerService.cpp', 'android/nsMIMEInfoAndroid.cpp', ] -@@ -133,16 +135,17 @@ include('/ipc/chromium/chromium-config.m +@@ -135,16 +137,17 @@ include('/ipc/chromium/chromium-config.m FINAL_LIBRARY = 'xul' LOCAL_INCLUDES += [ @@ -1403,7 +877,7 @@ diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build CXXFLAGS += CONFIG['TK_CFLAGS'] CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS'] - if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk3': + if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': CXXFLAGS += CONFIG['TK_CFLAGS'] diff --git a/uriloader/exthandler/unix/nsCommonRegistry.cpp b/uriloader/exthandler/unix/nsCommonRegistry.cpp new file mode 100644 @@ -1500,7 +974,7 @@ diff --git a/uriloader/exthandler/unix/nsKDERegistry.cpp b/uriloader/exthandler/ new file mode 100644 --- /dev/null +++ b/uriloader/exthandler/unix/nsKDERegistry.cpp -@@ -0,0 +1,87 @@ +@@ -0,0 +1,86 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this @@ -1511,7 +985,6 @@ new file mode 100644 +#include "prmem.h" +#include "nsString.h" +#include "nsMIMEInfoUnix.h" -+#include "nsAutoPtr.h" +#include "nsKDEUtils.h" + +/* static */ bool @@ -1630,7 +1103,7 @@ new file mode 100644 diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp --- a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp +++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp -@@ -1,47 +1,50 @@ +@@ -1,46 +1,49 @@ /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * This Source Code Form is subject to the terms of the Mozilla Public @@ -1643,7 +1116,6 @@ diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler #include "nsIGIOService.h" #include "nsNetCID.h" #include "nsIIOService.h" - #include "nsAutoPtr.h" #ifdef MOZ_ENABLE_DBUS # include "nsDBusHandlerApp.h" #endif @@ -1686,7 +1158,7 @@ diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler if (*_retval) return NS_OK; return NS_OK; -@@ -51,16 +54,33 @@ nsresult nsMIMEInfoUnix::LaunchDefaultWi +@@ -50,16 +53,33 @@ nsresult nsMIMEInfoUnix::LaunchDefaultWi // if mDefaultApplication is set, it means the application has been set from // either /etc/mailcap or ${HOME}/.mailcap, in which case we don't want to // give the GNOME answer. @@ -1739,10 +1211,10 @@ diff --git a/uriloader/exthandler/unix/nsOSHelperAppService.cpp b/uriloader/exth #include "nsString.h" #include "nsReadableUtils.h" #include "nsUnicharUtils.h" - #include "nsIURL.h" #include "nsIFileStreams.h" #include "nsILineInputStream.h" -@@ -1025,17 +1025,17 @@ nsresult nsOSHelperAppService::GetHandle + #include "nsIFile.h" +@@ -1022,17 +1022,17 @@ nsresult nsOSHelperAppService::GetHandle nsresult nsOSHelperAppService::OSProtocolHandlerExists( const char* aProtocolScheme, bool* aHandlerExists) { @@ -1761,7 +1233,7 @@ diff --git a/uriloader/exthandler/unix/nsOSHelperAppService.cpp b/uriloader/exth nsCOMPtr handlerSvc = do_GetService(NS_HANDLERSERVICE_CONTRACTID, &rv); if (NS_SUCCEEDED(rv) && handlerSvc) { -@@ -1045,17 +1045,17 @@ nsresult nsOSHelperAppService::OSProtoco +@@ -1042,17 +1042,17 @@ nsresult nsOSHelperAppService::OSProtoco } return rv; @@ -1778,9 +1250,9 @@ diff --git a/uriloader/exthandler/unix/nsOSHelperAppService.cpp b/uriloader/exth #endif } - nsresult nsOSHelperAppService::GetFileTokenForPath( - const char16_t* platformAppPath, nsIFile** aFile) { -@@ -1136,17 +1136,17 @@ already_AddRefed nsOSHel + NS_IMETHODIMP nsOSHelperAppService::IsCurrentAppOSDefaultForProtocol( + const nsACString& aScheme, bool* _retval) { +@@ -1139,17 +1139,17 @@ already_AddRefed nsOSHel nsresult rv = LookUpTypeAndDescription(NS_ConvertUTF8toUTF16(aFileExt), majorType, minorType, mime_types_description, true); @@ -1799,7 +1271,7 @@ diff --git a/uriloader/exthandler/unix/nsOSHelperAppService.cpp b/uriloader/exth rv = LookUpTypeAndDescription(NS_ConvertUTF8toUTF16(aFileExt), majorType, minorType, mime_types_description, false); -@@ -1248,17 +1248,17 @@ already_AddRefed nsOSHel +@@ -1251,17 +1251,17 @@ already_AddRefed nsOSHel // Now look up our extensions nsAutoString extensions, mime_types_description; @@ -1821,7 +1293,7 @@ diff --git a/uriloader/exthandler/unix/nsOSHelperAppService.cpp b/uriloader/exth diff --git a/widget/gtk/moz.build b/widget/gtk/moz.build --- a/widget/gtk/moz.build +++ b/widget/gtk/moz.build -@@ -124,16 +124,17 @@ include('/ipc/chromium/chromium-config.m +@@ -131,16 +131,17 @@ include('/ipc/chromium/chromium-config.m FINAL_LIBRARY = 'xul' @@ -1842,33 +1314,34 @@ diff --git a/widget/gtk/moz.build b/widget/gtk/moz.build diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp --- a/widget/gtk/nsFilePicker.cpp +++ b/widget/gtk/nsFilePicker.cpp -@@ -4,32 +4,34 @@ +@@ -1,15 +1,16 @@ + /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ + /* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - #include "mozilla/Types.h" + #include + #include ++#include #include #include #include - #include -+#include - + #include "mozilla/Types.h" #include "nsGtkUtils.h" #include "nsIFileURL.h" - #include "nsIURI.h" - #include "nsIWidget.h" - #include "nsIFile.h" - #include "nsIStringBundle.h" - - #include "nsArrayEnumerator.h" + #include "nsIGIOService.h" +@@ -22,16 +23,18 @@ #include "nsMemory.h" #include "nsEnumeratorUtils.h" #include "nsNetUtil.h" #include "nsReadableUtils.h" - #include "mozcontainer.h" + #include "MozContainer.h" + #include "gfxPlatformGtk.h" #include "nsFilePicker.h" +#include "nsKDEUtils.h" ++#include "nsURLHelper.h" using namespace mozilla; @@ -1877,7 +1350,7 @@ diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp #define MAX_PREVIEW_SOURCE_SIZE 4096 nsIFile* nsFilePicker::mPrevDisplayDirectory = nullptr; -@@ -227,17 +229,19 @@ nsFilePicker::AppendFilters(int32_t aFil +@@ -231,17 +234,19 @@ nsFilePicker::AppendFilters(int32_t aFil mAllowURLs = !!(aFilterMask & filterAllowURLs); return nsBaseFilePicker::AppendFilters(aFilterMask); } @@ -1898,7 +1371,7 @@ diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp mFilters.AppendElement(filter); mFilterNames.AppendElement(name); -@@ -337,16 +341,39 @@ nsresult nsFilePicker::Show(int16_t* aRe +@@ -341,16 +346,39 @@ nsresult nsFilePicker::Show(int16_t* aRe return NS_OK; } @@ -1930,15 +1403,15 @@ diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp + return NS_OK; + } + - nsCString title; - title.Adopt(ToNewUTF8String(mTitle)); + NS_ConvertUTF16toUTF8 title(mTitle); GtkWindow* parent_widget = GTK_WINDOW(mParentWidget->GetNativeData(NS_NATIVE_SHELLWIDGET)); GtkFileChooserAction action = GetGtkFileChooserAction(mMode); -@@ -572,16 +599,240 @@ void nsFilePicker::Done(void* file_choos + const gchar* accept_button; +@@ -570,16 +598,244 @@ void nsFilePicker::Done(void* file_choos mCallback->Done(result); mCallback = nullptr; } else { @@ -2104,8 +1577,12 @@ diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp + mFileURL = output[ 0 ]; + else // GetFile() actually requires it to be url even for local files :-/ + { -+ mFileURL = nsCString( "file://" ); -+ mFileURL.Append( output[ 0 ] ); ++ nsCOMPtr localfile; ++ nsresult rv = NS_NewNativeLocalFile( output[ 0 ], ++ PR_FALSE, ++ getter_AddRefs(localfile)); ++ if (NS_SUCCEEDED(rv)) ++ rv = net_GetURLSpecFromActualFile(localfile, mFileURL); + } + } + // Remember last used directory. @@ -2208,7 +1685,7 @@ diff --git a/widget/gtk/nsFilePicker.h b/widget/gtk/nsFilePicker.h diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestParser.cpp --- a/xpcom/components/ManifestParser.cpp +++ b/xpcom/components/ManifestParser.cpp -@@ -33,16 +33,17 @@ +@@ -34,16 +34,17 @@ #include "nsTextFormatter.h" #include "nsVersionComparator.h" #include "nsXPCOMCIDInternal.h" @@ -2226,7 +1703,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars int argc; bool ischrome; -@@ -393,16 +394,17 @@ void ParseManifest(NSLocationType aType, +@@ -394,16 +395,17 @@ void ParseManifest(NSLocationType aType, NS_NAMED_LITERAL_STRING(kRemoteEnabled, "remoteenabled"); NS_NAMED_LITERAL_STRING(kRemoteRequired, "remoterequired"); NS_NAMED_LITERAL_STRING(kApplication, "application"); @@ -2244,7 +1721,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars NS_NAMED_LITERAL_STRING(kMain, "main"); NS_NAMED_LITERAL_STRING(kContent, "content"); -@@ -448,39 +450,44 @@ void ParseManifest(NSLocationType aType, +@@ -449,39 +451,44 @@ void ParseManifest(NSLocationType aType, CopyUTF8toUTF16(s, abi); abi.Insert(char16_t('_'), 0); abi.Insert(osTarget, 0); @@ -2265,8 +1742,8 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars + desktop = NS_LITERAL_STRING("win"); # pragma warning(pop) #elif defined(MOZ_WIDGET_COCOA) - SInt32 majorVersion = nsCocoaFeatures::OSXVersionMajor(); - SInt32 minorVersion = nsCocoaFeatures::OSXVersionMinor(); + SInt32 majorVersion = nsCocoaFeatures::macOSVersionMajor(); + SInt32 minorVersion = nsCocoaFeatures::macOSVersionMinor(); nsTextFormatter::ssprintf(osVersion, u"%ld.%ld", majorVersion, minorVersion); + desktop = NS_LITERAL_STRING("macosx"); #elif defined(MOZ_WIDGET_GTK) @@ -2289,7 +1766,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars process = kMain; } -@@ -567,25 +574,27 @@ void ParseManifest(NSLocationType aType, +@@ -568,25 +575,27 @@ void ParseManifest(NSLocationType aType, TriState stOsVersion = eUnspecified; TriState stOs = eUnspecified; TriState stABI = eUnspecified; @@ -2317,7 +1794,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars continue; } -@@ -622,17 +631,17 @@ void ParseManifest(NSLocationType aType, +@@ -623,17 +632,17 @@ void ParseManifest(NSLocationType aType, } LogMessageWithContext( @@ -2339,7 +1816,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars diff --git a/xpcom/components/moz.build b/xpcom/components/moz.build --- a/xpcom/components/moz.build +++ b/xpcom/components/moz.build -@@ -66,16 +66,17 @@ LOCAL_INCLUDES += [ +@@ -62,16 +62,17 @@ LOCAL_INCLUDES += [ '!..', '../base', '../build', @@ -2351,16 +1828,16 @@ diff --git a/xpcom/components/moz.build b/xpcom/components/moz.build + '/toolkit/xre', ] - if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']: + if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': CXXFLAGS += CONFIG['TK_CFLAGS'] + if CONFIG['MOZ_ENABLE_DBUS']: + CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS'] - if CONFIG['MOZ_LAYOUT_DEBUGGER']: - DEFINES['MOZ_LAYOUT_DEBUGGER'] = True - + include('/ipc/chromium/chromium-config.mozbuild') diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp --- a/xpcom/io/nsLocalFileUnix.cpp +++ b/xpcom/io/nsLocalFileUnix.cpp -@@ -47,16 +47,17 @@ +@@ -46,16 +46,17 @@ #include "prproces.h" #include "nsIDirectoryEnumerator.h" #include "nsSimpleEnumerator.h" @@ -2378,7 +1855,7 @@ diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp # include "prmem.h" # include "plbase64.h" -@@ -1902,62 +1903,77 @@ nsLocalFile::SetPersistentDescriptor(con +@@ -1898,62 +1899,77 @@ nsLocalFile::SetPersistentDescriptor(con NS_IMETHODIMP nsLocalFile::Reveal() { diff --git a/packages/m/MozillaThunderbird/mozilla-nestegg-big-endian.patch b/packages/m/MozillaThunderbird/mozilla-nestegg-big-endian.patch deleted file mode 100644 index de9adbf..0000000 --- a/packages/m/MozillaThunderbird/mozilla-nestegg-big-endian.patch +++ /dev/null @@ -1,38 +0,0 @@ -# HG changeset patch -# Parent 381102061fccdec40efda75c7423a766f68201ba -Bug-behavior: Youtube-videos using VP9 and opus as audio-codec started loading but did not play -Reason: While parsing the audio-stream, the sampling frequency (short rate) was wrongly parsed by - nestegg, returning 0 all the time. This led to the audio-track reporting that it neither had - valid video nor audio. Which led to an endless-loop in the video state machine. -Solution: Correct parsing of rate in nestegg, which is a float and cuts of bytes. -Link: https://github.com/kinetiknz/nestegg/issues/64 - -diff -r 381102061fcc -r 8da4be020b1e media/libnestegg/src/nestegg.c ---- a/media/libnestegg/src/nestegg.c Tue Aug 13 07:51:27 2019 +0200 -+++ b/media/libnestegg/src/nestegg.c Tue Aug 20 07:59:54 2019 +0200 -@@ -768,7 +768,15 @@ - { - union { - uint64_t u; -- float f; -+ struct { -+#if __FLOAT_WORD_ORDER__ == __ORDER_BIG_ENDIAN__ -+ uint32_t _pad; -+ float f; -+#else -+ float f; -+ uint32_t _pad; -+#endif -+ } f; - double d; - } value; - int r; -@@ -780,7 +788,7 @@ - if (r != 1) - return r; - if (length == 4) -- *val = value.f; -+ *val = value.f.f; - else - *val = value.d; - return 1; diff --git a/packages/m/MozillaThunderbird/mozilla-openaes-decl.patch b/packages/m/MozillaThunderbird/mozilla-openaes-decl.patch deleted file mode 100644 index 182f56f..0000000 --- a/packages/m/MozillaThunderbird/mozilla-openaes-decl.patch +++ /dev/null @@ -1,26 +0,0 @@ -# HG changeset patch -# Parent 33024abb3c58dab7239e32388df58e14f99defd5 -# User Wolfgang Rosenauer -# Parent 0cfd693fdbbb0635787f1aeacee2dda43b01c495 - -diff --git a/media/gmp-clearkey/0.1/openaes/oaes_lib.c b/media/gmp-clearkey/0.1/openaes/oaes_lib.c ---- a/media/gmp-clearkey/0.1/openaes/oaes_lib.c -+++ b/media/gmp-clearkey/0.1/openaes/oaes_lib.c -@@ -24,16 +24,17 @@ - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * --------------------------------------------------------------------------- - */ - - #include -+#include - #include - #include - #include - - #include "mozilla/Sprintf.h" - - #ifdef WIN32 - #include diff --git a/packages/m/MozillaThunderbird/mozilla-pipewire-0-3.patch b/packages/m/MozillaThunderbird/mozilla-pipewire-0-3.patch new file mode 100644 index 0000000..0844209 --- /dev/null +++ b/packages/m/MozillaThunderbird/mozilla-pipewire-0-3.patch @@ -0,0 +1,846 @@ +diff --git a/config/system-headers.mozbuild b/config/system-headers.mozbuild +index 2081d0c683a4..641133bf1ea4 100644 +--- a/config/system-headers.mozbuild ++++ b/config/system-headers.mozbuild +@@ -314,6 +314,7 @@ system_headers = [ + 'Gestalt.h', + 'getopt.h', + 'gio/gio.h', ++ 'gio/gunixfdlist.h', + 'glibconfig.h', + 'glib.h', + 'glib-object.h', +@@ -607,6 +608,7 @@ system_headers = [ + 'Pgenerr.h', + 'PGenErr.h', + 'Ph.h', ++ 'pipewire/pipewire.h', + 'pixman.h', + 'pk11func.h', + 'pk11pqg.h', +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/BUILD.gn b/media/webrtc/trunk/webrtc/modules/desktop_capture/BUILD.gn +index ba885217b3ba..201d3b755221 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/BUILD.gn ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/BUILD.gn +@@ -158,7 +158,7 @@ if (rtc_include_tests) { + if (is_linux) { + if (rtc_use_pipewire) { + pkg_config("pipewire") { +- packages = [ "libpipewire-0.2" ] ++ packages = [ "libpipewire-0.3" ] + + defines = [ "WEBRTC_USE_PIPEWIRE" ] + } +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build b/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build +index 90b40431c7e4..d844aa79d591 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build +@@ -194,6 +194,30 @@ if CONFIG["OS_TARGET"] == "Linux": + "/media/webrtc/trunk/webrtc/modules/desktop_capture/window_capturer_linux.cc" + ] + ++# PipeWire specific files ++if CONFIG["OS_TARGET"] == "Linux": ++ ++ DEFINES["WEBRTC_USE_PIPEWIRE"] = "1" ++ ++ OS_LIBS += [ ++ "rt", ++ "pipewire-0.3", ++ "glib-2.0", ++ "gio-2.0", ++ "gobject-2.0" ++ ] ++ ++ CXXFLAGS += CONFIG['TK_CFLAGS'] ++ CXXFLAGS += [ "-I/usr/include/pipewire-0.3" ] ++ CXXFLAGS += [ "-I/usr/include/spa-0.2" ] ++ ++ UNIFIED_SOURCES += [ ++ "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc", ++ "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc", ++ "/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc" ++ ] ++ ++ + if CONFIG["OS_TARGET"] == "NetBSD": + + DEFINES["USE_X11"] = "1" +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h b/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h +index 1eb8ead26efa..316468eed1fc 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_options.h +@@ -141,7 +141,7 @@ class DesktopCaptureOptions { + bool disable_effects_ = true; + bool detect_updated_region_ = false; + #if defined(WEBRTC_USE_PIPEWIRE) +- bool allow_pipewire_ = false; ++ bool allow_pipewire_ = true; + #endif + }; + +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc +index 379341c833de..76349f1fbd4d 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc +@@ -15,8 +15,11 @@ + + #include + #include +-#include +-#include ++ ++#include ++#include ++#include ++#include + + #include + #include +@@ -36,31 +39,36 @@ const char kSessionInterfaceName[] = "org.freedesktop.portal.Session"; + const char kRequestInterfaceName[] = "org.freedesktop.portal.Request"; + const char kScreenCastInterfaceName[] = "org.freedesktop.portal.ScreenCast"; + +-// static +-void BaseCapturerPipeWire::OnStateChanged(void* data, +- pw_remote_state old_state, +- pw_remote_state state, +- const char* error_message) { +- BaseCapturerPipeWire* that = static_cast(data); +- RTC_DCHECK(that); + +- switch (state) { +- case PW_REMOTE_STATE_ERROR: +- RTC_LOG(LS_ERROR) << "PipeWire remote state error: " << error_message; +- break; +- case PW_REMOTE_STATE_CONNECTED: +- RTC_LOG(LS_INFO) << "PipeWire remote state: connected."; +- that->CreateReceivingStream(); +- break; +- case PW_REMOTE_STATE_CONNECTING: +- RTC_LOG(LS_INFO) << "PipeWire remote state: connecting."; ++// static ++void BaseCapturerPipeWire::SyncDmaBuf(int fd, uint64_t start_or_end) { ++ struct dma_buf_sync sync = { 0 }; ++ ++ sync.flags = start_or_end | DMA_BUF_SYNC_READ; ++ ++ while(true) { ++ int ret; ++ ret = ioctl (fd, DMA_BUF_IOCTL_SYNC, &sync); ++ if (ret == -1 && errno == EINTR) { ++ continue; ++ } else if (ret == -1) { ++ RTC_LOG(LS_ERROR) << "Failed to synchronize DMA buffer: " << g_strerror(errno); + break; +- case PW_REMOTE_STATE_UNCONNECTED: +- RTC_LOG(LS_INFO) << "PipeWire remote state: unconnected."; ++ } else { + break; ++ } + } + } + ++// static ++void BaseCapturerPipeWire::OnCoreError(void *data, ++ uint32_t id, ++ int seq, ++ int res, ++ const char *message) { ++ RTC_LOG(LS_ERROR) << "core error: " << message; ++} ++ + // static + void BaseCapturerPipeWire::OnStreamStateChanged(void* data, + pw_stream_state old_state, +@@ -73,76 +81,54 @@ void BaseCapturerPipeWire::OnStreamStateChanged(void* data, + case PW_STREAM_STATE_ERROR: + RTC_LOG(LS_ERROR) << "PipeWire stream state error: " << error_message; + break; +- case PW_STREAM_STATE_CONFIGURE: +- pw_stream_set_active(that->pw_stream_, true); +- break; +- case PW_STREAM_STATE_UNCONNECTED: +- case PW_STREAM_STATE_CONNECTING: +- case PW_STREAM_STATE_READY: + case PW_STREAM_STATE_PAUSED: + case PW_STREAM_STATE_STREAMING: ++ case PW_STREAM_STATE_UNCONNECTED: ++ case PW_STREAM_STATE_CONNECTING: + break; + } + } + + // static +-void BaseCapturerPipeWire::OnStreamFormatChanged(void* data, +- const struct spa_pod* format) { ++void BaseCapturerPipeWire::OnStreamParamChanged(void *data, uint32_t id, ++ const struct spa_pod *format) { + BaseCapturerPipeWire* that = static_cast(data); + RTC_DCHECK(that); + +- RTC_LOG(LS_INFO) << "PipeWire stream format changed."; ++ RTC_LOG(LS_INFO) << "PipeWire stream param changed."; + +- if (!format) { +- pw_stream_finish_format(that->pw_stream_, /*res=*/0, /*params=*/nullptr, +- /*n_params=*/0); ++ if (!format || id != SPA_PARAM_Format) { + return; + } + +- that->spa_video_format_ = new spa_video_info_raw(); +- spa_format_video_raw_parse(format, that->spa_video_format_, +- &that->pw_type_->format_video); ++ spa_format_video_raw_parse(format, &that->spa_video_format_); + +- auto width = that->spa_video_format_->size.width; +- auto height = that->spa_video_format_->size.height; ++ auto width = that->spa_video_format_.size.width; ++ auto height = that->spa_video_format_.size.height; + auto stride = SPA_ROUND_UP_N(width * kBytesPerPixel, 4); + auto size = height * stride; + ++ that->desktop_size_ = DesktopSize(width, height); ++ + uint8_t buffer[1024] = {}; + auto builder = spa_pod_builder{buffer, sizeof(buffer)}; + + // Setup buffers and meta header for new format. +- const struct spa_pod* params[2]; +- params[0] = reinterpret_cast(spa_pod_builder_object( +- &builder, +- // id to enumerate buffer requirements +- that->pw_core_type_->param.idBuffers, +- that->pw_core_type_->param_buffers.Buffers, +- // Size: specified as integer (i) and set to specified size +- ":", that->pw_core_type_->param_buffers.size, "i", size, +- // Stride: specified as integer (i) and set to specified stride +- ":", that->pw_core_type_->param_buffers.stride, "i", stride, +- // Buffers: specifies how many buffers we want to deal with, set as +- // integer (i) where preferred number is 8, then allowed number is defined +- // as range (r) from min and max values and it is undecided (u) to allow +- // negotiation +- ":", that->pw_core_type_->param_buffers.buffers, "iru", 8, +- SPA_POD_PROP_MIN_MAX(1, 32), +- // Align: memory alignment of the buffer, set as integer (i) to specified +- // value +- ":", that->pw_core_type_->param_buffers.align, "i", 16)); +- params[1] = reinterpret_cast(spa_pod_builder_object( +- &builder, +- // id to enumerate supported metadata +- that->pw_core_type_->param.idMeta, that->pw_core_type_->param_meta.Meta, +- // Type: specified as id or enum (I) +- ":", that->pw_core_type_->param_meta.type, "I", +- that->pw_core_type_->meta.Header, +- // Size: size of the metadata, specified as integer (i) +- ":", that->pw_core_type_->param_meta.size, "i", +- sizeof(struct spa_meta_header))); +- +- pw_stream_finish_format(that->pw_stream_, /*res=*/0, params, /*n_params=*/2); ++ const struct spa_pod* params[3]; ++ params[0] = reinterpret_cast(spa_pod_builder_add_object(&builder, ++ SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers, ++ SPA_PARAM_BUFFERS_size, SPA_POD_Int(size), ++ SPA_PARAM_BUFFERS_stride, SPA_POD_Int(stride), ++ SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(8, 1, 32))); ++ params[1] = reinterpret_cast(spa_pod_builder_add_object(&builder, ++ SPA_TYPE_OBJECT_ParamMeta, SPA_PARAM_Meta, ++ SPA_PARAM_META_type, SPA_POD_Id(SPA_META_Header), ++ SPA_PARAM_META_size, SPA_POD_Int(sizeof(struct spa_meta_header)))); ++ params[2] = reinterpret_cast(spa_pod_builder_add_object(&builder, ++ SPA_TYPE_OBJECT_ParamMeta, SPA_PARAM_Meta, ++ SPA_PARAM_META_type, SPA_POD_Id (SPA_META_VideoCrop), ++ SPA_PARAM_META_size, SPA_POD_Int (sizeof(struct spa_meta_region)))); ++ pw_stream_update_params(that->pw_stream_, params, 3); + } + + // static +@@ -150,15 +136,25 @@ void BaseCapturerPipeWire::OnStreamProcess(void* data) { + BaseCapturerPipeWire* that = static_cast(data); + RTC_DCHECK(that); + +- pw_buffer* buf = nullptr; ++ struct pw_buffer *next_buffer; ++ struct pw_buffer *buffer = nullptr; ++ ++ next_buffer = pw_stream_dequeue_buffer(that->pw_stream_); ++ while (next_buffer) { ++ buffer = next_buffer; ++ next_buffer = pw_stream_dequeue_buffer(that->pw_stream_); + +- if (!(buf = pw_stream_dequeue_buffer(that->pw_stream_))) { ++ if (next_buffer) ++ pw_stream_queue_buffer (that->pw_stream_, buffer); ++ } ++ ++ if (!buffer) { + return; + } + +- that->HandleBuffer(buf); ++ that->HandleBuffer(buffer); + +- pw_stream_queue_buffer(that->pw_stream_, buf); ++ pw_stream_queue_buffer(that->pw_stream_, buffer); + } + + BaseCapturerPipeWire::BaseCapturerPipeWire(CaptureSourceType source_type) +@@ -169,38 +165,22 @@ BaseCapturerPipeWire::~BaseCapturerPipeWire() { + pw_thread_loop_stop(pw_main_loop_); + } + +- if (pw_type_) { +- delete pw_type_; +- } +- +- if (spa_video_format_) { +- delete spa_video_format_; +- } +- + if (pw_stream_) { + pw_stream_destroy(pw_stream_); + } + +- if (pw_remote_) { +- pw_remote_destroy(pw_remote_); ++ if (pw_core_) { ++ pw_core_disconnect(pw_core_); + } + +- if (pw_core_) { +- pw_core_destroy(pw_core_); ++ if (pw_context_) { ++ pw_context_destroy(pw_context_); + } + + if (pw_main_loop_) { + pw_thread_loop_destroy(pw_main_loop_); + } + +- if (pw_loop_) { +- pw_loop_destroy(pw_loop_); +- } +- +- if (current_frame_) { +- free(current_frame_); +- } +- + if (start_request_signal_id_) { + g_dbus_connection_signal_unsubscribe(connection_, start_request_signal_id_); + } +@@ -250,27 +230,35 @@ void BaseCapturerPipeWire::InitPortal() { + void BaseCapturerPipeWire::InitPipeWire() { + pw_init(/*argc=*/nullptr, /*argc=*/nullptr); + +- pw_loop_ = pw_loop_new(/*properties=*/nullptr); +- pw_main_loop_ = pw_thread_loop_new(pw_loop_, "pipewire-main-loop"); +- +- pw_core_ = pw_core_new(pw_loop_, /*properties=*/nullptr); +- pw_core_type_ = pw_core_get_type(pw_core_); +- pw_remote_ = pw_remote_new(pw_core_, nullptr, /*user_data_size=*/0); ++ pw_main_loop_ = pw_thread_loop_new("pipewire-main-loop", nullptr); ++ pw_context_ = pw_context_new(pw_thread_loop_get_loop(pw_main_loop_), nullptr, 0); ++ if (!pw_context_) { ++ RTC_LOG(LS_ERROR) << "Failed to create PipeWire context"; ++ return; ++ } + +- InitPipeWireTypes(); ++ pw_core_ = pw_context_connect(pw_context_, nullptr, 0); ++ if (!pw_core_) { ++ RTC_LOG(LS_ERROR) << "Failed to connect PipeWire context"; ++ return; ++ } + + // Initialize event handlers, remote end and stream-related. +- pw_remote_events_.version = PW_VERSION_REMOTE_EVENTS; +- pw_remote_events_.state_changed = &OnStateChanged; ++ pw_core_events_.version = PW_VERSION_CORE_EVENTS; ++ pw_core_events_.error = &OnCoreError; + + pw_stream_events_.version = PW_VERSION_STREAM_EVENTS; + pw_stream_events_.state_changed = &OnStreamStateChanged; +- pw_stream_events_.format_changed = &OnStreamFormatChanged; ++ pw_stream_events_.param_changed = &OnStreamParamChanged; + pw_stream_events_.process = &OnStreamProcess; + +- pw_remote_add_listener(pw_remote_, &spa_remote_listener_, &pw_remote_events_, +- this); +- pw_remote_connect_fd(pw_remote_, pw_fd_); ++ pw_core_add_listener(pw_core_, &spa_core_listener_, &pw_core_events_, this); ++ ++ pw_stream_ = CreateReceivingStream(); ++ if (!pw_stream_) { ++ RTC_LOG(LS_ERROR) << "Failed to create PipeWire stream"; ++ return; ++ } + + if (pw_thread_loop_start(pw_main_loop_) < 0) { + RTC_LOG(LS_ERROR) << "Failed to start main PipeWire loop"; +@@ -278,81 +266,132 @@ void BaseCapturerPipeWire::InitPipeWire() { + } + } + +-void BaseCapturerPipeWire::InitPipeWireTypes() { +- spa_type_map* map = pw_core_type_->map; +- pw_type_ = new PipeWireType(); +- +- spa_type_media_type_map(map, &pw_type_->media_type); +- spa_type_media_subtype_map(map, &pw_type_->media_subtype); +- spa_type_format_video_map(map, &pw_type_->format_video); +- spa_type_video_format_map(map, &pw_type_->video_format); +-} +- +-void BaseCapturerPipeWire::CreateReceivingStream() { ++pw_stream* BaseCapturerPipeWire::CreateReceivingStream() { + spa_rectangle pwMinScreenBounds = spa_rectangle{1, 1}; +- spa_rectangle pwScreenBounds = +- spa_rectangle{static_cast(desktop_size_.width()), +- static_cast(desktop_size_.height())}; ++ spa_rectangle pwMaxScreenBounds = spa_rectangle{INT32_MAX, INT32_MAX}; + +- spa_fraction pwFrameRateMin = spa_fraction{0, 1}; +- spa_fraction pwFrameRateMax = spa_fraction{60, 1}; ++ auto stream = pw_stream_new(pw_core_, "webrtc-pipewire-stream", nullptr); + +- pw_properties* reuseProps = pw_properties_new("pipewire.client.reuse", "1", +- /*end of varargs*/ nullptr); +- pw_stream_ = pw_stream_new(pw_remote_, "webrtc-consume-stream", reuseProps); ++ if (!stream) { ++ RTC_LOG(LS_ERROR) << "Could not create receiving stream."; ++ return nullptr; ++ } + + uint8_t buffer[1024] = {}; +- const spa_pod* params[1]; +- spa_pod_builder builder = spa_pod_builder{buffer, sizeof(buffer)}; +- params[0] = reinterpret_cast(spa_pod_builder_object( +- &builder, +- // id to enumerate formats +- pw_core_type_->param.idEnumFormat, pw_core_type_->spa_format, "I", +- pw_type_->media_type.video, "I", pw_type_->media_subtype.raw, +- // Video format: specified as id or enum (I), preferred format is BGRx, +- // then allowed formats are enumerated (e) and the format is undecided (u) +- // to allow negotiation +- ":", pw_type_->format_video.format, "Ieu", pw_type_->video_format.BGRx, +- SPA_POD_PROP_ENUM(2, pw_type_->video_format.RGBx, +- pw_type_->video_format.BGRx), +- // Video size: specified as rectangle (R), preferred size is specified as +- // first parameter, then allowed size is defined as range (r) from min and +- // max values and the format is undecided (u) to allow negotiation +- ":", pw_type_->format_video.size, "Rru", &pwScreenBounds, 2, +- &pwMinScreenBounds, &pwScreenBounds, +- // Frame rate: specified as fraction (F) and set to minimum frame rate +- // value +- ":", pw_type_->format_video.framerate, "F", &pwFrameRateMin, +- // Max frame rate: specified as fraction (F), preferred frame rate is set +- // to maximum value, then allowed frame rate is defined as range (r) from +- // min and max values and it is undecided (u) to allow negotiation +- ":", pw_type_->format_video.max_framerate, "Fru", &pwFrameRateMax, 2, +- &pwFrameRateMin, &pwFrameRateMax)); +- +- pw_stream_add_listener(pw_stream_, &spa_stream_listener_, &pw_stream_events_, +- this); ++ const spa_pod* params[2]; ++ spa_pod_builder builder = SPA_POD_BUILDER_INIT(buffer, sizeof (buffer)); ++ ++ params[0] = reinterpret_cast(spa_pod_builder_add_object(&builder, ++ SPA_TYPE_OBJECT_Format, SPA_PARAM_EnumFormat, ++ SPA_FORMAT_mediaType, SPA_POD_Id(SPA_MEDIA_TYPE_video), ++ SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_raw), ++ SPA_FORMAT_VIDEO_format, SPA_POD_CHOICE_ENUM_Id(5, SPA_VIDEO_FORMAT_BGRx, SPA_VIDEO_FORMAT_RGBx, SPA_VIDEO_FORMAT_RGBA, ++ SPA_VIDEO_FORMAT_BGRx, SPA_VIDEO_FORMAT_BGRA), ++ SPA_FORMAT_VIDEO_size, SPA_POD_CHOICE_RANGE_Rectangle(&pwMinScreenBounds, ++ &pwMinScreenBounds, ++ &pwMaxScreenBounds), ++ 0)); ++ pw_stream_add_listener(stream, &spa_stream_listener_, &pw_stream_events_, this); ++ + pw_stream_flags flags = static_cast( +- PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_INACTIVE | +- PW_STREAM_FLAG_MAP_BUFFERS); +- if (pw_stream_connect(pw_stream_, PW_DIRECTION_INPUT, /*port_path=*/nullptr, +- flags, params, +- /*n_params=*/1) != 0) { ++ PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_INACTIVE); ++ ++ if (pw_stream_connect(stream, PW_DIRECTION_INPUT, pw_stream_node_id_, PW_STREAM_FLAG_AUTOCONNECT, params, 1) != 0) { + RTC_LOG(LS_ERROR) << "Could not connect receiving stream."; + portal_init_failed_ = true; +- return; + } ++ ++ return stream; + } + + void BaseCapturerPipeWire::HandleBuffer(pw_buffer* buffer) { ++ struct spa_meta_region* video_crop; + spa_buffer* spaBuffer = buffer->buffer; +- void* src = nullptr; ++ uint8_t *map = nullptr; ++ uint8_t* src = nullptr; ++ uint8_t* dst = nullptr; ++ ++ if (spaBuffer->datas[0].chunk->size == 0) { ++ map = nullptr; ++ src = nullptr; ++ } else if (spaBuffer->datas[0].type == SPA_DATA_MemFd) { ++ map = static_cast(mmap( ++ nullptr, spaBuffer->datas[0].maxsize + spaBuffer->datas[0].mapoffset, ++ PROT_READ, MAP_PRIVATE, spaBuffer->datas[0].fd, 0)); ++ ++ if (map == MAP_FAILED) { ++ RTC_LOG(LS_ERROR) << "Failed to mmap the memory: " << std::strerror(errno); ++ return; ++ } ++ ++ src = SPA_MEMBER(map, spaBuffer->datas[0].mapoffset, uint8_t); ++ } else if (spaBuffer->datas[0].type == SPA_DATA_DmaBuf) { ++ int fd; ++ fd = spaBuffer->datas[0].fd; + +- if (!(src = spaBuffer->datas[0].data)) { ++ map = static_cast(mmap( ++ nullptr, spaBuffer->datas[0].maxsize + spaBuffer->datas[0].mapoffset, ++ PROT_READ, MAP_PRIVATE, fd, 0)); ++ ++ if (map == MAP_FAILED) { ++ RTC_LOG(LS_ERROR) << "Failed to mmap the memory: " << std::strerror(errno); ++ return; ++ } ++ ++ SyncDmaBuf(fd, DMA_BUF_SYNC_START); ++ ++ src = SPA_MEMBER(map, spaBuffer->datas[0].mapoffset, uint8_t); ++ } else if (spaBuffer->datas[0].type == SPA_DATA_MemPtr) { ++ map = nullptr; ++ src = static_cast(spaBuffer->datas[0].data); ++ } else { + return; + } + +- uint32_t maxSize = spaBuffer->datas[0].maxsize; +- int32_t srcStride = spaBuffer->datas[0].chunk->stride; ++ if (!src) { ++ return; ++ } ++ ++ DesktopSize prev_crop_size = DesktopSize(0, 0); ++ if (video_crop_size_initialized_) { ++ prev_crop_size = video_crop_size_; ++ } ++ ++ if ((video_crop = static_cast( ++ spa_buffer_find_meta_data(spaBuffer, SPA_META_VideoCrop, sizeof(*video_crop))))) { ++ RTC_DCHECK(video_crop->region.size.width <= desktop_size_.width() && ++ video_crop->region.size.height <= desktop_size_.height()); ++ if ((video_crop->region.size.width != desktop_size_.width() || ++ video_crop->region.size.height != desktop_size_.height()) && video_crop->region.size.width && video_crop->region.size.height) { ++ video_crop_size_ = DesktopSize(video_crop->region.size.width, video_crop->region.size.height); ++ video_crop_size_initialized_ = true; ++ } else { ++ video_crop_size_initialized_ = false; ++ } ++ } else { ++ video_crop_size_initialized_ = false; ++ } ++ ++ size_t frame_size; ++ if (video_crop_size_initialized_) { ++ frame_size = ++ video_crop_size_.width() * video_crop_size_.height() * kBytesPerPixel; ++ } else { ++ frame_size = ++ desktop_size_.width() * desktop_size_.height() * kBytesPerPixel; ++ } ++ ++ if (!current_frame_ || ++ (video_crop_size_initialized_ && !video_crop_size_.equals(prev_crop_size))) { ++ current_frame_ = std::make_unique(frame_size); ++ } ++ RTC_DCHECK(current_frame_ != nullptr); ++ ++ const int32_t dstStride = video_crop_size_initialized_ ++ ? video_crop_size_.width() * kBytesPerPixel ++ : desktop_size_.width() * kBytesPerPixel; ++ const int32_t srcStride = spaBuffer->datas[0].chunk->stride; ++ + if (srcStride != (desktop_size_.width() * kBytesPerPixel)) { + RTC_LOG(LS_ERROR) << "Got buffer with stride different from screen stride: " + << srcStride +@@ -361,21 +400,40 @@ void BaseCapturerPipeWire::HandleBuffer(pw_buffer* buffer) { + return; + } + +- if (!current_frame_) { +- current_frame_ = static_cast(malloc(maxSize)); ++ dst = current_frame_.get(); ++ ++ // Adjust source content based on crop video position ++ if (video_crop_size_initialized_ && ++ (video_crop->region.position.y + video_crop_size_.height() <= desktop_size_.height())) { ++ for (int i = 0; i < video_crop->region.position.y; ++i) { ++ src += srcStride; ++ } ++ } ++ const int xOffset = ++ video_crop_size_initialized_ && (video_crop->region.position.x + video_crop_size_.width() <= ++ desktop_size_.width()) ++ ? video_crop->region.position.x * kBytesPerPixel ++ : 0; ++ const int height = video_crop_size_initialized_ ? video_crop_size_.height() : desktop_size_.height(); ++ for (int i = 0; i < height; ++i) { ++ // Adjust source content based on crop video position if needed ++ src += xOffset; ++ std::memcpy(dst, src, dstStride); ++ // If both sides decided to go with the RGBx format we need to convert it to ++ // BGRx to match color format expected by WebRTC. ++ if (spa_video_format_.format == SPA_VIDEO_FORMAT_RGBx || ++ spa_video_format_.format == SPA_VIDEO_FORMAT_RGBA) { ++ ConvertRGBxToBGRx(dst, dstStride); ++ } ++ src += srcStride - xOffset; ++ dst += dstStride; + } +- RTC_DCHECK(current_frame_ != nullptr); + +- // If both sides decided to go with the RGBx format we need to convert it to +- // BGRx to match color format expected by WebRTC. +- if (spa_video_format_->format == pw_type_->video_format.RGBx) { +- uint8_t* tempFrame = static_cast(malloc(maxSize)); +- std::memcpy(tempFrame, src, maxSize); +- ConvertRGBxToBGRx(tempFrame, maxSize); +- std::memcpy(current_frame_, tempFrame, maxSize); +- free(tempFrame); +- } else { +- std::memcpy(current_frame_, src, maxSize); ++ if (map) { ++ if (spaBuffer->datas[0].type == SPA_DATA_DmaBuf) { ++ SyncDmaBuf(spaBuffer->datas[0].fd, DMA_BUF_SYNC_END); ++ } ++ munmap(map, spaBuffer->datas[0].maxsize + spaBuffer->datas[0].mapoffset); + } + } + +@@ -725,10 +783,7 @@ void BaseCapturerPipeWire::OnStartRequestResponseSignal( + g_variant_get(variant, "(u@a{sv})", &stream_id, &options); + RTC_DCHECK(options != nullptr); + +- g_variant_lookup(options, "size", "(ii)", &width, &height); +- +- that->desktop_size_.set(width, height); +- ++ that->pw_stream_node_id_ = stream_id; + g_variant_unref(options); + g_variant_unref(variant); + } +@@ -813,10 +868,15 @@ void BaseCapturerPipeWire::CaptureFrame() { + return; + } + +- std::unique_ptr result(new BasicDesktopFrame(desktop_size_)); ++ DesktopSize frame_size = desktop_size_; ++ if (video_crop_size_initialized_) { ++ frame_size = video_crop_size_; ++ } ++ ++ std::unique_ptr result(new BasicDesktopFrame(frame_size)); + result->CopyPixelsFrom( +- current_frame_, (desktop_size_.width() * kBytesPerPixel), +- DesktopRect::MakeWH(desktop_size_.width(), desktop_size_.height())); ++ current_frame_.get(), (frame_size.width() * kBytesPerPixel), ++ DesktopRect::MakeWH(frame_size.width(), frame_size.height())); + if (!result) { + callback_->OnCaptureResult(Result::ERROR_TEMPORARY, nullptr); + return; +@@ -837,4 +897,22 @@ bool BaseCapturerPipeWire::SelectSource(SourceId id) { + return true; + } + ++// static ++std::unique_ptr ++BaseCapturerPipeWire::CreateRawScreenCapturer( ++ const DesktopCaptureOptions& options) { ++ std::unique_ptr capturer = ++ std::make_unique(BaseCapturerPipeWire::CaptureSourceType::kAny); ++ return std::move(capturer);} ++ ++// static ++std::unique_ptr ++BaseCapturerPipeWire::CreateRawWindowCapturer( ++ const DesktopCaptureOptions& options) { ++ ++ std::unique_ptr capturer = ++ std::make_unique(BaseCapturerPipeWire::CaptureSourceType::kAny); ++ return std::move(capturer); ++} ++ + } // namespace webrtc +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.h b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.h +index 56b101acbaa6..de54157d1a2a 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.h ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.h +@@ -22,17 +22,13 @@ + + namespace webrtc { + +-class PipeWireType { +- public: +- spa_type_media_type media_type; +- spa_type_media_subtype media_subtype; +- spa_type_format_video format_video; +- spa_type_video_format video_format; +-}; +- + class BaseCapturerPipeWire : public DesktopCapturer { + public: +- enum CaptureSourceType { Screen = 1, Window }; ++ enum CaptureSourceType : uint32_t { ++ kScreen = 0b01, ++ kWindow = 0b10, ++ kAny = 0b11 ++ }; + + explicit BaseCapturerPipeWire(CaptureSourceType source_type); + ~BaseCapturerPipeWire() override; +@@ -43,28 +39,32 @@ class BaseCapturerPipeWire : public DesktopCapturer { + bool GetSourceList(SourceList* sources) override; + bool SelectSource(SourceId id) override; + ++ static std::unique_ptr CreateRawScreenCapturer( ++ const DesktopCaptureOptions& options); ++ ++ static std::unique_ptr CreateRawWindowCapturer( ++ const DesktopCaptureOptions& options); ++ + private: + // PipeWire types --> ++ pw_context* pw_context_ = nullptr; + pw_core* pw_core_ = nullptr; +- pw_type* pw_core_type_ = nullptr; + pw_stream* pw_stream_ = nullptr; +- pw_remote* pw_remote_ = nullptr; +- pw_loop* pw_loop_ = nullptr; + pw_thread_loop* pw_main_loop_ = nullptr; +- PipeWireType* pw_type_ = nullptr; + ++ spa_hook spa_core_listener_ = {}; + spa_hook spa_stream_listener_ = {}; +- spa_hook spa_remote_listener_ = {}; + ++ pw_core_events pw_core_events_ = {}; + pw_stream_events pw_stream_events_ = {}; +- pw_remote_events pw_remote_events_ = {}; + +- spa_video_info_raw* spa_video_format_ = nullptr; ++ struct spa_video_info_raw spa_video_format_; + ++ guint32 pw_stream_node_id_ = 0; + gint32 pw_fd_ = -1; + + CaptureSourceType capture_source_type_ = +- BaseCapturerPipeWire::CaptureSourceType::Screen; ++ BaseCapturerPipeWire::CaptureSourceType::kAny; + + // <-- end of PipeWire types + +@@ -78,33 +78,37 @@ class BaseCapturerPipeWire : public DesktopCapturer { + guint sources_request_signal_id_ = 0; + guint start_request_signal_id_ = 0; + ++ bool video_crop_size_initialized_ = false; ++ DesktopSize video_crop_size_;; + DesktopSize desktop_size_ = {}; + DesktopCaptureOptions options_ = {}; + +- uint8_t* current_frame_ = nullptr; ++ std::unique_ptr current_frame_; + Callback* callback_ = nullptr; + + bool portal_init_failed_ = false; + + void InitPortal(); + void InitPipeWire(); +- void InitPipeWireTypes(); + +- void CreateReceivingStream(); ++ pw_stream* CreateReceivingStream(); + void HandleBuffer(pw_buffer* buffer); + + void ConvertRGBxToBGRx(uint8_t* frame, uint32_t size); + +- static void OnStateChanged(void* data, +- pw_remote_state old_state, +- pw_remote_state state, +- const char* error); ++ static void SyncDmaBuf(int fd, uint64_t start_or_end); ++ static void OnCoreError(void *data, ++ uint32_t id, ++ int seq, ++ int res, ++ const char *message); ++ static void OnStreamParamChanged(void *data, ++ uint32_t id, ++ const struct spa_pod *format); + static void OnStreamStateChanged(void* data, + pw_stream_state old_state, + pw_stream_state state, + const char* error_message); +- +- static void OnStreamFormatChanged(void* data, const struct spa_pod* format); + static void OnStreamProcess(void* data); + static void OnNewBuffer(void* data, uint32_t id); + +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc +index 26956fc67dc8..3813d697bb38 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/screen_capturer_pipewire.cc +@@ -15,7 +15,7 @@ + namespace webrtc { + + ScreenCapturerPipeWire::ScreenCapturerPipeWire() +- : BaseCapturerPipeWire(BaseCapturerPipeWire::CaptureSourceType::Screen) {} ++ : BaseCapturerPipeWire(BaseCapturerPipeWire::CaptureSourceType::kScreen) {} + ScreenCapturerPipeWire::~ScreenCapturerPipeWire() {} + + // static +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc +index 35436475cb4d..c43a1f1a0c4e 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/linux/window_capturer_pipewire.cc +@@ -15,7 +15,7 @@ + namespace webrtc { + + WindowCapturerPipeWire::WindowCapturerPipeWire() +- : BaseCapturerPipeWire(BaseCapturerPipeWire::CaptureSourceType::Window) {} ++ : BaseCapturerPipeWire(BaseCapturerPipeWire::CaptureSourceType::kWindow) {} + WindowCapturerPipeWire::~WindowCapturerPipeWire() {} + + // static +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_linux.cc b/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_linux.cc +index cf8a9dd0e0db..d27fab8d28d9 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_linux.cc ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/screen_capturer_linux.cc +@@ -26,7 +26,7 @@ std::unique_ptr DesktopCapturer::CreateRawScreenCapturer( + const DesktopCaptureOptions& options) { + #if defined(WEBRTC_USE_PIPEWIRE) + if (options.allow_pipewire() && DesktopCapturer::IsRunningUnderWayland()) { +- return ScreenCapturerPipeWire::CreateRawScreenCapturer(options); ++ return BaseCapturerPipeWire::CreateRawScreenCapturer(options); + } + #endif // defined(WEBRTC_USE_PIPEWIRE) + +diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/window_capturer_linux.cc b/media/webrtc/trunk/webrtc/modules/desktop_capture/window_capturer_linux.cc +index 82359e50c2db..bb9724cf7cc2 100644 +--- a/media/webrtc/trunk/webrtc/modules/desktop_capture/window_capturer_linux.cc ++++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/window_capturer_linux.cc +@@ -26,7 +26,7 @@ std::unique_ptr DesktopCapturer::CreateRawWindowCapturer( + const DesktopCaptureOptions& options) { + #if defined(WEBRTC_USE_PIPEWIRE) + if (options.allow_pipewire() && DesktopCapturer::IsRunningUnderWayland()) { +- return WindowCapturerPipeWire::CreateRawWindowCapturer(options); ++ return BaseCapturerPipeWire::CreateRawWindowCapturer(options); + } + #endif // defined(WEBRTC_USE_PIPEWIRE) + diff --git a/packages/m/MozillaThunderbird/mozilla-ppc-altivec_static_inline.patch b/packages/m/MozillaThunderbird/mozilla-ppc-altivec_static_inline.patch index c6d9d22..616c37d 100644 --- a/packages/m/MozillaThunderbird/mozilla-ppc-altivec_static_inline.patch +++ b/packages/m/MozillaThunderbird/mozilla-ppc-altivec_static_inline.patch @@ -3,13 +3,18 @@ # Date 1558452418 -7200 # Tue May 21 17:26:58 2019 +0200 # Node ID 6cd963b6c82ea6629aaf4050851789b78f310338 -# Parent 602e92722e765a3c238d3b96b26c0c8063b5eeb4 +# Parent 010a35335b4e45e222b9efdbda24fd1963202ecf imported patch mozilla-ppc-altivec_static_inline.patch -diff -r 602e92722e76 -r 6cd963b6c82e gfx/qcms/transform-altivec.c ---- a/gfx/qcms/transform-altivec.c Tue May 21 17:26:48 2019 +0200 -+++ b/gfx/qcms/transform-altivec.c Tue May 21 17:26:58 2019 +0200 -@@ -30,7 +30,7 @@ +diff --git a/gfx/qcms/transform-altivec.cpp b/gfx/qcms/transform-altivec.cpp +--- a/gfx/qcms/transform-altivec.cpp ++++ b/gfx/qcms/transform-altivec.cpp +@@ -25,17 +25,17 @@ + + #include "qcmsint.h" + + #define FLOATSCALE (float)(PRECACHE_OUTPUT_SIZE) + #define CLAMPMAXVAL (((float) (PRECACHE_OUTPUT_SIZE - 1)) / PRECACHE_OUTPUT_SIZE) static const ALIGN float floatScaleX4 = FLOATSCALE; static const ALIGN float clampMaxValueX4 = CLAMPMAXVAL; @@ -18,3 +23,8 @@ diff -r 602e92722e76 -r 6cd963b6c82e gfx/qcms/transform-altivec.c { vector float data = vec_lde(0, dataPtr); vector unsigned char moveToStart = vec_lvsl(0, dataPtr); + return vec_perm(data, data, moveToStart); + } + + template + static void qcms_transform_data_template_lut_altivec(const qcms_transform *transform, diff --git a/packages/m/MozillaThunderbird/mozilla-reduce-rust-debuginfo.patch b/packages/m/MozillaThunderbird/mozilla-reduce-rust-debuginfo.patch index 0b42471..03eb2e9 100644 --- a/packages/m/MozillaThunderbird/mozilla-reduce-rust-debuginfo.patch +++ b/packages/m/MozillaThunderbird/mozilla-reduce-rust-debuginfo.patch @@ -3,32 +3,52 @@ # Date 1560754926 -7200 # Mon Jun 17 09:02:06 2019 +0200 # Node ID 428161c3b9599083e1b8710eda1760f1f707ab11 -# Parent 6cd963b6c82ea6629aaf4050851789b78f310338 +# Parent fa1cf8b9cb4efdf89fe19e543fb54272b726a353 #Description: reduce the rust debuginfo level on selected architectures where # compiling with debuginfo=2 causes the OOM killer to interrupt the build on # launchpad builders. Initially this was only on 32 bit architectures, but with # firefox 63 it started happening frequently on arm64 and ppc64el too. -diff -r 6cd963b6c82e -r 428161c3b959 build/moz.configure/toolchain.configure ---- a/build/moz.configure/toolchain.configure Tue May 21 17:26:58 2019 +0200 -+++ b/build/moz.configure/toolchain.configure Mon Jun 17 09:02:06 2019 +0200 -@@ -1865,8 +1865,8 @@ +diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure +--- a/build/moz.configure/toolchain.configure ++++ b/build/moz.configure/toolchain.configure +@@ -1861,18 +1861,18 @@ imply_option('RUSTC_OPT_LEVEL', '2', whe + @depends('RUSTC_OPT_LEVEL', moz_optimize) + def rustc_opt_level(opt_level_option, moz_optimize): + if opt_level_option: + return opt_level_option[0] + else: return '1' if moz_optimize.optimize else '0' --@depends(rustc_opt_level, debug_rust, '--enable-debug-symbols') --def rust_compile_flags(opt_level, debug_rust, debug_symbols): -+@depends(rustc_opt_level, debug_rust, '--enable-debug-symbols', host) -+def rust_compile_flags(opt_level, debug_rust, debug_symbols, host): +-@depends(rustc_opt_level, debug_rust, '--enable-debug-symbols', '--enable-frame-pointers') +-def rust_compile_flags(opt_level, debug_rust, debug_symbols, frame_pointers): ++@depends(rustc_opt_level, debug_rust, '--enable-debug-symbols', '--enable-frame-pointers', host) ++def rust_compile_flags(opt_level, debug_rust, debug_symbols, frame_pointers, host): # Cargo currently supports only two interesting profiles for building: # development and release. Those map (roughly) to --enable-debug and # --disable-debug in Gecko, respectively. -@@ -1889,6 +1889,8 @@ + # + # But we'd also like to support an additional axis of control for + # optimization level. Since Cargo only supports 2 profiles, we're in + # a bit of a bind. + # +@@ -1885,16 +1885,18 @@ def rust_compile_flags(opt_level, debug_ + + # opt-level=0 implies -C debug-assertions, which may not be desired + # unless Rust debugging is enabled. + if opt_level == '0' and not debug_rust: + debug_assertions = False if debug_symbols: debug_info = '2' -+ if host.bitness == 32 or host.cpu == 'aarch64' or host.cpu == 'ppc64': -+ debug_info = '1' ++# if host.bitness == 32 or host.cpu == 'aarch64' or host.cpu == 'ppc64': # Just reduce debug_info for all archs ++ debug_info = '1' opts = [] + if opt_level is not None: + opts.append('opt-level=%s' % opt_level) + if debug_assertions is not None: + opts.append('debug-assertions=%s' % + ('yes' if debug_assertions else 'no')) diff --git a/packages/m/MozillaThunderbird/mozilla-s390-bigendian.patch b/packages/m/MozillaThunderbird/mozilla-s390-bigendian.patch deleted file mode 100644 index 558fa25..0000000 --- a/packages/m/MozillaThunderbird/mozilla-s390-bigendian.patch +++ /dev/null @@ -1,20 +0,0 @@ -# HG changeset patch -# User msirringhaus@suse.de -# Date 1558452126 -7200 -# Tue May 21 17:22:06 2019 +0200 -# Node ID a3cc550d25e3a04d906f516928cbcbe50efd585e -# Parent 433beec63e6b5f409683af20a0c1ab137cc7bfad -[mq]: mozilla-s390-bigendian.patch - -diff -r 433beec63e6b -r a3cc550d25e3 build/autoconf/icu.m4 ---- a/build/autoconf/icu.m4 Tue May 21 17:12:20 2019 +0200 -+++ b/build/autoconf/icu.m4 Tue May 21 17:22:06 2019 +0200 -@@ -78,7 +78,7 @@ - # TODO: the l is actually endian-dependent - # We could make this set as 'l' or 'b' for little or big, respectively, - # but we'd need to check in a big-endian version of the file. -- ICU_DATA_FILE="icudt${version}l.dat" -+ ICU_DATA_FILE="icudt${version}b.dat" - fi - - AC_SUBST(MOZ_ICU_VERSION) diff --git a/packages/m/MozillaThunderbird/mozilla-s390x-skia-gradient.patch b/packages/m/MozillaThunderbird/mozilla-s390x-skia-gradient.patch new file mode 100644 index 0000000..a5e5d95 --- /dev/null +++ b/packages/m/MozillaThunderbird/mozilla-s390x-skia-gradient.patch @@ -0,0 +1,51 @@ +# HG changeset patch +# Parent acf59ea86dd1d878b43920832093f082dcfc61c0 + +diff -r acf59ea86dd1 gfx/skia/skia/src/shaders/gradients/Sk4fLinearGradient.cpp +--- a/gfx/skia/skia/src/shaders/gradients/Sk4fLinearGradient.cpp Mon Mar 09 08:26:10 2020 +0100 ++++ b/gfx/skia/skia/src/shaders/gradients/Sk4fLinearGradient.cpp Fri Mar 27 13:30:28 2020 +0100 +@@ -7,7 +7,7 @@ + + #include "include/core/SkPaint.h" + #include "src/shaders/gradients/Sk4fLinearGradient.h" +- ++#include "src/core/SkEndian.h" + #include + #include + +@@ -28,6 +28,9 @@ + + while (n >= 4) { + DstTraits::store4x(c0, c1, c2, c3, dst, bias0, bias1); ++#ifdef SK_CPU_BENDIAN ++ SkEndianSwap32s(dst, 4); ++#endif + dst += 4; + + c0 = c0 + dc4; +@@ -37,12 +40,23 @@ + n -= 4; + } + if (n & 2) { +- DstTraits::store(c0, dst++, bias0); +- DstTraits::store(c1, dst++, bias1); ++ DstTraits::store(c0, dst, bias0); ++#ifdef SK_CPU_BENDIAN ++ *dst = SkEndianSwap32(*dst); ++#endif ++ ++dst; ++ DstTraits::store(c1, dst, bias1); ++#ifdef SK_CPU_BENDIAN ++ *dst = SkEndianSwap32(*dst); ++#endif ++ ++dst; + c0 = c0 + dc2; + } + if (n & 1) { + DstTraits::store(c0, dst, bias0); ++#ifdef SK_CPU_BENDIAN ++ *dst = SkEndianSwap32(*dst); ++#endif + } + } + diff --git a/packages/m/MozillaThunderbird/mozilla-sandbox-fips.patch b/packages/m/MozillaThunderbird/mozilla-sandbox-fips.patch new file mode 100644 index 0000000..a649486 --- /dev/null +++ b/packages/m/MozillaThunderbird/mozilla-sandbox-fips.patch @@ -0,0 +1,16 @@ +From: meissner@suse.com +Subject: allow Firefox to access addtional process information +Reference: http://bugzilla.suse.com/show_bug.cgi?id=1167132 + +Index: firefox-74.0/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp +=================================================================== +--- firefox-74.0.orig/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp ++++ firefox-74.0/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp +@@ -276,6 +276,7 @@ SandboxBrokerPolicyFactory::SandboxBroke + + // Read permissions + policy->AddPath(rdonly, "/dev/urandom"); ++ policy->AddPath(rdonly, "/proc/sys/crypto/fips_enabled"); + policy->AddPath(rdonly, "/proc/cpuinfo"); + policy->AddPath(rdonly, "/proc/meminfo"); + policy->AddDir(rdonly, "/sys/devices/cpu"); diff --git a/packages/m/MozillaThunderbird/spellcheck.js b/packages/m/MozillaThunderbird/spellcheck.js new file mode 100644 index 0000000..9adfb8f --- /dev/null +++ b/packages/m/MozillaThunderbird/spellcheck.js @@ -0,0 +1 @@ +pref("spellchecker.dictionary_path", "/usr/share/myspell"); diff --git a/packages/m/MozillaThunderbird/tar_stamps b/packages/m/MozillaThunderbird/tar_stamps index ea81fbf..af996a6 100644 --- a/packages/m/MozillaThunderbird/tar_stamps +++ b/packages/m/MozillaThunderbird/tar_stamps @@ -1,10 +1,10 @@ PRODUCT="thunderbird" -CHANNEL="esr68" -VERSION="68.12.0" +CHANNEL="esr78" +VERSION="78.3.1" VERSION_SUFFIX="" -PREV_VERSION="68.11.0" +PREV_VERSION="78.3.0" PREV_VERSION_SUFFIX="" #SKIP_LOCALES="" # Uncomment to skip l10n and compare-locales-generation -RELEASE_REPO="https://hg.mozilla.org/releases/comm-esr68" -RELEASE_TAG="b41cdff70b185358d9c4c1d4a36cfad15a24f001" -RELEASE_TIMESTAMP="20200820223055" +RELEASE_REPO="https://hg.mozilla.org/releases/comm-esr78" +RELEASE_TAG="00912779d73faef4277c57fe99aa5259b11d244d" +RELEASE_TIMESTAMP="20200925001233" diff --git a/packages/m/MozillaThunderbird/thunderbird-68.12.0.source.tar.xz b/packages/m/MozillaThunderbird/thunderbird-68.12.0.source.tar.xz deleted file mode 120000 index 0cdd6ca..0000000 --- a/packages/m/MozillaThunderbird/thunderbird-68.12.0.source.tar.xz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeiev6pn6ytrh6cwingblwfxzfwd2xrwmj5bxy5vsbfrgvw3mpsyuxa \ No newline at end of file diff --git a/packages/m/MozillaThunderbird/thunderbird-68.12.0.source.tar.xz.asc b/packages/m/MozillaThunderbird/thunderbird-68.12.0.source.tar.xz.asc deleted file mode 100644 index e2051f4..0000000 --- a/packages/m/MozillaThunderbird/thunderbird-68.12.0.source.tar.xz.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCgAdFiEECXsxMHeuYqAvhNpN8aZmj7t9Vy4FAl9EFJgACgkQ8aZmj7t9 -Vy4iKg/8CyGoVX+9ZUYPKgOPwwhn4+mOnCufZ7ZisMVDSjh3jRyhgQ6pmaSsnwYs -aCeMjjf+hbA9zafXzQMFUTpQn5q3XvsZQ9StwWK+2U1vFN+MVZy3mtvrKm10E2i/ -jZRiimjg87z4aa50YgBoE/UMxN6SjR11Kx++skjxNeXRsdjfq2N3b/0KMvahduLQ -gmqfdMEJjS5SC/DF7wDGMlWIEz+IO7q/V4F7bJftNe5yYwLa2hvfyXZyCvFGT1uv -1QWu5B95/63j+e8QDgHaJ9KQJitPxOIEuqIdj/vQJzIM3EzcH01hirGkG3CGoO2U -pujprKASdp9Gvd8Hsjr8JOkp49mdzTb2/HiRa34Ubju3w4LB3r9ntOTVYZmU8bat -GN84Ks3Ts+NXT6D0MZ36YSiJ64NU5N6jeSPOEXUAwTMlURmumWu1YNAJv+q5n1X+ -XoElCG7pvad3J/9Q06RCST/6sGF7NtNXtTmH9ubhmsu4cE/7eWdBEs9u0j8nRL7L -5A9m+1Pw6nG5cktTb0VQyDgc9/BmebPlCrcicV9MBbE+NNNQSR3W3iaCLrDaBLXO -NG0GQrnDjjyscI+w+elkhmkl0X5qnOfuVkzzsQgmdfgFStS0D2HL8lpBbgyPhNSr -zoaiL2PcdCul7JwX0o0OQQvw6+nrkee+aBRU+onKKAdHAdIH2no= -=lUe0 ------END PGP SIGNATURE----- diff --git a/packages/m/MozillaThunderbird/thunderbird-78.3.1.source.tar.xz b/packages/m/MozillaThunderbird/thunderbird-78.3.1.source.tar.xz new file mode 120000 index 0000000..d258301 --- /dev/null +++ b/packages/m/MozillaThunderbird/thunderbird-78.3.1.source.tar.xz @@ -0,0 +1 @@ +/ipfs/bafybeiaet4xbwxw4wepunc6u35w3g4rgnff3kp2bbf5ddamz2vwoe5wkfa \ No newline at end of file diff --git a/packages/m/MozillaThunderbird/thunderbird-78.3.1.source.tar.xz.asc b/packages/m/MozillaThunderbird/thunderbird-78.3.1.source.tar.xz.asc new file mode 100644 index 0000000..d07637e --- /dev/null +++ b/packages/m/MozillaThunderbird/thunderbird-78.3.1.source.tar.xz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEECXsxMHeuYqAvhNpN8aZmj7t9Vy4FAl9tXX0ACgkQ8aZmj7t9 +Vy6s0g/8CmgQtLeuA18WjZtV7yXMueTEYHVaqAVAKQz99aMUuvOc59GuZhPd8AIC +uaEv8tHSMJsphaIH1zR91c2fmBQitV00qr0Dn0TgV6BGhSXFecRlRR5c1syq+6wG +h4+9AzHVv9uqmXsfuTtChYOyyKv4BQOxT+zdkh4nioYQOUsFH7WvNA0pYW6Wj17O +6/u50boaLoXvN/RceJJ6oZ/PFa61MuYNSbakugzxCEKuuH0vAGjG/jwhBXvnhFY8 +y7Rv6XbL46STARV008uqUVHzfxOSFFJmQHx27iO1iDJWAfvQ5GFTKh/3K05egIGY +Xgib6nkacCd3Fo6nzkLiNL48KoyAAseS1t+JxxsG3Ixf4OjyEhb+X5o8JWGJ1Ojk +poe916mbig9rXMBOM/txNrwGCPsNhz7gTInF9P6B5LmEacNgEOX2hr6+vBLox4Ne +vvnOJr5ucltKP4lFItMugQ9y6UG78yPsXZ6MUUbxddR6S4nZ++bOBUqkzxqPZcPH +UqOqx+cBf4YBuud0hnSqnpwRKpE4vUCCM7NRphZxo2MAa04U6NPZ/ZWkUwkPYCZ7 +h/Up0Cn/wUkP7wJGFQIBn/e2wDj9i3I+MRqyMtAdb/Cs9vL5XIxR70hjiyFdJS// +36wryx5ogReHaMp5YL5hvRsWi6fStal82ff6ttLADRZXMfEsOM0= +=XToC +-----END PGP SIGNATURE----- diff --git a/packages/n/nbd/.files b/packages/n/nbd/.files index 9525ea1..6668d11 100644 Binary files a/packages/n/nbd/.files and b/packages/n/nbd/.files differ diff --git a/packages/n/nbd/.rev b/packages/n/nbd/.rev index c7cae67..0cf1018 100644 --- a/packages/n/nbd/.rev +++ b/packages/n/nbd/.rev @@ -434,4 +434,12 @@ Should go into 12.2 as well. (forwarded request 127441 from a_jaeger) 835407 + + 1b9037cbfe5b6828aca3c049acda97d4 + 3.20 + + dimstar_suse + + 838464 + diff --git a/packages/n/nbd/nbd.changes b/packages/n/nbd/nbd.changes index bf4030c..5f0ab91 100644 --- a/packages/n/nbd/nbd.changes +++ b/packages/n/nbd/nbd.changes @@ -5,6 +5,20 @@ Fri Sep 18 08:53:47 UTC 2020 - Michał Rostecki package now. ------------------------------------------------------------------- +Fri Sep 11 18:22:18 UTC 2020 - Franck Bui + +- Drop use of DISABLE_RESTART_ON_UPDATE=yes + + This interface is deprecated and %service_del_postun_without_restart + should be preferred. + + However the variable was misused as DISABLE_RESTART_ON_UPDATE=yes + was not supposed to be used with %service_add_post in %post but with + %service_del_postun in %postun section. + + Given that no one noticed that for years let's just drop it. + +------------------------------------------------------------------- Thu Aug 20 07:03:13 UTC 2020 - Dominique Leuenberger - Fix typo in previous commit (%{prefix/lib} ->%{_prefix}/lib). @@ -534,3 +548,4 @@ Mon Jul 4 18:24:39 CEST 2005 - garloff@suse.de - Initial creation of package. ------------------------------------------------------------------- +Mon Jul 4 18:24:39 CEST 2005 - diff --git a/packages/n/nbd/nbd.spec b/packages/n/nbd/nbd.spec index 3b866f0..b263e10 100644 --- a/packages/n/nbd/nbd.spec +++ b/packages/n/nbd/nbd.spec @@ -89,7 +89,6 @@ install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/nbd-server/config.ex install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name}-server %post -export DISABLE_RESTART_ON_UPDATE=yes %service_add_post %{name}-server.service %fillup_only -n nbd-server if test -e %{_sysconfdir}/nbd-server.conf; then diff --git a/packages/o/openexr/.files b/packages/o/openexr/.files index 21e42b2..6c0c86c 100644 Binary files a/packages/o/openexr/.files and b/packages/o/openexr/.files differ diff --git a/packages/o/openexr/.rev b/packages/o/openexr/.rev index 6d649fc..5f85a2d 100644 --- a/packages/o/openexr/.rev +++ b/packages/o/openexr/.rev @@ -540,4 +540,18 @@ No GPL licensed files found in the package (forwarded request 136251 from babelw on any bigendian platform in current state (forwarded request 834725 from oertel) 834726 + + b332b2efdd190cf76b6a8c67f66644c3 + 2.5.3 + + dimstar_suse + - version update to 2.5.3 + * Various sanitizer/fuzz-identified issues related to handling of invalid input + * Fixes to misc compiler warnings + * Cmake fix for building on arm64 macOS (#772) + * Read performance optimization (#782) + * Fix for building on non-glibc (#798) + * Fixes to tests + 838690 + diff --git a/packages/o/openexr/openexr.changes b/packages/o/openexr/openexr.changes index 1aab8a1..81fca32 100644 --- a/packages/o/openexr/openexr.changes +++ b/packages/o/openexr/openexr.changes @@ -1,4 +1,15 @@ ------------------------------------------------------------------- +Wed Sep 30 06:55:23 UTC 2020 - pgajdos@suse.com + +- version update to 2.5.3 + * Various sanitizer/fuzz-identified issues related to handling of invalid input + * Fixes to misc compiler warnings + * Cmake fix for building on arm64 macOS (#772) + * Read performance optimization (#782) + * Fix for building on non-glibc (#798) + * Fixes to tests + +------------------------------------------------------------------- Tue Sep 15 18:56:44 CEST 2020 - ro@suse.de - Disable testsuite also on s390/s390x, probably will not pass diff --git a/packages/o/openexr/openexr.spec b/packages/o/openexr/openexr.spec index 33fa6c5..ba3a50c 100644 --- a/packages/o/openexr/openexr.spec +++ b/packages/o/openexr/openexr.spec @@ -22,7 +22,7 @@ %define sonum 25 %global so_suffix -2_5 Name: openexr -Version: 2.5.2 +Version: 2.5.3 Release: 0 Summary: Utilities for working with HDR images in OpenEXR format License: BSD-3-Clause @@ -36,7 +36,7 @@ BuildRequires: fltk-devel BuildRequires: freeglut-devel BuildRequires: gcc-c++ BuildRequires: pkgconfig -BuildRequires: pkgconfig(IlmBase) >= %{version} +BuildRequires: pkgconfig(IlmBase) == %{version} BuildRequires: pkgconfig(zlib) Obsoletes: OpenEXR <= 1.6.1 Provides: OpenEXR = %{version} diff --git a/packages/o/openexr/v2.5.2.tar.gz b/packages/o/openexr/v2.5.2.tar.gz deleted file mode 120000 index ed6c855..0000000 --- a/packages/o/openexr/v2.5.2.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeih2p4hcridkdzx5urqbmr55m5szb7bgubivpumj3dydhdih6m4h5i \ No newline at end of file diff --git a/packages/o/openexr/v2.5.3.tar.gz b/packages/o/openexr/v2.5.3.tar.gz new file mode 120000 index 0000000..d33428f --- /dev/null +++ b/packages/o/openexr/v2.5.3.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeid7pu5fm3gc44bk5l5kdpjxpepvtn7oaq62gcsy2wxgfxxd2mcz54 \ No newline at end of file diff --git a/packages/p/pstoedit/.files b/packages/p/pstoedit/.files index 1e6a06c..b4e99b8 100644 Binary files a/packages/p/pstoedit/.files and b/packages/p/pstoedit/.files differ diff --git a/packages/p/pstoedit/.rev b/packages/p/pstoedit/.rev index 4c8e4ea..b38547e 100644 --- a/packages/p/pstoedit/.rev +++ b/packages/p/pstoedit/.rev @@ -241,4 +241,12 @@ 1 528225 + + 9a204b7dc1c2eaa7adb37ebfcfb2c505 + 3.75 + + dimstar_suse + + 838561 + diff --git a/packages/p/pstoedit/pstoedit-3.70.tar.gz b/packages/p/pstoedit/pstoedit-3.70.tar.gz deleted file mode 120000 index 78d5d78..0000000 --- a/packages/p/pstoedit/pstoedit-3.70.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeieawz3bkojnxvvwv5pg4xamwfht6giumr7ypwdvjr22nimtgojmaq \ No newline at end of file diff --git a/packages/p/pstoedit/pstoedit-3.75.tar.gz b/packages/p/pstoedit/pstoedit-3.75.tar.gz new file mode 120000 index 0000000..d3189c5 --- /dev/null +++ b/packages/p/pstoedit/pstoedit-3.75.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeiap33nskyrw3bpbctyz62nywvxl44guc4mdcd3n3oaeglrayjboom \ No newline at end of file diff --git a/packages/p/pstoedit/pstoedit-imagemagick7.patch b/packages/p/pstoedit/pstoedit-imagemagick7.patch deleted file mode 100644 index bb69cdc..0000000 --- a/packages/p/pstoedit/pstoedit-imagemagick7.patch +++ /dev/null @@ -1,324 +0,0 @@ -Index: pstoedit-3.70/configure.ac -=================================================================== ---- pstoedit-3.70.orig/configure.ac 2014-12-28 21:39:18.000000000 +0100 -+++ pstoedit-3.70/configure.ac 2017-09-20 11:15:45.248170328 +0200 -@@ -299,7 +299,7 @@ if test "x${PSTOEDIT_GCC_OK}" = xno ; th - else - if test -n "$PKG_CONFIG"; then - AC_MSG_CHECKING(ImageMagick flags through pkg-config) -- PKG_CHECK_MODULES(LIBMAGICK, ImageMagick++, -+ PKG_CHECK_MODULES(LIBMAGICK, Magick++, - HAVE_LIBMAGICK=yes - LIBMAGICK_CFLAGS="-DHAVE_MAGIC $LIBMAGICK_CFLAGS" - LIBMAGICK_LDFLAGS="$LIBMAGICK_LIBS" , -Index: pstoedit-3.70/src/drvmagick++.cpp -=================================================================== ---- pstoedit-3.70.orig/src/drvmagick++.cpp 2015-01-01 18:05:33.000000000 +0100 -+++ pstoedit-3.70/src/drvmagick++.cpp 2017-09-20 11:20:15.660949630 +0200 -@@ -60,16 +60,16 @@ constructBase, imgcount(0), imageptr(NIL - //test xxx.push_back("asdsda"); - - try { -- InitializeMagick(0); -- imageptr = new Image(Geometry(600, 800), Color("white")); -+ Magick::InitializeMagick(0); -+ imageptr = new Magick::Image(Magick::Geometry(600, 800), Magick::Color("white")); - - if (withdummycontext) -- imageptr->draw(DrawablePushGraphicContext()); -+ imageptr->draw(Magick::DrawablePushGraphicContext()); - #ifdef onedrawlist -- drawList.push_back(DrawablePushGraphicContext()); -- drawList.push_back(DrawableViewbox(0, 0, 640, 800)); -+ drawList.push_back(Magick::DrawablePushGraphicContext()); -+ drawList.push_back(Magick::DrawableViewbox(0, 0, 640, 800)); - #else -- imageptr->draw(DrawableViewbox(0, 0, 640, 800)); -+ imageptr->draw(Magick::DrawableViewbox(0, 0, 640, 800)); - #endif - - // Display the result -@@ -79,7 +79,7 @@ constructBase, imgcount(0), imageptr(NIL - // image.write("result.jpg"); - } - -- catch (Exception & error_) { -+ catch (Magick::Exception & error_) { - cout << "Caught exception: " << error_.what() << endl; - ctorOK = false; - //return 1; -@@ -90,10 +90,10 @@ drvMAGICK::~drvMAGICK() - { - try { - if (withdummycontext) -- imageptr->draw(DrawablePopGraphicContext()); -+ imageptr->Magick::Image::draw(Magick::DrawablePopGraphicContext()); - - #ifdef onedrawlist -- drawList.push_back(DrawablePopGraphicContext()); -+ drawList.push_back(Magick::DrawablePopGraphicContext()); - // Draw everything using completed drawing list - imageptr->draw(drawList); - #endif -@@ -107,14 +107,14 @@ drvMAGICK::~drvMAGICK() - if (Verbose()) cout << "writing " << outFileName.c_str() << endl; - imageptr->write(outFileName.c_str()); - } -- catch (const Exception & error_) { -+ catch (const Magick::Exception & error_) { - cout << "Caught exception: " << error_.what() << endl; - } - delete imageptr; - imageptr = NIL; - } - --void drvMAGICK::create_vpath(VPathList &vpath) -+void drvMAGICK::create_vpath(Magick::VPathList &vpath) - { - for (unsigned int n = 0; n < numberOfElementsInPath(); n++) { - const basedrawingelement & elem = pathElement(n); -@@ -123,26 +123,26 @@ void drvMAGICK::create_vpath(VPathList & - const Point & p = elem.getPoint(0); - const Magick::Coordinate coord(p.x_ + x_offset, - currentDeviceHeight - p.y_ + y_offset); -- vpath.push_back(PathMovetoAbs(coord)); -+ vpath.push_back(Magick::PathMovetoAbs(coord)); - } - break; - case lineto:{ - const Point & p = elem.getPoint(0); - const Magick::Coordinate coord(p.x_ + x_offset, - currentDeviceHeight - p.y_ + y_offset); -- vpath.push_back(PathLinetoAbs(coord)); -+ vpath.push_back(Magick::PathLinetoAbs(coord)); - } - break; - case closepath: -- vpath.push_back(PathClosePath()); -+ vpath.push_back(Magick::PathClosePath()); - break; - case curveto:{ - const Point & p0 = elem.getPoint(0); - const Point & p1 = elem.getPoint(1); - const Point & p2 = elem.getPoint(2); - vpath. -- push_back(PathCurvetoAbs -- (PathCurvetoArgs -+ push_back(Magick::PathCurvetoAbs -+ (Magick::PathCurvetoArgs - (p0.x_ + x_offset, currentDeviceHeight - p0.y_ + y_offset, - p1.x_ + x_offset, currentDeviceHeight - p1.y_ + y_offset, - p2.x_ + x_offset, currentDeviceHeight - p2.y_ + y_offset))); -@@ -170,14 +170,14 @@ void drvMAGICK::close_page() - void drvMAGICK::show_text(const TextInfo & textinfo) - { - try { -- DrawableList drawList; -- drawList.push_back(DrawablePushGraphicContext()); -- drawList.push_back(DrawableFont(textinfo.currentFontName.c_str(), AnyStyle, 400, AnyStretch)); --// drawList.push_back( DrawableText(100,100,"test") ); -- drawList.push_back(DrawablePointSize(textinfo.currentFontSize)); -- drawList.push_back(DrawableFillColor -- (ColorRGB(textinfo.currentR, textinfo.currentG, textinfo.currentB))); -- drawList.push_back(DrawableStrokeColor(Color())); // unset color -+ Magick::DrawableList drawList; -+ drawList.push_back(Magick::DrawablePushGraphicContext()); -+ drawList.push_back(Magick::DrawableFont(textinfo.currentFontName.c_str(), Magick::AnyStyle, 400, Magick::AnyStretch)); -+// drawList.push_back( Magick::DrawableText(100,100,"test") ); -+ drawList.push_back(Magick::DrawablePointSize(textinfo.currentFontSize)); -+ drawList.push_back(Magick::DrawableFillColor -+ (Magick::ColorRGB(textinfo.currentR, textinfo.currentG, textinfo.currentB))); -+ drawList.push_back(Magick::DrawableStrokeColor(Magick::Color())); // unset color - #if 1 - /* - -@@ -200,19 +200,19 @@ are translation. - const double sy_ = CTM[3] / fontsize; - const double tx_ = CTM[4] + x_offset; - const double ty_ = currentDeviceHeight - CTM[5] + y_offset; -- drawList.push_back(DrawableAffine(sx_, sy_, rx_, ry_, tx_, ty_)); -+ drawList.push_back(Magick::DrawableAffine(sx_, sy_, rx_, ry_, tx_, ty_)); - #else --// drawList.push_back( DrawableAngle(textinfo.currentFontAngle/6.29) ); -+// drawList.push_back( Magick::DrawableAngle(textinfo.currentFontAngle/6.29) ); - drawList. -- push_back(DrawableTranslation -+ push_back(Magick::DrawableTranslation - (textinfo.x + x_offset, currentDeviceHeight - textinfo.y + y_offset)); -- drawList.push_back(DrawableRotation(360.0 - textinfo.currentFontAngle)); -+ drawList.push_back(Magick::DrawableRotation(360.0 - textinfo.currentFontAngle)); - #endif -- drawList.push_back(DrawableText(0, 0, textinfo.thetext.c_str())); -- drawList.push_back(DrawablePopGraphicContext()); -+ drawList.push_back(Magick::DrawableText(0, 0, textinfo.thetext.c_str())); -+ drawList.push_back(Magick::DrawablePopGraphicContext()); - imageptr->draw(drawList); - } -- catch (const Exception & error_) { -+ catch (const Magick::Exception & error_) { - cout << "Caught exception: " << error_.what() << endl; - } - } -@@ -220,14 +220,14 @@ are translation. - void drvMAGICK::show_path() - { - -- static const Color NoColor; // Bob says that a default color means no-fill/no-stroke -+ static const Magick::Color NoColor; // Bob says that a default color means no-fill/no-stroke - - // Construct drawing list - #ifndef onedrawlist -- std::list < Magick::Drawable > drawList; -+ std::vector < Magick::Drawable > drawList; - #endif - -- VPathList vpath; -+ Magick::VPathList vpath; - create_vpath(vpath); - - -@@ -238,28 +238,28 @@ void drvMAGICK::show_path() - // outf << " (polyline): " << endl; - // outf << "\tcurrentShowType: "; - #ifndef onedrawlist -- drawList.push_back(DrawablePushGraphicContext()); -+ drawList.push_back(Magick::DrawablePushGraphicContext()); - #endif - - switch (currentShowType()) { - case drvbase::stroke: - //outf << "stroked"; -- drawList.push_back(DrawableStrokeColor(ColorRGB(edgeR(), edgeG(), edgeB()))); -- drawList.push_back(DrawableStrokeWidth(currentLineWidth())); // Stroke width -- drawList.push_back(DrawableFillColor(NoColor)); -+ drawList.push_back(Magick::DrawableStrokeColor(Magick::ColorRGB(edgeR(), edgeG(), edgeB()))); -+ drawList.push_back(Magick::DrawableStrokeWidth(currentLineWidth())); // Stroke width -+ drawList.push_back(Magick::DrawableFillColor(NoColor)); - // image.fillColor(""); - break; - case drvbase::fill: - // outf << "filled"; -- drawList.push_back(DrawableStrokeColor(NoColor)); -- drawList.push_back(DrawableFillRule(NonZeroRule)); -- drawList.push_back(DrawableFillColor(ColorRGB(fillR(), fillG(), fillB()))); // Fill color -+ drawList.push_back(Magick::DrawableStrokeColor(NoColor)); -+ drawList.push_back(Magick::DrawableFillRule(Magick::NonZeroRule)); -+ drawList.push_back(Magick::DrawableFillColor(Magick::ColorRGB(fillR(), fillG(), fillB()))); // Fill color - break; - case drvbase::eofill: - // outf << "eofilled"; -- drawList.push_back(DrawableStrokeColor(NoColor)); -- drawList.push_back(DrawableFillRule(EvenOddRule)); -- drawList.push_back(DrawableFillColor(ColorRGB(fillR(), fillG(), fillB()))); // Fill color -+ drawList.push_back(Magick::DrawableStrokeColor(NoColor)); -+ drawList.push_back(Magick::DrawableFillRule(Magick::EvenOddRule)); -+ drawList.push_back(Magick::DrawableFillColor(Magick::ColorRGB(fillR(), fillG(), fillB()))); // Fill color - break; - default: - // cannot happen -@@ -278,29 +278,29 @@ void drvMAGICK::show_path() - dasharray[i] = d_numbers[i]; - } - dasharray[dp.nrOfEntries] = 0; // mark last element -- drawList.push_back(DrawableDashArray(dasharray)); // pulls a copy, so we are the owner of dasharray --//?? DrawableDashOffset -+ drawList.push_back(Magick::DrawableStrokeDashArray(dasharray)); // pulls a copy, so we are the owner of dasharray -+//?? Magick::DrawableDashOffset - delete[]dasharray; - } - - const unsigned int join = currentLineJoin(); // 0 miter; 1 round; 2 bevel -- const LineJoin linejoin = -- (join == 0) ? MiterJoin : (join == 1) ? RoundJoin : (join == 2) ? BevelJoin : UndefinedJoin; -- drawList.push_back(DrawableStrokeLineJoin(linejoin)); -+ const Magick::LineJoin linejoin = -+ (join == 0) ? Magick::MiterJoin : (join == 1) ? Magick::RoundJoin : (join == 2) ? Magick::BevelJoin : Magick::UndefinedJoin; -+ drawList.push_back(Magick::DrawableStrokeLineJoin(linejoin)); - - // const float miter = currentMiterLimit(); - - const unsigned int cap = currentLineCap(); // 0 butt; 1 round; 2 square -- const LineCap linecap = -- (cap == 0) ? ButtCap : (cap == 1) ? RoundCap : (cap == 2) ? SquareCap : UndefinedCap; -- drawList.push_back(DrawableStrokeLineCap(linecap)); -+ const Magick::LineCap linecap = -+ (cap == 0) ? Magick::ButtCap : (cap == 1) ? Magick::RoundCap : (cap == 2) ? Magick::SquareCap : Magick::UndefinedCap; -+ drawList.push_back(Magick::DrawableStrokeLineCap(linecap)); - -- drawList.push_back(DrawablePath(vpath)); -+ drawList.push_back(Magick::DrawablePath(vpath)); - - #ifndef onedrawlist -- drawList.push_back(DrawablePopGraphicContext()); -+ drawList.push_back(Magick::DrawablePopGraphicContext()); - // Draw everything using completed drawing list -- imageptr->draw(drawList); -+ imageptr->Magick::Image::draw(drawList); - #endif - - } -@@ -323,7 +323,7 @@ void drvMAGICK::show_image(const PSImage - - if (imageinfo.isFileImage) { - try { -- DrawableList drawList; -+ Magick::DrawableList drawList; - - const double sx = imageinfo.normalizedImageCurrentMatrix[0]; - const double rx = -imageinfo.normalizedImageCurrentMatrix[1]; -@@ -347,23 +347,23 @@ void drvMAGICK::show_image(const PSImage - - cout << "drawing subimage from " << filename << endl; - -- drawList.push_back(DrawablePushGraphicContext()); -- drawList.push_back(DrawableAffine(sx, sy, rx, ry, tx, ty)); -+ drawList.push_back(Magick::DrawablePushGraphicContext()); -+ drawList.push_back(Magick::DrawableAffine(sx, sy, rx, ry, tx, ty)); - -- Image pngimage(filename); -+ Magick::Image pngimage(filename); - // cout << "rows " << pngimage.rows() << " columns " << pngimage.columns() << endl; -- // drawList.push_back( DrawableCompositeImage(0,0,width, height, filename) ); -+ // drawList.push_back( Magick::DrawableCompositeImage(0,0,width, height, filename) ); - if ((pngimage.rows() > 0) && (pngimage.columns() > 0)) { -- DrawableCompositeImage theimage(x, y, width, height, pngimage); -+ Magick::DrawableCompositeImage theimage(x, y, width, height, pngimage); - theimage.magick("png"); - drawList.push_back(theimage); - } else { - errf << "reading image from " << filename << " failed " << endl; - } -- drawList.push_back(DrawablePopGraphicContext()); -+ drawList.push_back(Magick::DrawablePopGraphicContext()); - imageptr->draw(drawList); - } -- catch (const Exception & error_) { -+ catch (const Magick::Exception & error_) { - errf << "Caught exception: " << error_.what() << endl; - } - } else { -Index: pstoedit-3.70/src/drvmagick++.h -=================================================================== ---- pstoedit-3.70.orig/src/drvmagick++.h 2014-08-25 21:29:50.000000000 +0200 -+++ pstoedit-3.70/src/drvmagick++.h 2017-09-20 11:19:38.360290336 +0200 -@@ -34,7 +34,6 @@ - #endif - #include - using namespace std; --using namespace Magick; - - class drvMAGICK : public drvbase { - -@@ -59,10 +58,10 @@ public: - virtual void show_image(const PSImage & imageinfo); - - private: -- void create_vpath(VPathList & vpath); -+ void create_vpath(Magick::VPathList & vpath); - int imgcount; - -- Image * imageptr; //Magick::Image meant here -+ Magick::Image * imageptr; //Magick::Image meant here - - }; - diff --git a/packages/p/pstoedit/pstoedit-pkglibdir.patch b/packages/p/pstoedit/pstoedit-pkglibdir.patch deleted file mode 100644 index c9ef740..0000000 --- a/packages/p/pstoedit/pstoedit-pkglibdir.patch +++ /dev/null @@ -1,180 +0,0 @@ -Fix for pstoedit search for plugins. - -By default, pstoedit "make install" installs to PSTOEDITLIBDIR, so if -nobody moves them to another location, then it is sufficient to search in -PSTOEDITLIBDIR. - - -But the way how pstoedit searches for plugins is broken: - -If pstoedit.reg does not exist or does not contain common/plugindir, then -it tries $exepath/../lib/pstoedit, always sets pluginsloaded, and never -tries PSTOEDITLIBDIR. - -If pstoedit.reg contains common/plugindir, then it tries that path, -always sets pluginsloaded, and never tries PSTOEDITLIBDIR. - -=> The default installation directory is never tried, if it is not equal -to one of above. - - -The implementation has just another problem: - -If pstoedit.reg contains common/plugindir, and the directory defined -there is equal to $pkglibdir, but the string is not literally -"{expansion_of_bindir}/../lib/pstoedit", then plugins are loaded twice. -So the check as it is makes only a little sense, because nobody would -create ~/.pstoedit.reg containing: - -common/plugindir=/usr/bin/../lib/pstoedit - - -The new implementation does things differently: - -If common/plugindir is defined, it checks only that directory. - -It swaps the check order: First checks whether PSTOEDITLIBDIR exists. If -it exists, it skips blind attempts to find plugins. - -As PSTOEDITLIBDIR is always defined by makefile, the blind fallback will -be attempted only in obscure environments. - - -Index: pstoedit-3.70/src/pstoedit.cpp -=================================================================== ---- pstoedit-3.70.orig/src/pstoedit.cpp -+++ pstoedit-3.70/src/pstoedit.cpp -@@ -30,6 +30,7 @@ - #include I_string_h - - #include -+#include - - #include "pstoeditoptions.h" - -@@ -261,33 +262,33 @@ static void loadpstoeditplugins(const ch - loadPlugInDrivers(plugindir.c_str(), errstream, verbose); // load the driver plugins - pluginsloaded = true; - } -- // also look in the directory where the pstoedit .exe/dll was found -- char szExePath[1000]; -- szExePath[0] = '\0'; -- const unsigned long r = P_GetPathToMyself(progname, szExePath, sizeof(szExePath)); -- if (verbose) errstream << "pstoedit : path to myself:" << progname << " " << r << " " << szExePath<< endl; -- char *p = 0; -- if (r && (p = strrchr(szExePath, directoryDelimiter)) != 0) { -- *p = '\0'; -- if (!strequal(szExePath, plugindir.c_str())) { -- loadPlugInDrivers(szExePath, errstream,verbose); -- pluginsloaded = true; -- } -- } -- // now try also $exepath/../lib/pstoedit -- strcat_s(szExePath,1000,"/../lib/pstoedit"); -- if (!strequal(szExePath, plugindir.c_str())) { -- loadPlugInDrivers(szExePath, errstream,verbose); -- pluginsloaded = true; -- } -- - #ifdef PSTOEDITLIBDIR -- if (!pluginsloaded) { -+ struct stat s; -+ if (!pluginsloaded && -+ !stat(PSTOEDITLIBDIR, &s) && -+ S_ISDIR(s.st_mode)) { - // also try to load drivers from the PSTOEDITLIBDIR - loadPlugInDrivers(PSTOEDITLIBDIR, errstream,verbose); - pluginsloaded = true; - } - #endif -+ // If the above failed, also look in the directory where the pstoedit .exe/dll was found -+ if (!pluginsloaded) { -+ char szExePath[1000]; -+ szExePath[0] = '\0'; -+ const unsigned long r = P_GetPathToMyself(progname, szExePath, sizeof(szExePath)); -+ if (verbose) errstream << "pstoedit : path to myself:" << progname << " " << r << " " << szExePath<< endl; -+ char *p = 0; -+ if (r && (p = strrchr(szExePath, directoryDelimiter)) != 0) { -+ *p = '\0'; -+ loadPlugInDrivers(szExePath, errstream,verbose); -+ } -+ // now try also $exepath/../lib/pstoedit -+ strcat_s(szExePath,1000,"/../lib/pstoedit"); -+ if (!strequal(szExePath, plugindir.c_str())) { -+ loadPlugInDrivers(szExePath, errstream,verbose); -+ } -+ } - - // delete[]plugindir; - } -Index: pstoedit-3.70/doc/pstoedit.tex -=================================================================== ---- pstoedit-3.70.orig/doc/pstoedit.tex -+++ pstoedit-3.70/doc/pstoedit.tex -@@ -352,7 +352,7 @@ If the \Opt{-fontmap} option is not spe - \item MS Windows: The same directory where the \Prog{pstoedit} executable is located - - \item Unix:\\ -- $<$\emph{The directory where the pstoedit executable is located}$>$\verb+/../lib/+ -+ The default installation directory. If it fails, then $<$\emph{The directory where the pstoedit executable is located}$>$\verb+/../lib/+ - - \end{itemize} - -Index: pstoedit-3.70/doc/pstoedit.1 -=================================================================== ---- pstoedit-3.70.orig/doc/pstoedit.1 -+++ pstoedit-3.70/doc/pstoedit.1 -@@ -1,5 +1,5 @@ - '\" t --.\" Manual page created with latex2man on Thu Jan 1 20:55:12 CET 2015 -+.\" Manual page created with latex2man on Fri Mar 13 20:58:53 CET 2015 - .\" NOTE: This file is generated, DO NOT EDIT. - .de Vb - .ft CW -@@ -10,7 +10,7 @@ - - .fi - .. --.TH "PSTOEDIT" "1" "01 January 2015" "Conversion Tools " "Conversion Tools " -+.TH "PSTOEDIT" "1" "13 March 2015" "Conversion Tools " "Conversion Tools " - .SH NAME - - pstoedit -@@ -367,7 +367,7 @@ MS Windows: The same directory where the - .B * - Unix: - .br --<\fIThe directory where the pstoedit executable is located\fP> -+The default installation directory. If it fails, then <\fIThe directory where the pstoedit executable is located\fP> - /../lib/ - .RS - .PP -Index: pstoedit-3.70/doc/pstoedit.htm -=================================================================== ---- pstoedit-3.70.orig/doc/pstoedit.htm -+++ pstoedit-3.70/doc/pstoedit.htm -@@ -1,5 +1,5 @@ - -- - -@@ -9,7 +9,7 @@ - PSTOEDIT - -

    Dr. Wolfgang Glunz

    --

    01 January 2015

    -+

    13 March 2015

    -

    Version 3.70

    - pstoedit - - a tool converting PostScript and PDF files into various -@@ -561,7 +561,7 @@ in the installation directory and uses t - -
  • Unix:
    - --<The directory where the pstoedit executable is located> -+The default installation directory. If it fails, then <The directory where the pstoedit executable is located> - /../lib/ -

    -

  • diff --git a/packages/p/pstoedit/pstoedit.changes b/packages/p/pstoedit/pstoedit.changes index cd792fd..9db8337 100644 --- a/packages/p/pstoedit/pstoedit.changes +++ b/packages/p/pstoedit/pstoedit.changes @@ -1,4 +1,37 @@ ------------------------------------------------------------------- +Thu Sep 17 17:56:09 UTC 2020 - Dirk Mueller + +- update to 3.75: + * Fix a compile problem under certain MacOS versions. + * Various changes needed for interworking with newer versions of GhostScript. + * Some code modernization based on feedback from VS-2019, Clang Powertools + and PVS Studio. + * Added support for dotted and dashed lines to the DXF backend. + * Reduce redundancy in help documents. + * Porting to Windows CE by Rohan Shetty. + * Made pstoedit compatible with ghostscript 9.27. + * Fix a bug occurring with large scale factors. + * Include full documentation by default and provide an option to generate + documentation locally which then fit best to the local installation. + * Started to apply improvements proposed by clang-tidy. + * Included a bunch of patches from Debian for easier maintenance of the + package plus correction to some spelling issues. Thanks to Barak A. + Pearlmutter. + * added a -vl option to specify a verbosity level. Using the older -v enables + level 1. For more use -vl 2. + * included a patch contributed by OpenSuse folks fixing a problem in finding + the plugins under certain conditions. + * included a patch contributed by Martin Madsen related to checking non + existing directories when looking for plugins. + * added support for pdfwithshow and pdfawidthshow special operators when + reading PDF files. + * Scott Pakin updated the cfdg driver to support the current version of cfdg. + * changes needed for newer versions of GhostScript. + * some code cleanup. pstoedit passed all Coverity checks. +- remove pstoedit-imagemagick7.patch pstoedit-pkglibdir.patch (obsolete) +- rediff reproducible.patch + +------------------------------------------------------------------- Wed Sep 20 09:27:00 UTC 2017 - pgajdos@suse.com - build against ImageMagick 7 diff --git a/packages/p/pstoedit/pstoedit.spec b/packages/p/pstoedit/pstoedit.spec index 9dadcad..b97e55a 100644 --- a/packages/p/pstoedit/pstoedit.spec +++ b/packages/p/pstoedit/pstoedit.spec @@ -1,7 +1,7 @@ # # spec file for package pstoedit # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,23 +12,19 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: pstoedit -Version: 3.70 +Version: 3.75 Release: 0 Summary: PostScript and PDF Converter -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Publishing/PS -Url: http://www.pstoedit.net/ +URL: http://www.pstoedit.net/ Source: https://sourceforge.net/projects/pstoedit/files/pstoedit/%{version}/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM pstoedit-pkglibdir.patch sbrabec@suse.cz -- Fix plugin search path. -Patch: pstoedit-pkglibdir.patch Patch1: reproducible.patch -# pstoedit-imagemagick7.patch sent to author (wglunz35_AT_pstoedit.net) on 2017-09-20 -Patch2: pstoedit-imagemagick7.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ @@ -39,10 +35,9 @@ BuildRequires: libMagick++-devel BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: libzip-devel -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: plotutils-devel Requires: ghostscript -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description pstoedit converts PostScript and PDF files to other vector graphic @@ -93,9 +88,7 @@ PostScript and PDF converter development headers and library files. %prep %setup -q -%patch -p1 %patch1 -p1 -%patch2 -p1 chmod -x examples/*.ps examples/Makefile* doc/*.* copying %build @@ -110,33 +103,31 @@ sh autogen.sh --with-pptx \ --without-swf -make %{?_smp_mflags} +%make_build %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +%make_install find %{buildroot} -type f -name "*.la" -delete -print # doc cleanup rm -rf examples/Makefile* +rm -rf %{buildroot}/usr/share/doc/%{name} %post -p /sbin/ldconfig - %postun -p /sbin/ldconfig %files -%defattr(-, root, root) -%doc copying -%doc examples -%doc doc/*.htm +%license copying +%doc examples doc/readme.txt +%doc doc/*.htm doc/%{name}.pdf %{_bindir}/pstoedit %{_libdir}/*.so.* %dir %{_libdir}/pstoedit %{_libdir}/pstoedit/*.so %{_libdir}/pstoedit/*.so.* %{_datadir}/%{name} -%doc %{_mandir}/man?*/*.* +%{_mandir}/man?*/*.* %files devel -%defattr(-, root, root) %{_libdir}/*.so %{_includedir}/pstoedit %{_libdir}/pkgconfig/*.pc diff --git a/packages/p/pstoedit/reproducible.patch b/packages/p/pstoedit/reproducible.patch index d0d53f6..d12e403 100644 --- a/packages/p/pstoedit/reproducible.patch +++ b/packages/p/pstoedit/reproducible.patch @@ -1,13 +1,13 @@ -Index: pstoedit-3.70/src/pstoedit.cpp +Index: pstoedit-3.75/src/pstoedit.cpp =================================================================== ---- pstoedit-3.70.orig/src/pstoedit.cpp -+++ pstoedit-3.70/src/pstoedit.cpp -@@ -390,7 +390,7 @@ extern "C" DLLEXPORT +--- pstoedit-3.75.orig/src/pstoedit.cpp ++++ pstoedit-3.75/src/pstoedit.cpp +@@ -399,7 +399,7 @@ extern "C" DLLEXPORT const char buildtype [] = "release build"; #endif - errstream << "pstoedit: version " << version << " / DLL interface " << -- drvbaseVersion << " (built: " << __DATE__ << " - " << buildtype << " - " << compversion << ")" -+ drvbaseVersion << " (" << " - " << buildtype << " - " << compversion << ")" - " : Copyright (C) 1993 - 2014 Wolfgang Glunz\n"; + errstream << "pstoedit: version " << PACKAGE_VERSION << " / DLL interface " << +- drvbaseVersion << " (built: " << __DATE__ << " - " << buildtype << " - " << compversion << ")" ++ drvbaseVersion << " (" << buildtype << " - " << compversion << ")" + " : Copyright (C) 1993 - 2020 Wolfgang Glunz\n"; } diff --git a/packages/p/python-kiwi/.files b/packages/p/python-kiwi/.files index b4550bd..82775a3 100644 Binary files a/packages/p/python-kiwi/.files and b/packages/p/python-kiwi/.files differ diff --git a/packages/p/python-kiwi/.rev b/packages/p/python-kiwi/.rev index 88d5388..c1ed423 100644 --- a/packages/p/python-kiwi/.rev +++ b/packages/p/python-kiwi/.rev @@ -1432,4 +1432,12 @@ Automatic submission by obs-autosubmit 827565 + + c4609563b52329cb4f90b1d0ea5fbaad + 9.21.14 + + dimstar_suse + Automatic submission by obs-autosubmit + 838771 + diff --git a/packages/p/python-kiwi/PKGBUILD b/packages/p/python-kiwi/PKGBUILD index d17f765..6902841 100644 --- a/packages/p/python-kiwi/PKGBUILD +++ b/packages/p/python-kiwi/PKGBUILD @@ -3,7 +3,7 @@ pkgname=('python-kiwi' 'kiwi-man-pages' 'dracut-kiwi-lib' 'dracut-kiwi-oem-repart' 'dracut-kiwi-oem-dump' 'dracut-kiwi-live' 'dracut-kiwi-overlay') arch=(x86_64) -pkgver=9.21.7 +pkgver=9.21.14 pkgrel=0 pkgdesc="KIWI - Appliance Builder Next Generation" url="https://github.com/SUSE/kiwi/tarball/master" @@ -12,7 +12,7 @@ makedepends=(python-setuptools gcc shadow grep) provides=(kiwi-ng kiwi) source=("${pkgname}.tar.gz") changelog="${pkgname}.changes" -md5sums=('e40c3d9ec0e74c6d9747b510de711234') +md5sums=('fefbad94106141392d967912d4ba4084') build() { diff --git a/packages/p/python-kiwi/python-kiwi.changes b/packages/p/python-kiwi/python-kiwi.changes index d2b7a8c..376cef5 100644 --- a/packages/p/python-kiwi/python-kiwi.changes +++ b/packages/p/python-kiwi/python-kiwi.changes @@ -1,4 +1,314 @@ ------------------------------------------------------------------- +Wed Sep 23 13:06:47 CEST 2020 - Marcus Schäfer + +- Bump version: 9.21.13 → 9.21.14 + +------------------------------------------------------------------- +Wed Sep 23 10:49:20 CEST 2020 - Marcus Schäfer + +- Fixed s390/sle15 Virtual disk integration test + + The integration test used FBA mode as target. As the target + is expected to be KVM this is the wrong setting. SCSI should + be used instead. This Fixes bsc#1170863 + +------------------------------------------------------------------- +Wed Sep 23 10:21:40 CEST 2020 - Marcus Schäfer + +- Followup fix to handle one disk type better + + The vmx type is auto converted into an oem type with rootfs + resize disabled such that all disk images can be handled + under one disk type. However people who run kiwi on the + commandline and have selected --type vmx before now end + with an error message saying that there is no vmx type + because it was converted into an oem type. To handle this + more gracefully this commit changes the commandline + option --type vmx into --type oem if provided and prints + a warning message. + +------------------------------------------------------------------- +Tue Sep 22 12:19:15 CEST 2020 - Marcus Schäfer + +- Bump version: 9.21.12 → 9.21.13 + +------------------------------------------------------------------- +Tue Sep 22 11:36:52 CEST 2020 - Marcus Schäfer + +- Cleanup grub adaptions code + + The grub setup code has some after grub-mkconfig code that + fixes the written grub.cfg file on certain conditions. For + a better understanding and readability those conditions + and reasons are now put into private _fix* methods that + explains why we need to patch the written grub config file. + We all hope that those methods can go away when grub gets + fixed properly. This Fixes #1527 + +------------------------------------------------------------------- +Mon Sep 21 17:04:08 CEST 2020 - Marcus Schäfer + +- Cosmetic update for build status helper + + Show disabled integration test builds with a clear indicator + +------------------------------------------------------------------- +Mon Sep 21 15:54:33 CEST 2020 - Marcus Schäfer + +- Bump version: 9.21.11 → 9.21.12 + +------------------------------------------------------------------- +Mon Sep 21 15:21:21 CEST 2020 - Marcus Schäfer + +- Added consistency runtime check for the type setup + + multiple type sections within one preferences section is allowed + in a kiwi image description. However, if multiple type sections + for the same image attribute are configured only the last type + configuration will be ever reachable. The proposed runtime check + in this commit detects this situation and raises an exception + showing the conflicting types including a solution suggestion + which needs to be based on profiles to distinguish between + types of the same image type name. + +------------------------------------------------------------------- +Mon Sep 21 09:09:29 CEST 2020 - David Cassany + +- Get default maintainer and author from image description + + This commit sets the maintainer and author metadata from the description + section of the image in they are not explicitly specified in + container-config section. + + In addition it sets the default container name to `system-container` + instead of `systemContainer` as uppercase letters are not valid for + docker container references. + + Fixes #1419 + +------------------------------------------------------------------- +Fri Sep 18 16:06:02 CEST 2020 - Marcus Schäfer + +- Bump version: 9.21.10 → 9.21.11 + +------------------------------------------------------------------- +Fri Sep 18 15:13:08 CEST 2020 - Marcus Schäfer + +- Update build test directory names + + Name the build test directory to follow the changes done + in Issue #1425. There is only one disk image type now, thus + the tests for testing disk images should indicate that + better. Also the tests that build live iso images should + indicate a live iso not only an iso as it could be mixed + up with an install iso + +------------------------------------------------------------------- +Thu Sep 17 16:40:19 CEST 2020 - Marcus Schäfer + +- Consolidate build test names and description + + Update build test image names to be more generic and not + bound to a specific version of a distribution. As the tests + are usually based on rolling releases of distros the name + of the test image should be generic. Also adapted the + specification of the test images to describe the focus + of the test if not generic. + +------------------------------------------------------------------- +Wed Sep 16 15:03:39 CEST 2020 - Marcus Schäfer + +- Bump version: 9.21.9 → 9.21.10 + +------------------------------------------------------------------- +Wed Sep 16 11:35:00 CEST 2020 - David Cassany + +- Fix the early boot grub.cfg file + + This commit makes sure that the early boot configuration files + for grub make use of the proper boot path and omiting the `/boot` + prefix if there is a dedicated boot partition. + + Fixes #1553 + +------------------------------------------------------------------- +Tue Sep 15 11:54:24 CEST 2020 - Vincent Moutoussamy <3873925+vmoutoussamy@users.noreply.github.com> + +- Change Appliance names to drop the name LimeJeOS + + The name LimeJeOS was an invention of the SUSE Studio project. + Since the project does no longer exist, users have no idea + what the name means. Therefore the integration tests as well + as the documentation now changes the image names to provide + more clarity. This Fixes #1544 + +------------------------------------------------------------------- +Mon Sep 14 22:04:30 CEST 2020 - David Cassany + +- Include loadenv as a default module for grub images + + This commit includes the 'loadenv' module to the list of basic grub + modules. This makes sure the module is included in any grub-mkimage + that KIWI does. + + Fixes #1547 + +------------------------------------------------------------------- +Sun Sep 13 20:36:02 CEST 2020 - Marcus Schäfer + +- Make oem be a superset of vmx + + A vmx image is the same disk as an oem just without the dracut + repart/resize feature. This difference is better handled with + an oemconfig parameter which allows to switch resize + on or off. The extra image type vmx will be dropped and an XSLT + stylesheet automatically transforms a vmx description to be a + oem image with the resize feature switched off. + This Fixes #1425 + +------------------------------------------------------------------- +Fri Sep 11 09:25:50 CEST 2020 - Marcus Schäfer + +- Make oem image use dracut by default + + Before this commit an oem image still had the kiwi initrd_system + set as default. As we are decommission the custom kiwi initrd + concept the default should be changed. It is still possible to + use a custom kiwi initrd but it needs to be explicitly requested + via the initrd_system="kiwi" attribute. In addition to the + changed default a runtime check was introduced that checks + the presence of the boot= attribute which only makes sense + in combination with the kiwi initrd_system. If boot= is + set but initrd_system="kiwi" is not, a message is raised that + explains the situation and either requests setting initrd_system + properly or deleting the boot attribute. The change only + affects people who still use oem with a boot="oemboot/..." + setting and no explicit selection of kiwi as the initrd_system. + As these image type configurations should not be in use anyway + because this is all legacy and announced to go away, we + need to make the next step and enforce a new default in + code. This is related to Issue #1299 + +------------------------------------------------------------------- +Wed Sep 09 12:23:12 CEST 2020 - Marcus Schäfer + +- Bump version: 9.21.8 → 9.21.9 + +------------------------------------------------------------------- +Tue Sep 08 18:14:15 CEST 2020 - Marcus Schäfer + +- Support dynamic linux/linuxefi in any case + + Instead of restricting the dynamic linux vs. linuxefi setup + to a specific grub version, support this setup for any version + of grub. This Fixes bsc#1175729 and bsc#1176134 + +------------------------------------------------------------------- +Tue Sep 08 10:25:45 CEST 2020 - Marcus Schäfer + +- Explicitly set start sector for msdos repartition + + When using the sfdisk(>=2.26) tool the start and end of partitions + aligns to block-device I/O limits. This means it's hardware specific + what values sfdisk picks. In a repart operation this is however + dangerous for the start sector which must be the same to prevent + corruption of the data in the partition when kiwi resizes it. + Therefore this commit uses the sfdisk dump command to read the + start sector for deleted partitions and uses that start sector + if the same partition gets recreated such that only the end of + the partition changes and gets aligned properly. + This Fixes #1543 + +------------------------------------------------------------------- +Mon Sep 07 16:50:26 CEST 2020 - Marcus Schäfer + +- Complete documentation of type attributes + + Some type attributes e.g efipartsize and others were not + documented properly. This Fixes #1532 + +------------------------------------------------------------------- +Mon Sep 07 15:49:44 CEST 2020 - David Cassany + +- Strip package and archive names + + This commit strips the package and archive names string to trim any + trailing or heading space included into the XML. + + Fixes #1494 + +------------------------------------------------------------------- +Sun Sep 06 09:31:36 CEST 2020 - Marcus Schäfer + +- Bump version: 9.21.7 → 9.21.8 + +------------------------------------------------------------------- +Thu Aug 27 17:50:18 CEST 2020 - David Cassany + +- Make use of POSIX locale in Arch Linux integration tests + + Current Arch Linux (August 2020) has no other locale than POSIX or + C enabled on the system by default. In fact, to enable further locales + in Arch it is required to uncomment the desired ones in `/etc/locale.gen` + and then execute the tool `locale-gen`, after that the selected locales + are eligible for the common system adminstration tools such as + `localectl`. + + In KIWI the locale setting happens before running `config.sh` so there + aren't changes to generate any custom locale before applying the value + configured in the description XML file. + +------------------------------------------------------------------- +Thu Aug 27 14:45:00 CEST 2020 - Marcus Schäfer + +- Fixed legacy custom kiwi initrd based image builds + + This patch is two fold: + + * Image builds that uses the kiwi initrd system did not apply + the grub config file fixes because the root= parameter is + an optional information when using a kiwi initrd. However + this information is required to apply the grub config file + fixes. Therefore this patch simplifies the kernel commandline + processing such that it is the same for dracut and custom + kiwi initrd based systems. This means root= is passed in + any case. + + * The other part of the patch disables the method that strips + unused libraries from the custom kiwi initrd. It has turned + out that is safes us almost nothing but could causes corrupted + initrds missing important libraries e.g libpam which is linked + against udev and other tools. Therefore libpam is also added + to the protected strip list + +------------------------------------------------------------------- +Thu Aug 27 14:43:46 CEST 2020 - Marcus Schäfer + +- Fixed legacy oem test build + + install gawk package in bootstrap to avoid conflict in + tumbleweed between gawk and busybox-gawk + +------------------------------------------------------------------- +Wed Aug 19 09:25:13 CEST 2020 - Marcus Schäfer + +- Added s390 SLE15 integration tests + +------------------------------------------------------------------- +Tue Aug 18 17:57:59 CEST 2020 - Marcus Schäfer + +- Added suse integration test built with dnf + + Use dnf to build a suse image + +------------------------------------------------------------------- +Thu Aug 13 11:17:33 CEST 2020 - Marcus Schäfer + +- Include box plugin images to build_status + + Also show some colors for failed and unresolvable builds + +------------------------------------------------------------------- Tue Aug 11 12:33:45 CEST 2020 - Marcus Schäfer - Bump version: 9.21.6 → 9.21.7 @@ -41,6 +351,17 @@ Tue Aug 11 11:08:56 CEST 2020 - Marcus Schäfer - Bump version: 9.21.5 → 9.21.6 ------------------------------------------------------------------- +Mon Aug 10 16:26:43 CEST 2020 - Marcus Schäfer + +- Fixed doc structure for image types + + The documentation did not differentiate correctly between + the explanation of the image types, their results and the + build host constraints compared to the documentation that + actually describes how to build an image for those types. + This Fixes #1520 + +------------------------------------------------------------------- Fri Jul 24 17:49:47 CEST 2020 - Marcus Schäfer - Skip filesystem check for XFS prior xfs_grow @@ -54,6 +375,27 @@ Fri Jul 24 17:49:47 CEST 2020 - Marcus Schäfer can be resized. This is related to bsc#1174009 ------------------------------------------------------------------- +Fri Jul 24 16:25:43 CEST 2020 - David Cassany + +- Remove tuned daemon from CentOS integration test + + tuned daemon causes issues at install time with grub configuration. + The build host configuration affects BLS entries generation if tuned + deamon is around. This is likely to cause issues in general and it + actually cause issues in OBS builds (because of a non standard highly + customized build environment). + +------------------------------------------------------------------- +Fri Jul 24 13:40:52 CEST 2020 - David Cassany + +- Add Fedora RawHide test + + This commit upgrades the Fedora 30 test to a Fedora RawHide integration + test in OBS. Note that an archive needs to be added at bootstrap phase + to include `/etc/kernek/cmdline` configuration file to ensure the BLS + entries are properly generated under OBS worker hosts. + +------------------------------------------------------------------- Fri Jul 24 13:17:53 CEST 2020 - Marcus Schäfer - Fixed code logic in resize_filesystem method diff --git a/packages/p/python-kiwi/python-kiwi.spec b/packages/p/python-kiwi/python-kiwi.spec index 3381489..5eed35d 100644 --- a/packages/p/python-kiwi/python-kiwi.spec +++ b/packages/p/python-kiwi/python-kiwi.spec @@ -43,7 +43,7 @@ %endif Name: python-kiwi -Version: 9.21.7 +Version: 9.21.14 Provides: kiwi-schema = 7.2 Release: 0 Url: https://github.com/OSInside/kiwi diff --git a/packages/p/python-kiwi/python-kiwi.tar.gz b/packages/p/python-kiwi/python-kiwi.tar.gz index 29819d3..6df733e 120000 --- a/packages/p/python-kiwi/python-kiwi.tar.gz +++ b/packages/p/python-kiwi/python-kiwi.tar.gz @@ -1 +1 @@ -/ipfs/bafybeibyenojrru2yoqyvz6dcjy76eogkjqse7kxqpeznbzic3dlxjdvmy \ No newline at end of file +/ipfs/bafybeie6ohghqdoe6syi5ejssvofoiklmy32ivdhu476b5gnhkxcfxybu4 \ No newline at end of file diff --git a/packages/p/python-oauthlib/.files b/packages/p/python-oauthlib/.files index 6ee879b..bc29388 100644 Binary files a/packages/p/python-oauthlib/.files and b/packages/p/python-oauthlib/.files differ diff --git a/packages/p/python-oauthlib/.rev b/packages/p/python-oauthlib/.rev index cf007c2..d5203de 100644 --- a/packages/p/python-oauthlib/.rev +++ b/packages/p/python-oauthlib/.rev @@ -234,4 +234,12 @@ 798907 + + b2809c817d76dcaa9337b407a3601d9f + 3.1.0 + + dimstar_suse + + 838547 + diff --git a/packages/p/python-oauthlib/python-oauthlib.changes b/packages/p/python-oauthlib/python-oauthlib.changes index 3928e3b..b7e74d4 100644 --- a/packages/p/python-oauthlib/python-oauthlib.changes +++ b/packages/p/python-oauthlib/python-oauthlib.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Sep 24 11:18:07 UTC 2020 - Hans-Peter Jansen + +- Fix patch numbering + +------------------------------------------------------------------- Wed Apr 29 12:15:23 UTC 2020 - John Paul Adrian Glaubitz - Add patch to switch from external mock to unittest.mock diff --git a/packages/p/python-oauthlib/python-oauthlib.spec b/packages/p/python-oauthlib/python-oauthlib.spec index b6aed4e..1c8201d 100644 --- a/packages/p/python-oauthlib/python-oauthlib.spec +++ b/packages/p/python-oauthlib/python-oauthlib.spec @@ -58,7 +58,7 @@ veneer on top of OAuthLib and get OAuth support for very little effort. %prep %setup -q -n oauthlib-%{version} -%patch0 -p1 +%patch -p1 %build %python_build diff --git a/packages/s/systemd-presets-common-SUSE/.files b/packages/s/systemd-presets-common-SUSE/.files index f3b252a..7de8cc6 100644 Binary files a/packages/s/systemd-presets-common-SUSE/.files and b/packages/s/systemd-presets-common-SUSE/.files differ diff --git a/packages/s/systemd-presets-common-SUSE/.rev b/packages/s/systemd-presets-common-SUSE/.rev index b928b4a..08cc08b 100644 --- a/packages/s/systemd-presets-common-SUSE/.rev +++ b/packages/s/systemd-presets-common-SUSE/.rev @@ -116,4 +116,12 @@ It fits better in common-SUSE. I'll remove it from branding. (forwarded request 831123 + + 0056d777111169dcaa185c5eea960887 + 15 + + dimstar_suse + + 838568 + diff --git a/packages/s/systemd-presets-common-SUSE/default-SUSE.preset b/packages/s/systemd-presets-common-SUSE/default-SUSE.preset index aea2f97..d10a6f8 100644 --- a/packages/s/systemd-presets-common-SUSE/default-SUSE.preset +++ b/packages/s/systemd-presets-common-SUSE/default-SUSE.preset @@ -16,6 +16,7 @@ enable check-battery.timer enable cron.service enable display-manager.service enable dm-event.socket +enable dnf-makecache.timer disable fstrim.service enable fstrim.timer enable getty@.service diff --git a/packages/s/systemd-presets-common-SUSE/systemd-presets-common-SUSE.changes b/packages/s/systemd-presets-common-SUSE/systemd-presets-common-SUSE.changes index 2dceb09..423734b 100644 --- a/packages/s/systemd-presets-common-SUSE/systemd-presets-common-SUSE.changes +++ b/packages/s/systemd-presets-common-SUSE/systemd-presets-common-SUSE.changes @@ -6,6 +6,11 @@ Wed Aug 26 08:11:58 UTC 2020 - Fabian Vogt (boo#1165780) ------------------------------------------------------------------- +Tue Aug 11 17:25:57 UTC 2020 - Neal Gompa + +- Enable dnf-makecache.timer + +------------------------------------------------------------------- Wed Jun 12 14:52:21 UTC 2019 - Dominique Leuenberger - BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to diff --git a/packages/t/tftp/.files b/packages/t/tftp/.files index 2d5888b..c86a918 100644 Binary files a/packages/t/tftp/.files and b/packages/t/tftp/.files differ diff --git a/packages/t/tftp/.rev b/packages/t/tftp/.rev index 2b5945d..bdf3297 100644 --- a/packages/t/tftp/.rev +++ b/packages/t/tftp/.rev @@ -309,4 +309,12 @@ - Pass fcommon to cflags wrt bsc#1160297 761757 + + d0c85e36f9de13c325d458deeb197ce2 + 5.2 + + dimstar_suse + + 838787 + diff --git a/packages/t/tftp/tftp.changes b/packages/t/tftp/tftp.changes index 0624673..ecc527c 100644 --- a/packages/t/tftp/tftp.changes +++ b/packages/t/tftp/tftp.changes @@ -1,4 +1,13 @@ ------------------------------------------------------------------- +Tue Sep 1 15:15:15 UTC 2020 - olaf@aepfle.de + +- Remove bogus comment about directory assumptions + in.tftpd assumes nothing, exactly one directory must be specified + when option -s is used +- Reorder command line options + Optional admin options come before the final directory option + +------------------------------------------------------------------- Wed Jan 8 08:36:25 UTC 2020 - Tomáš Chvátal - Pass fcommon to cflags wrt bsc#1160297 diff --git a/packages/t/tftp/tftp.service b/packages/t/tftp/tftp.service index bd28efa..933e513 100644 --- a/packages/t/tftp/tftp.service +++ b/packages/t/tftp/tftp.service @@ -6,6 +6,6 @@ Requires=tftp.socket [Service] EnvironmentFile=/etc/sysconfig/tftp -ExecStart=/usr/sbin/in.tftpd -u $TFTP_USER -s $TFTP_DIRECTORY $TFTP_OPTIONS +ExecStart=/usr/sbin/in.tftpd -u $TFTP_USER -s $TFTP_OPTIONS $TFTP_DIRECTORY StandardInput=socket PrivateDevices=yes diff --git a/packages/t/tftp/tftp.sysconfig b/packages/t/tftp/tftp.sysconfig index 3a4e8e5..34c93e8 100644 --- a/packages/t/tftp/tftp.sysconfig +++ b/packages/t/tftp/tftp.sysconfig @@ -21,6 +21,5 @@ TFTP_OPTIONS="" ## "/tftpboot" is not allowed anymore in FHS 2.2. # # TFTP directory must be a world readable/writable directory. -# By default /srv/tftpboot is assumed. # TFTP_DIRECTORY="/srv/tftpboot" diff --git a/packages/t/transfig/.files b/packages/t/transfig/.files index 4b6c3e2..cd28b0f 100644 Binary files a/packages/t/transfig/.files and b/packages/t/transfig/.files differ diff --git a/packages/t/transfig/.rev b/packages/t/transfig/.rev index 9d92316..6b6268d 100644 --- a/packages/t/transfig/.rev +++ b/packages/t/transfig/.rev @@ -459,4 +459,17 @@ Automatic submission by obs-autosubmit 775156 + + a81665c7e9a1de35704db5d8408f698a + 3.2.7b + + dimstar_suse + - Add upstream security patches/commits + * 100e27.patch + * 3065eb.patch + * ca48cc.patch + +- Do hardening via compile and linker flags + 838775 + diff --git a/packages/t/transfig/100e27.patch b/packages/t/transfig/100e27.patch new file mode 100644 index 0000000..d549ad7 --- /dev/null +++ b/packages/t/transfig/100e27.patch @@ -0,0 +1,32 @@ +From 100e2789f8106f9cc0f7e4319c4ee7bda076c3ac Mon Sep 17 00:00:00 2001 +From: Thomas Loimer +Date: Sun, 16 Feb 2020 13:25:03 +0100 +Subject: [PATCH] Modify commit [3165d8]: Use tangent, not secant + +Use the tangent, not a secant, for short arrows on arcs. +--- + fig2dev/bound.c | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git fig2dev/bound.c fig2dev/bound.c +index d305ab9..ea97461 100644 +--- fig2dev/bound.c ++++ fig2dev/bound.c +@@ -1102,12 +1102,10 @@ compute_arcarrow_angle(double x1, double y1, double x2, double y2, + /* add this to the length */ + h += lpt; + +- /* radius too small for this method, use normal method */ +- if (h > 2.0*r) { ++ /* secant would be too large or too small */ ++ if (h > 2.0*r || h < 0.01*r) { + arc_tangent_int(x1,y1,x2,y2,direction,x,y); + return; +- } else if (h < thick) { +- h = thick; + } + + beta=atan2(dy,dx); +-- +2.16.4 + diff --git a/packages/t/transfig/3065eb.patch b/packages/t/transfig/3065eb.patch new file mode 100644 index 0000000..05a21d6 --- /dev/null +++ b/packages/t/transfig/3065eb.patch @@ -0,0 +1,63 @@ +From 3065ebc14bb96506429b4ebde3aeb3793c72a66d Mon Sep 17 00:00:00 2001 +From: Thomas Loimer +Date: Sun, 16 Feb 2020 18:54:01 +0100 +Subject: [PATCH] Allow last line of file lacking eol char, #83, #84 + +If the last line of a fig file does not end with a newline, the code parsing +the input could read beyond the allocated buffer. This commit fixes the parsing +at two locations in the code, one in string parsing, the second where sequences +of a backslash and octal digits are converted to characters. +--- + fig2dev/read.c | 6 ++++-- + fig2dev/tests/read.at | 11 +++++++++++ + 2 files changed, 15 insertions(+), 2 deletions(-) + +--- fig2dev/read.c ++++ fig2dev/read.c 2020-09-30 10:46:34.214234522 +0000 +@@ -1483,6 +1483,8 @@ read_textobject(FILE *fp, char **restric + + len = strlen(start); + start[len++] = '\n'; /* put back the newline */ ++ start[len] = '\0'; /* and terminate the string, ++ in case nothing else is found */ + + /* allocate plenty of space */ + next = malloc(len + BUFSIZ); +@@ -1491,7 +1493,7 @@ read_textobject(FILE *fp, char **restric + free(t); + return NULL; + } +- memcpy(next, start, len); ++ memcpy(next, start, len + 1); + + while ((chars = getline(line, line_len, fp)) != -1) { + ++(*line_no); +@@ -1525,7 +1527,7 @@ read_textobject(FILE *fp, char **restric + len = end - start; + l = len; + while (c[l] != '\0') { +- if (c[l] == '\\') { ++ if (c[l] == '\\' && c[l+1] != '\0') { + /* convert 3 digit octal value */ + if (isdigit(c[l+1]) && c[l+2] != '\0' && + c[l+3] != '\0') { +--- fig2dev/tests/read.at ++++ fig2dev/tests/read.at 2020-09-30 10:46:34.262233620 +0000 +@@ -416,6 +416,17 @@ AT_CHECK([fig2dev -L tikz text.fig + ], 0, ignore) + AT_CLEANUP + ++AT_SETUP([allow files end without eol, tickets #83, #84]) ++AT_KEYWORDS([read.c]) ++AT_CHECK([AS_ECHO_N(["FIG_FILE_TOP ++4 0 0 50 0 -1 12 0 0 150 405 0 0 No end-of-line here -->"]) | \ ++ fig2dev -L box], 0, ignore) ++AT_CHECK([AS_ECHO_N(["FIG_FILE_TOP ++4 0 0 50 0 -1 12 0 0 150 405 0 0 Start string ++No end-of-line after one backslash --> \\"]) | \ ++ fig2dev -L box], 0, ignore) ++AT_CLEANUP ++ + AT_BANNER([Dynamically allocate picture file name.]) + + AT_SETUP([prepend fig file path to picture file name]) diff --git a/packages/t/transfig/ca48cc.patch b/packages/t/transfig/ca48cc.patch new file mode 100644 index 0000000..de6a0bb --- /dev/null +++ b/packages/t/transfig/ca48cc.patch @@ -0,0 +1,35 @@ +From ca48ccc90bd3e7801a63cf9a541f292b28ed1260 Mon Sep 17 00:00:00 2001 +From: Thomas Loimer +Date: Mon, 17 Feb 2020 12:18:12 +0100 +Subject: [PATCH] Amend previous commit - avoid buffer overflow + +Regards to Dr. Werner Fink, see discussion to ticket #83. +--- + fig2dev/read.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git fig2dev/read.c fig2dev/read.c +index 0bdcd3d..d1ae463 100644 +--- fig2dev/read.c ++++ fig2dev/read.c +@@ -1489,8 +1489,6 @@ read_textobject(FILE *fp, char **restrict line, size_t *line_len, int *line_no) + + len = strlen(start); + start[len++] = '\n'; /* put back the newline */ +- start[len] = '\0'; /* and terminate the string, +- in case nothing else is found */ + + /* allocate plenty of space */ + next = malloc(len + BUFSIZ); +@@ -1500,6 +1498,8 @@ read_textobject(FILE *fp, char **restrict line, size_t *line_len, int *line_no) + return NULL; + } + memcpy(next, start, len + 1); ++ next[len] = '\0'; /* terminate the initial string, ++ in case nothing else is found */ + + while ((chars = getline(line, line_len, fp)) != -1) { + ++(*line_no); +-- +2.16.4 + diff --git a/packages/t/transfig/transfig.changes b/packages/t/transfig/transfig.changes index a1b4fdb..55996c4 100644 --- a/packages/t/transfig/transfig.changes +++ b/packages/t/transfig/transfig.changes @@ -1,4 +1,17 @@ ------------------------------------------------------------------- +Wed Sep 30 10:48:31 UTC 2020 - Dr. Werner Fink + +- Add upstream security patches/commits + * 100e27.patch + * 3065eb.patch + * ca48cc.patch + +------------------------------------------------------------------- +Tue Sep 29 09:24:16 UTC 2020 - Dr. Werner Fink + +- Do hardening via compile and linker flags + +------------------------------------------------------------------- Tue Feb 11 11:38:01 UTC 2020 - Dr. Werner Fink - Add upstream security patches/commits diff --git a/packages/t/transfig/transfig.spec b/packages/t/transfig/transfig.spec index e6611a8..2eaa76a 100644 --- a/packages/t/transfig/transfig.spec +++ b/packages/t/transfig/transfig.spec @@ -70,6 +70,9 @@ Patch14: 2f8d1a.patch Patch15: 4d4e1f.patch Patch16: 3165d8.patch Patch17: 639c36.patch +Patch18: 100e27.patch +Patch19: 3065eb.patch +Patch20: ca48cc.patch Patch43: fig2dev-3.2.6-fig2mpdf.patch Patch44: fig2dev-3.2.6-fig2mpdf-doc.patch Patch45: fig2dev-3.2.6a-RGBFILE.patch @@ -127,14 +130,59 @@ find -type f | xargs -r chmod a-x,go-w %patch15 -p0 -b .sec12 %patch16 -p0 -b .sec13 %patch17 -p0 -b .sec14 +%patch18 -p0 -b .sec15 +%patch19 -p0 -b .sec16 +%patch20 -p0 -b .sec17 %patch43 -p2 -b .mpdf %patch44 -p1 -b .mpdfdoc %patch45 -p1 -b .p45 %build ulimit -v unlimited || : + # + # Used for detection of hardening options of gcc and linker + # + cflags () + { + local flag=$1; shift + local var=$1; shift + test -n "${flag}" -a -n "${var}" || return + case "${!var}" in + *${flag}*) return + esac + case "$flag" in + -Wl,*) + set -o noclobber + echo 'int main () { return 0; }' > ldtest.c + if ${CC:-gcc} -Werror $flag -o /dev/null -xc ldtest.c > /dev/null 2>&1 ; then + eval $var=\${$var:+\$$var\ }$flag + fi + set +o noclobber + rm -f ldtest.c + ;; + *) + if ${CC:-gcc} -Werror $flag -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then + eval $var=\${$var:+\$$var\ }$flag + fi + if ${CXX:-g++} -Werror $flag -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1 ; then + eval $var=\${$var:+\$$var\ }$flag + fi + esac + } + CC=gcc CFLAGS="%{optflags} -fno-strict-aliasing -w -D_GNU_SOURCE -std=gnu99 $(getconf LFS_CFLAGS)" +cflags -D_FORTIFY_SOURCE=2 CFLAGS +cflags -fstack-protector CFLAGS +cflags -fstack-protector-strong CFLAGS +cflags -fstack-protector-all CFLAGS +cflags -Wformat CFLAGS +cflags -Wformat-security CFLAGS +cflags -Werror=format-security CFLAGS +cflags -fPIE CFLAGS +cflags -pie LDFLAGS +cflags -Wl,-z,relro LDFLAGS +cflags -Wl,-z,now LDFLAGS export CC CFLAGS LDFLAGS chmod 755 configure %configure \ diff --git a/packages/v/vulkan-loader/.files b/packages/v/vulkan-loader/.files index ee5fcae..e619930 100644 Binary files a/packages/v/vulkan-loader/.files and b/packages/v/vulkan-loader/.files differ diff --git a/packages/v/vulkan-loader/.rev b/packages/v/vulkan-loader/.rev index 34e9552..515cdfd 100644 --- a/packages/v/vulkan-loader/.rev +++ b/packages/v/vulkan-loader/.rev @@ -215,4 +215,16 @@ Automatic submission by obs-autosubmit 835189 + + 1e827dbf318d794fd423a1d7f5662076 + 1.2.153 + + dimstar_suse + - Add patch which reverts a commit breaking Steam Play / Proton: + * 0001-Revert-loader-Return-error-if-layer-loading-failed.patch + Related issues: + * https://github.com/ValveSoftware/steam-for-linux/issues/7368 + * https://github.com/KhronosGroup/Vulkan-Loader/issues/472 (forwarded request 836403 from mrostecki) + 836404 + diff --git a/packages/v/vulkan-loader/0001-Revert-loader-Return-error-if-layer-loading-failed.patch b/packages/v/vulkan-loader/0001-Revert-loader-Return-error-if-layer-loading-failed.patch new file mode 100644 index 0000000..f2abebc --- /dev/null +++ b/packages/v/vulkan-loader/0001-Revert-loader-Return-error-if-layer-loading-failed.patch @@ -0,0 +1,28 @@ +From 8fdc320b442c45f25044826715058ce3569f3ae1 Mon Sep 17 00:00:00 2001 +From: Charles Giessen +Date: Thu, 17 Sep 2020 16:31:16 -0600 +Subject: [PATCH] Revert "loader: Return error if layer loading failed" + +This reverts commit 49648d8fb398ac7d3d8e159939de060b8e759ecf. +Many layers were relying on silently failing to allow 32/64 bit versions +to work on linux. A later commit will properly check for failing layers. +--- + loader/loader.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/loader/loader.c b/loader/loader.c +index dd7f7d5b7..4d8865e13 100644 +--- a/loader/loader.c ++++ b/loader/loader.c +@@ -5942,7 +5942,7 @@ VkResult loader_create_instance_chain(const VkInstanceCreateInfo *pCreateInfo, c + + lib_handle = loaderOpenLayerFile(inst, "instance", layer_prop); + if (!lib_handle) { +- return VK_ERROR_LAYER_NOT_PRESENT; ++ continue; + } + + if (NULL == layer_prop->functions.negotiate_layer_interface) { +-- +2.28.0 + diff --git a/packages/v/vulkan-loader/vulkan-loader.changes b/packages/v/vulkan-loader/vulkan-loader.changes index 71b3dc5..2233dbd 100644 --- a/packages/v/vulkan-loader/vulkan-loader.changes +++ b/packages/v/vulkan-loader/vulkan-loader.changes @@ -1,4 +1,13 @@ ------------------------------------------------------------------- +Wed Sep 23 19:46:21 UTC 2020 - Michał Rostecki + +- Add patch which reverts a commit breaking Steam Play / Proton: + * 0001-Revert-loader-Return-error-if-layer-loading-failed.patch + Related issues: + * https://github.com/ValveSoftware/steam-for-linux/issues/7368 + * https://github.com/KhronosGroup/Vulkan-Loader/issues/472 + +------------------------------------------------------------------- Thu Sep 10 07:47:39 UTC 2020 - Dirk Mueller - update to 1.2.153: diff --git a/packages/v/vulkan-loader/vulkan-loader.spec b/packages/v/vulkan-loader/vulkan-loader.spec index 8df71f2..9a07d57 100644 --- a/packages/v/vulkan-loader/vulkan-loader.spec +++ b/packages/v/vulkan-loader/vulkan-loader.spec @@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++ URL: https://github.com/KhronosGroup/Vulkan-Loader Source: https://github.com/KhronosGroup/Vulkan-Loader/archive/v%version.tar.gz Source9: baselibs.conf +Patch0: 0001-Revert-loader-Return-error-if-layer-loading-failed.patch BuildRequires: cmake >= 3.4 BuildRequires: gcc-c++ >= 4.8 BuildRequires: pkgconfig @@ -66,7 +67,7 @@ This subpackage contains the development headers for packages wanting to make use of Vulkan. %prep -%autosetup -n Vulkan-Loader-%version +%autosetup -p1 -n Vulkan-Loader-%version %build %cmake \