linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Jiri Slaby <jslaby@suse.cz>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sasha Levin <sashal@kernel.org>
Subject: [PATCH AUTOSEL 5.11 06/67] vt/consolemap: do font sum unsigned
Date: Wed, 24 Feb 2021 07:49:24 -0500	[thread overview]
Message-ID: <20210224125026.481804-6-sashal@kernel.org> (raw)
In-Reply-To: <20210224125026.481804-1-sashal@kernel.org>

From: Jiri Slaby <jslaby@suse.cz>

[ Upstream commit 9777f8e60e718f7b022a94f2524f967d8def1931 ]

The constant 20 makes the font sum computation signed which can lead to
sign extensions and signed wraps. It's not much of a problem as we build
with -fno-strict-overflow. But if we ever decide not to, be ready, so
switch the constant to unsigned.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210105120239.28031-7-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/tty/vt/consolemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c
index f7d015c67963d..d815ac98b39e3 100644
--- a/drivers/tty/vt/consolemap.c
+++ b/drivers/tty/vt/consolemap.c
@@ -495,7 +495,7 @@ con_insert_unipair(struct uni_pagedir *p, u_short unicode, u_short fontpos)
 
 	p2[unicode & 0x3f] = fontpos;
 	
-	p->sum += (fontpos << 20) + unicode;
+	p->sum += (fontpos << 20U) + unicode;
 
 	return 0;
 }
-- 
2.27.0


  parent reply	other threads:[~2021-02-24 12:53 UTC|newest]

Thread overview: 139+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 12:49 [PATCH AUTOSEL 5.11 01/67] ath10k: prevent deinitializing NAPI twice Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 02/67] EDAC/amd64: Do not load on family 0x15, model 0x13 Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 03/67] staging: fwserial: Fix error handling in fwserial_create Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 04/67] x86/reboot: Add Zotac ZBOX CI327 nano PCI reboot quirk Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 05/67] can: flexcan: add CAN wakeup function for i.MX8QM Sasha Levin
2021-02-25  2:48   ` Fabio Estevam
2021-02-24 12:49 ` Sasha Levin [this message]
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 07/67] wlcore: Fix command execute failure 19 for wl12xx Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 08/67] Bluetooth: hci_h5: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for btrtl Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 09/67] Bluetooth: btusb: fix memory leak on suspend and resume Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 10/67] selftests/bpf: Remove memory leak Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 11/67] mt76: mt7915: reset token when mac_reset happens Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 12/67] mt76: mt7615: " Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 13/67] pktgen: fix misuse of BUG_ON() in pktgen_thread_worker() Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 14/67] ath10k: fix wmi mgmt tx queue full due to race condition Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 15/67] x86/build: Treat R_386_PLT32 relocation as R_386_PC32 Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 16/67] net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 17/67] Bluetooth: Add new HCI_QUIRK_NO_SUSPEND_NOTIFIER quirk Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 18/67] Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 19/67] staging: most: sound: add sanity check for function argument Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 20/67] staging: bcm2835-audio: Replace unsafe strcpy() with strscpy() Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 21/67] net: ipa: avoid field overflow Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 22/67] brcmfmac: Add DMI nvram filename quirk for Predia Basic tablet Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 23/67] brcmfmac: Add DMI nvram filename quirk for Voyo winpad A15 tablet Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 24/67] wilc1000: Fix use of void pointer as a wrong struct type Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 25/67] drm/hisilicon: Fix use-after-free Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 26/67] udlfb: Fix memory leak in dlfb_usb_probe Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 27/67] JFS: more checks for invalid superblock Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 28/67] crypto: tcrypt - avoid signed overflow in byte count Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 29/67] fs: make unlazy_walk() error handling consistent Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 30/67] sched/core: Allow try_invoke_on_locked_down_task() with irqs disabled Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 31/67] drm/amdgpu: Add check to prevent IH overflow Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 32/67] PCI: Add a REBAR size quirk for Sapphire RX 5600 XT Pulse Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 33/67] ASoC: Intel: bytcr_rt5640: Add new BYT_RT5640_NO_SPEAKERS quirk-flag Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 34/67] ALSA: usb-audio: Add support for Pioneer DJM-750 Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 35/67] drm/amd/display: Guard against NULL pointer deref when get_i2c_info fails Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 36/67] drm/amd/amdgpu: add error handling to amdgpu_virt_read_pf2vf_data Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 37/67] media: mceusb: sanity check for prescaler value Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 38/67] media: v4l2-ctrls.c: fix shift-out-of-bounds in std_validate Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 39/67] media: zr364xx: fix memory leaks in probe() Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 40/67] media: uvcvideo: Allow entities with no pads Sasha Levin
2021-02-24 12:49 ` [PATCH AUTOSEL 5.11 41/67] f2fs: handle unallocated section and zone on pinned/atgc Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 42/67] f2fs: fix to set/clear I_LINKABLE under i_lock Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 43/67] tomoyo: ignore data race while checking quota Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 44/67] nvme-core: add cancel tagset helpers Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 45/67] nvme-rdma: add clean action for failed reconnection Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 46/67] nvme-tcp: " Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 47/67] ALSA: usb-audio: Add DJM450 to Pioneer format quirk Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 48/67] ALSA: usb-audio: Add DJM-450 to the quirks table Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 49/67] smackfs: restrict bytes count in smackfs write functions Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 50/67] Drivers: hv: vmbus: Initialize memory to be sent to the host Sasha Levin
2021-02-24 13:16   ` Andrea Parri
2021-02-24 13:30     ` Andrea Parri
2021-02-26 17:05       ` Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 51/67] Drivers: hv: vmbus: Resolve race condition in vmbus_onoffer_rescind() Sasha Levin
2021-02-24 13:17   ` Andrea Parri
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 52/67] ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr() Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 53/67] btrfs: fix error handling in commit_fs_roots Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 54/67] btrfs: make btrfs_start_delalloc_root's nr argument a long Sasha Levin
2021-02-24 18:09   ` David Sterba
2021-03-04 22:24     ` Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 55/67] btrfs: only let one thread pre-flush delayed refs in commit Sasha Levin
2021-02-24 18:08   ` David Sterba
2021-03-04 22:24     ` Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 56/67] drm/amdgpu: enable only one high prio compute queue Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 57/67] perf/x86/kvm: Add Cascade Lake Xeon steppings to isolation_ucodes[] Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 58/67] ASoC: Intel: sof-sdw: indent and add quirks consistently Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 59/67] ASoC: Intel: sof_sdw: detect DMIC number based on mach params Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 60/67] erofs: fix shift-out-of-bounds of blkszbits Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 61/67] parisc: Bump 64-bit IRQ stack size to 64 KB Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 62/67] xen-blkback: fix error handling in xen_blkbk_map() Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 63/67] sched/features: Fix hrtick reprogramming Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 64/67] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 65/67] ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 66/67] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet Sasha Levin
2021-02-24 12:50 ` [PATCH AUTOSEL 5.11 67/67] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Sasha Levin
2021-02-24 12:51 [PATCH AUTOSEL 5.10 01/56] EDAC/amd64: Do not load on family 0x15, model 0x13 Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 02/56] staging: fwserial: Fix error handling in fwserial_create Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 03/56] x86/reboot: Add Zotac ZBOX CI327 nano PCI reboot quirk Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 04/56] vt/consolemap: do font sum unsigned Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 05/56] wlcore: Fix command execute failure 19 for wl12xx Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 06/56] Bluetooth: hci_h5: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for btrtl Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 07/56] Bluetooth: btusb: fix memory leak on suspend and resume Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 08/56] mt76: mt7615: reset token when mac_reset happens Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 09/56] pktgen: fix misuse of BUG_ON() in pktgen_thread_worker() Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 10/56] ath10k: fix wmi mgmt tx queue full due to race condition Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 11/56] x86/build: Treat R_386_PLT32 relocation as R_386_PC32 Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 12/56] net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant Sasha Levin
2021-02-25 19:03   ` [PATCH AUTOSEL 5.11 16/67] " Pali Rohár
2021-03-04 22:33     ` Sasha Levin
2021-03-05 23:38       ` Pali Rohár
2021-03-06 17:52         ` Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 13/56] Bluetooth: Add new HCI_QUIRK_NO_SUSPEND_NOTIFIER quirk Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 14/56] Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 15/56] staging: most: sound: add sanity check for function argument Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 16/56] staging: bcm2835-audio: Replace unsafe strcpy() with strscpy() Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 17/56] brcmfmac: Add DMI nvram filename quirk for Predia Basic tablet Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 18/56] brcmfmac: Add DMI nvram filename quirk for Voyo winpad A15 tablet Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 19/56] drm/hisilicon: Fix use-after-free Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 20/56] udlfb: Fix memory leak in dlfb_usb_probe Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 21/56] JFS: more checks for invalid superblock Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 22/56] crypto: tcrypt - avoid signed overflow in byte count Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 23/56] fs: make unlazy_walk() error handling consistent Sasha Levin
2021-03-05 12:40   ` Pavel Machek
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 24/56] sched/core: Allow try_invoke_on_locked_down_task() with irqs disabled Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 25/56] drm/amdgpu: Add check to prevent IH overflow Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 26/56] PCI: Add a REBAR size quirk for Sapphire RX 5600 XT Pulse Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 27/56] ASoC: Intel: bytcr_rt5640: Add new BYT_RT5640_NO_SPEAKERS quirk-flag Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 28/56] drm/amd/display: Guard against NULL pointer deref when get_i2c_info fails Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 29/56] drm/amd/amdgpu: add error handling to amdgpu_virt_read_pf2vf_data Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 30/56] media: mceusb: sanity check for prescaler value Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 31/56] media: v4l2-ctrls.c: fix shift-out-of-bounds in std_validate Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 32/56] media: uvcvideo: Allow entities with no pads Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 33/56] f2fs: handle unallocated section and zone on pinned/atgc Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 34/56] f2fs: fix to set/clear I_LINKABLE under i_lock Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 35/56] tomoyo: ignore data race while checking quota Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 36/56] nvme-core: add cancel tagset helpers Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 37/56] nvme-rdma: add clean action for failed reconnection Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 38/56] nvme-tcp: " Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 39/56] smackfs: restrict bytes count in smackfs write functions Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 40/56] Drivers: hv: vmbus: Initialize memory to be sent to the host Sasha Levin
2021-02-24 13:19   ` Andrea Parri
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 41/56] Drivers: hv: vmbus: Resolve race condition in vmbus_onoffer_rescind() Sasha Levin
2021-02-24 13:20   ` Andrea Parri
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 42/56] ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr() Sasha Levin
2021-02-24 12:51 ` [PATCH AUTOSEL 5.10 43/56] btrfs: fix error handling in commit_fs_roots Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 44/56] btrfs: make btrfs_start_delalloc_root's nr argument a long Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 45/56] drm/amdgpu: enable only one high prio compute queue Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 46/56] perf/x86/kvm: Add Cascade Lake Xeon steppings to isolation_ucodes[] Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 47/56] ASoC: Intel: sof-sdw: indent and add quirks consistently Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 48/56] ASoC: Intel: sof_sdw: detect DMIC number based on mach params Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 49/56] erofs: fix shift-out-of-bounds of blkszbits Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 50/56] parisc: Bump 64-bit IRQ stack size to 64 KB Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 51/56] xen-blkback: fix error handling in xen_blkbk_map() Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 52/56] sched/features: Fix hrtick reprogramming Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 53/56] ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 54/56] ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 55/56] ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet Sasha Levin
2021-02-24 12:52 ` [PATCH AUTOSEL 5.10 56/56] ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210224125026.481804-6-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).