summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel
AgeCommit message (Collapse)Author
2019-09-19Merge release-20190806.1-159-g0a8a75f (automated)gVisor bot
2019-09-19Job control: controlling TTYs and foreground process groups.Kevin Krakauer
Adresses a deadlock with the rolled back change: https://github.com/google/gvisor/commit/b6a5b950d28e0b474fdad160b88bc15314cf9259 Creating a session from an orphaned process group was causing a lock to be acquired twice by a single goroutine. This behavior is addressed, and a test (OrphanRegression) has been added to pty.cc. Implemented the following ioctls: - TIOCSCTTY - set controlling TTY - TIOCNOTTY - remove controlling tty, maybe signal some other processes - TIOCGPGRP - get foreground process group. Also enables tcgetpgrp(). - TIOCSPGRP - set foreground process group. Also enabled tcsetpgrp(). Next steps are to actually turn terminal-generated control characters (e.g. C^c) into signals to the proper process groups, and to send SIGTTOU and SIGTTIN when appropriate. PiperOrigin-RevId: 270088599
2019-09-18Merge release-20190806.1-156-gc98e7f0 (automated)gVisor bot
2019-09-18Signalfd supportAdin Scannell
Note that the exact semantics for these signalfds are slightly different from Linux. These signalfds are bound to the process at creation time. Reads, polls, etc. are all associated with signals directed at that task. In Linux, all signalfd operations are associated with current, regardless of where the signalfd originated. In practice, this should not be an issue given how signalfds are used. In order to fix this however, we will need to plumb the context through all the event APIs. This gets complicated really quickly, because the waiter APIs are all netstack-specific, and not generally exposed to the context. Probably not worthwhile fixing immediately. PiperOrigin-RevId: 269901749
2019-09-13Merge release-20190806.1-142-g7c6ab6a (automated)gVisor bot
2019-09-12Implement splice methods for pipes and sockets.Adin Scannell
This also allows the tee(2) implementation to be enabled, since dup can now be properly supported via WriteTo. Note that this change necessitated some minor restructoring with the fs.FileOperations splice methods. If the *fs.File is passed through directly, then only public API methods are accessible, which will deadlock immediately since the locking is already done by fs.Splice. Instead, we pass through an abstract io.Reader or io.Writer, which elide locks and use the underlying fs.FileOperations directly. PiperOrigin-RevId: 268805207
2019-09-12Remove go_test from go_stateify and go_marshalMichael Pratt
They are no-ops, so the standard rule works fine. PiperOrigin-RevId: 268776264
2019-09-09Merge 9dfcd8b0 (automated)gVisor bot
2019-09-09Merge 3733b9b8 (automated)gVisor bot
2019-09-09Merge 6af9a985 (automated)gVisor bot
2019-09-06Merge 98f7fbb5 (automated)gVisor bot
2019-09-06Merge 0bfffbcb (automated)gVisor bot
2019-09-06Merge 7e94f171 (automated)gVisor bot
2019-09-04Merge 144127e5 (automated)gVisor bot
2019-09-03Merge 3789c34b (automated)gVisor bot
2019-09-03Merge eb94066e (automated)gVisor bot
2019-09-03Merge 648170f5 (automated)gVisor bot
2019-08-31Merge 0352cf58 (automated)gVisor bot
2019-08-31Merge f3dabdfc (automated)gVisor bot
2019-08-30Automated rollback of changelist 261387276Bhasker Hariharan
PiperOrigin-RevId: 266491264
2019-08-31Merge 502c47f7 (automated)gVisor bot
2019-08-30Merge 3ec0b64d (automated)gVisor bot
2019-08-30Merge 888e8790 (automated)gVisor bot
2019-08-29Merge 863e11ac (automated)gVisor bot
2019-08-29Merge 0789b9cc (automated)gVisor bot
2019-08-29Merge eb4aa403 (automated)gVisor bot
2019-08-29Merge 599136b2 (automated)gVisor bot
2019-08-29Merge 06ae3618 (automated)gVisor bot
2019-08-28Merge 24ecce5d (automated)gVisor bot
2019-08-27Merge f64d9a7d (automated)gVisor bot
2019-08-27Merge b4cdaef4 (automated)gVisor bot
2019-08-26Merge 1fdefd41 (automated)gVisor bot
2019-08-26Merge 7206202b (automated)gVisor bot
2019-08-26Merge c9c52c02 (automated)gVisor bot
2019-08-24Merge a5d01159 (automated)gVisor bot
2019-08-23Merge e75a12e8 (automated)gVisor bot
2019-08-23Merge f225fdbb (automated)gVisor bot
2019-08-22Ensure yield-equivalent with an already-expired timeout.Adin Scannell
PiperOrigin-RevId: 264920977
2019-08-22Merge 52e674b4 (automated)gVisor bot
2019-08-22Merge 5fd63d1c (automated)gVisor bot
2019-08-21Merge 573e6e4b (automated)gVisor bot
2019-08-21Merge 8b7e7a04 (automated)gVisor bot
2019-08-20Merge 6c3a2421 (automated)gVisor bot
2019-08-20Merge 3d0715b3 (automated)gVisor bot
2019-08-20Merge cf8a689b (automated)gVisor bot
2019-08-19Merge 67d7864f (automated)gVisor bot
2019-08-16Merge f7114e0a (automated)gVisor bot
2019-08-16Merge 4bab7d7f (automated)gVisor bot
2019-08-15Merge ef045b91 (automated)gVisor bot
2019-08-14Merge d81d94ac (automated)gVisor bot