linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] treewide: Fix a bunch of shift overflows
@ 2022-04-05 15:15 Borislav Petkov
  2022-04-05 15:15 ` [PATCH 01/11] scsi: aacraid: Fix undefined behavior due to shift overflowing the constant Borislav Petkov
                   ` (12 more replies)
  0 siblings, 13 replies; 43+ messages in thread
From: Borislav Petkov @ 2022-04-05 15:15 UTC (permalink / raw)
  To: LKML

From: Borislav Petkov <bp@suse.de>

Hi all,

so this is the result of me trying to make allmodconfig actually build
here.

Due to some recent changes which added -fsanitize-shift to the build
options of an allmodconfig, it started failing here with an old gcc
because getting an overflow while shifting is undefined C99 behavior.

gcc warns/errors out with -Werror about this only on newer versions
where -pedantic is present while older ones do so even without it. The
whole details here:

  https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic

Fixing all those is trivial so please pick up at your convenience.

In order to avoid spamming people unnecessarily, I'm not CCing everyone
on each patch but only the relevant maintainers and lists.

Thx.

Borislav Petkov (11):
  scsi: aacraid: Fix undefined behavior due to shift overflowing the
    constant
  ALSA: usb-audio: Fix undefined behavior due to shift overflowing the
    constant
  bnx2x: Fix undefined behavior due to shift overflowing the constant
  drm/r128: Fix undefined behavior due to shift overflowing the constant
  i2c: ismt: Fix undefined behavior due to shift overflowing the
    constant
  brcmfmac: sdio: Fix undefined behavior due to shift overflowing the
    constant
  usb: typec: tcpm: Fix undefined behavior due to shift overflowing the
    constant
  mt76: Fix undefined behavior due to shift overflowing the constant
  perf/imx_ddr: Fix undefined behavior due to shift overflowing the
    constant
  IB/mlx5: Fix undefined behavior due to shift overflowing the constant
  drm/i915: Fix undefined behavior due to shift overflowing the constant

 .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h   |  2 +-
 .../i915/gt/uc/abi/guc_communication_ctb_abi.h |  2 +-
 .../gpu/drm/i915/gt/uc/abi/guc_messages_abi.h  |  2 +-
 drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h     |  2 +-
 drivers/gpu/drm/i915/i915_reg.h                | 18 +++++++++---------
 drivers/gpu/drm/r128/r128_drv.h                |  4 ++--
 drivers/i2c/busses/i2c-ismt.c                  |  4 ++--
 .../net/ethernet/broadcom/bnx2x/bnx2x_reg.h    |  2 +-
 .../broadcom/brcm80211/brcmfmac/sdio.c         |  2 +-
 .../net/wireless/mediatek/mt76/mt76x2/pci.c    |  2 +-
 drivers/perf/fsl_imx8_ddr_perf.c               |  2 +-
 drivers/scsi/aacraid/aacraid.h                 |  2 +-
 include/linux/mlx5/port.h                      |  2 +-
 include/linux/usb/pd_bdo.h                     |  2 +-
 sound/usb/usbaudio.h                           |  2 +-
 15 files changed, 25 insertions(+), 25 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2022-06-24 20:13 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 15:15 [PATCH 00/11] treewide: Fix a bunch of shift overflows Borislav Petkov
2022-04-05 15:15 ` [PATCH 01/11] scsi: aacraid: Fix undefined behavior due to shift overflowing the constant Borislav Petkov
2022-04-25 18:47   ` Randy Dunlap
2022-04-26  3:05   ` Martin K. Petersen
2022-05-03  0:51   ` Martin K. Petersen
2022-04-05 15:15 ` [PATCH 02/11] ALSA: usb-audio: " Borislav Petkov
2022-04-05 15:32   ` Takashi Iwai
2022-04-05 16:06     ` Borislav Petkov
2022-04-05 16:16       ` Takashi Iwai
2022-04-05 15:15 ` [PATCH 03/11] bnx2x: " Borislav Petkov
2022-04-05 19:53   ` Jakub Kicinski
2022-04-05 19:59     ` Borislav Petkov
2022-04-05 15:15 ` [PATCH 04/11] drm/r128: " Borislav Petkov
2022-04-25 18:46   ` Randy Dunlap
2022-05-19 13:05     ` Daniel Vetter
2022-06-16 16:06       ` Randy Dunlap
2022-06-24 20:13         ` Daniel Vetter
2022-04-05 15:15 ` [PATCH 05/11] i2c: ismt: " Borislav Petkov
2022-04-05 21:18   ` Seth Heasley
2022-04-05 15:15 ` [PATCH 06/11] brcmfmac: sdio: " Borislav Petkov
2022-04-05 15:25   ` Kalle Valo
2022-04-05 16:06     ` Borislav Petkov
2022-04-05 16:37       ` Kalle Valo
2022-04-05 16:55         ` [RESEND PATCH " Borislav Petkov
2022-04-05 19:11           ` Arend van Spriel
2022-04-10 12:20           ` Kalle Valo
2022-04-05 15:15 ` [PATCH 07/11] usb: typec: tcpm: " Borislav Petkov
2022-04-05 15:15 ` [PATCH 08/11] mt76: " Borislav Petkov
2022-04-06  5:43   ` Kalle Valo
2022-04-10 12:20   ` Kalle Valo
2022-04-05 15:15 ` [PATCH 09/11] perf/imx_ddr: " Borislav Petkov
2022-04-08 10:47   ` Will Deacon
2022-04-08 11:01     ` Borislav Petkov
2022-04-05 15:15 ` [PATCH 10/11] IB/mlx5: " Borislav Petkov
2022-04-05 18:31   ` Leon Romanovsky
2022-04-05 19:42     ` Borislav Petkov
2022-04-06  7:17   ` Leon Romanovsky
2022-04-05 15:15 ` [PATCH 11/11] drm/i915: " Borislav Petkov
2022-05-17 23:05   ` Randy Dunlap
2022-05-18  7:44     ` Borislav Petkov
2022-05-18 11:39       ` Jani Nikula
2022-04-06  9:23 ` [PATCH 00/11] treewide: Fix a bunch of shift overflows David Laight
2022-04-08 13:58 ` Will Deacon

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).