FreeBSD Bugzilla – Attachment 155770 Details for
Bug 199559
[patch][regression] ggatel(8) broken on i386 after r238119
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ggatel: In g_gatel_create(), don't pass stack garbage to the kernel
ggatel-In-g_gatel_create-don-t-pass-stack-garbage.diff (text/plain), 917 bytes, created by
Fabian Keil
on 2015-04-20 13:46:46 UTC
(
hide
)
Description:
ggatel: In g_gatel_create(), don't pass stack garbage to the kernel
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2015-04-20 13:46:46 UTC
Size:
917 bytes
patch
obsolete
>From 817ef69ffb1724e97e5c65800f32c296a7f6d41a Mon Sep 17 00:00:00 2001 >From: Fabian Keil <fk@fabiankeil.de> >Date: Mon, 20 Apr 2015 13:16:01 +0200 >Subject: [PATCH] ggatel: In g_gatel_create(), don't pass stack garbage to the > kernel > >Unbreaks ggatel on i386 after r238119 which added two more >'struct g_gate_ctl_create' fields. > >Obtained from: ElectroBSD >--- > sbin/ggate/ggatel/ggatel.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/sbin/ggate/ggatel/ggatel.c b/sbin/ggate/ggatel/ggatel.c >index e9c6e88..864f3ae 100644 >--- a/sbin/ggate/ggatel/ggatel.c >+++ b/sbin/ggate/ggatel/ggatel.c >@@ -220,6 +220,7 @@ g_gatel_create(void) > fd = open(path, g_gate_openflags(flags) | O_DIRECT | O_FSYNC); > if (fd == -1) > err(EXIT_FAILURE, "Cannot open %s", path); >+ memset(&ggioc, 0, sizeof(ggioc)); > ggioc.gctl_version = G_GATE_VERSION; > ggioc.gctl_unit = unit; > ggioc.gctl_mediasize = g_gate_mediasize(fd); >-- >2.3.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 199559
: 155770