Linux 5.6.2
Greg KH
maintainerI'm announcing the release of the 5.6.2 kernel.
All users of the 5.6 kernel series must upgrade.
The updated 5.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 drivers/platform/x86/pmc_atom.c | 8 ++ drivers/tty/serial/sprd_serial.c | 3 - drivers/tty/vt/selection.c | 5 + drivers/tty/vt/vt.c | 30 +++++++++- drivers/tty/vt/vt_ioctl.c | 75 ++++++++++++++------------- include/linux/selection.h | 4 + include/linux/vt_kern.h | 2 net/mac80211/tx.c | 3 - tools/testing/selftests/bpf/verifier/jmp32.c | 9 ++- 10 files changed, 93 insertions(+), 48 deletions(-)
Daniel Borkmann (1):
bpf: update jmp32 test cases to fix range bound deduction
Eric Biggers (3):
vt: vt_ioctl: remove unnecessary console allocation checks
vt: vt_ioctl: fix VT_DISALLOCATE freeing in-use virtual console
vt: vt_ioctl: fix use-after-free in vt_in_use()
Georg Müller (1):
platform/x86: pmc_atom: Add Lex 2I385SW to critclk_systems DMI table
Greg Kroah-Hartman (1):
Linux 5.6.2
Jiri Slaby (3):
vt: selection, introduce vc_is_sel
vt: ioctl, switch VT_IS_IN_USE and VT_BUSY to inlines
vt: switch vt_dont_switch to bool
Johannes Berg (1):
mac80211: fix authentication with iwlwifi/mvm
Lanqing Liu (1):
serial: sprd: Fix a dereference warning
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 6 -SUBLEVEL = 1 +SUBLEVEL = 2 EXTRAVERSION = NAME = Kleptomaniac Octopus
drivers/platform/x86/pmc_atom.c +8 -0
@@ -383,6 +383,14 @@ static const struct dmi_system_id critclk_systems[] = { DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"), }, }, + { +/* pmc_plt_clk* - are used for ethernet controllers */ + .ident = "Lex 2I385SW", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Lex BayTrail" ), + DMI_MATCH(DMI_PRODUCT_NAME, "2I385SW"), + }, + }, {/* pmc_plt_clk* - are used for ethernet controllers */ .ident = "Beckhoff CB3163",
drivers/tty/serial/sprd_serial.c +1 -2
@@ -1132,14 +1132,13 @@ static int sprd_remove(struct platform_device *dev)if (sup) {uart_remove_one_port (&sprd_uart_driver, &sup->port); sprd_port[sup->port.line] =NULL ; +sprd_rx_free_buf (sup); sprd_ports_num--; }if (!sprd_ports_num)uart_unregister_driver (&sprd_uart_driver); -sprd_rx_free_buf (sup); -return 0 ; }
drivers/tty/vt/selection.c +5 -0
@@ -88,6 +88,11 @@ void clear_selection(void) }EXPORT_SYMBOL_GPL (clear_selection); +bool vc_is_sel (struct vc_data *vc) +{ +return vc == sel_cons; +} +/* * User settable table: what characters are to be considered alphabetic? * 128 bits. Locked by the console lock.
drivers/tty/vt/vt.c +26 -4
@@ -890,8 +890,9 @@ static void hide_softcursor(struct vc_data *vc)static void hide_cursor (struct vc_data *vc) { -if (vc == sel_cons) +if (vc_is_sel (vc))clear_selection (); + vc->vc_sw->con_cursor (vc,CM_ERASE );hide_softcursor (vc); }
@@ -901,7 +902,7 @@ static void set_cursor(struct vc_data *vc)if (!con_is_fg (vc) || console_blanked || vc->vc_mode ==KD_GRAPHICS )return ;if (vc->vc_deccm) { -if (vc == sel_cons) +if (vc_is_sel (vc))clear_selection ();add_softcursor (vc);if ((vc->vc_cursor_type &0x0f ) !=1 )
@@ -1074,6 +1075,17 @@ static void visual_deinit(struct vc_data *vc)module_put (vc->vc_sw->owner); } +static void vc_port_destruct (struct tty_port *port) +{ + struct vc_data *vc = container_of(port, struct vc_data, port); + +kfree (vc); +} + +static const struct tty_port_operations vc_port_ops = { + .destruct = vc_port_destruct, +}; +int vc_allocate (unsigned int currcons)/* return 0 on success */ {struct vt_notifier_param param;
@@ -1099,6 +1111,7 @@ int vc_allocate(unsigned int currcons) /* return 0 on success */ vc_cons[currcons].d = vc;tty_port_init (&vc->port); + vc->port.ops = &vc_port_ops;INIT_WORK (&vc_cons[currcons].SAK_work, vc_SAK);visual_init (vc, currcons,1 );
@@ -1207,7 +1220,7 @@ static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc, } } -if (vc == sel_cons) +if (vc_is_sel (vc))clear_selection (); old_rows = vc->vc_rows;
@@ -3253,6 +3266,7 @@ static int con_install(struct tty_driver *driver, struct tty_struct *tty) tty->driver_data = vc; vc->port.tty = tty; +tty_port_get (&vc->port);if (!tty->winsize.ws_row && !tty->winsize.ws_col) { tty->winsize.ws_row = vc_cons[currcons].d->vc_rows;
@@ -3288,6 +3302,13 @@ static void con_shutdown(struct tty_struct *tty)console_unlock (); } +static void con_cleanup (struct tty_struct *tty) +{ +struct vc_data *vc = tty->driver_data; + +tty_port_put (&vc->port); +} +static int default_color =7 ;/* white */ static int default_italic_color =2 ;// green (ASCII) static int default_underline_color =3 ;// cyan (ASCII)
@@ -3413,7 +3434,8 @@ static const struct tty_operations con_ops = { .throttle = con_throttle, .unthrottle = con_unthrottle, .resize = vt_resize, - .shutdown = con_shutdown + .shutdown = con_shutdown, + .cleanup = con_cleanup, };static struct cdev vc0_cdev;
drivers/tty/vt/vt_ioctl.c +40 -35
157 lines not on this page · raw message
include/linux/selection.h +3 -1
@@ -11,8 +11,8 @@#include <linux/tiocl.h> #include <linux/vt_buffer.h> -extern struct vc_data *sel_cons;struct tty_struct ; +struct vc_data ;extern void clear_selection (void ); extern int set_selection_user(const struct tiocl_selection __user *sel,
@@ -24,6 +24,8 @@ extern int sel_loadlut(char __user *p);extern int mouse_reporting (void );extern void mouse_report (struct tty_struct * tty,int butt,int mrx,int mry); +bool vc_is_sel (struct vc_data *vc); +extern int console_blanked;extern const unsigned char color_table[];
include/linux/vt_kern.h +1 -1
@@ -135,7 +135,7 @@ extern int do_unbind_con_driver(const struct consw *csw, int first, int last, int deflt);int vty_init (const struct file_operations *console_fops); -extern char vt_dont_switch; +extern bool vt_dont_switch;extern int default_utf8;extern int global_cursor_default;
net/mac80211/tx.c +2 -1
@@ -3610,7 +3610,8 @@ struct sk_buff *ieee80211_tx_dequeue(struct ieee80211_hw *hw,* Drop unicast frames to unauthorised stations unless they are * EAPOL frames from the local station. */ - if (unlikely(!ieee80211_vif_is_mesh(&tx.sdata->vif) && + if (unlikely(ieee80211_is_data(hdr->frame_control) && + !ieee80211_vif_is_mesh(&tx.sdata->vif) && tx.sdata->vif.type != NL80211_IFTYPE_OCB && !is_multicast_ether_addr(hdr->addr1) && !test_sta_flag(tx.sta, WLAN_STA_AUTHORIZED) &&
tools/testing/selftests/bpf/verifier/jmp32.c +6 -3
@@ -783,7 +783,8 @@ }, .prog_type = BPF_PROG_TYPE_SCHED_CLS, .fixup_map_hash_48b = { 4 }, - .result = ACCEPT, + .result = REJECT, + .errstr = "R8 unbounded memory access", .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS, }, {
@@ -811,7 +812,8 @@ }, .prog_type = BPF_PROG_TYPE_SCHED_CLS, .fixup_map_hash_48b = { 4 }, - .result = ACCEPT, + .result = REJECT, + .errstr = "R8 unbounded memory access", .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS, }, {
@@ -839,6 +841,7 @@ }, .prog_type = BPF_PROG_TYPE_SCHED_CLS, .fixup_map_hash_48b = { 4 }, - .result = ACCEPT, + .result = REJECT, + .errstr = "R8 unbounded memory access", .flags = F_NEEDS_EFFICIENT_UNALIGNED_ACCESS, },