repo.or.cz
/
ksplice.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Use local functions for module_init and module_exit.
2008-09-12
Tim Abbott
Use local funct
i
ons
f
o
r m
o
dule_init
and module_exit
.
commit
|
commitdiff
|
tree
2008-09-12
Tim A
b
b
o
t
t
Remo
v
e
u
nused $word
v
ariable
.
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Don't tie th
e
kernel vers
i
on to KS
P
LICE_
S
TAND
A
LONE
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
A
llo
c
ate saved
by
t
e
s statically in struc
t
ksplic
e
_p
a
tch
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Zero the n
e
w
section
con
t
ents in s
e
ct_grow
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
An
d
ers Kaseorg
Fi
x
debug_blob memory leaks
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseor
g
Fix reloc_addrmap memory leak
s
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbot
t
Mak
e
handle_myst_relo
c
return -1 rath
e
r
t
ha
n
0 on fa
i
lures
.
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseor
g
De
f
ine proc_root to NULL as a weak symbol (for use
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
A
dd su
p
port f
o
r KSPLICE_INTEGR
A
TED in
ksplice-create
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
T
i
m
A
bbott
Include <lin
u
x/ksplice
.
h>
rather than "ksplice
.
h" in
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Anders Ka
s
eorg
I
n
clude <linux/ksplice
.
h
>
for
integr
a
ted
Ksplice
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders K
a
seorg
k
free(N
U
LL) is
d
efined to h
a
ve no effect
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
de
r
s K
a
seorg
Consol
i
d
a
te dup_wolabel cal
l
s t
o
c
ompute_addres
s
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Add
n
ew
j
umplen() func
t
io
n
which corr
e
ctly handl
e
s
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
M
ake for loops
co
n
sistent
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
ders Kaseorg
Don'
t
strip la
b
e
l
s
f
r
o
m the
k
s
ymtab
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Ander
s
Kas
e
o
rg
Remove unus
e
d
l
abel stripp
i
ng func
t
ions from objcom
m
on
.
c
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders
Kaseorg
Don't s
t
ri
p
label from syste
m
_map_n
a
m
e
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Don't rena
m
e symbols in objmanip
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
nders Kaseorg
Degl
o
b
alize
all
global symbols
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders
K
aseorg
Inline flags variable to sym
-
>flags
i
n
filter_sy
m
bols
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders
K
ase
o
rg
D
on't rena
m
e
sections in ob
j
man
i
p
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders
Kaseorg
Pass adds
t
r arguments
to
objmanip sizelist mode
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Re
m
ove unused r
e
p
lstr from s
t
r
u
c
t
ksplice_patch
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
And
e
rs Kaseorg
Get rid of un
u
s
e
d glob
a
l
.
ro
d
a
ta symbols
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey Brian A
r
nold
Use lookup_address to implement virtua
l
_addres
s
_m
a
pped
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim
Abbott
Buffer debuggin
g
out
p
ut
a
n
d export it via debugfs
.
commit
|
commitdiff
|
tree
2008-09-12
Tim
A
bbott
Add support for
e
xtracting debugging output f
r
om debu
g
fs
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim A
b
bott
Cha
n
ge
f
a
i
led_to_find and print_a
b
o
r
t to use
ksdebug
.
commit
|
commitdiff
|
tree
2008-09-12
Ti
m
Abbott
Pass a m
o
d
ule_pack
t
o contains_canary so
that it can
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim
A
bbott
Replace print_abor
t
("ou
t
of memory"
)
wit
h
the c
o
rresponding
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Rewrite debugging out
p
ut
i
n
run-pre matching
to use
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Replace remaining c
a
lls to printk w
i
th k
s
debug
i
n ksplice
.
c
.
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Zero the relocatio
n
p
l
a
ceh
o
lde
r
address w
i
t
h bfd_pu
t
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
de
r
s Kaseorg
Cr
e
ate rel
o
ca
t
ions
w
ith bfd_install_relocation
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Ande
r
s
K
aseorg
M
erge copy_section and wri
t
e_new_
s
e
c
tion into writ
e
_se
c
tion
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Add
th
e
se
c
tion flags to struct
supersect
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey Br
i
an Arnold
Rem
o
v
e
t
em
p
orary m
y
s
t
e
ry relocs after running run_pre
_
cmp
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim
Abbott
Give a s
l
ightly bett
e
r error message when
p
rimar
y
loading
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Avoi
d
conflict with STR macro
i
n s
o
me kernels
.
commit
|
commitdiff
|
tree
2008-09-12
Tim
A
bbo
t
t
T
i
ghten a regular expr
e
ssion
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Check whether
t
h
e
t
a
rget module of a ksplic
e
upda
t
e
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey Brian Arnold
Obtain mod
u
l
e
_
text_address
f
r
om running kernel vi
a
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey Brian Arnold
M
ak
e
ma
n
y fun
c
tions static
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Restructure other
_
modu
l
e_l
o
okup to impro
v
e line
w
rapping
.
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey
B
r
i
an Arnold
Incl
u
de
k
sp
l
ice
.
h from userspace
t
o
avoid code duplication
.
commit
|
commitdiff
|
tree
2008-09-12
J
e
ffrey Brian Arnold
Mo
v
e code from kspl
i
ce
.
h to k
s
plice
.
c
.
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey Brian Ar
n
old
Re
m
ove obso
l
ete
p
ostdir option
.
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey
B
rian Arnold
Make
m
any var
i
abl
e
s
unsign
e
d
.
commit
|
commitdiff
|
tree
2008-09-12
Jef
f
rey
B
rian Ar
n
o
ld
Simplify run_pre_cmp's varia
b
les
.
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey
Brian Arnold
I
m
p
r
ove kernel module's types and r
e
l
ocat
i
on
h
a
ndling
.
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey
B
r
i
an Arn
o
ld
Improve ob
j
manip's types a
n
d relocati
o
n handling
.
commit
|
commitdiff
|
tree
2008-09-12
A
n
ders Kaseorg
Add a
-
-
id
option to ksplice-cr
e
a
te
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Cast KSPLICE
_
IP to
long on x8
6
_64
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
ders Kase
o
r
g
Repl
a
ce "%08lx" with "%" ADDR to support
both 32-bit
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Don't
m
utate
t
he offs
e
ts in handle_m
y
st_reloc
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbo
t
t
Print n
o
ps
i
n run-pre
m
atching
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abb
o
tt
Return the
n
u
mber of nops
m
atched instead of
m
utating
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Ti
m
Abbo
t
t
Use k
s
deb
u
g rather than prin
t
k in
handle_
m
yst_rel
o
c
.
commit
|
commitdiff
|
tree
2008-09-12
T
im Abbott
Make debug part
o
f module_pack; rename ksplice_
d
ebug
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
T
im Abb
o
tt
M
ake ha
n
dle_myst_reloc get a mo
d
ule
_
pack
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abb
o
t
t
Remove
debuggin
g
output fro
m
use_module (it
i
sn'
t
pr
i
nte
d
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Appl
y
parav
i
rt re
p
lacements on bugg
y
x86-6
4
k
e
rnels
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders
K
aseorg
Have the helper mo
d
ule i
n
se
r
t fields directly
i
nto
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Ande
r
s Kaseorg
Add the targe
t
mo
d
ule name
to module_pa
c
k
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
der
s
Kaseorg
M
a
ke
match_n
o
p and
r
un_pre_cm
p
static
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
der
s
Kaseorg
Store supe
r
sect pointer
in
se
c
tion->userda
t
a
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Remove unused blank_sect_na
m
e and blank_sec
t
_addr from
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
S
t
or
e
the
r
elocation address in str
u
c
t ksplice_rel
o
c
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders K
a
seorg
Remo
v
e now-unneede
d
globalize
p
a
s
s
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseor
g
Remove now-unus
e
d parse_and_save code
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
And
e
rs Kas
e
org
C
onsolidate S
y
stem
.
map parsing in
ksplice
.
pl
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Mo
v
e ksplice_pa
t
c
h generation into o
b
jmanip
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Ander
s
K
as
e
org
Move ksplice_s
i
ze gene
r
a
tio
n
into
o
bjmanip
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Ander
s
Kaseor
g
M
o
v
e
ksplice_reloc generat
i
on into obj
m
a
nip
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Add System
.
map reading c
o
de to objmanip
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
New
h
ash
ta
b
le in
t
erface
for objcom
m
on
.
h, based
o
n
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
ders Kaseorg
Add infras
t
r
u
c
t
u
re for writing new
sectio
n
s
in o
b
jmanip
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Ka
s
eorg
Sto
r
e ali
g
nment as an
expon
e
nt
b
a
se 2,
l
ike bfd
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kase
o
rg
Convert
symbol
tables to vector i
n
terface
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
C
o
n
vert se
c
tion c
o
ntents
a
nd
re
l
ocation t
a
bles
t
o
vector
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
d
er
s
Kaseorg
New vecto
r
interface for ob
j
commo
n
.
h
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Mov
e
objmanip invocation
s
to ksplice
.
p
l
a
nd apply th
e
m
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Ander
s
Kase
o
rg
Make match_nop and
r
un_pre_cmp not static
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Ander
s
Kaseorg
Rename
s
ect
i
ons
‘
.
ks
p
lice
.
ksplice_foo’ to ‘
.
ksplice_foo’
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Use local
labels in sa
v
e_using_asm
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders
Kaseor
g
Re
p
lace
NU
L
L
t
erminator on relocs, sizes
,
a
n
d patches
.
.
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
An
d
ers Kaseorg
Send errors
to
stderr
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Jeffrey
B
ria
n
Arnold
Fix i
n
dentat
i
o
n of
bfd configure
o
ptions
.
commit
|
commitdiff
|
tree
2008-09-12
Je
f
f
rey B
r
ian Arnold
Remove obsole
t
e checks
.
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Do
n
't
r
m
mo
d
if
CON
F
I
G_MODULE_UNLOAD=n
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
Make k
s
pl
i
c
e-apply
n
ot comp
l
ain
when
C
ONFIG_MODULE_
U
N
L
OAD=n
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Anders Kaseorg
Clean up
k
splice-
v
i
e
w a
n
d kspli
c
e-undo interface
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
A
n
de
r
s
Kaseorg
Move the d
e
finition of ks
p
lice
_
kcalloc above
i
ts use
.
Signed-off-by:
Anders Kaseorg
<andersk@mit.edu>
commit
|
commitdiff
|
tree
2008-09-12
Tim Abb
o
tt
brute_sear
c
h
the core kernel
i
n
addition
to
m
odules
.
commit
|
commitdiff
|
tree
2008-09-12
T
i
m Ab
b
ott
Print out t
h
e names of sections t
h
at c
a
nnot
b
e matched
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Ab
b
ott
Add debu
g
ging output to br
u
te_search_all_mods
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Ab
b
o
tt
Make search_for_matc
h
s
u
cc
e
ed
i
f brute_search_all_mods
.
.
.
commit
|
commitdiff
|
tree
2008-09-12
Tim Abbott
F
i
x a b
u
g w
h
er
e
brut
e
_
s
e
a
rch on
l
y searc
h
es at the st
a
rt
.
.
.
commit
|
commitdiff
|
tree
next