From: Peilin Ye <hidden> Date: 2020-10-31 07:27:08
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
Patch "fbcon: Prevent global-out-of-bounds read in fbcon_copy_font()"
depends on this patch, so Cc: stable.
Cc: stable@vger.kernel.org
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/
drivers/usb/misc/sisusbvga/sisusb_con.c | 21 ---------------------
drivers/video/console/dummycon.c | 20 --------------------
2 files changed, 41 deletions(-)
@@ -1345,24 +1345,6 @@ static int sisusbdummycon_blank(struct vc_data *vc, int blank, int mode_switch)return0;}-staticintsisusbdummycon_font_set(structvc_data*vc,-structconsole_font*font,-unsignedintflags)-{-return0;-}--staticintsisusbdummycon_font_default(structvc_data*vc,-structconsole_font*font,char*name)-{-return0;-}--staticintsisusbdummycon_font_copy(structvc_data*vc,intcon)-{-return0;-}-staticconststructconswsisusb_dummy_con={.owner=THIS_MODULE,.con_startup=sisusbdummycon_startup,
From: Peilin Ye <hidden> Date: 2020-10-31 07:28:23
fbcon_copy_font() is using a signed int, `con`, as an index into
`fb_display[MAX_NR_CONSOLES]`, without bounds checking. In
con_font_copy(), `con` is being silently casted from the unsigned
`op->height`.
Let con_font_copy() and fbcon_copy_font() pass `op->height` directly, and
add a range check in fbcon_copy_font(). Also, add a comment in
con_font_op() for less confusion, since ideally `op->height` should not be
used as a console index, as the field name suggests.
This patch depends on patch "console: Remove dummy con_font_op callback
implementations".
Cc: stable@vger.kernel.org
Signed-off-by: Peilin Ye <redacted>
---
drivers/tty/vt/vt.c | 6 +++---
drivers/video/fbdev/core/fbcon.c | 8 ++++++--
include/linux/console.h | 2 +-
3 files changed, 10 insertions(+), 6 deletions(-)
@@ -4735,7 +4734,8 @@ int con_font_op(struct vc_data *vc, struct console_font_op *op)caseKD_FONT_OP_SET_DEFAULT:returncon_font_default(vc,op);caseKD_FONT_OP_COPY:-returncon_font_copy(vc,op);+/* uses op->height as a console index */+returncon_font_copy(vc,op->height);}return-ENOSYS;}
@@ -2451,11 +2451,15 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h,return0;}-staticintfbcon_copy_font(structvc_data*vc,intcon)+staticintfbcon_copy_font(structvc_data*vc,unsignedintcon){-structfbcon_display*od=&fb_display[con];+structfbcon_display*od;structconsole_font*f=&vc->vc_font;+if(con>=MAX_NR_CONSOLES)+return-EINVAL;++od=&fb_display[con];if(od->fontdata==f->data)return0;/* already the same font... */returnfbcon_do_set_font(vc,f->width,f->height,od->fontdata,od->userfont);
From: Peilin Ye <hidden> Date: 2020-11-02 09:37:20
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
Change in v2:
- [v2 2/2] no longer Cc: stable, so do not Cc: stable
Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/
drivers/usb/misc/sisusbvga/sisusb_con.c | 21 ---------------------
drivers/video/console/dummycon.c | 20 --------------------
2 files changed, 41 deletions(-)
@@ -1345,24 +1345,6 @@ static int sisusbdummycon_blank(struct vc_data *vc, int blank, int mode_switch)return0;}-staticintsisusbdummycon_font_set(structvc_data*vc,-structconsole_font*font,-unsignedintflags)-{-return0;-}--staticintsisusbdummycon_font_default(structvc_data*vc,-structconsole_font*font,char*name)-{-return0;-}--staticintsisusbdummycon_font_copy(structvc_data*vc,intcon)-{-return0;-}-staticconststructconswsisusb_dummy_con={.owner=THIS_MODULE,.con_startup=sisusbdummycon_startup,
From: Peilin Ye <hidden> Date: 2020-11-02 09:38:58
con_font_op() is passing an entire `struct console_font_op *` to
con_font_copy(), but con_font_copy() only uses `op->height`. Additionally,
con_font_copy() is silently assigning the unsigned `op->height` to the
signed `con`, then pass it to fbcon_copy_font().
Let con_font_copy() and fbcon_copy_font() pass an unsigned int directly.
Also, add a comment in con_font_op() for less confusion, since ideally
`op->height` should not be used as a console index, as the field name
suggests.
This patch depends on patch "console: Remove dummy con_font_op() callback
implementations".
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
con_font_set(), con_font_get() and con_font_default() also pass an entire
`console_font_op`.
con_font_get() and con_font_default() actually update the structure (later
copied to userspace), so let them be.
con_font_set() does not update the structure, but it uses all fields of it
except `op`. Avoiding passing `console_font_op` to con_font_set() will
thus make its signature pretty long (6 parameters).
Changes in v2:
- Remove redundant `con < 0` check in con_font_copy() (kernel test robot
[off-list ref])
- Remove unnecessary range check in fbcon_copy_font(). con_font_copy()
calls vc_cons_allocated(), which does the check
- Do not Cc: stable
- Rewrite the title and commit message accordingly
drivers/tty/vt/vt.c | 8 ++++----
drivers/video/fbdev/core/fbcon.c | 2 +-
include/linux/console.h | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
@@ -4715,7 +4714,7 @@ static int con_font_copy(struct vc_data *vc, struct console_font_op *op)rc=-EINVAL;elseif(!vc->vc_sw->con_font_copy)rc=-ENOSYS;-elseif(con<0||!vc_cons_allocated(con))+elseif(!vc_cons_allocated(con))rc=-ENOTTY;elseif(con==vc->vc_num)/* nothing to do */rc=0;
@@ -4735,7 +4734,8 @@ int con_font_op(struct vc_data *vc, struct console_font_op *op)caseKD_FONT_OP_SET_DEFAULT:returncon_font_default(vc,op);caseKD_FONT_OP_COPY:-returncon_font_copy(vc,op);+/* uses op->height as a console index */+returncon_font_copy(vc,op->height);}return-ENOSYS;}
@@ -2451,7 +2451,7 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h,return0;}-staticintfbcon_copy_font(structvc_data*vc,intcon)+staticintfbcon_copy_font(structvc_data*vc,unsignedintcon){structfbcon_display*od=&fb_display[con];structconsole_font*f=&vc->vc_font;
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
ESEMANTIC_ERROR.
1) What do you refer to with the last "it"?
2) What's the purpose of mentioning struct console_font at all?
3) Could you clarify whether you checked it is safe to remove the hooks?
4) All the hooks now return ENOSYS for both consoles (and not 0). Is
this intentional?
I know answers to the first 3 questions, but you need to elaborate a bit
in the commit log to connect those sentences. Esp. for people not
dealing with the code on a daily basis. Ad 4) I am not sure.
quoted hunk
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
Change in v2:
- [v2 2/2] no longer Cc: stable, so do not Cc: stable
Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/
drivers/usb/misc/sisusbvga/sisusb_con.c | 21 ---------------------
drivers/video/console/dummycon.c | 20 --------------------
2 files changed, 41 deletions(-)
@@ -1345,24 +1345,6 @@ static int sisusbdummycon_blank(struct vc_data *vc, int blank, int mode_switch)return0;}-staticintsisusbdummycon_font_set(structvc_data*vc,-structconsole_font*font,-unsignedintflags)-{-return0;-}--staticintsisusbdummycon_font_default(structvc_data*vc,-structconsole_font*font,char*name)-{-return0;-}--staticintsisusbdummycon_font_copy(structvc_data*vc,intcon)-{-return0;-}-staticconststructconswsisusb_dummy_con={.owner=THIS_MODULE,.con_startup=sisusbdummycon_startup,
From: Daniel Vetter <hidden> Date: 2020-11-02 10:10:53
On Mon, Nov 02, 2020 at 04:37:55AM -0500, Peilin Ye wrote:
con_font_op() is passing an entire `struct console_font_op *` to
con_font_copy(), but con_font_copy() only uses `op->height`. Additionally,
con_font_copy() is silently assigning the unsigned `op->height` to the
signed `con`, then pass it to fbcon_copy_font().
Let con_font_copy() and fbcon_copy_font() pass an unsigned int directly.
Also, add a comment in con_font_op() for less confusion, since ideally
`op->height` should not be used as a console index, as the field name
suggests.
This patch depends on patch "console: Remove dummy con_font_op() callback
implementations".
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
con_font_set(), con_font_get() and con_font_default() also pass an entire
`console_font_op`.
con_font_get() and con_font_default() actually update the structure (later
copied to userspace), so let them be.
con_font_set() does not update the structure, but it uses all fields of it
except `op`. Avoiding passing `console_font_op` to con_font_set() will
thus make its signature pretty long (6 parameters).
Changes in v2:
- Remove redundant `con < 0` check in con_font_copy() (kernel test robot
[off-list ref])
- Remove unnecessary range check in fbcon_copy_font(). con_font_copy()
calls vc_cons_allocated(), which does the check
- Do not Cc: stable
- Rewrite the title and commit message accordingly
drivers/tty/vt/vt.c | 8 ++++----
drivers/video/fbdev/core/fbcon.c | 2 +-
include/linux/console.h | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
I'm not sure switching from int to unsigned just here makes much sense.
All the console code is still using int con to index all the various
arrays (I just checked fbcon.c code), and using int to index arrays is
pretty standard. As long as we have the con < 0 check to catch evil
userspace.
There's still the switch from op to int for con_font_copy, but I think
that's better done as part of the larger cleanup we already discussed. And
then maybe also include patch 1 from this series in that rework.
-Daniel
@@ -4715,7 +4714,7 @@ static int con_font_copy(struct vc_data *vc, struct console_font_op *op)rc=-EINVAL;elseif(!vc->vc_sw->con_font_copy)rc=-ENOSYS;-elseif(con<0||!vc_cons_allocated(con))+elseif(!vc_cons_allocated(con))rc=-ENOTTY;elseif(con==vc->vc_num)/* nothing to do */rc=0;
@@ -4735,7 +4734,8 @@ int con_font_op(struct vc_data *vc, struct console_font_op *op)caseKD_FONT_OP_SET_DEFAULT:returncon_font_default(vc,op);caseKD_FONT_OP_COPY:-returncon_font_copy(vc,op);+/* uses op->height as a console index */+returncon_font_copy(vc,op->height);}return-ENOSYS;}
@@ -2451,7 +2451,7 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h,return0;}-staticintfbcon_copy_font(structvc_data*vc,intcon)+staticintfbcon_copy_font(structvc_data*vc,unsignedintcon){structfbcon_display*od=&fb_display[con];structconsole_font*f=&vc->vc_font;
From: Daniel Vetter <hidden> Date: 2020-11-02 10:13:53
On Mon, Nov 02, 2020 at 10:47:55AM +0100, Jiri Slaby wrote:
On 02. 11. 20, 10:36, Peilin Ye wrote:
quoted
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
ESEMANTIC_ERROR.
1) What do you refer to with the last "it"?
2) What's the purpose of mentioning struct console_font at all?
3) Could you clarify whether you checked it is safe to remove the hooks?
4) All the hooks now return ENOSYS for both consoles (and not 0). Is this
intentional?
I know answers to the first 3 questions, but you need to elaborate a bit in
the commit log to connect those sentences. Esp. for people not dealing with
the code on a daily basis. Ad 4) I am not sure.
Yup the behaviour change from 4) needs to be called out. I think this
should then also be done as part of the large patch series to remove the
dummy functions from all console drivers.
I don't expect the errno change to cause trouble, and it's the more honest
errno - changing fonts not supported is the truth. But if it is, we can
patch that up appropriately when we get a regression report. That's kinda
unavoidable with old crufty uapi like this one here.
Also a bikeshed: Additional information like the patch changelog or
reasons why you do something is imo best to include in the commit message
itself. It ends up looking a bit less tidy sometimes, but often there's
crucial information in these parts that was accidentally left out from the
commit message.
Thanks, Daniel
quoted
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
Change in v2:
- [v2 2/2] no longer Cc: stable, so do not Cc: stable
Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/
drivers/usb/misc/sisusbvga/sisusb_con.c | 21 ---------------------
drivers/video/console/dummycon.c | 20 --------------------
2 files changed, 41 deletions(-)
@@ -1345,24 +1345,6 @@ static int sisusbdummycon_blank(struct vc_data *vc, int blank, int mode_switch)return0;}-staticintsisusbdummycon_font_set(structvc_data*vc,-structconsole_font*font,-unsignedintflags)-{-return0;-}--staticintsisusbdummycon_font_default(structvc_data*vc,-structconsole_font*font,char*name)-{-return0;-}--staticintsisusbdummycon_font_copy(structvc_data*vc,intcon)-{-return0;-}-staticconststructconswsisusb_dummy_con={.owner=THIS_MODULE,.con_startup=sisusbdummycon_startup,
From: Peilin Ye <hidden> Date: 2020-11-02 10:52:39
On Mon, Nov 02, 2020 at 11:13:47AM +0100, Daniel Vetter wrote:
On Mon, Nov 02, 2020 at 10:47:55AM +0100, Jiri Slaby wrote:
quoted
On 02. 11. 20, 10:36, Peilin Ye wrote:
quoted
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
ESEMANTIC_ERROR.
1) What do you refer to with the last "it"?
2) What's the purpose of mentioning struct console_font at all?
3) Could you clarify whether you checked it is safe to remove the hooks?
I see. I will try to elaborate in future patches, thank you!
quoted
4) All the hooks now return ENOSYS for both consoles (and not 0). Is this
intentional?
I know answers to the first 3 questions, but you need to elaborate a bit in
the commit log to connect those sentences. Esp. for people not dealing with
the code on a daily basis. Ad 4) I am not sure.
Yup the behaviour change from 4) needs to be called out. I think this
should then also be done as part of the large patch series to remove the
dummy functions from all console drivers.
I don't expect the errno change to cause trouble, and it's the more honest
errno - changing fonts not supported is the truth. But if it is, we can
patch that up appropriately when we get a regression report. That's kinda
unavoidable with old crufty uapi like this one here.
Also a bikeshed: Additional information like the patch changelog or
reasons why you do something is imo best to include in the commit message
itself. It ends up looking a bit less tidy sometimes, but often there's
crucial information in these parts that was accidentally left out from the
commit message.
Sure, I will try to include sufficient information for one to easily
understand what I'm trying to do with a patch. Thank you,
Peilin
From: Peilin Ye <hidden> Date: 2020-11-02 11:13:04
On Mon, Nov 02, 2020 at 11:10:44AM +0100, Daniel Vetter wrote:
I'm not sure switching from int to unsigned just here makes much sense.
All the console code is still using int con to index all the various
arrays (I just checked fbcon.c code), and using int to index arrays is
pretty standard. As long as we have the con < 0 check to catch evil
userspace.
There's still the switch from op to int for con_font_copy, but I think
that's better done as part of the larger cleanup we already discussed. And
then maybe also include patch 1 from this series in that rework.
I see. I think at the moment there's not much we can do for
con_font_get/set/default(). _get() and _default() use *op, and _set()
uses all except one field of *op. Maybe we can change the type of *op
from console_font_op to font_desc, after cleaning up everything else?
Peilin
From: Daniel Vetter <hidden> Date: 2020-11-02 11:31:09
On Mon, Nov 2, 2020 at 12:12 PM Peilin Ye [off-list ref] wrote:
On Mon, Nov 02, 2020 at 11:10:44AM +0100, Daniel Vetter wrote:
quoted
I'm not sure switching from int to unsigned just here makes much sense.
All the console code is still using int con to index all the various
arrays (I just checked fbcon.c code), and using int to index arrays is
pretty standard. As long as we have the con < 0 check to catch evil
userspace.
There's still the switch from op to int for con_font_copy, but I think
that's better done as part of the larger cleanup we already discussed. And
then maybe also include patch 1 from this series in that rework.
I see. I think at the moment there's not much we can do for
con_font_get/set/default(). _get() and _default() use *op, and _set()
uses all except one field of *op. Maybe we can change the type of *op
from console_font_op to font_desc, after cleaning up everything else?
Yeah, for these one of the arguments should be the new font_desc, so
that we can remove the op stuff properly. Opening up all the arguments
without the font_desc doesn't make sense imo.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
On Sat, Oct 31, 2020 at 03:24:41AM -0400, Peilin Ye wrote:
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
Patch "fbcon: Prevent global-out-of-bounds read in fbcon_copy_font()"
depends on this patch, so Cc: stable.
Cc: stable@vger.kernel.org
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/
drivers/usb/misc/sisusbvga/sisusb_con.c | 21 ---------------------
drivers/video/console/dummycon.c | 20 --------------------
2 files changed, 41 deletions(-)
From: Daniel Vetter <hidden> Date: 2020-11-10 12:49:54
On Fri, Nov 06, 2020 at 11:50:58AM +0100, Greg Kroah-Hartman wrote:
On Sat, Oct 31, 2020 at 03:24:41AM -0400, Peilin Ye wrote:
quoted
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
Patch "fbcon: Prevent global-out-of-bounds read in fbcon_copy_font()"
depends on this patch, so Cc: stable.
Cc: stable@vger.kernel.org
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/
drivers/usb/misc/sisusbvga/sisusb_con.c | 21 ---------------------
drivers/video/console/dummycon.c | 20 --------------------
2 files changed, 41 deletions(-)
Peilin, can you pls resend this together with all the other pending
patches from you? I think that's better than me trying to cherry-pick the
bits we decided to keep from random places.
Greg, ok if I just pull these in through drm-misc-next? It's a pretty bad
hairball anyway and that avoids the tree coordination issues. Only thing
that might get in the way is the vt font_copy removal, but that's in -rc3
so easy to backmerge.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
From: Peilin Ye <hidden> Date: 2020-11-10 13:24:57
On Tue, Nov 10, 2020 at 01:49:46PM +0100, Daniel Vetter wrote:
Peilin, can you pls resend this together with all the other pending
patches from you? I think that's better than me trying to cherry-pick the
bits we decided to keep from random places.
Oh, are we doing an -rc3 backmerge soon? At the moment I can base these
patches on neither drm-misc (due to the font_copy removal), nor mainline
(due to the signedness issue in font_desc we've talked about), so I'm
waiting for a backmerge to rebase everything properly. Sorry that I
didn't mention earlier.
Greg, ok if I just pull these in through drm-misc-next? It's a pretty bad
hairball anyway and that avoids the tree coordination issues. Only thing
that might get in the way is the vt font_copy removal, but that's in -rc3
so easy to backmerge.
I will rebase and send everything (including the font_copy
garbage-collecting) in a v3 series after the backmerge. Thanks,
Peilin Ye
From: Daniel Vetter <hidden> Date: 2020-11-10 13:46:35
On Tue, Nov 10, 2020 at 2:24 PM Peilin Ye [off-list ref] wrote:
On Tue, Nov 10, 2020 at 01:49:46PM +0100, Daniel Vetter wrote:
quoted
Peilin, can you pls resend this together with all the other pending
patches from you? I think that's better than me trying to cherry-pick the
bits we decided to keep from random places.
Oh, are we doing an -rc3 backmerge soon? At the moment I can base these
patches on neither drm-misc (due to the font_copy removal), nor mainline
(due to the signedness issue in font_desc we've talked about), so I'm
waiting for a backmerge to rebase everything properly. Sorry that I
didn't mention earlier.
linux-next has all the trees, so you can always use that. And yes I'm
pushing the backmerge through, so in a few days at most I can pull in
all your patches. Meanwhile you can base your work of linux-next.
quoted
Greg, ok if I just pull these in through drm-misc-next? It's a pretty bad
hairball anyway and that avoids the tree coordination issues. Only thing
that might get in the way is the vt font_copy removal, but that's in -rc3
so easy to backmerge.
I will rebase and send everything (including the font_copy
garbage-collecting) in a v3 series after the backmerge. Thanks,
No need to be blocked on a backmerge, this is only needed for merging
the patches. Development should not be blocked like this.
-Daniel
From: Peilin Ye <hidden> Date: 2020-11-10 13:55:18
On Tue, Nov 10, 2020 at 02:46:20PM +0100, Daniel Vetter wrote:
On Tue, Nov 10, 2020 at 2:24 PM Peilin Ye [off-list ref] wrote:
quoted
Oh, are we doing an -rc3 backmerge soon? At the moment I can base these
patches on neither drm-misc (due to the font_copy removal), nor mainline
(due to the signedness issue in font_desc we've talked about), so I'm
waiting for a backmerge to rebase everything properly. Sorry that I
didn't mention earlier.
linux-next has all the trees, so you can always use that. And yes I'm
pushing the backmerge through, so in a few days at most I can pull in
all your patches. Meanwhile you can base your work of linux-next.
quoted
quoted
Greg, ok if I just pull these in through drm-misc-next? It's a pretty bad
hairball anyway and that avoids the tree coordination issues. Only thing
that might get in the way is the vt font_copy removal, but that's in -rc3
so easy to backmerge.
I will rebase and send everything (including the font_copy
garbage-collecting) in a v3 series after the backmerge. Thanks,
No need to be blocked on a backmerge, this is only needed for merging
the patches. Development should not be blocked like this.
On Tue, Nov 10, 2020 at 01:49:46PM +0100, Daniel Vetter wrote:
On Fri, Nov 06, 2020 at 11:50:58AM +0100, Greg Kroah-Hartman wrote:
quoted
On Sat, Oct 31, 2020 at 03:24:41AM -0400, Peilin Ye wrote:
quoted
`struct console_font` is a UAPI structure, thus ideally should not be
used for kernel internal abstraction. Remove some dummy .con_font_set,
.con_font_default and .con_font_copy `struct consw` callback
implementations, to make it cleaner.
Patch "fbcon: Prevent global-out-of-bounds read in fbcon_copy_font()"
depends on this patch, so Cc: stable.
Cc: stable@vger.kernel.org
Suggested-by: Daniel Vetter <redacted>
Signed-off-by: Peilin Ye <redacted>
---
Context: https://lore.kernel.org/lkml/CAKMK7uFY2zv0adjKJ_ORVFT7Zzwn075MaU0rEU7_FuqENLR=UA@mail.gmail.com/
drivers/usb/misc/sisusbvga/sisusb_con.c | 21 ---------------------
drivers/video/console/dummycon.c | 20 --------------------
2 files changed, 41 deletions(-)
Peilin, can you pls resend this together with all the other pending
patches from you? I think that's better than me trying to cherry-pick the
bits we decided to keep from random places.
Greg, ok if I just pull these in through drm-misc-next? It's a pretty bad
hairball anyway and that avoids the tree coordination issues. Only thing
that might get in the way is the vt font_copy removal, but that's in -rc3
so easy to backmerge.