The NetBSD Project

CVS log for src/sys/kern/subr_kobj.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Apr 28 07:33:57 2023 UTC (21 months, 2 weeks ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +14 -4 lines
Pass local symbols relocations in both passes and provide the kobj_reloc
implementation visibility of these relocations.

Currently all implementations resolve local symbol relocations in the first
pass and simply skip them in the second. The RISC-V implementation will
make use of this visiblity.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Apr 17 08:14:51 2023 UTC (21 months, 4 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -3 lines
KNF

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Jan 29 17:20:48 2023 UTC (2 years ago) by skrll
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -4 lines
Trailing whitespace

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Oct 26 23:26:45 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -4 lines
kern/subr_kobj.c: We already get module_base from sys/module.h.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Oct 26 23:22:07 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -4 lines
sys/*: Get module_map consistently from sys/module.h.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Oct 15 15:28:23 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +44 -32 lines
kobj(9): Rephrase kobj_load and kobj_affix positively.

Write error cases as branches, normal cases as straight-line code.

Side effect: One fewer call to kobj_jettison in case of error in
kobj_affix, but it already calls kobj_jettison once in the error case
via kobj_unload, which does kobj_jettison itself, and kobj_jettison
is idempotent.

No functional change intended.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Oct 15 15:27:20 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +10 -18 lines
kobj(9): Fix kobj_read_mem error branches.

Rewrite positively to simplify logic: Write errors as branches,
normal case as straight-line code.

In the case where allocate=true but arithmetic overflow occurs, this
avoids trying to kmem_free null, which is forbidden.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat Oct 15 15:23:24 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -3 lines
kobj(9): Avoid arithmetic overflow in overflow detection.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Oct 15 15:22:27 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +8 -3 lines
kobj(9): Forbid reading negative offsets.

Shouldn't have any functional change, but let's fail with EINVAL
rather than reading arbitrarily distant memory.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Aug 21 23:00:32 2021 UTC (3 years, 5 months ago) by andvar
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
fix mainly same typos as in my previous commit but outside sys/dev/dm.

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:33 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +15 -5 lines
Sync w/ HEAD.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Jun 9 15:15:35 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +15 -5 lines
Work around abs rela relocations issue (for now):

$ readelf -r compat_linux
...
Relocation section '.rela.data' at offset 0x37270 contains 537 entries:
Offset          Info           Type           Sym. Value    Sym. Name + Addend
...
000000000040  000000000001 R_X86_64_64                          0
000000000048  000000000001 R_X86_64_64                          0
...

$ objdump -r compat_linux
...
RELOCATION RECORDS FOR [.data]:
OFFSET           TYPE              VALUE
...
0000000000000040 R_X86_64_64       *ABS*
0000000000000048 R_X86_64_64       *ABS*
...

Since those have symidx == 0, and the 0 symbol table entry is special,
treat them as SHN_ABS.

Change ENOENT -> ENOEXEC to avoid confusion (like other linking errors),
and add some debugging when that happens.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Jun 27 17:27:59 2020 UTC (4 years, 7 months ago) by christos
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +14 -7 lines
print the index of the problematic symbol

Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:04 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +3 -2 lines
Sync with HEAD

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Jun 23 14:22:30 2018 UTC (6 years, 7 months ago) by jakllsch
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -2 lines
add a kobj_error() to a recently added error case

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 3 21:11:40 2018 UTC (7 years, 1 month ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +3 -3 lines
Pull up following revision(s) (requested by pgoyette in ticket #1539):
	sys/kern/subr_kobj.c: revision 1.52
Compare names of duplicate symbols properly, so we correctly return
an error status.
Fixes PR kern/45125 with patch supplied by Akinobu  Mita

Revision 1.50.10.1: download - view: text, markup, annotated - select for diffs
Wed Jan 3 21:11:38 2018 UTC (7 years, 1 month ago) by snj
Branches: netbsd-7-1
CVS tags: netbsd-7-1-2-RELEASE
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +3 -3 lines
Pull up following revision(s) (requested by pgoyette in ticket #1539):
	sys/kern/subr_kobj.c: revision 1.52
Compare names of duplicate symbols properly, so we correctly return
an error status.
Fixes PR kern/45125 with patch supplied by Akinobu  Mita

Revision 1.50.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 3 21:11:37 2018 UTC (7 years, 1 month ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +3 -3 lines
Pull up following revision(s) (requested by pgoyette in ticket #1539):
	sys/kern/subr_kobj.c: revision 1.52
Compare names of duplicate symbols properly, so we correctly return
an error status.
Fixes PR kern/45125 with patch supplied by Akinobu  Mita

Revision 1.44.12.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (7 years, 2 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.44.12.2: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.12.2: +223 -110 lines
update from HEAD

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Nov 4 22:17:55 2017 UTC (7 years, 3 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
use Elf_Sym ** instead of casting.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Nov 4 12:14:41 2017 UTC (7 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Make kobj_sym_lookup's result type an Elf_Addr.
Fixes the arm builds.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Nov 3 09:59:07 2017 UTC (7 years, 3 months ago) by maxv
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +34 -18 lines
Handle absolute relocations coming from the kernel: preserve SHN_ABS in
the kernel and module symbols, and when relocating a symbol that has
SHN_ABS, take its value as-is and don't return an error if it equals zero.

Sent on tech-kern@.

Revision 1.50.4.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:07 2017 UTC (7 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.50.4.3: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.4.3: +56 -61 lines
Sync with HEAD

Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:13 2017 UTC (7 years, 8 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -6 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.55.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:27 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.55.2.2: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.2: +56 -57 lines
Sync with HEAD

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:02 2017 UTC (7 years, 9 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +56 -57 lines
Sync with HEAD

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Apr 19 15:54:45 2017 UTC (7 years, 9 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +33 -38 lines
simplify.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Apr 19 06:19:02 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +32 -28 lines
Be consistent about checking for text section address being 0, and
don't ignore errors by falling through to the next section(s).

As discussed on tech-kern@

Revision 1.50.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:03 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.50.4.2: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.4.2: +102 -31 lines
Sync with HEAD

Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:09 2016 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.2.1: +77 -60 lines
Sync with HEAD

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Aug 2 12:23:08 2016 UTC (8 years, 6 months ago) by martin
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +12 -13 lines
kobj_machdep() needs a chance to moify the loaded code, so move the code
to protect it read-only a bit later.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Aug 1 15:41:05 2016 UTC (8 years, 6 months ago) by maxv
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +72 -54 lines
Don't fail if a module does not have a data or rodata section. Small
modules don't have data.

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:23 2016 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +56 -2 lines
Sync with HEAD

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Jul 20 13:36:19 2016 UTC (8 years, 6 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-localcount-20160726
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +52 -2 lines
Split the data+bss+rodata segment in two data+bss and rodata segments. The
latter is made read-only.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Jul 20 13:11:58 2016 UTC (8 years, 6 months ago) by maxv
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -2 lines
Change the protection of the kernel modules segments once we are done
relocating them. The text is allocated as RWX, and then mprotected to RW.

There is a bug that prevents us from doing RW->RX on amd64 and perhaps
sparc64. On x86, the pmap waits for the page to fault before granting it
the X permission. But in the trap handler, such a page is considered as
belonging to kernel_map, while it actually belongs to module_map. The
kernel then finds out the page is not present in kernel_map, and panics.
In all cases, module_map is non pageable, so even if the trap were handled
properly, it still wouldn't work.

Therefore, there is a small window in which the segment is RWX. But that's
fine enough, for now.

Revision 1.50.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:20 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.50.4.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.4.1: +116 -87 lines
Sync with HEAD

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Jul 9 07:25:00 2016 UTC (8 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-localcount-base, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +91 -47 lines
When loading a module from VFS and from the bootloader, the kernel packs
up the module segments into one big RWX chunk. Split this chunk into two
different text and data+bss+rodata chunks. The latter is made non-
executable. This also provides some kind of ASLR, since the chunks are
not necessarily contiguous.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Jul 8 08:55:48 2016 UTC (8 years, 7 months ago) by maxv
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +34 -49 lines
Force the kernel to dynamically reallocate the preloaded modules.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:43 2016 UTC (8 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
KNF. Remove extra spaces. No functional change.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue May 31 03:57:04 2016 UTC (8 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
Compare names of duplicate symbols properly, so we correctly return
an error status.

Fixes PR kern/45125 with patch supplied by Akinobu  Mita

Revision 1.50.4.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:07 2015 UTC (9 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2 lines
Sync with HEAD

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:50:32 2015 UTC (9 years, 5 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2 lines
to garnish, dust with _KERNEL_OPT

Revision 1.44.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.44.12.1: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.12.1: +103 -85 lines
Rebase to HEAD as of a few days ago.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:58 2014 UTC (10 years, 6 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +80 -79 lines
Rebase.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Jul 16 13:26:33 2014 UTC (10 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +11 -12 lines
Keep setting 'error' as appropriate (even if this place is broken enough
to crash in many other ways...)

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Jul 9 05:50:51 2014 UTC (10 years, 7 months ago) by maxv
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +25 -14 lines
 - limit the number of sections with ELF_MAXSHNUM
 - fix the (symstrindex > hdr->e_shnum) check: it should be >=, otherwise there's an
   off-by-one
 - fix the (symstrindex < 0) check: the value is unsigned, so it can't be <0. However,
   we should ensure that symstrindex!=0 (done with SHN_UNDEF)
 - set 'error' as appropriate
 - ensure that e_shstrndx < hdr->e_shnum, to prevent out-of-bound reads

Fixes several crashes that could occur when loading a kernel module.

Quick glance from martin@

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Jul 6 15:35:32 2014 UTC (10 years, 7 months ago) by maxv
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -8 lines
Remove this (symtabindex == -1) check; it is already handled by (nsym != 1).
Put a KASSERT instead.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Jul 6 15:22:31 2014 UTC (10 years, 7 months ago) by maxv
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +54 -59 lines
Use a macro instead of always putting __func__ and __LINE__.

Revision 1.44.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.44.2.1: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.2.1: +25 -8 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:35 2013 UTC (11 years, 5 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +25 -8 lines
sync with head

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Aug 9 05:10:14 2013 UTC (11 years, 6 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +25 -8 lines
Ignore REL/RELA if they aren't against a PROGBIT section.
(this causes EXIDX sections to be ignored for ARM).

Revision 1.44.12.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:53 2013 UTC (11 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
resync with head

Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:22 2013 UTC (12 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
sync with head

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Dec 30 20:52:20 2012 UTC (12 years, 1 month ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base8, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
size_t needs to printed with %zu

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Aug 13 21:04:06 2011 UTC (13 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +106 -40 lines
Always provide a meaningful short name for the kobj in the error message,
as well as the function name and the linenumber, without extra line feeds.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Jul 17 20:54:52 2011 UTC (13 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -4 lines
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:34 2011 UTC (13 years, 8 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +5 -3 lines
Sync with HEAD.

Revision 1.40.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:18 2011 UTC (13 years, 11 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.40.4.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.4.1: +5 -3 lines
sync with head

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Jan 18 08:15:51 2011 UTC (14 years ago) by matt
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +5 -3 lines
Deal with ELFnn_MACHDEP_ID_CASES a bit better.

Revision 1.10.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:42 2010 UTC (14 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.4: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.4: +11 -2 lines
sync with head.

Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:58 2010 UTC (14 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +11 -2 lines
sync with head

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:12 2010 UTC (14 years, 9 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +11 -2 lines
Sync with HEAD.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Apr 26 22:58:53 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +11 -2 lines
Add an optional hook for adjusting module string table after load.
Currently to be used for rump "SAOS" namespace trick.

Revision 1.24.4.1.2.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:28:17 2010 UTC (14 years, 9 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.24.4.1.2.1: preferred, colored; next MAIN 1.24.4.2: preferred, colored
Changes since revision 1.24.4.1.2.1: +2 -2 lines
sync to netbsd-5

Revision 1.10.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:18 2010 UTC (14 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.3: +51 -164 lines
sync with head

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Nov 27 17:54:11 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +51 -164 lines
Due to the schizophrenic nature of kobj (mem + vfs source),
split the module in twain to subj_kobj.c (master + mem) and
subr_kobj_vfs.c (vfs).

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:35 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.1: +24 -99 lines
Sync with HEAD.

Revision 1.10.4.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:31 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.2: +24 -99 lines
sync with head

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Jun 17 21:04:25 2009 UTC (15 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base, jym-xensuspend-nbase
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -5 lines
Make kobj_stat() return ENOSYS instead of panicking ("not modular")
on non-MODULAR kernels.  Make a few kobj_stat() callers check for
a non-zero return code and deal gracefully.

Revision 1.24.4.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 17 20:21:14 2009 UTC (15 years, 8 months ago) by bouyer
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.24.4.1: preferred, colored; next MAIN 1.24.4.2: preferred, colored
Changes since revision 1.24.4.1: +14 -14 lines
Pull up following revision(s) (requested by rmind in ticket #809):
	sys/kern/subr_kobj.c: revision 1.35
Fix a crash observed when trying to load a corrupted ELF image.

Revision 1.24.4.2: download - view: text, markup, annotated - select for diffs
Wed Jun 17 20:20:54 2009 UTC (15 years, 8 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.24.4.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.4.1: +14 -14 lines
Pull up following revision(s) (requested by rmind in ticket #809):
	sys/kern/subr_kobj.c: revision 1.35
Fix a crash observed when trying to load a corrupted ELF image.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue May 26 08:34:23 2009 UTC (15 years, 8 months ago) by jnemeth
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -5 lines
Move all namei flags handling into kobj_load_file().

When I originally wrote this, I was going for maximum flexibility.
However, after a private discussion with dholland@, I see how this
will cause problems with the future world order of namei whenever
that might be.  At the moment, I don't need the extra flexibility,
but if something comes up this may have to be revisited.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon May 25 22:33:00 2009 UTC (15 years, 8 months ago) by jnemeth
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +6 -24 lines
Phase 0.5 of my options MODULAR enhancements.  As suggested by ad@,
these commits move all path handling into module_do_load() from
kobj_load_file().  This way the final path used to load a module
is available for loading <module>.plist, which will store parameters
for a module.  The end goal of this project is good support for
MODULAR device drivers.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun May 24 15:00:24 2009 UTC (15 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -62 lines
Split out kobj structures so crash/ddb can get at them.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat May 23 15:13:57 2009 UTC (15 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +14 -14 lines
Fix a crash observed when trying to load a corrupted ELF image.

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:57 2009 UTC (15 years, 9 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -2 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:48 2009 UTC (15 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.1: +208 -128 lines
sync with head.

Revision 1.24.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:00 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.24.2.2: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.2: +3 -2 lines
Sync with HEAD.

Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:56 2009 UTC (15 years, 11 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.1: +3 -2 lines
Sync with HEAD.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Feb 13 22:41:04 2009 UTC (16 years ago) by apb
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jym-xensuspend-base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -2 lines
Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.

Revision 1.24.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 2 02:27:22 2009 UTC (16 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2
Branch point for: netbsd-5-0
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -4 lines
Pull up following revision(s) (requested by ad in ticket #336):
	sys/kern/subr_kobj.c: revision 1.27 via patch
Use NOCHROOT when doing the lookup against the standard module path.
Prevents abuse of chroots to load tainted kernel modules.

Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:39 2009 UTC (16 years ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +64 -52 lines
Sync with HEAD.

Revision 1.9.10.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:19 2009 UTC (16 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.9.10.2: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.10.2: +111 -39 lines
Sync with HEAD.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jan 8 01:03:24 2009 UTC (16 years, 1 month ago) by pooka
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -3 lines
Sprinkle comments explaining purpose of kobj_machdep(), per email from ad.
no functional change

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jan 1 22:17:55 2009 UTC (16 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +6 -6 lines
revert previous, disabled aliasing in offending build

(XXX: two evil casts in the original)

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jan 1 21:35:22 2009 UTC (16 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -7 lines
Squelch type-punning warnings with void * casts.  We are allowed
to do this because the pointers do not have aliases.

Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:08 2008 UTC (16 years, 2 months ago) by haad
Branches: haad-dm
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.1: +103 -38 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Nov 16 16:23:58 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +21 -12 lines
Another fix to previous.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Nov 16 14:55:42 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Correction to previous.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Nov 16 11:26:28 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +34 -28 lines
Do not look up any given symbol more than once. Does away with the vast
majority of symbol table lookups.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Nov 14 22:00:23 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
Use NOCHROOT when doing the lookup against the standard module path.
Prevents abuse of chroots to load tainted kernel modules.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Nov 12 14:22:17 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -10 lines
Don't try appending ".o" to the module path.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:16 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +12 -11 lines
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Oct 20 20:07:35 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
Correct an error message.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Oct 20 10:24:18 2008 UTC (16 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +70 -13 lines
PR kern/38814 ksyms needs locking

- Make ksyms MT safe.
- Fix deadlock from an operation like "modload foo.lkm < /dev/ksyms".
- Fix uninitialized structure members.
- Reduce memory footprint for loaded modules.
- Export ksyms structures for kernel grovellers like savecore.
- Some KNF.

Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:28 2008 UTC (16 years, 3 months ago) by haad
Branches: haad-dm
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -3 lines
Sync with HEAD.

Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:34:14 2008 UTC (16 years, 4 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.1: +6 -3 lines
Sync with HEAD.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Oct 6 10:46:58 2008 UTC (16 years, 4 months ago) by ad
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, haad-dm-base1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -3 lines
kobj_read: plug a leak.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:51 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +105 -99 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:39 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.1: +105 -99 lines
sync with head

Revision 1.9.10.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:11 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.9.10.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.10.1: +242 -187 lines
Sync with HEAD.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue May 20 19:20:38 2008 UTC (16 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -5 lines
If autoloading a module, don't consider the current working directory.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue May 20 16:18:51 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
fix !MODULAR compiles

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue May 20 14:11:55 2008 UTC (16 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +11 -9 lines
PR kern/38694 module dependencies do not work as expected

Autoload modules from the correct path based on kernel version.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 20 13:34:44 2008 UTC (16 years, 8 months ago) by ad
Branches: MAIN
CVS tags: hpcarm-cleanup-nbase
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +95 -93 lines
- Do local relocs before loading requisite modules, and all others only
  after requisite modules have been loaded. For PR kern/38697.
- Simplify kobj interface slightly to make error handling easier.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon May 19 17:33:42 2008 UTC (16 years, 8 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -2 lines
If we see a non-loadable BSS section in a pre-loaded module, make sure we
don't return success from kobj_load or nasty things will happen.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:09 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +146 -97 lines
sync with head.

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:26 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +146 -97 lines
sync with head.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun May 4 12:51:44 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -5 lines
Make it compile as part of librump.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat May 3 15:57:17 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -5 lines
Broken assertions.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri May 2 13:00:01 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -13 lines
Keep the program table and section strings around after loading the object,
since module_find_section() needs them.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu May 1 17:07:10 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +33 -17 lines
Another fix for pre-loaded modules.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu May 1 14:44:48 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +105 -63 lines
Get the pre-loaded module code working.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:04 2008 UTC (16 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.9.10.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:03 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Sync with HEAD.

Revision 1.9.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:02 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.2.2: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.2: +3 -3 lines
sync with head.

Revision 1.7.4.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:00 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.7.4.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.2: +91 -25 lines
sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:55:00 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:47 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.1: +1097 -0 lines
Sync with HEAD.

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:46:18 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.1: +1097 -0 lines
sync with head

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:24 2008 UTC (17 years ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.2: +89 -23 lines
Sync with HEAD

Revision 1.9.4.1
Thu Jan 17 22:32:49 2008 UTC (17 years ago) by mjf
Branches: mjf-devfs
FILE REMOVED
Changes since revision 1.9: +0 -1097 lines
file subr_kobj.c was added on branch mjf-devfs on 2008-02-18 21:06:47 +0000

Revision 1.9.2.1
Thu Jan 17 22:32:49 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.9: +0 -1097 lines
file subr_kobj.c was added on branch yamt-lazymbuf on 2008-01-21 09:46:18 +0000

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jan 17 22:32:49 2008 UTC (17 years ago) by rumble
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: yamt-lazymbuf, mjf-devfs2, mjf-devfs
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -2 lines
Before bailing on ENOENT, try one more time with an appended ".o". This
lets us load dependencies by module name and makes 'modload foo' work when
'foo.o' is the file.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jan 12 23:35:58 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +86 -25 lines
Add a function to look up a section by name and return address/size, and
nuke return of object entrypoint from kobj_stat(). It's a lot easier to
denote the module entypoint using a linkset.

Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:16 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.1: +1031 -0 lines
sync with HEAD

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:39 2008 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +1031 -0 lines
Sync with HEAD

Revision 1.7.4.1
Mon Jan 7 20:42:48 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.7: +0 -1031 lines
file subr_kobj.c was added on branch matt-armv6 on 2008-01-09 01:56:16 +0000

Revision 1.7.2.1
Mon Jan 7 20:42:48 2008 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xeni386
FILE REMOVED
Changes since revision 1.7: +0 -1031 lines
file subr_kobj.c was added on branch bouyer-xeni386 on 2008-01-08 22:11:39 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jan 7 20:42:48 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base
Branch point for: matt-armv6, bouyer-xeni386
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -5 lines
Fix build if !MODULAR. Reported by elad@.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 7 18:25:56 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +21 -24 lines
Don't both about module name / ksyms until the name is known for sure.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jan 6 18:03:58 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +59 -2 lines
Add MODULAR option. Include kernel linker stuff if MODULAR.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jan 6 15:13:07 2008 UTC (17 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
Fix off-by-one in kobj_read range checking for case KT_MEMORY

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Jan 6 14:47:26 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +182 -58 lines
- Allow loading ELF objects from memory. Based on a patch from jmcneill.
- Allow for changing object name later, once known.
- Split open/load of the objects.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Jan 4 14:53:33 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +42 -9 lines
Add a kobj_stat() to get basic info about the object, and some other
minor changes.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jan 4 12:26:20 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
Add a simple in-kernel linker, derived from FreeBSD's link_elf_obj.c. Needs
more work but is enough to load simple LKMs. amd64 is untested.

Locking is caller provided. This is decoupled from the LKM framework because
kernel modules need not be loaded from the file system - they could be built
into the kernel and referenced via link set.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>