Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/Linux-v4.19/kernel/livepatch/
Dcore.c85 static bool klp_is_patch_registered(struct klp_patch *patch) in klp_is_patch_registered() argument
90 if (mypatch == patch) in klp_is_patch_registered()
281 static int __klp_disable_patch(struct klp_patch *patch) in __klp_disable_patch() argument
285 if (WARN_ON(!patch->enabled)) in __klp_disable_patch()
292 if (!list_is_last(&patch->list, &klp_patches) && in __klp_disable_patch()
293 list_next_entry(patch, list)->enabled) in __klp_disable_patch()
296 klp_init_transition(patch, KLP_UNPATCHED); in __klp_disable_patch()
298 klp_for_each_object(patch, obj) in __klp_disable_patch()
313 patch->enabled = false; in __klp_disable_patch()
326 int klp_disable_patch(struct klp_patch *patch) in klp_disable_patch() argument
[all …]
/Linux-v4.19/scripts/
Dpatch-kernel62 PNAME=patch-kernel
73 patch directory defaults to the current directory,
92 echo "cannot find patch file: ${patch}"
149 if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir
171 if $uncomp ${patchdir}/"$1"${ext} | patch -p1 -Rs -N -E -d $sourcedir
242 patch="patch-${CURRENTFULLVERSION}"
243 findFile $patchdir/${patch} || noFile ${patch}
244 reversePatch ${patch} || exit 1
272 patch=patch-$FULLVERSION
274 findFile $patchdir/${patch} || noFile ${patch}
[all …]
/Linux-v4.19/Documentation/process/
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 …]
Dsubmitting-patches.rst53 generated by :manpage:`diff(1)`. When creating your patch, make sure to
61 To create a patch for a single file, it is often sufficient to do::
70 diff -up $SRCTREE/$MYFILE{.orig,} > /tmp/patch
72 To create a patch for multiple files, you should unpack a "vanilla",
81 linux-3.19-vanilla $MYSRC > /tmp/patch
85 patch.
87 Make sure your patch does not include any extra files which do not
88 belong in a patch submission. Make sure to review your patch -after-
94 very important if you want your patch accepted.
105 Describe your problem. Whether your patch is a one-line bug fix or
[all …]
D5.Posting.rst50 summary of the results should be included with the patch.
68 general rule, a patch should be based on the current mainline as found in
75 on the area of your patch and what is going on elsewhere, basing a patch
79 Only the most simple changes should be formatted as a single patch;
85 - The patch series you post will almost certainly not be the series of
93 patch. These changes can be small ("add a field to this structure") or
95 conceptually small and amenable to a one-line description. Each patch
100 changes in the same patch. If a single patch fixes a critical security
105 - Each patch should yield a kernel which builds and runs properly; if your
106 patch series is interrupted in the middle, the result should still be a
[all …]
Dstable-kernel-rules.rst38 - If the patch covers files in net/ or drivers/net please follow netdev stable
53 To have the patch automatically included in the stable tree, add the tag
59 in the sign-off area. Once the patch is merged it will be applied to
68 After the patch has been merged to Linus' tree, send an email to
69 stable@vger.kernel.org containing the subject of the patch, the commit ID,
78 Send the patch, after verifying that it follows the above rules, to
84 :ref:`option_2` and :ref:`option_3` are more useful if the patch isn't deemed
87 useful if the patch needs some special handling to apply to an older kernel
90 Note that for :ref:`option_3`, if the patch deviates from the original
91 upstream patch (for example because it had to be backported) this must be very
[all …]
/Linux-v4.19/sound/drivers/opl3/
Dopl3_synth.c259 struct fm_patch *patch; in snd_opl3_load_patch() local
262 patch = snd_opl3_find_patch(opl3, prog, bank, 1); in snd_opl3_load_patch()
263 if (!patch) in snd_opl3_load_patch()
266 patch->type = type; in snd_opl3_load_patch()
269 patch->inst.op[i].am_vib = data[AM_VIB + i]; in snd_opl3_load_patch()
270 patch->inst.op[i].ksl_level = data[KSL_LEVEL + i]; in snd_opl3_load_patch()
271 patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i]; in snd_opl3_load_patch()
272 patch->inst.op[i].sustain_release = data[SUSTAIN_RELEASE + i]; in snd_opl3_load_patch()
273 patch->inst.op[i].wave_select = data[WAVE_SELECT + i]; in snd_opl3_load_patch()
275 patch->inst.feedback_connection[0] = data[CONNECTION]; in snd_opl3_load_patch()
[all …]
/Linux-v4.19/sound/synth/emux/
Dsoundfont.c132 struct soundfont_patch_info patch; in snd_soundfont_load() local
136 if (count < (long)sizeof(patch)) { in snd_soundfont_load()
140 if (copy_from_user(&patch, data, sizeof(patch))) in snd_soundfont_load()
143 count -= sizeof(patch); in snd_soundfont_load()
144 data += sizeof(patch); in snd_soundfont_load()
146 if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { in snd_soundfont_load()
147 snd_printk(KERN_ERR "The wrong kind of patch %x\n", patch.key); in snd_soundfont_load()
150 if (count < patch.len) { in snd_soundfont_load()
152 count, patch.len); in snd_soundfont_load()
155 if (patch.len < 0) { in snd_soundfont_load()
[all …]
Demux_hwdep.c37 struct soundfont_patch_info patch; in snd_emux_hwdep_load_patch() local
39 if (copy_from_user(&patch, arg, sizeof(patch))) in snd_emux_hwdep_load_patch()
42 if (patch.type >= SNDRV_SFNT_LOAD_INFO && in snd_emux_hwdep_load_patch()
43 patch.type <= SNDRV_SFNT_PROBE_DATA) { in snd_emux_hwdep_load_patch()
44 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); in snd_emux_hwdep_load_patch()
49 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch()
/Linux-v4.19/Documentation/livepatch/
Dcallbacks.txt5 Livepatch (un)patch-callbacks provide a mechanism for livepatch modules
16 In most cases, (un)patch callbacks will need to be used in conjunction
23 patch.
33 * Pre-patch - before a klp_object is patched
35 * Post-patch - after a klp_object has been patched and is active
39 active), used to clean up post-patch callback
44 used to cleanup pre-patch callback resources
48 symmetry: pre-patch callbacks have a post-unpatch counterpart and
49 post-patch callbacks have a pre-unpatch counterpart. An unpatch
50 callback will only be executed if its corresponding patch callback was
[all …]
Dlivepatch.txt59 a live patch is called with the help of a custom ftrace handler. But there are
77 But there are more complex fixes. For example, a patch might change
78 ordering of locking in multiple functions at the same time. Or a patch
97 switch over. When a patch is enabled, livepatch enters into a
100 sequence occurs when a patch is disabled, except the tasks converge from
108 safe to patch tasks:
112 the task is patched. In most cases this will patch most or all of
141 Unless we can come up with another way to patch kthreads, architectures
145 The /sys/kernel/livepatch/<patch>/transition file shows whether a patch
146 is in transition. Only a single patch (the topmost patch on the stack)
[all …]
/Linux-v4.19/arch/ia64/kernel/
Dvmlinux.lds.S85 .data..patch.phys_stack_reg : AT(ADDR(.data..patch.phys_stack_reg) - LOAD_OFFSET) {
87 *(.data..patch.phys_stack_reg)
126 .data..patch.vtop : AT(ADDR(.data..patch.vtop) - LOAD_OFFSET) {
128 *(.data..patch.vtop)
132 .data..patch.rse : AT(ADDR(.data..patch.rse) - LOAD_OFFSET) {
134 *(.data..patch.rse)
138 .data..patch.mckinley_e9 : AT(ADDR(.data..patch.mckinley_e9) - LOAD_OFFSET) {
140 *(.data..patch.mckinley_e9)
Dgate.lds.S35 .data..patch : {
37 *(.data..patch.mckinley_e9) argument
41 *(.data..patch.vtop) argument
45 *(.data..patch.fsyscall_table) argument
49 *(.data..patch.brl_fsys_bubble_down) argument
/Linux-v4.19/Documentation/ABI/testing/
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>/signal
48 What: /sys/kernel/livepatch/<patch>/force
[all …]
/Linux-v4.19/arch/arm/kernel/
Dpatch.c14 struct patch { struct
114 struct patch *patch = data; in patch_text_stop_machine() local
116 __patch_text(patch->addr, patch->insn); in patch_text_stop_machine()
123 struct patch patch = { in patch_text() local
128 stop_machine_cpuslocked(patch_text_stop_machine, &patch, NULL); in patch_text()
/Linux-v4.19/samples/livepatch/
Dlivepatch-sample.c65 static struct klp_patch patch = { variable
74 ret = klp_register_patch(&patch); in livepatch_init()
77 ret = klp_enable_patch(&patch); in livepatch_init()
79 WARN_ON(klp_unregister_patch(&patch)); in livepatch_init()
87 WARN_ON(klp_unregister_patch(&patch)); in livepatch_exit()
Dlivepatch-shadow-fix2.c125 static struct klp_patch patch = { variable
134 ret = klp_register_patch(&patch); in livepatch_shadow_fix2_init()
137 ret = klp_enable_patch(&patch); in livepatch_shadow_fix2_init()
139 WARN_ON(klp_unregister_patch(&patch)); in livepatch_shadow_fix2_init()
150 WARN_ON(klp_unregister_patch(&patch)); in livepatch_shadow_fix2_exit()
Dlivepatch-shadow-fix1.c148 static struct klp_patch patch = { variable
157 ret = klp_register_patch(&patch); in livepatch_shadow_fix1_init()
160 ret = klp_enable_patch(&patch); in livepatch_shadow_fix1_init()
162 WARN_ON(klp_unregister_patch(&patch)); in livepatch_shadow_fix1_init()
173 WARN_ON(klp_unregister_patch(&patch)); in livepatch_shadow_fix1_exit()
Dlivepatch-callbacks-demo.c191 static struct klp_patch patch = { variable
200 ret = klp_register_patch(&patch); in livepatch_callbacks_demo_init()
203 ret = klp_enable_patch(&patch); in livepatch_callbacks_demo_init()
205 WARN_ON(klp_unregister_patch(&patch)); in livepatch_callbacks_demo_init()
213 WARN_ON(klp_unregister_patch(&patch)); in livepatch_callbacks_demo_exit()
/Linux-v4.19/scripts/coccinelle/api/
Dptr_ret.cocci15 virtual patch
19 @depends on patch@
26 @depends on patch@
33 @depends on patch@
40 @r1 depends on !patch@
47 @r2 depends on !patch@
54 @r3 depends on !patch@
Dplatform_no_drv_owner.cocci6 virtual patch
25 @fix1 depends on match1 && patch && !context && !org && !report@
34 @fix1_i2c depends on match1 && patch && !context && !org && !report@
56 @fix2 depends on match2 && patch && !context && !org && !report@
65 @fix2_i2c depends on match2 && patch && !context && !org && !report@
76 @fix1_context depends on match1 && !patch && (context || org || report)@
87 @fix1_i2c_context depends on match1 && !patch && (context || org || report)@
98 @fix2_context depends on match2 && !patch && (context || org || report)@
109 @fix2_i2c_context depends on match2 && !patch && (context || org || report)@
Dvma_pages.cocci10 virtual patch
18 @r_context depends on context && !patch && !org && !report@
25 // For patch mode
28 @r_patch depends on !context && patch && !org && !report@
39 @r_org depends on !context && !patch && (org || report)@
Dresource_size.cocci17 virtual patch
25 @r_context depends on context && !patch && !org@
32 // For patch mode
35 @r_patch depends on !context && patch && !org@
47 @r_org depends on !context && !patch && (org || report)@
54 @rbad_org depends on !context && !patch && (org || report)@
/Linux-v4.19/scripts/coccinelle/misc/
Dboolinit.cocci11 virtual patch
16 @depends on patch@
48 @depends on patch disable is_zero, isnt_zero@
66 @depends on patch@
81 @r1 depends on !patch@
104 @r2 depends on !patch disable is_zero, isnt_zero@
119 @r3 depends on !patch@
/Linux-v4.19/arch/x86/kernel/cpu/microcode/
Damd.c203 u8 (*patch)[PATCH_MAX_SIZE]; in apply_microcode_early_amd() local
210 patch = (u8 (*)[PATCH_MAX_SIZE])__pa_nodebug(&amd_ucode_patch); in apply_microcode_early_amd()
213 patch = &amd_ucode_patch; in apply_microcode_early_amd()
233 memcpy(patch, mc, min_t(u32, desc.psize, PATCH_MAX_SIZE)); in apply_microcode_early_amd()
597 struct ucode_patch *patch; in verify_and_add_patch() local
630 patch = kzalloc(sizeof(*patch), GFP_KERNEL); in verify_and_add_patch()
631 if (!patch) { in verify_and_add_patch()
636 patch->data = kmemdup(fw + SECTION_HDR_SIZE, patch_size, GFP_KERNEL); in verify_and_add_patch()
637 if (!patch->data) { in verify_and_add_patch()
639 kfree(patch); in verify_and_add_patch()
[all …]

12345678910>>...12