The NetBSD Project

CVS log for src/sys/modules/lua/lua.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.28.10.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:27:55 2026 UTC (11 days, 13 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.28: +13 -1 lines
Sync with HEAD

Revision 1.24.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 29 20:00:04 2026 UTC (4 months, 2 weeks ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.24: +13 -1 lines
Pull up following revision(s) (requested by riastradh in ticket #2024):

	sys/modules/lua/lua.c: revision 1.29
	distrib/sets/lists/tests/mi: revision 1.1422
	tests/kernel/t_lua.c: revision 1.1
	etc/MAKEDEV.tmpl: revision 1.239
	distrib/sets/lists/debug/mi: revision 1.514
	tests/kernel/Makefile: revision 1.97
	sys/sys/lua.h: revision 1.10

MAKEDEV: Set default perms on /dev/lua to 0600.

Otherwise unprivileged users can submit Lua code into the kernel, if
lua.kmod is loaded (which doesn't happen by default, not even
autoloaded on demand).
PR misc/60375: lua.kmod enables local privilege escalation


lua(4): Fix and test some issues.

- Require read permission for LUAINFO.
- Require write permission for all others:
  . LUACREATE
  . LUADESTROY
  . LUALOAD
  . LUAREQUIRE
- Don't panic in LUAINFO if there's zero states.
- Add missing sys/stdbool.h in sys/lua.h.

This is not a real test suite for lua.kmod -- it doesn't verify the
module does anything useful; it just verifies that _if_ you go out of
your way to load the experimental kernel module, it doesn't enable
unprivileged users to wreak havoc with /dev/lua.

PR misc/60375: lua.kmod enables local privilege escalation

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 29 19:55:51 2026 UTC (4 months, 2 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.28: +13 -1 lines
Pull up following revision(s) (requested by riastradh in ticket #1294):

	sys/modules/lua/lua.c: revision 1.29
	distrib/sets/lists/tests/mi: revision 1.1422
	tests/kernel/t_lua.c: revision 1.1
	etc/MAKEDEV.tmpl: revision 1.239
	distrib/sets/lists/debug/mi: revision 1.514
	tests/kernel/Makefile: revision 1.97
	sys/sys/lua.h: revision 1.10

MAKEDEV: Set default perms on /dev/lua to 0600.

Otherwise unprivileged users can submit Lua code into the kernel, if
lua.kmod is loaded (which doesn't happen by default, not even
autoloaded on demand).
PR misc/60375: lua.kmod enables local privilege escalation


lua(4): Fix and test some issues.

- Require read permission for LUAINFO.
- Require write permission for all others:
  . LUACREATE
  . LUADESTROY
  . LUALOAD
  . LUAREQUIRE
- Don't panic in LUAINFO if there's zero states.
- Add missing sys/stdbool.h in sys/lua.h.

This is not a real test suite for lua.kmod -- it doesn't verify the
module does anything useful; it just verifies that _if_ you go out of
your way to load the experimental kernel module, it doesn't enable
unprivileged users to wreak havoc with /dev/lua.

PR misc/60375: lua.kmod enables local privilege escalation

Revision 1.28.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 29 19:52:22 2026 UTC (4 months, 2 weeks ago) by martin
Branches: netbsd-11
CVS tags: netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.28: +13 -1 lines
Pull up following revision(s) (requested by riastradh in ticket #350):

	sys/modules/lua/lua.c: revision 1.29
	distrib/sets/lists/tests/mi: revision 1.1422
	tests/kernel/t_lua.c: revision 1.1
	etc/MAKEDEV.tmpl: revision 1.239
	distrib/sets/lists/debug/mi: revision 1.514
	tests/kernel/Makefile: revision 1.97
	sys/sys/lua.h: revision 1.10

MAKEDEV: Set default perms on /dev/lua to 0600.

Otherwise unprivileged users can submit Lua code into the kernel, if
lua.kmod is loaded (which doesn't happen by default, not even
autoloaded on demand).
PR misc/60375: lua.kmod enables local privilege escalation


lua(4): Fix and test some issues.

- Require read permission for LUAINFO.
- Require write permission for all others:
  . LUACREATE
  . LUADESTROY
  . LUALOAD
  . LUAREQUIRE
- Don't panic in LUAINFO if there's zero states.
- Add missing sys/stdbool.h in sys/lua.h.

This is not a real test suite for lua.kmod -- it doesn't verify the
module does anything useful; it just verifies that _if_ you go out of
your way to load the experimental kernel module, it doesn't enable
unprivileged users to wreak havoc with /dev/lua.

PR misc/60375: lua.kmod enables local privilege escalation

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Jun 27 20:05:06 2026 UTC (4 months, 2 weeks ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.28: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.28: +13 -1 lines
lua(4): Fix and test some issues.

- Require read permission for LUAINFO.
- Require write permission for all others:
  . LUACREATE
  . LUADESTROY
  . LUALOAD
  . LUAREQUIRE
- Don't panic in LUAINFO if there's zero states.
- Add missing sys/stdbool.h in sys/lua.h.

This is not a real test suite for lua.kmod -- it doesn't verify the
module does anything useful; it just verifies that _if_ you go out of
your way to load the experimental kernel module, it doesn't enable
unprivileged users to wreak havoc with /dev/lua.

PR misc/60375: lua.kmod enables local privilege escalation

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:17 2022 UTC (4 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-11-base, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: perseant-exfatfs, netbsd-11, netbsd-10
Diff to: previous 1.27: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.27: +14 -11 lines
For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Aug 8 22:26:32 2021 UTC (5 years, 3 months ago) by rin
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.26: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.26: +7 -5 lines
Fix LIST operations, found by strictly-aligned CPUs, i.e., ARMv5 and IBM403:
- Initialize LIST_HEAD.
- Use LIST_FOREACH_SAFE() where necessary.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Aug 7 04:19:31 2021 UTC (5 years, 3 months ago) by rin
Branches: MAIN
Diff to: previous 1.25: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.25: +7 -3 lines
Make sure that buffers allocated by lua_alloc() are aligned to 8-byte
boundaries as done by kmem_alloc(9).

Fix alignment faults on armv5te; GCC emits ldrd/strd instructions for
memory operands that are guaranteed to be aligned properly.

Drop unnecessary __packed attribute from alloc_header_t at the same time.

Revision 1.24.20.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:40 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.24: +12 -12 lines
Sync with HEAD.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jun 29 22:40:53 2021 UTC (5 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Diff to: previous 1.24: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.24: +12 -12 lines
Add containment for the cloning devices hack in vn_open.

Cloning devices (and also things like /dev/stderr) work by allocating
a struct file, stuffing it in the file table (which is a layer
violation), stuffing the file descriptor number for it in a magic
field of struct lwp (which is gross), and then "failing" with one of
two magic errnos, EDUPFD or EMOVEFD.

Before this commit, all callers of vn_open in the kernel (there are
quite a few) were expected to check for these errors and handle the
situation. Needless to say, none of them except for open() itself did,
resulting in internal negative errnos being returned to userspace.

This hack is fairly deeply rooted and cannot be eliminated all at
once. This commit adds logic to handle the magic errnos inside
vn_open; now on success vn_open returns either a vnode or an integer
file descriptor, along with a flag that says whether the underlying
code requested EDUPFD or EMOVEFD. Callers not prepared to cope with
file descriptors can pass NULL for the extra return values, in which
case if a file descriptor would be produced vn_open fails with
EOPNOTSUPP.

Since I'm rearranging vn_open's signature anyway, stop exposing struct
nameidata. Instead, take three arguments: an optional vnode to use as
the starting point (like openat()), the path, and additional namei
flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei
behavior, e.g. NOFOLLOW, can be requested via the open flags.)

This change requires a kernel bump. Ride the one an hour ago.
(That was supposed to be coordinated; did not intend to let an hour
slip by. My fault.)

Revision 1.13.2.7: download - view: text, markup, annotated - select for diffs
Sun Feb 25 22:59:28 2018 UTC (8 years, 8 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.13.2.6: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.2.6: +27 -10 lines
Pull up following revision(s) (requested by sevan in ticket #1545):
	sys/modules/lua/lua.c: up to 1.24
whitespace, knf, comments, but no functional change
--
lua(4): fixed require
--
plug leak on error. Reported by:
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4
--
fix double require bug
--
Use aprint*() instead of printf() in xxx_attach().
--
Check pmf_device_register return value. NFC
Appeases static analyzers.
Can't destroy pb until we're done using it.
--
Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
are arrays, not pointers, so don't use copyoutstr on them, but instead
copyin/copyout the whole array of structures.
Fixes PR 52864 for me (on sparc64).

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 7 09:27:32 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
CVS tags: 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
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.23: +18 -6 lines
Pull up following revision(s) (requested by sevan in ticket #469):
	sys/modules/lua/lua.c: revision 1.24
Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
are arrays, not pointers, so don't use copyoutstr on them, but instead
copyin/copyout the whole array of structures.
Fixes PR 52864 for me (on sparc64).

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Dec 26 12:43:59 2017 UTC (8 years, 10 months ago) by martin
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, 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, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, 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, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, 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
Branch point for: thorpej-i2c-spi-conf, netbsd-9
Diff to: previous 1.23: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.23: +18 -6 lines
Fix cargo cult ioctl implementation for LUAINFO: the name and desc fields
are arrays, not pointers, so don't use copyoutstr on them, but instead
copyin/copyout the whole array of structures.
Fixes PR 52864 for me (on sparc64).

Revision 1.13.4.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:57 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.13.4.2: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.4.2: +32 -10 lines
update from HEAD

Revision 1.14.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:10 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14.2.4: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.14.2.4: +10 -4 lines
Sync with HEAD

Revision 1.13.2.6: download - view: text, markup, annotated - select for diffs
Sun Jul 23 06:03:30 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.13.2.5: preferred, colored; branchpoint 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.2.5: +5 -5 lines
Pull up following revision(s) (requested by mbalmer in ticket #1423):
	sys/modules/lua/lua.c: revision 1.23
always put the module on the stack

Revision 1.13.2.5: download - view: text, markup, annotated - select for diffs
Sun Jul 23 06:00:39 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.13.2.4: preferred, colored; branchpoint 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.2.4: +6 -2 lines
Pull up following revision(s) (requested by mbalmer in ticket #1422):
	sys/modules/lua/lua.c: revision 1.22 via patch
Only load a module if it is not already loaded in a state (much like
userland Lua handles require).
Fixes PR kern/52226.

Revision 1.13.2.3.4.1: download - view: text, markup, annotated - select for diffs
Sun Jul 23 05:56:36 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-7-1
CVS tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Diff to: previous 1.13.2.3: preferred, colored; next MAIN 1.13.2.4: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.2.3: +4 -2 lines
Pull up following revision(s) (requested by mbalmer in ticket #1418):
	sys/modules/lua/lua.c: revision 1.21
Avoid possible null pointer dereferencing.
Fixes PR kern/52225.

Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 23 05:55:03 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.2.3: +4 -2 lines
Pull up following revision(s) (requested by mbalmer in ticket #1418):
	sys/modules/lua/lua.c: revision 1.21
Avoid possible null pointer dereferencing.
Fixes PR kern/52225.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat May 20 09:46:17 2017 UTC (9 years, 5 months ago) by mbalmer
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.22: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.22: +5 -5 lines
always put the module on the stack

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat May 20 08:31:13 2017 UTC (9 years, 5 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.21: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.21: +6 -2 lines
Only load a module if it is not already loaded in a state (much like userland
Lua handles require).
Fixes PR kern/52226.

Revision 1.20.2.4: download - view: text, markup, annotated - select for diffs
Fri May 19 00:22:57 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.20.2.3: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.20.2.3: +4 -2 lines
Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)

Revision 1.20.2.3: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:18 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.20.2.2: preferred, colored; branchpoint 1.20: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.20.2.2: +4 -2 lines
At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu May 11 07:34:27 2017 UTC (9 years, 6 months ago) by mbalmer
Branches: MAIN
CVS tags: prg-localcount2-base3
Diff to: previous 1.20: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.20: +4 -2 lines
Avoid possible null pointer dereferencing.
Fixes PR kern/52225.

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 29 10:19:32 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.20.2.1: +1 -2 lines
Revise previous.  Rather than explicitly including <sys/localcount.h>
in all the places where {b,c}devsw is initialized, just include it
from <sys/conf.h>.  This avoids an include-sequence dependancy.

Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 29 09:17:59 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.20: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.20: +3 -1 lines
Add DEVSW_MODULE_INIT to existing device-driver modules, so that they
willl have a localcount defined and thus be permitted to load.  Without
a localcount, loading the module will return EINVAL.

XXX the dtrace and drm stuff might need to be fed back upstream?

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:28 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.18.2.1: +2 -2 lines
Sync with HEAD

Revision 1.18.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:04 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.18: +4 -3 lines
Sync with HEAD

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Apr 16 17:45:12 2017 UTC (9 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, bouyer-socketcan-base1
Branch point for: prg-localcount2
Diff to: previous 1.19: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.19: +2 -2 lines
Can't destroy pb until we're done using it.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:49 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.18: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.18: +3 -2 lines
Sync with HEAD

Revision 1.14.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:57 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14.2.3: preferred, colored; branchpoint 1.14: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.14.2.3: +3 -2 lines
Sync with HEAD

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Jan 20 12:25:07 2017 UTC (9 years, 9 months ago) by maya
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq
Diff to: previous 1.18: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.18: +3 -2 lines
Check pmf_device_register return value. NFC
Appeases static analyzers.

Revision 1.14.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:07 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.14.2.2: +2 -2 lines
Sync with HEAD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jul 14 04:00:46 2016 UTC (10 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
- Use aprint*() instead of printf() in xxx_attach().
- Add missing aprint_naive("\n");
- KNF

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:37 2016 UTC (10 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.14.2.1: +6 -2 lines
Sync with HEAD

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Sun May 22 10:28:49 2016 UTC (10 years, 5 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1
Branch point for: netbsd-7-1
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.2.2: +6 -2 lines
Pull up following revision(s) (requested by salazar in ticket #1171):
	sys/modules/lua/lua.c: revision 1.17
fix double require bug

Revision 1.17: download - view: text, markup, annotated - [selected for diffs]
Sat May 21 12:39:32 2016 UTC (10 years, 5 months ago) by salazar
Branches: MAIN
CVS tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -2 lines
fix double require bug

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:22 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.14: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.14: +11 -4 lines
Sync with HEAD

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 16 21:25:35 2015 UTC (11 years, 9 months ago) by martin
Branches: netbsd-7
CVS tags: 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, netbsd-7-0
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.2.1: +4 -2 lines
Pull up following revision(s) (requested by maxv in ticket #520):
	sys/ufs/chfs/ebh.c: revision 1.6
	sys/dev/sdmmc/sdmmc_mem.c: revision 1.33
	sys/dev/ic/aic7xxx.c: revision 1.132
	sys/fs/nfs/common/krpc_subr.c: revision 1.2
	sys/modules/lua/lua.c: revision 1.16
	sys/fs/udf/udf_subr.c: revision 1.128
	sys/ufs/chfs/chfs_scan.c: revision 1.6
	sys/dev/ic/an.c: revision 1.62

Fix six memory leaks and two inconsistencies.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Feb 7 04:09:13 2015 UTC (11 years, 9 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.15: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.15: +4 -2 lines
plug leak on error. Reported by:
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 1 13:13:15 2014 UTC (11 years, 11 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13: +8 -3 lines
Pull up following revision(s) (requested by lneto in ticket #283):
	sys/modules/lua/lua.c: revision 1.15
lua(4): fixed require

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Nov 30 19:15:03 2014 UTC (11 years, 11 months ago) by lneto
Branches: MAIN
Diff to: previous 1.14: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.14: +8 -3 lines
lua(4): fixed require

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Sep 24 14:55:48 2014 UTC (12 years, 1 month ago) by mbalmer
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13: +7 -3 lines
whitespace, knf, comments, but no functional change

Revision 1.13.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:33 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.13.4.1: preferred, colored; branchpoint 1.13: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.13.4.1: +873 -0 lines
Rebase to HEAD as of a few days ago.

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:10 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.8: +57 -51 lines
Rebase.

Revision 1.13.4.1
Fri Jul 25 08:10:40 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.13: +0 -873 lines
file lua.c was added on branch tls-maxphys on 2014-08-20 00:04:33 +0000

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:40 2014 UTC (12 years, 3 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-maxphys, netbsd-7
Diff to: previous 1.12: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.12: +2 -1 lines
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jul 19 18:38:35 2014 UTC (12 years, 4 months ago) by lneto
Branches: MAIN
Diff to: previous 1.11: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.11: +4 -4 lines
lua: updated from 5.1 to 5.3 work3

* lua(1):
  - changed lua_Integer to intmax_t
  - updated distrib/sets/lists and etc/mtree
  - updated bsd.lua.mk
  - fixed bozohttpd (lua-bozo.c)
  - compatibilized bindings: gpio, sqlite
* lua(4):
  - removed floating-point and libc dependencies using '#ifndef _KERNEL'
  - fixed division by zero and exponentiation
  - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
  - acpica: removed isprint() from acnetbsd.h
  - libc: moved strcspn.c, strpbrk.c and strspn.c to common
  - removed stub headers
  - compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Jul 19 17:20:02 2014 UTC (12 years, 4 months ago) by lneto
Branches: MAIN
Diff to: previous 1.10: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.10: +3 -3 lines
lua(4): uniformed the KPI name space using 'klua_' prefix

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jul 19 17:14:40 2014 UTC (12 years, 4 months ago) by lneto
Branches: MAIN
Diff to: previous 1.9: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.9: +2 -2 lines
lua(4): using lua_CFunction

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jul 19 17:13:22 2014 UTC (12 years, 4 months ago) by lneto
Branches: MAIN
Diff to: previous 1.8: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.8: +51 -46 lines
lua(4): added support for running Lua scripts in intr context

* using kmem_intr on lua_alloc
* using mutex directly on klua_lock
* added ipl arg on klua_newstate()
* added kluaL_newstate function
* fixed synchronization: locking the Lua state on luaioctl

Revision 1.8.6.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:08 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.8.6.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.8.6.1: +867 -0 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.8.4.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:11 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.8.4.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.8.4.1: +867 -0 lines
sync with head

Revision 1.8.6.1
Sun Mar 16 05:20:30 2014 UTC (12 years, 8 months ago) by yamt
Branches: yamt-pagecache
FILE REMOVED
Changes since revision 1.8: +0 -867 lines
file lua.c was added on branch yamt-pagecache on 2014-05-22 11:41:08 +0000

Revision 1.8.4.1
Sun Mar 16 05:20:30 2014 UTC (12 years, 8 months ago) by rmind
Branches: rmind-smpnet
FILE REMOVED
Changes since revision 1.8: +0 -867 lines
file lua.c was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:30 2014 UTC (12 years, 8 months ago) by dholland
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: yamt-pagecache, tls-earlyentropy, rmind-smpnet
Diff to: previous 1.7: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.7: +12 -3 lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:12 2014 UTC (12 years, 8 months ago) by pooka
Branches: MAIN
Diff to: previous 1.6: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.6: +1 -6 lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Dec 4 02:12:01 2013 UTC (12 years, 11 months ago) by lneto
Branches: MAIN
Diff to: previous 1.5: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.5: +2 -2 lines
fixed lua(4) alloc (nsize can be lesser than osize)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Nov 23 15:53:37 2013 UTC (12 years, 11 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.4: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.4: +22 -21 lines
switch from malloc(9) to kmem(9)

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Oct 29 17:35:04 2013 UTC (13 years ago) by mbalmer
Branches: MAIN
Diff to: previous 1.3: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.3: +5 -5 lines
initialize variables

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Oct 23 18:57:40 2013 UTC (13 years ago) by mbalmer
Branches: MAIN
Diff to: previous 1.2: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.2: +2 -2 lines
use MODULE_CLASS_MISC for Lua modules

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Oct 18 07:49:06 2013 UTC (13 years, 1 month ago) by mbalmer
Branches: MAIN
Diff to: previous 1.1: preferred, colored; selected 1.17: preferred, colored
Changes since revision 1.1: +2 -2 lines
fix CVS marker and copyright year

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Oct 16 19:44:57 2013 UTC (13 years, 1 month ago) by mbalmer
Branches: MAIN
Diff to: selected 1.17: preferred, colored
welcome lua(4), a devide driver that can create and control Lua states inside the kernel

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>