Home
last modified time | relevance | path

Searched full:patch (Results 1 – 25 of 775) sorted by relevance

12345678910>>...31

/linux/Documentation/process/
H A Dapplying-patches.rst11 This document is obsolete. In most cases, rather than using ``patch``
15 a patch to the kernel or, more specifically, what base kernel a patch for
24 What is a patch?
27 A patch is a small text document containing a delta of changes between two
31 To correctly apply a patch you need to know what base it was generated from
32 and what new version the patch will change the source tree into. These
33 should both be present in the patch file metadata or be possible to deduce
37 How do I apply or revert a patch?
40 You apply a patch with the ``patch`` program. The patch program reads a diff
41 (or patch) file and makes the changes to the source tree described in it.
[all …]
H A Dbackporting.rst27 Applying the patch to a tree
30 Sometimes the patch you are backporting already exists as a git commit,
32 ``git cherry-pick``. However, if the patch comes from an email, as it
37 quite picky about the patch applying perfectly to your source tree. In
39 edit the patch to make it apply.
42 where the patch applies cleanly and *then* cherry-pick it over to your
46 apply a patch that just arrived on LKML to an older stable kernel, you
50 It's generally better to use the exact same base as the one the patch
53 problem with applying the patch to the "wrong" base is that it may pull
60 it less likely to apply the patch to the wrong place (which can result
[all …]
H A Dstable-kernel-rules.rst45 1. Add a 'stable tag' to the description of a patch you then submit for
47 2. Ask the stable team to pick up a patch already mainlined.
48 3. Submit a patch to the stable team that is equivalent to a change already
56 options for cases where a mainlined patch needs adjustments to apply in older
70 To have a patch you submit for mainline inclusion later automatically picked up
79 Once the patch is mainlined it will be applied to the stable tree without
85 * Specify any additional patch prerequisites for cherry picking::
100 Note that for a patch series, you do not have to list as prerequisites the
102 patch series::
130 Cc: <stable@vger.kernel.org> # see patch description, needs adjustments for <= 6.3
[all …]
H A D6.Followthrough.rst13 It is a rare patch which is so good at its first posting that there is no
25 A patch of any significance will result in a number of comments from other
31 - If you have explained your patch well, reviewers will understand its
64 from happening. When you get review comments on a patch, take the time to
93 raised issues and how you dealt with them; the patch changelog is a good
114 If a patch is considered to be a good thing to add to the kernel, and once
128 patch. Now other developers working with that tree will get the patch by
134 What may also happen at this point, depending on the nature of your patch,
136 case, heavy patch conflicts can result in some work being put on the back
145 Some day, if all goes well, you'll log on and see that your patch has been
[all …]
/linux/kernel/livepatch/
H A Dcore.c25 #include "patch.h"
71 * Note that the patch might still be needed before klp_module_going() in klp_find_object_module()
100 static struct klp_object *klp_find_object(struct klp_patch *patch, in klp_find_func()
105 klp_for_each_object(patch, obj) { in klp_find_object()
343 * /sys/kernel/livepatch/<patch>
344 * /sys/kernel/livepatch/<patch>/enabled
345 * /sys/kernel/livepatch/<patch>/transition
346 * /sys/kernel/livepatch/<patch>/force
347 * /sys/kernel/livepatch/<patch>/replace
348 * /sys/kernel/livepatch/<patch>/stack_orde
102 klp_find_object(struct klp_patch * patch,struct klp_object * old_obj) klp_find_object() argument
360 struct klp_patch *patch; enabled_store() local
403 struct klp_patch *patch; enabled_show() local
412 struct klp_patch *patch; transition_show() local
421 struct klp_patch *patch; force_store() local
450 struct klp_patch *patch; replace_show() local
459 struct klp_patch *patch, *this_patch; stack_order_show() local
520 klp_alloc_object_dynamic(const char * name,struct klp_patch * patch) klp_alloc_object_dynamic() argument
576 klp_add_object_nops(struct klp_patch * patch,struct klp_object * old_obj) klp_add_object_nops() argument
611 klp_add_nops(struct klp_patch * patch) klp_add_nops() argument
631 struct klp_patch *patch; klp_kobj_release_patch() local
702 __klp_free_objects(struct klp_patch * patch,bool nops_only) __klp_free_objects() argument
717 klp_free_objects(struct klp_patch * patch) klp_free_objects() argument
722 klp_free_objects_dynamic(struct klp_patch * patch) klp_free_objects_dynamic() argument
734 klp_free_patch_start(struct klp_patch * patch) klp_free_patch_start() argument
750 klp_free_patch_finish(struct klp_patch * patch) klp_free_patch_finish() argument
773 struct klp_patch *patch = klp_free_patch_work_fn() local
779 klp_free_patch_async(struct klp_patch * patch) klp_free_patch_async() argument
825 klp_write_object_relocs(struct klp_patch * patch,struct klp_object * obj,bool apply) klp_write_object_relocs() argument
849 klp_apply_object_relocs(struct klp_patch * patch,struct klp_object * obj) klp_apply_object_relocs() argument
855 klp_clear_object_relocs(struct klp_patch * patch,struct klp_object * obj) klp_clear_object_relocs() argument
862 klp_init_object_loaded(struct klp_patch * patch,struct klp_object * obj) klp_init_object_loaded() argument
910 klp_init_object(struct klp_patch * patch,struct klp_object * obj) klp_init_object() argument
948 klp_init_object_early(struct klp_patch * patch,struct klp_object * obj) klp_init_object_early() argument
956 klp_init_patch_early(struct klp_patch * patch) klp_init_patch_early() argument
978 klp_init_patch(struct klp_patch * patch) klp_init_patch() argument
1004 __klp_disable_patch(struct klp_patch * patch) __klp_disable_patch() argument
1036 __klp_enable_patch(struct klp_patch * patch) __klp_enable_patch() argument
1104 klp_enable_patch(struct klp_patch * patch) klp_enable_patch() argument
1229 struct klp_patch *patch; klp_cleanup_module_patches_limited() local
1258 struct klp_patch *patch; klp_module_coming() local
[all...]
H A Dstate.c15 #define klp_for_each_state(patch, state) \ argument
16 for (state = patch->states; state && state->id; state++)
20 * the given patch
21 * @patch: livepatch that modifies the given system state
24 * Checks whether the given patch modifies the given system state.
26 * The function can be called either from pre/post (un)patch
31 struct klp_state *klp_get_state(struct klp_patch *patch, unsigned long id) in klp_get_state() argument
35 klp_for_each_state(patch, state) { in klp_get_state()
58 * It is typically called only from pre/post (un)patch
66 struct klp_patch *patch; in klp_get_prev_state() local
[all …]
H A Dtransition.c14 #include "patch.h"
65 * We allow to patch also functions where RCU is not watching,
78 * The transition to the target patch state is complete. Clean up the data
106 * from this patch on the ops->func_stack. Otherwise, after in klp_complete_transition()
170 * patch state. in klp_cancel_transition()
251 * Determine whether it's safe to transition the task to the target patch state in klp_check_stack_func()
301 * Try to safely switch a task to the target patch state. If it's currently in klp_check_and_switch_task()
323 * functions. If all goes well, switch the task to the target patch in klp_try_switch_task()
423 * Try to switch all remaining tasks to the target patch state by walking the in klp_send_signals()
428 * If any tasks are still stuck in the initial patch stat in klp_send_signals()
455 struct klp_patch *patch; klp_try_complete_transition() local
573 klp_init_transition(struct klp_patch * patch,int state) klp_init_transition() argument
729 struct klp_patch *patch; klp_force_transition() local
[all...]
/linux/scripts/
H A Dpatch-kernel4 # usage: patch-kernel [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ]
5 # The source directory defaults to /usr/src/linux, and the patch
8 # scripts/patch-kernel . ..
11 # scripts/patch-kernel . .. -ac
12 # Get the latest Linux kernel and patch it with the latest ac patch
13 # scripts/patch-kernel . .. 2.4.9
15 # scripts/patch-kernel . .. 2.4.9 -ac
17 # scripts/patch-kernel . .. 2.4.9 -ac11
18 # Gets 2.4.9 with ac patch ac11
23 # It then looks for patches for the next sublevel in the patch directory.
[all …]
/linux/Documentation/livepatch/
H A Dcallbacks.rst5 Livepatch (un)patch-callbacks provide a mechanism for livepatch modules
16 In most cases, (un)patch callbacks will need to be used in conjunction
26 patch.
39 * Pre-patch
42 * Post-patch
48 active), used to clean up post-patch callback
54 used to cleanup pre-patch callback resources
61 symmetry: pre-patch callbacks have a post-unpatch counterpart and
62 post-patch callbacks have a pre-unpatch counterpart. An unpatch
63 callback will only be executed if its corresponding patch callback was
[all …]
H A Dlivepatch.rst46 a live patch is called with the help of a custom ftrace handler. But there are
64 But there are more complex fixes. For example, a patch might change
65 ordering of locking in multiple functions at the same time. Or a patch
84 switch over. When a patch is enabled, livepatch enters into a
87 sequence occurs when a patch is disabled, except the tasks converge from
95 safe to patch tasks:
99 the task is patched. In most cases this will patch most or all of
128 Unless we can come up with another way to patch kthreads, architectures
132 The /sys/kernel/livepatch/<patch>/transition file shows whether a patch
133 is in transition. Only a single patch can be in transition at a given
[all …]
H A Dcumulative-patches.rst23 static struct klp_patch patch = {
29 All processes are then migrated to use the code only from the new patch.
34 longer modified by the new cumulative patch.
37 cumulative patch. It helps to keep the patch consistent while adding or
40 Users could keep only the last patch installed on the system after
52 - Atomically revert some functions in a previous patch while
69 to that patch. This is safe as long as the livepatches do _not_ do
73 Also note that the replaced patch can be removed and loaded again
80 In other words, the cumulative patch is responsible for doing any actions
81 that are necessary to properly replace any older patch.
[all …]
/linux/scripts/coccinelle/api/
H A Dstring_choices.cocci6 virtual patch
10 @str_plural depends on patch@
21 @str_plural_r depends on !patch@
38 @str_up_down depends on patch disable neg_if_exp@
44 @str_up_down_r depends on !patch disable neg_if_exp@
57 @str_down_up depends on patch disable neg_if_exp@
63 @str_down_up_r depends on !patch disable neg_if_exp@
76 @str_true_false depends on patch disable neg_if_exp@
82 @str_true_false_r depends on !patch disable neg_if_exp@
95 @str_false_true depends on patch disable neg_if_exp@
[all …]
/linux/Documentation/translations/it_IT/process/
H A Dstable-kernel-rules.rst11 Regole sul tipo di patch che vengono o non vengono accettate nei sorgenti
14 - Questa patch o una equivalente deve esistere già nei sorgenti principali di
40 Procedura per sottomettere patch per i sorgenti -stable
44 Una patch di sicurezza non dovrebbe essere gestita (solamente) dal processo
50 1. Aggiungi un'etichetta 'stable' alla descrizione della patch al momento della
52 2. Chiedere alla squadra "stable" di prendere una patch già applicata sui
54 3. Sottomettere una patch alla squadra "stable" equivalente ad una modifica già
62 L':ref:`it_option_3` è un'alternativa ai due metodi precedenti quando la patch
79 Aggiungete la seguente etichetta nell'area delle firme per far sì che una patch
91 Una volta che la patch è stata inclusa, verrà applicata anche sui sorgenti
[all …]
H A D7.AdvancedTopics.rst44 La prima cosa da fare prima di usarlo per produrre patch che saranno
56 Utilizzare git per produrre patch da sottomettere via email può essere
73 essere creati con attenzione; integrate patch dai rami di sviluppo
79 o fatta sparire completamente dalla storia. Una serie di patch può essere
84 di patch pulite e con meno problemi.
88 perfetta. Riscrivere la storia riscriverà le patch contenute in quella
97 Dunque, una volta che il vostro insieme di patch è stato reso disponibile
99 questa regola, e si rifiuterà di pubblicare nuove patch che non risultino
101 patch che non condividono la stessa storia). È possibile ignorare questo
103 un ramo già pubblicato. Un esempio è linux-next dove le patch vengono
[all …]
/linux/tools/testing/selftests/livepatch/
H A Dtest-callbacks.sh20 # pre-patch callbacks are executed for vmlinux and $MOD_TARGET (those
22 # according to the klp_patch, their post-patch callbacks run and the
25 # - Similarly, on livepatch disable, pre-patch callbacks run before the
26 # unpatching transition starts. klp_objects are reverted, post-patch
40 livepatch: enabling patch '$MOD_LIVEPATCH'
67 # - On livepatch enable, only pre/post-patch callbacks are executed for
71 # pre/post-patch callbacks are executed.
85 livepatch: enabling patch '$MOD_LIVEPATCH'
93 livepatch: applying patch '$MOD_LIVEPATCH' to loading module '$MOD_TARGET'
135 livepatch: enabling patch '$MOD_LIVEPATCH'
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-livepatch9 each loaded live patch module.
11 What: /sys/kernel/livepatch/<patch>
16 The patch directory contains subdirectories for each kernel
19 What: /sys/kernel/livepatch/<patch>/enabled
25 code is currently applied. Writing 0 will disable the patch
26 while writing 1 will re-enable the patch.
28 What: /sys/kernel/livepatch/<patch>/transition
33 An attribute which indicates whether the patch is currently in
36 What: /sys/kernel/livepatch/<patch>/force
45 use this feature without a clearance from a patch
[all …]
/linux/sound/drivers/opl3/
H A Dopl3_synth.c214 * Patch management
229 * load a patch, obviously.
234 * name is the name string of the patch.
245 struct fm_patch *patch; in snd_opl3_load_patch() local
248 patch = snd_opl3_find_patch(opl3, prog, bank, 1); in snd_opl3_load_patch()
249 if (!patch) in snd_opl3_load_patch()
252 patch->type = type; in snd_opl3_load_patch()
255 patch->inst.op[i].am_vib = data[AM_VIB + i]; in snd_opl3_load_patch()
256 patch->inst.op[i].ksl_level = data[KSL_LEVEL + i]; in snd_opl3_load_patch()
257 patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i]; in snd_opl3_load_patch()
[all …]
/linux/arch/xtensa/kernel/
H A Djump_label.c26 struct patch { struct
41 struct patch *patch = data; in patch_text_stop_machine() local
43 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_stop_machine()
44 local_patch_text(patch->addr, patch->data, patch->sz); in patch_text_stop_machine()
45 atomic_inc(&patch->cpu_count); in patch_text_stop_machine()
47 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_stop_machine()
49 __invalidate_icache_range(patch->addr, patch->sz); in patch_text_stop_machine()
57 struct patch patch = { in patch_text() local
64 &patch, cpu_online_mask); in patch_text()
/linux/sound/synth/emux/
H A Demux_hwdep.c17 * load patch
23 struct soundfont_patch_info patch; in snd_emux_hwdep_load_patch() local
25 if (copy_from_user(&patch, arg, sizeof(patch))) in snd_emux_hwdep_load_patch()
28 if (patch.key == GUS_PATCH) in snd_emux_hwdep_load_patch()
30 patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
32 if (patch.type >= SNDRV_SFNT_LOAD_INFO && in snd_emux_hwdep_load_patch()
33 patch.type <= SNDRV_SFNT_PROBE_DATA) { in snd_emux_hwdep_load_patch()
35 patch.len + sizeof(patch), in snd_emux_hwdep_load_patch()
41 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
H A Dsoundfont.c64 * close the patch if the patch was opened by this client.
78 * Deal with a soundfont patch. Any driver could use these routines
90 struct soundfont_patch_info patch;
93 if (count < (long)sizeof(patch)) {
94 dev_err(card->dev, "patch record too small %ld\n", count);
97 if (copy_from_user(&patch, data, sizeof(patch))) in snd_soundfont_close_check()
100 count -= sizeof(patch); in snd_soundfont_close_check()
101 data += sizeof(patch); in snd_soundfont_close_check()
121 struct soundfont_patch_info patch; snd_soundfont_load() local
983 struct patch_info patch; load_guspatch() local
[all...]
/linux/include/linux/
H A Dlivepatch.h20 /* task patch states */
37 * @nop: temporary patch to use the original code again; dyn. allocated
83 * struct klp_callbacks - pre/post live-(un)patch callback structure
91 * All callbacks are optional. Only the pre-patch callback, if provided,
93 * patch for any reason, including a non-zero error status returned from
94 * the pre-patch callback, no further callbacks will be executed.
145 * struct klp_patch - patch structure for live patching
146 * @mod: reference to the live patch module
153 * @enabled: the patch is enabled (but operation may be incomplete)
155 * @free_work: patch cleanup from workqueue-context
[all …]
/linux/Documentation/translations/it_IT/arch/riscv/
H A Dpatch-acceptance.rst3 :Original: :doc:`../../../../arch/riscv/patch-acceptance`
28 RISC-V ha un'istanza di patchwork dov'è possibile controllare lo stato delle patch:
32 Se la vostra patch non appare nella vista predefinita, i manutentori di RISC-V
37 e collaudando le patch man mano che arrivano. Il processo applica le patch al
39 questo a seconda che la patch sia stata o meno individuata come correzione. In
41 stata applicata una serie di patch sarà annotato su patchwork. È improbabile che
42 vengano applicate Le patch che non passano i controlli, nella maggior parte dei
45 In aggiunta alla lista delle verifiche da fare prima di inviare una patch
48 Accetteremo le patch per un nuovo modulo o estensione se la fondazione
57 prestazioni, accetteremo patch solo per quelle estensioni che sono
/linux/arch/x86/kernel/cpu/microcode/
H A Damd.c125 * microcode patch we found to match.
135 * Microcode patch container file is prepended to the initrd in cpio
146 * 2. To match which patches to load because the patch revision ID
253 pr_err("No sha256 digest for patch ID: 0x%x found\n", patch_id); in verify_sha256_digest()
260 pr_err("Patch 0x%x SHA256 digest mismatch!\n", patch_id); in verify_sha256_digest()
391 * Check whether there is a valid, non-truncated microcode patch section at the
394 * On success, @sh_psize returns the patch size according to the section header,
403 ucode_dbg("Truncated patch section.\n"); in __verify_patch_section()
418 ucode_dbg("Patch of size %u too short.\n", p_size); in __verify_patch_section()
429 * a patch of the indicated @sh_psize (and also whether this size does not
[all …]
/linux/tools/testing/selftests/livepatch/test_modules/
H A Dtest_klp_state.c32 static struct klp_patch patch; variable
38 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in allocate_loglevel_state()
55 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in fix_console_loglevel()
68 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in restore_console_loglevel()
80 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in free_loglevel_state()
89 /* Executed on object patching (ie, patch enablement) */
96 /* Executed on object unpatching (ie, patch disablement) */
103 /* Executed on object unpatching (ie, patch disablement) */
110 /* Executed on object unpatching (ie, patch disablement) */
141 static struct klp_patch patch = { variable
[all …]
/linux/Documentation/dev-tools/
H A Dcoccinelle.rst67 For Semantic Patch Language(SmPL) grammar documentation refer to:
78 Four basic modes are defined: ``patch``, ``report``, ``context``, and
82 - ``patch`` proposes a fix, when possible.
106 To make a report for every semantic patch, run the following command::
112 make coccicheck MODE=patch
115 The coccicheck target applies every semantic patch available in the
118 For each semantic patch, a commit message is proposed. It gives a
119 description of the problem being checked by the semantic patch, and
151 Using Coccinelle with a single semantic patch
155 semantic patch. In that case, the variable must be initialized with
[all …]

12345678910>>...31