{"push_id":728241590,"size":339,"distinct_size":339,"ref":"refs/heads/op/gsoc2015/fortify","head":"d62cb16693b9016fd4423a0ea201417d648e1f16","before":"2d4c223deb9707f69e323c5ccaf544c0bc71f5a2","commits":[{"sha":"9bde258984f54fc570ad8807cbc7b0fb154c34ec","author":{"email":"076bc3cc99ad0ebf7602ff1b00697f548a2d8b9a@FreeBSD.org","name":"jmg"},"message":"fix error message...  errx since errno may not be set (if we didn't\nparse the full field), and err and errx add their own newline at the\nend...\n\nSponsored by:\tNetflix, Inc.","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/9bde258984f54fc570ad8807cbc7b0fb154c34ec"},{"sha":"a62316f79b810f1f34f80a2bb9e01965e025de77","author":{"email":"a162caffcb6897220f4d1cf28164d73cb91993a8@FreeBSD.org","name":"ed"},"message":"Make posix_fallocate() and posix_fadvise() work.\n\nWe can map these system calls directly to the FreeBSD counterparts. The\nother filesystem related system calls will be sent out for review\nseparately, as they are a bit more complex to get right.","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/a62316f79b810f1f34f80a2bb9e01965e025de77"},{"sha":"8f7472a7ae17efc57162c187db10198c236606e1","author":{"email":"8d3093630820d106f09020ea478d17f40b22b135@FreeBSD.org","name":"zbb"},"message":"Add identify_cpu() to ARM64 init_secondary routine\n\nIdentify current CPU. This is necessary to setup\naffinity registers and to provide support for\nruntime chip identification.\n\nReviewed by:   andrew\nObtained from: Semihalf\nSponsored by:  The FreeBSD Foundation\nDifferential Revision: https://reviews.freebsd.org/D3095","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/8f7472a7ae17efc57162c187db10198c236606e1"},{"sha":"5452c70d20e68db6d162603729cc25986d19a99b","author":{"email":"a162caffcb6897220f4d1cf28164d73cb91993a8@FreeBSD.org","name":"ed"},"message":"Implement the trivial socket system calls: shutdown() and listen().","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/5452c70d20e68db6d162603729cc25986d19a99b"},{"sha":"c689a30143b0f4c8f2cc472964fa31b3ec67be78","author":{"email":"84b503db6d985a7240515b02455e8dc027cb5b7d@FreeBSD.org","name":"mav"},"message":"MULTI_ID supported does not mean it is used.","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/c689a30143b0f4c8f2cc472964fa31b3ec67be78"},{"sha":"0ceb4ab18abe4fab65b1b1a65ce478016ced262b","author":{"email":"02e0a999c50b1f88df7a8f5a04e1b76b35ea6a88@FreeBSD.org","name":"andrew"},"message":"Fix an infinite loop when a node doesn't have an interrupt-parent property.\n\nSubmitted by:\tAleksey Kuleshov <rndfax@yandex.ru>\nDifferential Revision: https://reviews.freebsd.org/D3041","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/0ceb4ab18abe4fab65b1b1a65ce478016ced262b"},{"sha":"22558313d541c66693c47ea93415ba504166cf2f","author":{"email":"67150a9dcf8948cde92f2ba91d8ada0d3335c521@FreeBSD.org","name":"kib"},"message":"Style.  Remove excessive brackets.  Compare non-boolean with zero.\n\nSponsored by:\tThe FreeBSD Foundation\nMFC after:\t2 weeks","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/22558313d541c66693c47ea93415ba504166cf2f"},{"sha":"55f3e632fbf869c19c0fdd437056f9120201941a","author":{"email":"67150a9dcf8948cde92f2ba91d8ada0d3335c521@FreeBSD.org","name":"kib"},"message":"Reset non-zero it_need indicator to zero atomically with fetching its\ncurrent value.  It is believed that the change is the real fix for the\nissue which was covered over by the r252683.\n\nWith the current code, if the interrupt handler sets it_need between\nread and consequent reset, the update could be lost and\nithread_execute_handlers() would not be called in response to the lost\nupdate.\n\nThe r252683 could have hide the issue since at the moment of commit,\natomic_load_acq_int() did locked cmpxchg on the variable, which puts\nthe cache line into the exclusive owned state and clears store\nbuffers.  Then the immediate store of zero has very high chance of\nreusing the exclusive state of the cache line and make the load and\nstore sequence operate as atomic swap.\n\nFor now, add the acq+rel fence immediately after the swap, to not\ndisturb current (but excessive) ordering.  Acquire is needed for the\nih_need reads after the load, while release does not serve a useful\npurpose [*].\n\nReviewed by:\talc\nNoted by:\talc [*]\nDiscussed with:\tbde\nTested by:\tpho\nSponsored by:\tThe FreeBSD Foundation\nMFC after:\t2 weeks","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/55f3e632fbf869c19c0fdd437056f9120201941a"},{"sha":"f5525a768b5e28c474ef73325929a8f9595679c4","author":{"email":"cce3b81ce1c05726331254f5d3dba8d589a4bfa8@FreeBSD.org","name":"bapt"},"message":"Fix trimming spaces writing at index -1 if an empty string is passed\n\nSubmitted by:\tGennady Proskurin <gprspb@mail.ru>","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/f5525a768b5e28c474ef73325929a8f9595679c4"},{"sha":"9a743646f33d8059de49943ec004b2ec8b47b2d9","author":{"email":"076bc3cc99ad0ebf7602ff1b00697f548a2d8b9a@FreeBSD.org","name":"jmg"},"message":"fix the docs, the number of frags per inode (NFPI) changed in r228794\nto 2 from 4, but the man page didn't get updated...\n\nother minor changes to make igor happy...\n\nMFC after:\t3 days","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/9a743646f33d8059de49943ec004b2ec8b47b2d9"},{"sha":"abe89cf2273a58b07b609d6c6fdb415955f7c03b","author":{"email":"67150a9dcf8948cde92f2ba91d8ada0d3335c521@FreeBSD.org","name":"kib"},"message":"Do not use atomic_swap_int(9), it is not available on all\narchitectures.  Atomic_cmpset_int(9) is a direct replacement, due to\nloop.  The change fixes arm, arm64, mips an sparc64, which lack\natomic_swap().\n\nSuggested and reviewed by:\talc\nSponsored by:\tThe FreeBSD Foundation\nMFC after:\t2 weeks","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/abe89cf2273a58b07b609d6c6fdb415955f7c03b"},{"sha":"51a129b0cfe7f049e6f5b2d2d4062b1334af4a32","author":{"email":"f4d86d36019180b43c7b4fc2b1314c0cc4c59090@FreeBSD.org","name":"ache"},"message":"Comment out usr/sbin/mailwrapper removal\nbecause for no mailwrapper case we have:\n/usr/sbin/sendmail -> /usr/sbin/mailwrapper\n/usr/sbin/mailwrapper -> /usr/libexec/sendmail/sendmail\nAdd comment explaining it.","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/51a129b0cfe7f049e6f5b2d2d4062b1334af4a32"},{"sha":"ed4d6dbea261a4dc66b41c906a7fd91fc2332e4f","author":{"email":"d43962b0ecc6fa2a514f5b58406ccb3c870bdd0e@FreeBSD.org","name":"araujo"},"message":"Fix a warning spotted by gcc4.9: dereferencing type-punned pointer will break\nstrict-aliasing rules.\n\nDeclare some variables as statics as well as some functions that are internal\nhelpers. Update the function broadcast_result() to a post-K&R definition.\n\nDifferential Revision:\tD2690\nReviewed by:\t\trodrigc, dim","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/ed4d6dbea261a4dc66b41c906a7fd91fc2332e4f"},{"sha":"a1c789ec2b3c00a8fa2047d81c6d2c5bb9bb805c","author":{"email":"c4479bc4706e61360828478abdd0473c5b3be631@FreeBSD.org","name":"neel"},"message":"If uart interrupts are not functioning then schedule the callout to do the\npolling at device attach time [1].\n\nAdd tunables 'debug.uart_force_poll' and 'debug.uart_poll_freq' to control\nuart polling.\n\nSubmitted by:\tAleksey Kuleshov (rndfax@yandex.ru) [1]","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/a1c789ec2b3c00a8fa2047d81c6d2c5bb9bb805c"},{"sha":"27319a41aea60219b5c9b1087bacb1258373d2db","author":{"email":"3bae1b7d571c203acfb4d62748e2c04607e018fd@FreeBSD.org","name":"jhibbits"},"message":"Fix userland program exception handling for powerpc64.\n\nIt appears that the linker will not handle 64-bit relocations at addresses that\nare not aligned to 8-byte boundaries.  Prior to this change the line:\n\n  .llong generictrap\n\nwas aligned to a 4-byte address, and the linker replaced that with an 8-byte\n0x0.  Aligning that address to 8 bytes caused the linker to generate the proper\nrelocation.  As a follow-through, the dblow from trap_subr33.S used the code\nsequence 'lwz %r1, TRAP_GENTRAP(0)', so this reproduces the analogue of that for\n64-bit.","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/27319a41aea60219b5c9b1087bacb1258373d2db"},{"sha":"03f3b4766f6801df0aeebea876454797668147ad","author":{"email":"3bae1b7d571c203acfb4d62748e2c04607e018fd@FreeBSD.org","name":"jhibbits"},"message":"Fix formatting.","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/03f3b4766f6801df0aeebea876454797668147ad"},{"sha":"a85d617da64df13a78f7bad95ba6c0a6be6da840","author":{"email":"a162caffcb6897220f4d1cf28164d73cb91993a8@FreeBSD.org","name":"ed"},"message":"Implement CloudABI's exec() call.\n\nSummary:\nIn a runtime that is purely based on capability-based security, there is\na strong emphasis on how programs start their execution. We need to make\nsure that we execute an new program with an exact set of file\ndescriptors, ensuring that credentials are not leaked into the process\naccidentally.\n\nProviding the right file descriptors is just half the problem. There\nalso needs to be a framework in place that gives meaning to these file\ndescriptors. How does a CloudABI mail server know which of the file\ndescriptors corresponds to the socket that receives incoming emails?\nFurthermore, how will this mail server acquire its configuration\nparameters, as it cannot open a configuration file from a global path on\ndisk?\n\nCloudABI solves this problem by replacing traditional string command\nline arguments by tree-like data structure consisting of scalars,\nsequences and mappings (similar to YAML/JSON). In this structure, file\ndescriptors are treated as a first-class citizen. When calling exec(),\nfile descriptors are passed on to the new executable if and only if they\nare referenced from this tree structure. See the cloudabi-run(1) man\npage for more details and examples (sysutils/cloudabi-utils).\n\nFortunately, the kernel does not need to care about this tree structure\nat all. The C library is responsible for serializing and deserializing,\nbut also for extracting the list of referenced file descriptors. The\nsystem call only receives a copy of the serialized data and a layout of\nwhat the new file descriptor table should look like:\n\n    int proc_exec(int execfd, const void *data, size_t datalen, const int *fds,\n              size_t fdslen);\n\nThis change introduces a set of fd*_remapped() functions:\n\n- fdcopy_remapped() pulls a copy of a file descriptor table, remapping\n  all of the file descriptors according to the provided mapping table.\n- fdinstall_remapped() replaces the file descriptor table of the process\n  by the copy created by fdcopy_remapped().\n- fdescfree_remapped() frees the table in case we aborted before\n  fdinstall_remapped().\n\nWe then add a function exec_copyin_data_fds() that builds on top these\nfunctions. It copies in the data and constructs a new remapped file\ndescriptor. This is used by cloudabi_sys_proc_exec().\n\nTest Plan:\ncloudabi-run(1) is capable of spawning processes successfully, providing\nit data and file descriptors. procstat -f seems to confirm all is good.\nRegular FreeBSD processes also work properly.\n\nReviewers: kib, mjg\n\nReviewed By: mjg\n\nSubscribers: imp\n\nDifferential Revision: https://reviews.freebsd.org/D3079","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/a85d617da64df13a78f7bad95ba6c0a6be6da840"},{"sha":"3c97d44202e3bdca5ea67d59db0ac9215aa45b72","author":{"email":"e6bed26a3c3b5a74fba7843ed06c4ab25455a3ca@FreeBSD.org","name":"kevlo"},"message":"Fix typo in register definition.\n\nSubmitted by:\tJames Hung\nReviewed by:\tsbruno","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/3c97d44202e3bdca5ea67d59db0ac9215aa45b72"},{"sha":"2b7ab302c306d27e6242e609481f4e18a08e5943","author":{"email":"8d3093630820d106f09020ea478d17f40b22b135@FreeBSD.org","name":"zbb"},"message":"Set-up proper TCR values for memory related to Translation Table Walking\n\nThis commit adds proper cache and shareability attributes to\nthe TCR register.\nSet memory attributes to Normal, outer and inner cacheable WBWA.\nSet shareability to inner and outer shareable when SMP is enabled.\n\nReviewed by:   andrew\nObtained from: Semihalf\nSponsored by:  The FreeBSD Foundation\nDifferential Revision: https://reviews.freebsd.org/D3093","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/2b7ab302c306d27e6242e609481f4e18a08e5943"},{"sha":"fbdf5266d5ad7412c4ffa2455c7636df844707d7","author":{"email":"8d3093630820d106f09020ea478d17f40b22b135@FreeBSD.org","name":"zbb"},"message":"Fix KSTACK_PAGES issue when the default value was changed in KERNCONF\n\nIf KSTACK_PAGES was changed to anything alse than the default,\nthe value from param.h was taken instead in some places and\nthe value from KENRCONF in some others. This resulted in\ninconsistency which caused corruption in SMP envorinment.\n\nEnsure all places where KSTACK_PAGES are used the opt_kstack_pages.h\nis included.\n\nThe file opt_kstack_pages.h could not be included in param.h\nbecause was breaking the toolchain compilation.\n\nReviewed by:   kib\nObtained from: Semihalf\nSponsored by:  The FreeBSD Foundation\nDifferential Revision: https://reviews.freebsd.org/D3094","distinct":true,"url":"https://api.github.com/repos/opntr/opBSD/commits/fbdf5266d5ad7412c4ffa2455c7636df844707d7"}]}