summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-23Remove unused debug_syncprt, improve debug sysctl handlingkn
"syncprt" is unused since kern/vfs_syscalls.c r1.147 from 2008. Adding new debug sysctls is a bit opaque and looking at kern/kern_sysctl.c the only visible difference between used and stub ctldebug structs in the debugvars[] array is their extern keyword, indicating that it is defined elsewhere. sys/sysctl.h declares all debugN members as extern upfront, but these declarations are not needed. Remove the unused debug sysctl, rename the only remaining one to something meaningful and remove forward declarations from /sys/sysctl.h; this way, adding new debug sysctls is a matter of adding extern and coming up with a name, which is nicer to read on its own and better to grep for. OK mpi
2020-08-23Merge listen_sock into address, since there's a 1:1 correlation. Save someMartijn van Duren
overhead and 18LoC. OK jan@
2020-08-23Allow userland to use EVFILT_EXCEPT.Martin Pieuchot
ok mvs@, visa@
2020-08-23update to libfido2 46710ac06, picking up a few API changesDamien Miller
ok tb@ deraadt@ NB. major crank
2020-08-23Use sysctl_bounded_args for simple cases in cpu_sysctl on i386gnezdo
OK kn
2020-08-22Don't complain when child nodes don't have a _CRS method. This happens forMark Kettenis
example for control method batteries that are attached to I2C but use an OperationRegion() to access the I2C device. ok jcs@, gnedzo@
2020-08-22Prevent concurrent CREATE_CHILD_SA and INFORMATIONAL exchanges.tobhe
Make sure not to initiate new exchanges while waiting for an INFORMATIONAL response. ok markus@
2020-08-22Support looking up unix domain sockets by file name.Todd C. Miller
The best that we can do is string comparison of the file name. Previously, "fstat /var/run/foo.sock" would return no results. The -f option still won't work for sockets since they are not file system objects. OK kn@
2020-08-22Convert icmp_sysctl to sysctl_bounded_argsgnezdo
... these all look fine, derradt@
2020-08-22Convert ip_sysctl to sysctl_bounded_argsgnezdo
2020-08-22Convert udp_sysctl to sysctl_bounded_argsgnezdo
2020-08-22Add sizes to free() callskn
Simply reuse struct size or buffer length variables for free() the very same way they are used with malloc(), often within the same scope and/or only a few lines above. This leaves only a few selected free() calls with size zero in due to the fact that there is currently no variable to keep track of name and secret string lengths. OK mvs
2020-08-22The last timeout_add(sc_timeout) died in the great XS_NO_CCB purge of 2017. NukeKenneth R Westerback
pointless timeout_set(sc_timoeut) and timeout_del(sc_timeout) calls and the sc_timeout fields themselves.
2020-08-22Rework unicast/multicast configuration. Keep note that this only changesPatrick Wildt
the code configuring the parser, we do not yet add the proper multicast filters.
2020-08-22Correct oversize rxq initialization in the classifier.Patrick Wildt
2020-08-22IPv4 protocol parser init fixup and a few whitespace fixes.Patrick Wildt
2020-08-22Consistently use sizeof(pe) or sizeof(*pe) for the parser entry struct.Patrick Wildt
2020-08-22Use sizeof(variable) instead of using a macro for the length parameter.Patrick Wildt
2020-08-22Simplify some code by getting rid of an extra variable.Patrick Wildt
2020-08-22More consistent use of the BIT() macro.Patrick Wildt
2020-08-22Simplify check for return code.Patrick Wildt
2020-08-22Move sysctl(2) CTL_DEBUG from DEBUG to new DEBUG_SYSCTLkn
Adding "debug.my-knob" sysctls is really helpful to select different code paths and/or log on demand during runtime without recompile, but as this code is under DEBUG, lots of other noise comes with it which is often undesired, at least when looking at specific subsystems only. Adding globals to the kernel and breaking into DDB to change them helps, but that does not work over SSH, hence the need for debug sysctls. Introduces DEBUG_SYSCTL to make use of the "debug" MIB without the rest of DEBUG; it's DEBUG_SYSCTL and not SYSCTL_DEBUG because it's not a general option for all of sysctl(2). OK gnezdo
2020-08-22drm/amd/display: dchubbub p-state warning during surface planes switchJonathan Gray
From hersen wu adc8db21719668a4bf25ef0bef72c575d0a81cf5 in linux 5.7.y/5.7.17 8b0379a85762b516c7b46aed7dbf2a4947c00564 in mainline linux
2020-08-22drm/amd/display: Fix dmesg warning from setting abm levelJonathan Gray
From Stylon Wang bab191af99bd97db80ba19aafeea8081949bbe53 in linux 5.7.y/5.7.17 c5892a10218214d729699ab61bad6fc109baf0ce in mainline linux
2020-08-22drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resumeJonathan Gray
From Sandeep Raghuraman bac04cf4ea5cd6819828b33567f23431e2468708 in linux 5.7.y/5.7.17 f87812284172a9809820d10143b573d833cd3f75 in mainline linux
2020-08-22drm: fix drm_dp_mst_port refcount leaks in drm_dp_mst_allocate_vcpiJonathan Gray
From Xin Xiong 65ed6b7dacdb90099ebd50ca79bb72eaaf74a275 in linux 5.7.y/5.7.17 a34a0a632dd991a371fec56431d73279f9c54029 in mainline linux
2020-08-22drm: Added orientation quirk for ASUS tablet model T103HAFJonathan Gray
From Marius Iacob ff4ca77f631ac57013333eecd8ff57e38abb9506 in linux 5.7.y/5.7.17 b5ac98cbb8e5e30c34ebc837d1e5a3982d2b5f5c in mainline linux
2020-08-22drm/amdgpu: fix ordering of psp suspendJonathan Gray
From Alex Deucher d0b3df5fdc668c07bb47cb3082124eb823066141 in linux 5.7.y/5.7.17
2020-08-22drm/dp_mst: Fix the DDC I2C device registration of an MST portJonathan Gray
From Imre Deak cb22808ac2759706a410d89e1219de611a3b2fe4 in linux 5.7.y/5.7.17 d8bd15b37d328a935a4fc695fed8b19157503950 in mainline linux
2020-08-22drm/i915/gt: Force the GT reset on shutdownJonathan Gray
From Chris Wilson 5c4f75b93e2263ba5594a3eaa51745786a8565ce in linux 5.7.y/5.7.17 7c4541a37bbbf83c0f16f779e85eb61d9348ed29 in mainline linux
2020-08-22drm/ttm/nouveau: don't call tt destroy callback on alloc failure.Jonathan Gray
From Dave Airlie 7387ad86fe8ef830e88a586b021b322eef316211 in linux 5.7.y/5.7.16 5de5b6ecf97a021f29403aa272cb4e03318ef586 in mainline linux
2020-08-22drm/radeon: fix array out-of-bounds read and write issuesJonathan Gray
From Colin Ian King 519fabb88d7fdcea200a438d85b338244f4e905a in linux 5.7.y/5.7.16 7ee78aff9de13d5dccba133f4a0de5367194b243 in mainline linux
2020-08-22drm/amdgpu: ensure 0 is returned for success in jpeg_v2_5_wait_for_idleJonathan Gray
From Colin Ian King 251f7e2972a154e63d37b9423477309f68d4af9f in linux 5.7.y/5.7.16 57f01856645afe4c3d0f9915ee2bb043e8dd7982 in mainline linux
2020-08-22drm/mipi: use dcs write for mipi_dsi_dcs_set_tear_scanlineJonathan Gray
From Emil Velikov b73140c51e1fe09ba6f09b5abb619e7e109dd646 in linux 5.7.y/5.7.16 7a05c3b6d24b8460b3cec436cf1d33fac43c8450 in mainline linux
2020-08-22drm/amdgpu: use the unlocked drm_gem_object_putJonathan Gray
From Emil Velikov 6478b20d0364d70f32381123d1f717eaa486ec75 in linux 5.7.y/5.7.16 1a87f67a66de4ad0c0d79fd86b6c5273143387c3 in mainline linux
2020-08-22drm/gem: Fix a leak in drm_gem_objects_lookup()Jonathan Gray
From Dan Carpenter 04d83a826f68db88a1059ee8424f44739149b753 in linux 5.7.y/5.7.16 ec0bb482de0ad5e4aba2a4537ea53eaeb77d11a6 in mainline linux
2020-08-22drm/amd/powerplay: suppress compile error around BUG_ONJonathan Gray
From Evan Quan ce8444749a649742fd88e5b9d05f352a478980ec in linux 5.7.y/5.7.16 75bc07e2403caea9ecac69f766dfb7dc33547594 in mainline linux
2020-08-22drm/amd/powerplay: fix compile error with ARCH=arcJonathan Gray
From Evan Quan e6132d0ce6f2ce0227722e42d236e30db3763cea in linux 5.7.y/5.7.16 9822ba2ead1baa3de4860ad9472f652c4cc78c9c in mainline linux
2020-08-22drm/amdgpu/display: properly guard the calls to swSMU functionsJonathan Gray
From Alex Deucher bb4960cc236b57708c44d11e272a9eeff66e90d9 in linux 5.7.y/5.7.16 4072327a2622af8688b88f5cd0a472136d3bf33d in mainline linux
2020-08-22drm/amdgpu/display bail early in dm_pp_get_static_clocksJonathan Gray
From Alex Deucher c2013b737bbde32f302575e6a1b74eb21cd419ca in linux 5.7.y/5.7.16 376814f5fcf1aadda501d1413d56e8af85d19a97 in mainline linux
2020-08-22drm/amd/display: Improve DisplayPort monitor interopJonathan Gray
From Aric Cyr aeb79d98b4b1e4007207936b7a8fb074a96c240f in linux 5.7.y/5.7.16 eec3303de3378cdfaa0bb86f43546dbbd88f94e2 in mainline linux
2020-08-22drm/radeon: disable AGP by defaultJonathan Gray
From Christian Koenig b0ecffd8339d894d21d9e5b48996ea67f84522c6 in linux 5.7.y/5.7.16 ba806f98f868ce107aa9c453fef751de9980e4af in mainline linux
2020-08-22drm/debugfs: fix plain echo to connector "force" attributeJonathan Gray
From Michael Tretter 740bd6f688e1e2fdb4894f588162a2baa3513f52 in linux 5.7.y/5.7.16 c704b17071c4dc571dca3af4e4151dac51de081a in mainline linux
2020-08-22drm/radeon: Fix reference count leaks caused by pm_runtime_get_syncJonathan Gray
From Aditya Pakki f097e7aecaaa4e9b2135eb10c86abdb7871cd2ec in linux 5.7.y/5.7.16 9fb10671011143d15b6b40d6d5fa9c52c57e9d63 in mainline linux
2020-08-22drm/amdgpu: avoid dereferencing a NULL pointerJonathan Gray
From Jack Xiao df1bd56e839e2461df3b0699a66d482e45ce2679 in linux 5.7.y/5.7.16 55611b507fd6453d26030c0c0619fdf0c262766d in mainline linux
2020-08-21Leave default ifq_maxlen handling to ifq_init()kn
Most clonable interface drivers (except bridge, enc, loop, pppx, switch, trunk and vlan) initialise the send queue's length to IFQ_MAXLEN during *_clone_create() even though ifq_init(), which is eventually called through if_attach(), does the same. Remove all early "ifq_set_maxlen(&ifq->if_snd, IFQ_MAXLEN);" lines to leave it to ifq_init() and have clonable drivers a tad more in sync. OK mvs
2020-08-21Print unp_path for unix domain sockets. OK kn@ mvs@Todd C. Miller
2020-08-21Move ugold(4) to the HID section for consistency.Marcus Glocker
ok jmc@
2020-08-21fido(4) and umstc(4) also attach to uhidev(4).Marcus Glocker
2020-08-21ubcmtp(4) doesn't attach to uhidev(4) but to uhub(4).Marcus Glocker
ok jcs@