aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* stress2: Added two new syzkaller reproducers. Update the exclude listHEADmainPeter Holm4 hours3-2/+201
|
* Make encode/decode extra time functions inline.Fedor Uporov6 hours1-2/+2
| | | | | Mentioned by: pfg MFC after: 2 weeks
* nfscl: Add support for va_birthtime to NFSv4Rick Macklem9 hours7-1/+26
| | | | | | | | | | | | | | | There is a NFSv4 file attribute called TimeCreate that can be used for va_birthtime. r362175 added some support for use of TimeCreate. This patch completes support of va_birthtime by adding support for setting this attribute to the server. It also eanbles the client to acquire and set the attribute for a NFSv4 server that supports the attribute. Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D30156
* This takes Warners suggested approach to making it so thatRandall Stewart12 hours1-0/+14
| | | | | | | | | | | platforms that for whatever reason cannot include the RATELIMIT option can still work with rack. It adds two dummy functions that rack will call and find out that the highest hw supported b/w is 0 (which kinda makes sense and rack is already prepared to handle). Reviewed by: Michael Tuexen, Warner Losh Sponsored by: Netflix Inc Differential Revision: https://reviews.freebsd.org/D30163
* Fix panic when trying to delete non-existent gateway in multipath route.Alexander V. Chernikov13 hours2-6/+11
| | | | | | | | | | | | | | | | | | IF non-existend gateway was specified, the code responsible for calculating an updated nexthop group, returned the same already-used nexthop group. After the route table update, the operation result contained the same old & new nexthop groups. Thus, the code responsible for decomposing the notification to the list of simple nexthop-level notifications, was not able to find any differences. As a result, it hasn't updated any of the "simple" notification fields, resulting in empty rtentry pointer. This empty pointer was the direct reason of a panic. Fix the problem by returning ESRCH when the new nexthop group is the same as the old one after applying gateway filter. Reported by: Michael <michael.adm at gmail.com> PR: 255665 MFC after: 3 days
* pf tests: Test killing matching statesKristof Provost14 hours1-0/+71
| | | | | | MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30093
* pf: Support killing 'matching' statesKristof Provost14 hours7-17/+131
| | | | | | | | | | | | | | Optionally also kill states that match (i.e. are the NATed state or opposite direction state entry for) the state we're killing. See also https://redmine.pfsense.org/issues/8555 Submitted by: Steven Brown Reviewed by: bcr (man page) Obtained from: https://github.com/pfsense/FreeBSD-src/pull/11/ MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30092
* pf tests: Test killing states by gatewayKristof Provost14 hours1-0/+60
| | | | | | MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30059
* pf: Allow states to by killed per 'gateway'Kristof Provost14 hours7-5/+96
| | | | | | | | | | | | This allows us to kill states created from a rule with route-to/reply-to set. This is particularly useful in multi-wan setups, where one of the WAN links goes down. Submitted by: Steven Brown Obtained from: https://github.com/pfsense/FreeBSD-src/pull/11/ MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30058
* authpf: Start using libpfctlKristof Provost14 hours2-18/+20
| | | | | | | | Use pfctl_kill_states() rather than the DIOCKILLSTATES ioctl directly. MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30057
* pfctl: Start using DIOCKILLSTATESNVKristof Provost14 hours3-48/+69
| | | | | | MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30055
* pf: Introduce DIOCKILLSTATESNVKristof Provost14 hours2-15/+96
| | | | | | | | Introduce an nvlist based alternative to DIOCKILLSTATES. MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30054
* pfctl: Start using DIOCCLRSTATESNVKristof Provost14 hours3-10/+88
| | | | | | MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30053
* pf: Introduce DIOCCLRSTATESNVKristof Provost14 hours4-27/+192
| | | | | | | | Introduce an nvlist variant of DIOCCLRSTATES. MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30052
* pfctl: Optionally show gateway information for statesKristof Provost14 hours1-0/+2
| | | | | | | | | | | When showing the states, in very verbose mode, also display the gateway (i.e. the target for route-to/reply-to). Submitted by: Steven Brown Reviewed by: donner MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30051
* Releases history updateMaxim Konovalov14 hours1-13/+34
| | | | | Add DragonFly 5.8.1, OpenBSD 6.7, FreeBSD 11.4, DragonFly 5.8.2, DragonFly 5.8.3, OpenBSD 6.8, NetBSD 9.1, FreeBSD 13.0, OpenBSD 6.9.
* divert: Fix mbuf ownership confusion in div_output()Mark Johnston15 hours1-8/+9
| | | | | | | | | | | | | | | | | | | div_output_outbound() and div_output_inbound() relied on the caller to free the mbuf if an error occurred. However, this is contrary to the semantics of their callees, ip_output(), ip6_output() and netisr_queue_src(), which always consume the mbuf. So, if one of these functions returned an error, that would get propagated up to div_output(), resulting in a double free. Fix the problem by making div_output_outbound() and div_output_inbound() responsible for freeing the mbuf in all cases. Reported by: Michael Schmiedgen <schmiedgen@gmx.net> Tested by: Michael Schmiedgen Reviewed by: donner MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30129
* stack(9): Disable KASAN in stack_capture()Mark Johnston15 hours1-1/+1
| | | | | | | | | When unwinding the stack, we may encounter a stack frame in a poisoned region of the stack, triggering a false positive. Reviewed by: andrew, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30126
* cdefs: Make __nosanitizeaddress work for KASAN as wellMark Johnston15 hours1-1/+7
| | | | | | | | Add __nosanitizememory while I'm here. Reviewed by: andrew, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30126
* linker_set: Disable ASAN only in userspaceMark Johnston15 hours1-1/+12
| | | | | | | | | | KASAN does not insert redzones around global variables and so is not susceptible to the problem that led to us disabling ASAN for linker set elements in the first place (see commit fe3d8086fb6f). Reviewed by: andrew, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30126
* devd.conf: Remove support for coldsyncCeri Davies15 hours1-13/+0
| | | | | | | | | | The coldsync port was removed in 2012. The last stable release of coldsync was issued in 2002. Let's get rid of it. PR: 255051 Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30100
* devd.conf: TypoCeri Davies15 hours1-1/+1
| | | | | PR: 255051 MFC after: 3 days
* Fix a UDP tunneling issue with rack. Basically there are twoRandall Stewart16 hours1-3/+13
| | | | | | | | | | | | | | issues. A) Not enough hdrlen was being calculated when a UDP tunnel is in place. and B) Not enough memory is allocated in racks fsb. We need to overbook the fsb to include a udphdr just in case. Submitted by: Peter Lei Reviewed by: Michael Tuexen Sponsored by: Netflix Inc Differential Revision: https://reviews.freebsd.org/D30157
* qat.4: the Authors section prettificationMaxim Konovalov18 hours1-6/+5
| | | | | | | Rewording the Authors section in way that allows to remove a hard break before Mark's name. Reviewed by: markj
* Constify vm_pager-related virtual tables.Konstantin Belousov20 hours10-32/+33
| | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* Add OBJT_SWAP_TMPFS pagerKonstantin Belousov20 hours15-95/+115
| | | | | | | | | | | | | | | | | | | | This is OBJT_SWAP pager, specialized for tmpfs. Right now, both swap pager and generic vm code have to explicitly handle swap objects which are tmpfs vnode v_object, in the special ways. Replace (almost) all such places with proper methods. Since VM still needs a notion of the 'swap object', regardless of its use, add yet another type-classification flag OBJ_SWAP. Set it in vm_object_allocate() where other type-class flags are set. This change almost completely eliminates the knowledge of tmpfs from VM, and opens a way to make OBJT_SWAP_TMPFS loadable from tmpfs.ko. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* pagertab: use designated initializersKonstantin Belousov20 hours1-8/+8
| | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* Style enum obj_typeKonstantin Belousov20 hours1-2/+10
| | | | | | | | | | | Put each type into dedicated line, which makes addition of new types cleaner. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* Implement vm_object_vnode() using vm_pager_getvp()Konstantin Belousov20 hours3-20/+14
| | | | | | | | | | | Allow vp_heldp argument to be NULL, in which case the returned vnode is not held for tmpfs swap objects. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* Add pgo_freespace methodKonstantin Belousov20 hours4-20/+26
| | | | | | | | | | Makes the code in vm_object collapse/page_remove cleaner Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* Add pgo_getvp methodKonstantin Belousov20 hours5-32/+68
| | | | | | | | | | This eliminates the staircase of conditions in vm_map_entry_set_vnode_text(). Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* Add pgo_mightbedirty methodKonstantin Belousov20 hours6-15/+31
| | | | | | | | | | Used to implement vm_object_mightbedirty() Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* vm_pager: add pgo_set_writeable_dirty methodKonstantin Belousov20 hours6-7/+25
| | | | | | | | | | | specialized for swap and vnode pagers, and used to implement vm_object_set_writeable_dirty(). Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* vm_pager: style some wrappersKonstantin Belousov20 hours1-21/+18
| | | | | | | | | | | Fill lines with the function definitions. Use local var to shorten repeated extra-long expressions. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* swappagerops: slightly more style-compliant formattingKonstantin Belousov20 hours1-7/+7
| | | | | | | | | | Remove excess spaces from comments. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30070
* mpsutil: extend show adapter information, add NCQ controlDaniel Austin22 hours4-2/+171
| | | | | | | | | | | | | 'show adapter' now shows PCIe width and speed, IOC Speed, and the temperature of the controller. A new command, 'set ncq', is added. It enables or disables SATA NCQ in the NVRAM of the card. Its current setting is added to 'show adapter' as well. PR: 254841 MFC after: 2 weeks Relnotes: perhaps
* nvmecontrol: fix typo (s/Managment/Management/)Edward Tomasz Napierala22 hours1-1/+1
| | | | Reported By: pstef
* Make inode extra time fields updating logic more closer to linux.Fedor Uporov26 hours2-19/+43
| | | | | | | | | Found using pjdfstest: pjdfstest/tests/utimensat/09.t Reviewed by: pfg MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29933
* Invalidate inode extents cache on truncation.Fedor Uporov27 hours1-0/+1
| | | | | | | | | It is needed to invalidate cache in case of inode space removal to avoid situation, when extents cache returns not exist extent. Reviewed by: pfg MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29931
* Improve extents verification logic.Fedor Uporov27 hours5-51/+104
| | | | | | | | | | It is possible to walk thru inode extents if EXT2FS_PRINT_EXTENTS macro is defined. The extents headers magics and physical blocks ranges are checked during extents walk. Reviewed by: pfg MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29932
* storvsc: fix auto-sense reportingAndriy Gapon27 hours1-1/+2
| | | | | | | | | | | | | | I saw a situation where the driver set CAM_AUTOSNS_VALID on a failed ccb even though SRB_STATUS_AUTOSENSE_VALID was not set in the status. The actual sense data remained all zeros. The problem seems to be that create_storvsc_request() always sets hv_storvsc_request::sense_info_len, so checking for sense_info_len != 0 is not enough to determine if any auto-sense data is actually available. Reviewed by: whu, imp MFC after: 2 weeks Sponsored by: CyberSecure Differential Revision: https://reviews.freebsd.org/D30124
* Add chr/blk devices support.Fedor Uporov27 hours5-16/+82
| | | | | | | | | | The dev field is placed into the inode structure. The major/minor numbers conversion to/from linux compatile format happen during on-disk inodes writing/reading. Reviewed by: pfg MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29930
* Fix inode birthtime updating logic.Fedor Uporov27 hours1-3/+5
| | | | | | | | | | | | | The birthtime field of struct vattr does not checked for VNOVAL in case of ext2_setattr() and produce incorrect inode birthtime values. Found using pjdfstest: pjdfstest/tests/utimensat/03.t Reviewed by: pfg MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29929
* virtio-modern: fix PCI common read/write functions on big endian targetsAlfredo Dal'Ava Junior28 hours1-4/+8
| | | | | | | | | | | Virtio modern has the common data organized in little endian, but on powerpc64 BE it was reading and writing in the wrong endian. Submitted by: Leonardo Bianconi <leonardo.bianconi@eldorado.org.br> Reviewed by: bryanv, alfredo Sponsored by: Eldorado Research Institute (eldorado.org.br) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28947
* sdhci_fsl_fdt: specify base clk divisor per SoCMarcin Wojtas32 hours1-4/+8
| | | | | | | | | | | | | Only LS1046A and LS1028A require the base clk to be divided by 2. Implement that by moving the divider to a SoC specific data. This commit fixes base clk setup for the entire SoC family, including the already suported LS2160A. Submitted by: Lukasz Hajec <lha@semihalf.com> Reviewed by: manu Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30120
* Add LS1028A clockgen driverMarcin Wojtas32 hours2-0/+304
| | | | | | | | | | The new driver provides probe and attach functions for the NXP LS1028A clockgen and passes configuration information to QorIQ clockgen class. Submitted by: Lukasz Hajec <lha@semihalf.com> Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30125
* sqlite3: import sqlite3 3.35.5Cy Schubert33 hours9-4857/+7708
|\ | | | | | | | | | | | | | | Merge commit '0511e356f5e2106928ee352ee974d1470c860a9a' into new_merge Changes at https://www.sqlite.org/releaselog/3_35_5.html. MFC after: 1 month
| * sqlite3: Vendor import of sqlite3 3.35.5vendor/sqlite3Cy Schubert38 hours9-4857/+7708
| | | | | | | | Changes at https://www.sqlite.org/releaselog/3_35_5.html.
| * Revert "sqlite3: Vendor import of sqlite3 3.35.5"Cy Schubert38 hours1916-959088/+273682
| | | | | | | | | | | | | | | | The source to be used should be sqlite-autoconf-3350500.tar.gz instead of the souce sqlite-amalgamation-3350500.zip used by the port. This reverts commit eccd5a4d3926c0716dd11bdf3242da56116f68c6.
| * sqlite3: Vendor import of sqlite3 3.35.5vendor/sqlite3/sqlite-3350500Cy Schubert2 days1916-273682/+959088
| | | | | | | | Changes at https://www.sqlite.org/releaselog/3_35_5.html.