summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r284583, r285797, r285799, r287168, r298714, r298720, r298838,jkim2016-09-303-49/+58
| | | | | | | | r300879 Merge ACPICA up to 20160527. Requested by: mav
* MFC r300633truckman2016-06-011-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix acpidb CIDs 1011279 (Buffer not null terminated) and 978405 and 1199380 (Resource leak). load_dsdt() calls strncpy() to copy a filename and Coverity warns that the destination buffer may not be NUL terminated. Fix this by using strlcpy() instead. If silent truncation occurs, then the filename was not valid anyway. load_dsdt() leaks an fd (CID 978405) and a memory region allocated using mmap() (CID 1199380) when it returns. Fix these by calling close() and munmap() as appropriate. Don't bother fixing the minor memory leak "list", allocated by AcGetAllTablesFromFile() (CID 1355191). Check for truncation when creating the temp file name. Set a flag to indicate that the temp file should be unlinked. Relying on a strcmp() test could delete the input file in contrived cases. Reported by: Coverity CID: 1011279, 978405, 1199380 Reviewed by: jkim Differential Revision: https://reviews.freebsd.org/D6368
* MFC r300632truckman2016-06-011-18/+43
| | | | | | | | | | | | | | | | | | | | | | | | Fix acpidump CID 1011278 (Buffer not null terminated) and other issues Coverity reports that a buffer used for temporary file generation might not be NUL terminated by strncpy(). This is probably not true because the input gets passed through realpath(), but if the path name is sufficiently long the name could be truncated and cause other problems. The code for generating the temp file names is also overly complex. Instead of a bunch of calls to strncpy() and and strncat(), simplify the code by using snprintf() and add checks for unexpected truncation. The output file created by iasl -d is predictable. Fix this by using mkdtemp() to create a directory to hold the iasl input and output files. Check the return values of more syscalls. Reported by: Coverity CID: 1011278 Reviewed by: jkim Differential Revision: https://reviews.freebsd.org/D6360
* MFC: r288116jkim2015-09-251-5/+3
| | | | Remove unsupported S5 (power off) state.
* MFC: r267248, r267260, r267261, r267320jkim2015-09-251-1/+5
| | | | Document 'k' option for acpiconf(8).
* MFC: r283092, r283966jkim2015-06-162-3/+3
| | | | | | Merge ACPICA 20150515. Relnotes: yes
* MFC: r281335jkim2015-04-131-21/+25
| | | | Print 64-bit addresses clearly with leading zeros to avoid confusions.
* MFC: r281331jkim2015-04-131-26/+10
| | | | Do not crash when RSDT/XSDT contains an empty entry.
* MFC: r281171jkim2015-04-111-10/+24
| | | | | | Tidy up battery status information. Remove a trailing white space. PR: 193671
* MFC r272444 (by jkim):dim2015-04-046-46/+81
| | | | | | | | | | | Merge ACPICA 20140926. MFC r278970 (by jkim): Merge ACPICA 20141107 and 20150204. Approved by: jkim Relnotes: yes
* Consistently cast ACPICA 64-bit integer types when we print them.jkim2013-06-262-10/+10
|
* Fix a long standing logic bug introduced in r167814. The code was added tojkim2013-05-311-1/+1
| | | | | | | get RSDP from loader(8) hint via kenv(2) but the bug nullified the new code and we always fell back to the previous method, i. e., sysctlbyname(3). MFC after: 3 days
* Merge ACPICA 20130517.jkim2013-05-202-24/+24
|
* Fix declarations to slightly increase WARNS level.jkim2013-04-232-6/+9
|
* Clean up generated files added in r233250.jkim2013-04-231-1/+2
|
* Merge ACPICA 20130418.jkim2013-04-191-4/+5
|
* Merge ACPICA 20130328.jkim2013-04-042-16/+18
|
* Merge ACPICA 20130214.jkim2013-02-152-14/+14
|
* Merge ACPICA 20130117.jkim2013-01-172-28/+31
|
* Teach acpidump to dump the DMA Remapping Reporting table (aka DMAR).neel2012-12-212-13/+263
| | | | | | | The DMAR table is documented in chapter 8 of the Intel VT-d specification. Reviewed by: jhb Obtained from: NetApp
* Merge ACPICA 20121114.jkim2012-11-202-4/+5
|
* More -Wmissing-variable-declarations fixes.ed2012-10-192-8/+9
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Display the matrix of inter-domain distances in the SLIT table. This isjhb2012-10-041-0/+30
| | | | | | used to complement the SRAT table on NUMA machines. MFC after: 1 week
* Merge ACPICA 20120816.jkim2012-08-161-1/+1
|
* Merge ACPICA 20120711.jkim2012-07-112-6/+7
|
* Add range and table revision checking to avoid abend.takawata2012-07-091-1/+9
| | | | | | PR:bin/169707 Submitted by:Dan Lukes <dan@obluda.cz> MFC after:3 days.
* Merge ACPICA 20120620.jkim2012-06-221-2/+2
|
* Catch up with realpath(3) changes (r235266) and unbreak acpidump(8).jkim2012-05-251-3/+3
|
* Merge ACPICA 20120420.jkim2012-04-231-2/+3
|
* Merge ACPICA 20120320.jkim2012-03-201-1/+12
|
* Make parallel build more safer.jkim2012-03-071-8/+10
| | | | Reviewed by: tijl
* Fix a stupid typo.jkim2012-02-161-1/+1
|
* Merge ACPICA 20120215.jkim2012-02-163-43/+43
|
* Remove unused ACPICA sources from userland makefiles.jkim2012-01-132-10/+9
|
* Merge ACPICA 20120111.jkim2012-01-112-8/+9
|
* Reencode files to UTF-8. Drop CP1252 em-dash.uqs2011-12-301-1/+1
|
* Merge ACPICA 20111123.jkim2011-11-284-26/+31
|
* Plug fd leakskevlo2011-11-231-0/+1
|
* Purge _USE_BERKELEY_YACC definition from Makefile. This ugly hack is nojkim2011-04-151-1/+0
| | | | long necessary for us since r220680.
* Merge ACPICA 20110413.jkim2011-04-152-14/+26
|
* Merge ACPICA 20110211.jkim2011-02-122-24/+27
|
* Merge ACPICA 20110112. Switch to BSD/GPLv2 dual license[1].jkim2011-01-131-2/+2
| | | | Discussed with: core [1]
* Merge ACPICA 20101209.jkim2010-12-151-1/+1
|
* Merge ACPICA 20100915.jkim2010-09-162-3/+4
|
* When ACPI reports current battery consumption rate in mAmps, print it alsomav2010-08-241-16/+21
| | | | | in mWatts. Values in mAmps are not always suitable, because they depend on battery voltage, which depends on battery type and charge level.
* use uintmax_t instead of uint64_t.takawata2010-08-131-1/+1
| | | | Pointed out by: des.
* Fix build on amd64 and ia64.takawata2010-08-131-4/+3
|
* Fix breakage on 64bit architecture by using inttypes.h macro.takawata2010-08-121-1/+2
|
* Fix tindebox breakage about format warning.takawata2010-08-121-1/+1
|
* Add TCG ACPI spec table (TCPA) support.takawata2010-08-112-0/+274
| | | | Submitted by: Hans-Joerg_Hoexer@genua.de
OpenPOWER on IntegriCloud