coco/guest: Remove unneeded selection of CRYPTOAll that's needed here is CRYPTO_HASH_INFO. It used to be the case thatCRYPTO_HASH_INFO was visible only when CRYPTO, but that was fixed bycommit a
coco/guest: Remove unneeded selection of CRYPTOAll that's needed here is CRYPTO_HASH_INFO. It used to be the case thatCRYPTO_HASH_INFO was visible only when CRYPTO, but that was fixed bycommit aacb37f597d0 ("lib/crypto: hash_info: Move hash_info.c intolib/crypto/"). Now CRYPTO_HASH_INFO can be selected directly.Acked-by: Dan Williams <dan.j.williams@intel.com>Link: https://lore.kernel.org/r/20251204055512.494013-1-ebiggers@kernel.orgSigned-off-by: Eric Biggers <ebiggers@kernel.org>
show more ...
Convert 'alloc_flex' family to use the new default GFP_KERNEL argumentThis is the exact same thing as the 'alloc_obj()' version, only muchsmaller because there are a lot fewer users of the *alloc_
Convert 'alloc_flex' family to use the new default GFP_KERNEL argumentThis is the exact same thing as the 'alloc_obj()' version, only muchsmaller because there are a lot fewer users of the *alloc_flex()interface.As with alloc_obj() version, this was done entirely with mindless bruteforce, using the same script, except using 'flex' in the pattern ratherthan 'objs*'.Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs
Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentThis was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/'to convert the new alloc_obj() users that had a simple GFP_KERNELargument to just drop that argument.Note that due to the extreme simplicity of the scripting, any slightlymore complex cases spread over multiple lines would not be triggered:they definitely exist, but this covers the vast bulk of the cases, andthe resulting diff is also then easier to check automatically.For the same reason the 'flex' versions will be done as a separateconversion.Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid sc
treewide: Replace kmalloc with kmalloc_obj for non-scalar typesThis is the result of running the Coccinelle script fromscripts/coccinelle/api/kmalloc_objs.cocci. The script is designed toavoid scalar types (which need careful case-by-case checking), andinstead replace kmalloc-family calls that allocate struct or unionobject instances:Single allocations: kmalloc(sizeof(TYPE), ...)are replaced with: kmalloc_obj(TYPE, ...)Array allocations: kmalloc_array(COUNT, sizeof(TYPE), ...)are replaced with: kmalloc_objs(TYPE, COUNT, ...)Flex array allocations: kmalloc(struct_size(PTR, FAM, COUNT), ...)are replaced with: kmalloc_flex(*PTR, FAM, COUNT, ...)(where TYPE may also be *VAR)The resulting allocations no longer return "void *", instead returning"TYPE *".Signed-off-by: Kees Cook <kees@kernel.org>
sysfs: treewide: switch back to attribute_group::bin_attrsThe normal bin_attrs field can now handle const pointers.This makes the _new variant unnecessary.Switch all users back.Signed-off-by: T
sysfs: treewide: switch back to attribute_group::bin_attrsThe normal bin_attrs field can now handle const pointers.This makes the _new variant unnecessary.Switch all users back.Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>Link: https://lore.kernel.org/r/20250530-sysfs-const-bin_attr-final-v3-4-724bfcf05b99@weissschuh.netSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sysfs: treewide: switch back to bin_attribute::read()/write()The bin_attribute argument of bin_attribute::read() is now const.This makes the _new() callbacks unnecessary. Switch all users back.S
sysfs: treewide: switch back to bin_attribute::read()/write()The bin_attribute argument of bin_attribute::read() is now const.This makes the _new() callbacks unnecessary. Switch all users back.Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>Link: https://lore.kernel.org/r/20250530-sysfs-const-bin_attr-final-v3-3-724bfcf05b99@weissschuh.netSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Merge branch 'for-6.16/tsm-mr' into tsm-nextPick up a couple fixes for issues noticed in linux-next (constificationof bin_attrs and missing 'static').
Merge branch 'for-6.16/tsm-mr' into tsm-nextMerge measurement-register infrastructure for v6.16. Resolve conflictswith the establishment of drivers/virt/coco/guest/ for cross-vendorcommon TSM fun
Merge branch 'for-6.16/tsm-mr' into tsm-nextMerge measurement-register infrastructure for v6.16. Resolve conflictswith the establishment of drivers/virt/coco/guest/ for cross-vendorcommon TSM functionality.Address a mis-merge with a fixup from Lukas:Link: http://lore.kernel.org/20250509134031.70559-1-lukas.bulwahn@redhat.com
Merge branch 'for-6.16/tsm' into tsm-nextPick up the drivers/virt/coco/guest/ split in preparation for TSM hostdrivers.
coco/guest: Move shared guest CC infrastructure to drivers/virt/coco/guest/In preparation for creating a new drivers/virt/coco/host/ directory tohouse shared host driver infrastructure for confide
coco/guest: Move shared guest CC infrastructure to drivers/virt/coco/guest/In preparation for creating a new drivers/virt/coco/host/ directory tohouse shared host driver infrastructure for confidential computing, moveconfigfs-tsm to a guest/ sub-directory. The tsm.ko module is renamed totsm_reports.ko. The old tsm.ko module was only ever demand loaded bykernel internal dependencies, so it should not affect existing userspacemodule install scripts.The new drivers/virt/coco/guest/ is also a preparatory landing spot fornew / optional TSM Report mechanics like a TCB stability enumeration /watchdog mechanism. To be added later.Cc: Wu Hao <hao.wu@intel.com>Cc: Yilun Xu <yilun.xu@intel.com>Cc: Samuel Ortiz <sameo@rivosinc.com>Cc: Tom Lendacky <thomas.lendacky@amd.com>Reviewed-by: Alexey Kardashevskiy <aik@amd.com>Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>Link: https://patch.msgid.link/174107246641.1288555.208426916259466774.stgit@dwillia2-xfh.jf.intel.comSigned-off-by: Dan Williams <dan.j.williams@intel.com>