Commit graph

307 commits

Author SHA1 Message Date
ppatience0 6a1f3823bb wpa: s/peerwise/pairwise/g, fix bug where p is not incremented after
reading wpa1oui into w, making the later memcmp with wpatkipoui
bogus.
2013-06-22 09:27:56 -04:00
cinap_lenrek e36d9f5c4e make filesystem handling of read9pmsg() consistent 2013-06-16 06:26:31 +02:00
cinap_lenrek 0d1801902d wpa: fix bug 2013-06-16 01:20:35 +02:00
cinap_lenrek 4cf627a131 wpa: automatically pick cipher suits from beacon rsne 2013-06-15 19:02:17 +02:00
cinap_lenrek d3773c4355 aux/wpa: make sure essid is configured, dont make factotum ask for essid 2013-06-02 00:24:42 +02:00
cinap_lenrek cbe11fc1c2 aux/listen: do not redirect stderr (fd 2) of the listener to the network connection
Charles Forsyth described the problem below in:

http://9fans.net/archive/2013/04/190

In a few cases, the kernel will use pprint to put a diagnostic on the
standard error (file descriptor 2). One of those is a warning that the
process has used more than 100 file descriptors. That message is possibly
obsolete and could be removed, but there are others, such as notifying an
uncaught trap that are probably helpful to make visible. In any case, as
things stand, a busy exportfs might have many file descriptors open,
provoking the diagnostic. Unfortunately, aux/listen and aux/listen1 connect
file descriptor 2 to the incoming network connection. If the connection's
protocol is not a simple, unstructured, textual one, diagnostics on the
standard error will cause confusion, in particular to devmnt.c if 9p is used.

/rc/bin/service files that start applications that run special protocols
might want to redirect file descriptor 2; alternatively, perhaps aux/listen
shouldn't redirect fd 2 by default: the few commands that do connect the remote
user to shells, or equivalent, including telnetd and sshd could dup 1 to 2
when that was sensible.
2013-04-20 21:42:20 +02:00
cinap_lenrek 34e46d0837 wpa: fix rsc for wpa2
in wpa2, the rsc field of the eapol message3 is the packet number for
*group* messages that the ap will use as there is no separate group
key message. in wpa1, we use it for the peerwise key.
2013-03-23 22:09:46 +01:00
cinap_lenrek f079c71966 wpa: remove debug print 2013-03-23 04:50:43 +01:00
cinap_lenrek e7131e9313 add experimental wpa2/ccmp support 2013-03-23 04:27:49 +01:00
cinap_lenrek 7ae6508d7e merge 2013-03-17 19:41:39 +01:00
cinap_lenrek d6da605605 wpa: initial support for rsn 2013-03-17 19:39:44 +01:00
ftrvxmtrx 6862f4ee0e aux/cpuid: xsaveopt 2013-03-17 13:20:03 +01:00
ftrvxmtrx 8580ec595b aux/cpuid: better looking arrays 2013-03-16 21:13:49 +01:00
ftrvxmtrx f4174739bb aux/cpuid: fix wrong extfunc1 bits 2013-03-16 18:07:48 +01:00
cinap_lenrek b6581f21e5 aux/wpa: check reply counter only after mic check 2013-03-09 18:12:49 +01:00
cinap_lenrek 6f374a5243 add wpa key setup program aux/wpa 2013-03-09 17:33:58 +01:00
ftrvxmtrx bea0aa8472 statusbar: fix garbled percentage output 2013-01-27 11:51:31 +01:00
cinap_lenrek 4041ea394b aux/vga: remove debug prints 2013-01-08 02:05:23 +01:00
cinap_lenrek 960a04bfec aux/vga: add fixbios() for patching bogus vesa bios 2013-01-07 20:59:50 +01:00
cinap_lenrek a5b6143c4c vga: avoid setting vgactl type vesa multiple times 2013-01-06 03:16:07 +01:00
cinap_lenrek 2a1b43ad98 vga: make kernel vga drivers more stupid
previously, we had to maintain 3 sets of pci vid/did's:

1) in /lib/vgadb for detection
2) in the userspace driver in aux/vga
3) in the kernel mode driver

this change makes the kernel mode driver more dumb in
the cases where possible. we let userspace do the pci
enumeration and if needed, it can set the pci address
of the vga card. kernel mode drivers can assume to get
the right pci device passed in scr->pci for enable()
and linear() functions and just do very basic sanity
checking before mapping framebuffer and mmio regions.

vgalinearpciid() was removed as userspace is responsible
to pick pci device.

theres a new vgactl message "pcidev" where userspace
can set the bus address. we initialize scr->pci in
vgareset() to the first pci graphics card found. this
should cover cases when an old aux/vga binary is used
that doesnt use the new pcidev message.

userspace drivers will now use the pci device that got
a match from /lib/vgadb and skip ther own enumeration.
this way, vga cards can be made to work by simply adding
an entry in vgadb with no need to modify userspace or
kernelspace drivers. this is not always possible if
the driver derives information from the specific card
model.
2013-01-02 01:19:51 +01:00
cinap_lenrek 0df3f94ecd kbdfs: send interrupt note in separate proc to prevent potential deadlock 2012-11-09 17:39:35 +01:00
cinap_lenrek 663aff7fb2 kbdfs: kill input buffer on interrupt key 2012-11-09 17:09:20 +01:00
cinap_lenrek 599dd1c34f make interrupt key (Del) just work in the console
these changes make the interrupt key available in the
console (before rio is started).

kbdfs: will now send a "interrupt" note to its invoking
process group in cooked mode.

bootrc: is now prepared to handle interrupts, mainly to
not accidently spawn a new bootargs prompt.

init: forwards the interrupt to the cpurc/termrc pgrp.

vncs: shields itself from kbdfs notegroup so interrrupt
wont kill the whole vnc session.
2012-11-06 17:19:41 +01:00
cinap_lenrek 120412a6a2 wikifmt: fix trailing _ in heading name reference 2012-11-05 03:16:13 +01:00
cinap_lenrek 72679fd6cc add google code wiki formatter aux/wikifmt 2012-11-05 02:39:33 +01:00
cinap_lenrek da759a7fce realemu: fix REP prefix condition 2012-10-25 06:55:41 +02:00
aiju 46124af6cf fix CUT macro in cpuid 2012-08-24 19:19:42 +02:00
aiju 6edb672951 added aux/cpuid 2012-08-24 18:49:25 +02:00
cinap_lenrek 1132aca4f0 vgaclgd542x: support >8bit colors 2012-08-10 21:03:13 +02:00
cinap_lenrek d1f1be9c57 vgavmware: fix hardware acceleration (fill is not available with SVGA2) 2012-08-10 15:17:27 +02:00
cinap_lenrek f0b471efb9 realemu: fix cpuid
ECX and EDX were incorrectly swapped.

Ref: http://wiki.osdev.org/CPUID

thanks Anthony Martin <ality@pbrane.org> for sending the patch!
2012-06-24 07:28:16 +02:00
cinap_lenrek 8562240e8c fix more fd <= 0 bugs 2012-04-24 06:57:02 +02:00
cinap_lenrek 73c0e1acea kbdfs: fix mistake 2012-03-12 18:04:43 +01:00
cinap_lenrek c4831ff2d3 kbdfs: remap old control keys 2012-03-12 18:01:20 +01:00
cinap_lenrek cbb83c4fce kbdfs: properly handle zero length write to kbdin 2012-02-26 20:19:58 +01:00
cinap_lenrek 11e38d21c8 kbdfs: ignoring fake shifts 2012-02-26 13:43:50 +01:00
cinap_lenrek 612d666d54 kbdfs: cleanup 2012-02-25 17:42:08 +01:00
cinap_lenrek ce6b942ff1 vncs: /dev/kbd support by running kbdfs and forwarding keycodes thru kbdin 2012-02-25 23:47:09 +01:00
cinap_lenrek ef310cbd28 kbdfs: mouse twitching 2012-02-13 07:21:59 +01:00
cinap_lenrek b9ff604c31 mothra: use aux/statusmsg to display download window, add aux/statusmsg to mkfile 2012-02-11 02:00:44 +01:00
cinap_lenrek e283619ecb add aux/statusmsg 2012-02-11 01:51:38 +01:00
cinap_lenrek 733dab56a1 listen1: add process limit option 2011-12-12 10:08:02 +01:00
cinap_lenrek 3d189a4452 listen: add process limit option 2011-12-11 18:35:03 +01:00
cinap_lenrek 9194371eac kbdfs: add -q (quiet) option 2011-09-02 15:16:10 +02:00
cinap_lenrek 94e7de1531 apm(8): support off state 2011-08-23 07:53:55 +02:00
cinap_lenrek 982ee70f45 timesync: do less aggressive clock sampling (issue #73) 2011-08-17 01:39:27 +02:00
cinap_lenrek f682600440 serial console stuff 2011-08-16 10:15:36 +02:00
aiju 8f6173c8bd added aux/seek 2011-07-19 16:42:33 +02:00
cinap_lenrek 12619cb9a5 kbdfs: mouse button 2 emulation by changing mouse buttonmap when shift is pressed 2011-07-17 18:15:29 +02:00
cinap_lenrek 68befdff72 timesync: let timesync set the rtc with respect to gmtdelta 2011-06-15 21:15:22 +02:00
cinap_lenrek 21ede7960f kbdfs: support ^W word killing 2011-06-15 12:34:30 +02:00
cinap_lenrek 1da8475093 kbdfs: simplfy 2011-06-07 05:02:12 +00:00
cinap_lenrek 77481acf05 kbdfs: fix queue bug 2011-06-07 04:35:23 +00:00
cinap_lenrek 241cd31448 kbdfs: simplify ctlproc by putting 9p handling in its own coroutine 2011-06-07 04:14:35 +00:00
cinap_lenrek 0fda678227 kbdfs: wakeup and flush when /dev/kbd gets closed 2011-06-06 03:20:41 +00:00
cinap_lenrek c9ea2fbb77 merge 2011-05-28 16:34:41 +00:00
taruti 8e388a7037 aux/vga ccru/ccrb parsing 2011-06-02 21:27:41 +00:00
cinap_lenrek 4c93f534ac kbdfs: ignore compose sequence if ctl was pressed 2011-05-28 16:34:14 +00:00
cinap_lenrek 64f14cc6a4 kbdfs: mklatin comments 2011-05-28 08:33:41 +00:00
cinap_lenrek 480d8a19b1 merge 2011-05-28 08:16:29 +00:00
taruti 40319a2b96 Fix aux/vga ccru reading 2011-06-01 07:46:41 +00:00
taruti ba6ec01b39 Fix nvidia 6200 0x161 2011-05-31 07:20:21 +00:00
cinap_lenrek fbbb449cc0 big /dev/kbd change, new format, support Alt+Stuff (key composing) 2011-05-28 08:16:01 +00:00
cinap_lenrek c266a31572 kbdfs: disable console processing if /dev/kbd is open 2011-05-27 00:41:58 +00:00
cinap_lenrek 2f0635a159 aux/vga: pci.c dircount bug 3 2011-05-23 23:15:06 +00:00
cinap_lenrek 9a1a927377 aux/vga: pci.c dircount bug 2 2011-05-23 23:12:30 +00:00
cinap_lenrek 8987674d48 aux/vga: pci.c dircount bug 2011-05-23 23:11:29 +00:00
cinap_lenrek 10415cbb8e aux/vga: pci.c strtoul 2011-05-23 22:32:17 +00:00
cinap_lenrek 1fdee02884 aux/vga/pci.c: remove useless check 2011-05-23 19:30:17 +00:00
cinap_lenrek bbbfbe3dc4 aux/vga: use devpnp for pci control register io 2011-05-23 19:21:24 +00:00
taruti d9b80de6d5 Scan PCI via kernel in aux/vga 2011-05-27 10:49:18 +00:00
taruti a0a1082dbf NVIDIA fix + 0x420 cards 2011-05-27 10:48:12 +00:00
stanley lieber f148f75f09 add icanhasmsi 2011-05-15 19:11:53 +00:00
aiju 3b003767cd added aux/icanhasmsi 2011-05-16 22:56:52 +00:00
cinap_lenrek a67e921c7f /dev/kbd: threat key combinations like shift+a as a virtual key and emit both a and A in that case 2011-05-14 21:02:20 +00:00
cinap_lenrek 76f99f7cb3 serial console support 2011-05-13 08:53:43 +00:00
cinap_lenrek bb45ddca85 fix paranoia, chartorune never returns <=0 2011-05-13 02:49:40 +00:00
cinap_lenrek c7c882b4ae kbdfs: cleanup 2011-05-13 02:04:17 +00:00
cinap_lenrek a075969353 kbdfs: fix line killing, handle old modifier codes. cga/vga: properly handle unicode 2011-05-13 01:46:00 +00:00
cinap_lenrek d831a028dc ignore \0 bytes, disable navigation keys when /dev/kbd is open 2011-05-11 09:23:01 +00:00
cinap_lenrek 294e4f1097 kbdfs: potential deadlock fix 2011-05-11 08:26:39 +00:00
cinap_lenrek aaecded62a kbdfs: memleak fix 2011-05-11 08:13:33 +00:00
cinap_lenrek 684bd26f2e kbdfs: cleanup 2011-05-11 07:27:42 +00:00
cinap_lenrek 4fcc906e7f add /dev/kbd support to rio 2011-05-11 05:55:48 +00:00
cinap_lenrek 2febff5948 boot and namespace cleanup 2011-05-10 09:14:30 +00:00
cinap_lenrek b9427c8a3f dont send \0 rune to rawchan 2011-05-09 13:15:51 +00:00
aiju 908a525ef5 added aux/wacom and aux/tablet 2011-05-09 08:59:11 +00:00
cinap_lenrek 26c2845917 kbdfs 2011-05-09 08:32:14 +00:00
cinap_lenrek 4e919b23a1 remove .dummy files and replace it by sys/lib/rootstub script 2011-05-03 04:42:16 +00:00
cinap_lenrek 0fb128b622 proto: change mkfs to use libdisk to process proto files, inst: use -U option in mkfs so uid is set and automatic reboot, realemu: cleanup 2011-04-29 09:15:28 +00:00
cinap_lenrek c0ebaf7ee8 realemu: handle address overflow 2011-04-29 05:49:58 +00:00
cinap_lenrek c1305acf9f realemu: bittest memory operands 2011-04-29 03:56:20 +00:00
cinap_lenrek 028bd871a9 realemu: complete bitttest ops (tested at revision 2011) 2011-04-25 21:32:10 +00:00
cinap_lenrek ef2f5ba3db realemu: implement conditional set instruction, add dummys 2011-04-25 13:15:37 +00:00
cinap_lenrek e003d49fe1 realemu: implement CMPS and SCAS instructions 2011-04-22 13:06:55 +00:00
cinap_lenrek 00d93eeafd realemu: bittest ops for 0F prefix 2011-04-20 19:30:44 +00:00
cinap_lenrek 7381779ba2 realemu: typo 2011-04-20 15:28:16 +00:00
iru 8198e0ad70 Add bflz, cdsh, and unbflz to mkfile. 2011-04-16 17:48:17 -03:00
aiju 68d6b0808b added geode driver 2011-04-15 20:29:46 +02:00
cinap_lenrek 74dd2ac7cd tailfsrv is a stupid and completly useless program. inst/gui and inst/textonly dont need it anymore 2011-04-15 05:32:50 +00:00
iru fd8d404d52 Promote the old installer/livecd specific tools to normal tools under /sys/src/cmd. Where similar common tools already existed, I kept them. 2011-04-14 00:35:48 -03:00
cinap_lenrek 2a46d5c4f9 remove realemu manpage from src dir 2011-04-12 17:48:02 +00:00
cinap_lenrek 632defb656 vesa-changes 2011-04-11 20:56:59 +00:00
cinap_lenrek 45bab89362 livecd 2011-04-11 19:47:05 +00:00
Taru Karttunen a9060cc06b Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
Taru Karttunen e5888a1ffd Import sources from 2011-03-30 iso image 2011-03-30 15:46:40 +03:00