]>
git.lizzy.rs Git - plan9front.git/log
cinap_lenrek [Sat, 19 Nov 2016 15:45:18 +0000 (16:45 +0100)]
link loopbackmedium and netdevmedium in bcm/pif, sgi/indy and zynq kernels
cinap_lenrek [Thu, 17 Nov 2016 19:10:07 +0000 (20:10 +0100)]
libmemdraw: cleanup fillpoly(), remove unused fillcolor hack
cinap_lenrek [Thu, 17 Nov 2016 18:54:13 +0000 (19:54 +0100)]
libsec: remove unused get32() function
cinap_lenrek [Thu, 17 Nov 2016 18:42:12 +0000 (19:42 +0100)]
libmemdraw: remove unused static drawbuf variables and ptrfn() declaration
cinap_lenrek [Thu, 17 Nov 2016 17:14:06 +0000 (18:14 +0100)]
devtls: remove unused get32() function
ftrvxmtrx [Thu, 17 Nov 2016 01:59:40 +0000 (02:59 +0100)]
cmd: remove a bit of unused stuff
ftrvxmtrx [Thu, 17 Nov 2016 01:14:59 +0000 (02:14 +0100)]
tar: remove unused variable
ftrvxmtrx [Thu, 17 Nov 2016 01:12:49 +0000 (02:12 +0100)]
clock: remove unused variable
ftrvxmtrx [Thu, 17 Nov 2016 01:11:35 +0000 (02:11 +0100)]
page: remove unused variables
ftrvxmtrx [Thu, 17 Nov 2016 01:09:57 +0000 (02:09 +0100)]
ramfs: remove unused variable
ftrvxmtrx [Thu, 17 Nov 2016 01:07:52 +0000 (02:07 +0100)]
aan: didn't ask about sendcommand
ftrvxmtrx [Thu, 17 Nov 2016 01:02:32 +0000 (02:02 +0100)]
libsec: remove unused aes_setupDec
cinap_lenrek [Thu, 17 Nov 2016 00:28:11 +0000 (01:28 +0100)]
pc64: check if vmap() range fits in VMAPLEN window, remove unneeded vmapsync(), rename fault386() to faultamd64()
cinap_lenrek [Tue, 15 Nov 2016 23:54:04 +0000 (00:54 +0100)]
ip/tcp: never raise the mss over the link mtu < 1280 for v6
v6 mandates minimum mtu of 1280, tho someone *could* setup
an interface with a lower mtu or set it lower for testing.
cinap_lenrek [Tue, 15 Nov 2016 21:13:08 +0000 (22:13 +0100)]
ip: get rid of update_mtucache() and restrict_mtu() prototypes
cinap_lenrek [Tue, 15 Nov 2016 21:11:47 +0000 (22:11 +0100)]
ip/pktmedium: no mintu, no maclen... thi is ip packets
cinap_lenrek [Tue, 15 Nov 2016 20:54:03 +0000 (21:54 +0100)]
ip/pktmedium: fix wrong hsize, theres no ethernet header on packet media
packet media is just raw ip packets, so theres no link-level
header there. was probably copy-pasted from ethermedium...
cinap_lenrek [Tue, 15 Nov 2016 19:28:45 +0000 (20:28 +0100)]
ip/tcp: only calculae mss from interface mtu when directly reachable for v6
we currently do not implement path mtu discovery so for
destinations that are not directly reachable assume the
minimum mtu of 1280 bytes.
cinap_lenrek [Sat, 12 Nov 2016 22:11:03 +0000 (23:11 +0100)]
nusb/ether: support for "bridge" ctl message
cinap_lenrek [Sat, 12 Nov 2016 16:41:58 +0000 (17:41 +0100)]
kernel/qio: make readblist() offset of type ulong as the rest
cinap_lenrek [Sat, 12 Nov 2016 15:05:00 +0000 (16:05 +0100)]
kernel/qio: get rid of unused qcopycnt debug variable
cinap_lenrek [Wed, 9 Nov 2016 18:44:38 +0000 (19:44 +0100)]
kernel/qio: implement concatblock() with pullupblock()
cinap_lenrek [Tue, 8 Nov 2016 21:33:48 +0000 (22:33 +0100)]
kernel/ip: fix typo (rfc -> ifc)
cinap_lenrek [Tue, 8 Nov 2016 21:33:19 +0000 (22:33 +0100)]
gre: check nil for pullupblock()
cinap_lenrek [Tue, 8 Nov 2016 20:06:06 +0000 (21:06 +0100)]
devbridge: simplify etherwrite() as we dont deal with block lists
cinap_lenrek [Tue, 8 Nov 2016 20:05:01 +0000 (21:05 +0100)]
kernel/ip: remove nil checks for allocb() and padblock()
cinap_lenrek [Tue, 8 Nov 2016 20:03:08 +0000 (21:03 +0100)]
kernel/qio: maintain Block.next pointer in padblock()
cinap_lenrek [Tue, 8 Nov 2016 01:10:47 +0000 (02:10 +0100)]
srv(4): add SOURCE for srvtls
cinap_lenrek [Mon, 7 Nov 2016 23:38:07 +0000 (00:38 +0100)]
kernel/qio: fix comments, fix qiwrite() on close queue, remove debug setmalloctag() call in qwrite()
cinap_lenrek [Mon, 7 Nov 2016 23:34:59 +0000 (00:34 +0100)]
devcons: simplify putstrn0()
cinap_lenrek [Mon, 7 Nov 2016 21:43:37 +0000 (22:43 +0100)]
devbridge: various bugfixes and improvements from charles forsyth
cinap_lenrek [Mon, 7 Nov 2016 21:20:10 +0000 (22:20 +0100)]
kernel/qio: big cleanup of qio functions
remove bl2mem(), it is broken. a fault while copying to memory
yields a partially freed block list. it can be simply replaced
by readblist() and freeblist(), which we also use for qcopy()
now.
remove mem2bl(), and handle putting back remainer from a short
read internally (splitblock()) avoiding the releasing and re-
acquiering of the ilock.
always attempt to free blocks outside of the ilock.
have qaddlist() return the number of bytes enqueued, which
avoids walking the block list twice.
cinap_lenrek [Mon, 7 Nov 2016 21:08:21 +0000 (22:08 +0100)]
devloopback: simplify loopoput()
remove unneeded waserror() block, loopoput is alled from
loopbackbwrite only so we will always get called with a
*single* block, so the concatblock() is not needed.
cinap_lenrek [Mon, 7 Nov 2016 21:05:29 +0000 (22:05 +0100)]
ip: always pass a single block to Medium.bwrite(), avoid concatblock() calls in Dev.bwrite()
the convention for Dev.bwrite() is that it accepts a *single* block,
and not a block chain. so we never have concatblock here.
to keep stuff consistent, we also guarantee thet Medium.bwrite()
will get a *single* block passed as well, as the callers are
few in number.
cinap_lenrek [Mon, 7 Nov 2016 20:40:12 +0000 (21:40 +0100)]
ip/nullmedium: free passed block in nullbwrite()
cinap_lenrek [Mon, 7 Nov 2016 20:39:28 +0000 (21:39 +0100)]
ip/tcp: remove useless nil checks for padblock() and allocb() return value
cinap_lenrek [Sat, 5 Nov 2016 19:08:20 +0000 (20:08 +0100)]
kernel: fix missing ; in panic() call
cinap_lenrek [Sat, 5 Nov 2016 19:05:40 +0000 (20:05 +0100)]
kernel: avoid padblock copying for devtls/devssl/esp, cleanup debugging
to avoid copying in padblock() when adding cryptographics macs to a block
in devtls/devssl/esp we reserve 16 extra bytes to the allocation.
remove qio ixsummary() function and add acid function qiostats() to
/sys/lib/acid/kernel
simplify iallocb(), remove iallocsummary() statitics.
cinap_lenrek [Sat, 5 Nov 2016 17:31:50 +0000 (18:31 +0100)]
archacpi: fix format string warning on amd64
cinap_lenrek [Sat, 5 Nov 2016 17:26:12 +0000 (18:26 +0100)]
devmnt: avoid memory copies of I/O rpc buffer by using bwrite()
given that devmnt will almost always write into a pipe
or a network connection, which supports te bwrite routine,
we can avoid the memory copy that would have been done by
devbwrite(). this also means the i/o buffer for writes
will get freed sooner without having to wait for the 9p
rpc to get a response, saving memory.
theres one case where we have to keep the rpc arround and
that is when we write to a cached file, as we want to update
the cache with the data that was written, but the user buffer
cannot be trusted to stay the same during the rpc.
cinap_lenrek [Sat, 5 Nov 2016 17:00:10 +0000 (18:00 +0100)]
libc: move calloc() into its own compilation unit
move calloc() in its own compilation unit to avoid
code duplication. also, calloc() is used rarely in
plan9 programs.
cinap_lenrek [Tue, 1 Nov 2016 08:50:25 +0000 (09:50 +0100)]
winwatch: put previous label contents in edit buffer for relabling
cinap_lenrek [Sun, 30 Oct 2016 22:30:13 +0000 (23:30 +0100)]
8c: fix double compiling FNX complex lvalue in cgen64()
sugen() calls cgen64() speculatively so that when cgen64() returns
zero, it will fall back and compile 64-bit copy.
the bug was that cgen64() compiled the left hand side and then recursively
called cgen64() again, which didnt handle the memory copy so it returned
zero and sugen() would compile the left hand side again resulting in two
function calls being emited.
some code that reproduced the issue:
#include <u.h>
#include <libc.h>
typedef struct
{
char x[10];
vlong a;
} X;
X a;
X *f(void) { return &a; }
void
main(int argc, char *argv[])
{
f()->a = a.a;
}
producing:
TEXT f+0(SB),0,$0
MOVL $a+0(SB),AX
RET ,
RET ,
TEXT main+0(SB),0,$0
CALL ,f+0(SB)
CALL ,f+0(SB) <- bug
MOVL AX,CX
LEAL a+12(SB),DX
MOVL (DX),AX
MOVL AX,12(CX)
MOVL 4(DX),AX
MOVL AX,16(CX)
RET ,
GLOBL a+0(SB),$20
END ,
cinap_lenrek [Sun, 30 Oct 2016 19:32:03 +0000 (20:32 +0100)]
ape/libsec: add secp384r1 curve parameters for tls
cinap_lenrek [Sun, 30 Oct 2016 01:17:12 +0000 (02:17 +0100)]
merge
cinap_lenrek [Sun, 30 Oct 2016 01:15:40 +0000 (02:15 +0100)]
libsec: add secp384r1 curve parameters for tls
spew [Wed, 26 Oct 2016 19:01:13 +0000 (14:01 -0500)]
winwatch: no more 'l' key labeling
spew [Wed, 26 Oct 2016 03:53:38 +0000 (22:53 -0500)]
winwatch: middle mouse button click also prompts for label
ftrvxmtrx [Mon, 24 Oct 2016 21:51:16 +0000 (23:51 +0200)]
stats: alternatively read battery and temp from aux/acpi
ftrvxmtrx [Mon, 24 Oct 2016 21:50:04 +0000 (23:50 +0200)]
aux/acpi: make it stats(8)-friendly
cinap_lenrek [Mon, 24 Oct 2016 18:56:11 +0000 (20:56 +0200)]
fix bugs and cleanup cryptsetup code
devfs:
- fix memory leak in devfs leaking the aes key
- allocate aes-xts cipher state in secure memory
- actually check if the hexkey got fully parsed
cryptsetup:
- get rid of stupid "type YES" prompt
- use genrandom() to generate salts and keys
- rewrite cryptsetup to use common pbkdf2 and readcons routines
- fix alot of error handling and simplify the code
- move cryptsetup command to disk/cryptsetup
- update cryptsetup(8) manual page
cinap_lenrek [Sun, 23 Oct 2016 15:18:35 +0000 (17:18 +0200)]
auth/factotum: bound the number of srv processes to 16, error the 9p rpc when it is over limit
cinap_lenrek [Sun, 23 Oct 2016 15:16:22 +0000 (17:16 +0200)]
lib9p: limit the number of srv processes kept arround 8
cinap_lenrek [Sun, 23 Oct 2016 02:09:27 +0000 (04:09 +0200)]
pc/archacpi: don't do acpi initialization in the kernel, provide generic acpimem routines
get rid of _INI and _REG method calls, this is not full acpi environment
anyway and all we really want todo at kernel boot time is figuring out
the interrupt routing. aux/acpi can try to enable more stuff if it needs
to later when battery status desired.
dont snoop memory space regions in amlmapio(), this is just wrong as
amlmapio() is *lazily* mapping regions as they are accessed, so the
range table would never be really complete. instead, we provide generic
access to the physical address space, excluding kernel and user memory
with acpimem file.
cinap_lenrek [Sat, 22 Oct 2016 22:31:42 +0000 (00:31 +0200)]
ip: simplify code as packblock() and concatblock() will never error
cinap_lenrek [Sat, 22 Oct 2016 22:29:41 +0000 (00:29 +0200)]
devip: simplify ipbwrite() by using retun value of qbwrite()
cinap_lenrek [Sat, 22 Oct 2016 22:25:17 +0000 (00:25 +0200)]
ip/icmp: only reply to echo request when directed to us and source is unicast
cinap_lenrek [Fri, 21 Oct 2016 22:35:17 +0000 (00:35 +0200)]
gif: just read and decode the first image when -9 or -c flag is specified
cinap_lenrek [Fri, 21 Oct 2016 22:04:21 +0000 (00:04 +0200)]
libdraw: avoid dropping queued button change mouse events in emouse()
cinap_lenrek [Fri, 21 Oct 2016 22:02:23 +0000 (00:02 +0200)]
mothra: avoid flushimage() calls, event() will implicitely flush
spew [Thu, 20 Oct 2016 03:15:51 +0000 (22:15 -0500)]
mpc: remove unused yylval type
ftrvxmtrx [Tue, 18 Oct 2016 21:05:09 +0000 (23:05 +0200)]
aux/acpi: batteries and CPU temp reading so far
ftrvxmtrx [Tue, 18 Oct 2016 21:04:19 +0000 (23:04 +0200)]
archacpi: optionally export acpi memory regions; properly initialize environment
ftrvxmtrx [Tue, 18 Oct 2016 19:25:19 +0000 (21:25 +0200)]
sam: revert showdata crap
ftrvxmtrx [Tue, 18 Oct 2016 18:27:08 +0000 (20:27 +0200)]
sam: corner cases are hard
ftrvxmtrx [Tue, 18 Oct 2016 18:22:25 +0000 (20:22 +0200)]
sam: fixup :(
ftrvxmtrx [Tue, 18 Oct 2016 18:02:01 +0000 (20:02 +0200)]
samterm: support "showdata" plumb action
stanley lieber [Sun, 16 Oct 2016 18:16:17 +0000 (14:16 -0400)]
fortunes: does that me a dipshit
ftrvxmtrx [Sat, 15 Oct 2016 21:42:22 +0000 (23:42 +0200)]
scram: remove _PTS(5). it just doesn't make any sense
ftrvxmtrx [Sat, 15 Oct 2016 21:34:08 +0000 (23:34 +0200)]
scram: oops. word is 0xffff, not 0xff
ftrvxmtrx [Sat, 15 Oct 2016 21:10:53 +0000 (23:10 +0200)]
scram: run _PTS(5) and disable GPEs before entering S5. x200s shuts down properly now
stanley lieber [Mon, 10 Oct 2016 17:43:48 +0000 (13:43 -0400)]
fortunes: Angular uses the term "scope" in a manner akin to the fundamentals of co
mputer science.
BurnZeZ [Mon, 3 Oct 2016 16:31:48 +0000 (12:31 -0400)]
iwhois(1): make -n work, add .org, and a couple minor changes
cinap_lenrek [Wed, 28 Sep 2016 17:25:23 +0000 (19:25 +0200)]
nusb/kb: set usage to 0 (undefined) for items exceeding usage list
cinap_lenrek [Wed, 28 Sep 2016 17:15:10 +0000 (19:15 +0200)]
nusb/lib: fix wrong endpoint id when openep() finds already existing endpoint file
ftrvxmtrx [Mon, 26 Sep 2016 21:00:06 +0000 (23:00 +0200)]
sam: putenv("%", ...): don't crash when no file is current
cinap_lenrek [Thu, 22 Sep 2016 09:04:43 +0000 (11:04 +0200)]
sam: use $% instead of $f for filename to be consistent with acme
cinap_lenrek [Thu, 22 Sep 2016 08:49:48 +0000 (10:49 +0200)]
sam: make current filename available to shell commands in $f (thanks aiju)
cinap_lenrek [Wed, 21 Sep 2016 19:57:08 +0000 (21:57 +0200)]
ip(3): spelling, thanks sl
cinap_lenrek [Wed, 21 Sep 2016 19:47:52 +0000 (21:47 +0200)]
ip(3): update description of /net/ipifc/*/status format
cinap_lenrek [Tue, 20 Sep 2016 07:15:53 +0000 (09:15 +0200)]
rio: fix onscreen()
cinap_lenrek [Mon, 19 Sep 2016 17:04:21 +0000 (19:04 +0200)]
scat: hjdicks for amd64
aiju [Mon, 19 Sep 2016 16:45:15 +0000 (16:45 +0000)]
pc(1): if the input base is not 10, print the 0d prefix before decimal numbers; this way, all output is always valid input (for the current mode)
cinap_lenrek [Mon, 19 Sep 2016 00:30:39 +0000 (02:30 +0200)]
merge
cinap_lenrek [Mon, 19 Sep 2016 00:28:10 +0000 (02:28 +0200)]
webfs: aaand another one (should go to sleep)
cinap_lenrek [Mon, 19 Sep 2016 00:14:03 +0000 (02:14 +0200)]
merge
cinap_lenrek [Mon, 19 Sep 2016 00:12:18 +0000 (02:12 +0200)]
merge
cinap_lenrek [Mon, 19 Sep 2016 00:11:03 +0000 (02:11 +0200)]
webfs: fix mistake...
cinap_lenrek [Mon, 19 Sep 2016 00:04:13 +0000 (02:04 +0200)]
webfs: don't use cache connections when posting
we cannot retry posts and we do not know for sure if a
post had any side effect when we got no status, so always
make a new connection for a post request.
aiju [Sun, 18 Sep 2016 23:20:28 +0000 (01:20 +0200)]
pc(1): add pb (thanks, BurnZeZ); add bit numbering
cinap_lenrek [Sun, 18 Sep 2016 19:16:45 +0000 (21:16 +0200)]
rio: improved bandsize()
when dragging a window edge, allow one to slide to a corner
or slide from corner to corner (usefull when inverting).
also make sure the right or bottom of the rectangle returned
by whichrect() is not outside of the screen (which makes
drawing slow).
cinap_lenrek [Sun, 18 Sep 2016 14:54:24 +0000 (16:54 +0200)]
cpu: quote remaining remote command arguments, don't syslog on missing /mnt/term/dev/cpunote file
cinap_lenrek [Sat, 17 Sep 2016 15:49:59 +0000 (17:49 +0200)]
ipv6on: get network device from $netdir/ipifc/*/status
cinap_lenrek [Sat, 17 Sep 2016 13:58:11 +0000 (15:58 +0200)]
etherzynq: implement promisc mode and multicast filter support
cinap_lenrek [Sat, 17 Sep 2016 12:18:40 +0000 (14:18 +0200)]
nusb/ether: promisc and multicast support for admtek pegasus (aue)
cinap_lenrek [Sat, 17 Sep 2016 12:06:03 +0000 (14:06 +0200)]
nusb/ether: multicast and promisc support for rtl8150 (url)
cinap_lenrek [Fri, 16 Sep 2016 21:23:19 +0000 (23:23 +0200)]
merge
cinap_lenrek [Fri, 16 Sep 2016 21:21:54 +0000 (23:21 +0200)]
nusb/ether: experimental pomisc mode and multicast support for smsc and asix
aiju [Thu, 15 Sep 2016 09:13:22 +0000 (09:13 +0000)]
pc(1): _ handling in numbers was broken at some point; restore documented behaviour
aiju [Thu, 15 Sep 2016 08:51:59 +0000 (08:51 +0000)]
pc(1): add nsa() command