Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 888904 Details for
Bug 926766
app-emulation/virtualbox-guest-additions-7.0.14-r1 fails to build with kernel 6.8.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Squash-of-initial-support-for-kernel-6.8-bugref-10584.patch
Squash-of-initial-support-for-kernel-6.8-bugref-10584.patch (text/plain), 4.92 KB, created by
Yuri Sevatz
on 2024-03-28 09:15:16 UTC
(
hide
)
Description:
Squash-of-initial-support-for-kernel-6.8-bugref-10584.patch
Filename:
MIME Type:
Creator:
Yuri Sevatz
Created:
2024-03-28 09:15:16 UTC
Size:
4.92 KB
patch
obsolete
>diff --git a/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c b/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c >index 30ca7d8c07b..5cc2d846440 100644 >--- a/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c >+++ b/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c >@@ -1410,8 +1410,7 @@ static int vgdrvLinuxParamLogGrpSet(const char *pszValue, CONST_4_15 struct kern > RTLogGroupSettings(pLogger, pszValue); > } > else if (pParam->name[0] != 'd') >- strlcpy(&g_szLogGrp[0], pszValue, sizeof(g_szLogGrp)); >- >+ RTStrCopy(&g_szLogGrp[0], sizeof(g_szLogGrp), pszValue); > return 0; > } > >@@ -1436,7 +1435,7 @@ static int vgdrvLinuxParamLogFlagsSet(const char *pszValue, CONST_4_15 struct ke > RTLogFlags(pLogger, pszValue); > } > else if (pParam->name[0] != 'd') >- strlcpy(&g_szLogFlags[0], pszValue, sizeof(g_szLogFlags)); >+ RTStrCopy(&g_szLogFlags[0], sizeof(g_szLogFlags), pszValue); > return 0; > } > >@@ -1461,7 +1460,7 @@ static int vgdrvLinuxParamLogDstSet(const char *pszValue, CONST_4_15 struct kern > RTLogDestinations(pLogger, pszValue); > } > else if (pParam->name[0] != 'd') >- strlcpy(&g_szLogDst[0], pszValue, sizeof(g_szLogDst)); >+ RTStrCopy(&g_szLogDst[0], sizeof(g_szLogDst), pszValue); > return 0; > } > >diff --git a/src/VBox/Additions/linux/drm/vbox_drv.h b/src/VBox/Additions/linux/drm/vbox_drv.h >index 8656330899c..3932b2131f3 100644 >--- a/src/VBox/Additions/linux/drm/vbox_drv.h >+++ b/src/VBox/Additions/linux/drm/vbox_drv.h >@@ -538,9 +538,7 @@ int vbox_gem_prime_mmap(struct drm_gem_object *obj, > int vbox_irq_init(struct vbox_private *vbox); > void vbox_irq_fini(struct vbox_private *vbox); > void vbox_report_hotplug(struct vbox_private *vbox); >-#if RTLNX_VER_MAX(5,15,0) && !RTLNX_RHEL_MAJ_PREREQ(9,1) && !RTLNX_SUSE_MAJ_PREREQ(15,5) > irqreturn_t vbox_irq_handler(int irq, void *arg); >-#endif > > /* vbox_hgsmi.c */ > void *hgsmi_buffer_alloc(struct gen_pool *guest_pool, size_t size, >diff --git a/src/VBox/Additions/linux/sharedfolders/regops.c b/src/VBox/Additions/linux/sharedfolders/regops.c >index 139a5fa16ac..ba29062332a 100644 >--- a/src/VBox/Additions/linux/sharedfolders/regops.c >+++ b/src/VBox/Additions/linux/sharedfolders/regops.c >@@ -3505,7 +3505,7 @@ static struct vm_operations_struct const g_LoggingVmOpsTemplate = { > }; > > /** file_operations::mmap wrapper for logging purposes. */ >-extern int vbsf_reg_mmap(struct file *file, struct vm_area_struct *vma) >+static int vbsf_reg_mmap(struct file *file, struct vm_area_struct *vma) > { > int rc; > SFLOGFLOW(("vbsf_reg_mmap: file=%p vma=%p\n", file, vma)); >@@ -3786,14 +3786,14 @@ static inline void vbsf_write_begin_warn(loff_t pos, unsigned len, unsigned flag > } > > # if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(9,3, 9,99) >-int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, >+static int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, > unsigned len, struct page **pagep, void **fsdata) > { > vbsf_write_begin_warn(pos, len, 0); > return simple_write_begin(file, mapping, pos, len, pagep, fsdata); > } > # else >-int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, >+static int vbsf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, > unsigned len, unsigned flags, struct page **pagep, void **fsdata) > { > vbsf_write_begin_warn(pos, len, flags); >diff --git a/src/VBox/Additions/linux/sharedfolders/vfsmod.c b/src/VBox/Additions/linux/sharedfolders/vfsmod.c >index eec4469f42e..c027f16e786 100644 >--- a/src/VBox/Additions/linux/sharedfolders/vfsmod.c >+++ b/src/VBox/Additions/linux/sharedfolders/vfsmod.c >@@ -1408,7 +1408,7 @@ static int vbsf_parse_param(struct fs_context *fc, struct fs_parameter *param) > switch (opt) { > case Opt_iocharset: > case Opt_nls: >- strlcpy(info->nls_name, param->string, sizeof(info->nls_name)); >+ RTStrCopy(info->nls_name, sizeof(info->nls_name), param->string); > break; > case Opt_uid: > info->uid = result.uint_32; >@@ -1469,7 +1469,7 @@ static int vbsf_parse_param(struct fs_context *fc, struct fs_parameter *param) > printk(KERN_WARNING "vboxsf: cache mode (%u) is out of range, using default instead.\n", result.uint_32); > break; > case Opt_tag: >- strlcpy(info->szTag, param->string, sizeof(info->szTag)); >+ RTStrCopy(info->szTag, sizeof(info->szTag), param->string); > break; > default: > return invalf(fc, "Invalid mount option: '%s'", param->key); >@@ -1528,7 +1528,7 @@ static int vbsf_get_tree(struct fs_context *fc) > } > > /* fc->source (the shared folder name) is set after vbsf_init_fs_ctx() */ >- strlcpy(info->name, fc->source, sizeof(info->name)); >+ RTStrCopy(info->name, sizeof(info->name), fc->source); > > # if RTLNX_VER_MAX(5,3,0) > return vfs_get_super(fc, vfs_get_independent_super, vbsf_read_super_aux); >-- >2.44.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 926766
:
887361
|
887362
| 888904