#
9494dfe1 |
| 19-Jul-2024 |
John Baldwin <jhb@FreeBSD.org> |
fwcontrol: Allocate full fw_asyreq structures passed to the kernel
The FW_ASYREQ ioctl accepts a struct fw_asyreq object as its argument, meaning that the kernel always copies in the full structure
fwcontrol: Allocate full fw_asyreq structures passed to the kernel
The FW_ASYREQ ioctl accepts a struct fw_asyreq object as its argument, meaning that the kernel always copies in the full structure in sys_ioctl before passing the request down to the driver. However, fwcontrol was allocating smaller objects that contained only the request header and a variable-sized payload. This means that the kernel copy in sys_ioctl was reading off the end of this buffer. On current architectures this happened to be ok, but it is UB.
Instead, allocate a full structure.
Reported by: GCC 14 -Walloc-size Reviewed by: rlibby, brooks Differential Revision: https://reviews.freebsd.org/D46014
show more ...
|
Revision tags: release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0 |
|
#
9122aeea |
| 09-Oct-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r353316 through r353350.
|
#
f1897613 |
| 08-Oct-2019 |
Brooks Davis <brooks@FreeBSD.org> |
Fix various -Wpointer-compare warnings
This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk.
Almos
Fix various -Wpointer-compare warnings
This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk.
Almost all of these are harmless, except for fwcontrol's str2node, which needs to both guard against dereferencing a NULL pointer (though in practice it appears none of the callers will ever pass one in), as well as ensure it doesn't parse the empty string as node 0 due to strtol's awkward interface.
Submitted by: James Clarke <jtrc27@jrtc27.com> Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D21914
show more ...
|
Revision tags: release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
937d37fc |
| 19-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325842 through r325998.
|
#
df57947f |
| 18-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
spdx: initial adoption of licensing ID tags.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensou
spdx: initial adoption of licensing ID tags.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point.
Initially, only tag files that use BSD 4-Clause "Original" license.
RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133
show more ...
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0 |
|
#
8fa0b743 |
| 23-Jan-2012 |
Xin LI <delphij@FreeBSD.org> |
IFC @230489 (pending review).
|
#
80dbff4e |
| 04-Jan-2012 |
Sean Bruno <sbruno@FreeBSD.org> |
IFC to head to catch up the bhyve branch
Approved by: grehan@
|
Revision tags: release/9.0.0 |
|
#
3df5ecac |
| 30-Dec-2011 |
Ulrich Spörlein <uqs@FreeBSD.org> |
Spelling fixes for usr.sbin/
|
#
520374b5 |
| 21-Dec-2011 |
Eitan Adler <eadler@FreeBSD.org> |
- Remove extraneous null ptr deref checks - Fix memory leak
Submitted by: Slono Slono <slonoman2011@yandex.ru> Approved by: jhb MFC after: 1 week
|
Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0 |
|
#
6d4b9715 |
| 09-Dec-2010 |
Dimitry Andric <dim@FreeBSD.org> |
Sync: merge r216133 through r216338 from ^/head.
|
#
f55df2a2 |
| 09-Dec-2010 |
Kevin Lo <kevlo@FreeBSD.org> |
Closing fd when it's done
Reviewed by: sbruno
|
Revision tags: release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0 |
|
#
7d4b968b |
| 17-Sep-2009 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Merge from head up to r188941 (last revision before the USB stack switch)
|
Revision tags: release/7.2.0_cvs, release/7.2.0 |
|
#
1829d5da |
| 12-Mar-2009 |
Warner Losh <imp@FreeBSD.org> |
Update the projects tree to a newer FreeBSD current.
|
#
cde9186f |
| 18-Feb-2009 |
Sean Bruno <sbruno@FreeBSD.org> |
Remove reference to phy_delay from fwcontrol. Thanks for the catch!
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr> MFC after: 2 weeks
|
#
96747dc0 |
| 02-Jan-2009 |
Warner Losh <imp@FreeBSD.org> |
Add fd = -1 after close when we detect the format so that subsequent open_dev will reopen the device.
|
Revision tags: release/7.1.0_cvs, release/7.1.0 |
|
#
c1de48a3 |
| 12-Dec-2008 |
Sean Bruno <sbruno@FreeBSD.org> |
Reviewed by: (Dieter)freebsd@sopwith.solgatos.com Approved by: slong scottl@samsco.org MFC after: 2 weeks
Final cleanup of fwcontrol. NetBSD compatibility Cleanup errors in usage() display Fin
Reviewed by: (Dieter)freebsd@sopwith.solgatos.com Approved by: slong scottl@samsco.org MFC after: 2 weeks
Final cleanup of fwcontrol. NetBSD compatibility Cleanup errors in usage() display Finish up error handling via errx/warnx Generate error on unparsed command line syntax Change device(devbase) to open into the form /dev/fwX.X
show more ...
|
Revision tags: release/6.4.0_cvs, release/6.4.0 |
|
#
7f1b527c |
| 10-Sep-2008 |
Sean Bruno <sbruno@FreeBSD.org> |
Beginning of overhaul of fwcontrol: - Documentation of send_phy_config() - cleanup of malloc's() and added error checking throughout - new capability to iterate over multiple firewire buses - upd
Beginning of overhaul of fwcontrol: - Documentation of send_phy_config() - cleanup of malloc's() and added error checking throughout - new capability to iterate over multiple firewire buses - update usage() display - cleanup command line parsing to allow out of order switches - cleanup command line parsing to allow multiple switches per invocation - cleanup grammar of man page a bit - add some ranges to the man page to indicate what values are valid
Since fwcontrol's code is the same across 6/7/head this can be applied to all branches after the MFC period.
Reviewed by: Dieter freebsd@sopwith.solgatos.com Approved by: mentor Scott scottl@samsco.org MFC after: 60 days
show more ...
|
#
302176c7 |
| 05-Mar-2008 |
Hidetoshi Shimokawa <simokawa@FreeBSD.org> |
- add '-f' option to force root node. - fix byte order in read_write_quad() - show hostnames in the list - fix typo in manpage
MFC after: 1 week
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
#
6d815a7d |
| 27-Oct-2006 |
Warner Losh <imp@FreeBSD.org> |
Add MPEG2-TS/HDV support to fwcontrol.
Submitted by: Petr Holub" <hopet@ics.muni.cz> Clean up by: mi@ Pr: 98134
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
#
3fe9d89a |
| 20-May-2005 |
Philippe Charnier <charnier@FreeBSD.org> |
Remove unused variables. Shorten the path to a WARNS=6 compliance.
|
Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
f6248231 |
| 29-Oct-2004 |
Hidetoshi Shimokawa <simokawa@FreeBSD.org> |
Add usage of -m option.
|
#
1be7387c |
| 24-Oct-2004 |
Hidetoshi Shimokawa <simokawa@FreeBSD.org> |
Add -m option, set default fwmem target.
|
#
cb5df0b2 |
| 27-May-2004 |
Brooks Davis <brooks@FreeBSD.org> |
Use new eui64(3) functions to print EUI-64s and to allow access to nodes by EUI-64 and name.
Reviewed by: simokawa
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
3d7b1b41 |
| 23-May-2004 |
Doug Rabson <dfr@FreeBSD.org> |
Don't crash if the CROM is all zeros.
|