linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Gustavo A. R. Silva" <gustavoars@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Oscar Carter <oscar.carter@gmx.com>,
	jing yangyang <cgel.zte@gmail.com>, Len Baker <len.baker@gmx.com>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] Various hardening fixes and cleanups for 5.16-rc1
Date: Mon, 1 Nov 2021 16:43:41 -0500	[thread overview]
Message-ID: <20211101214341.GA29478@embeddedor> (raw)

The following changes since commit e4e737bb5c170df6135a127739a9e6148ee3da82:

  Linux 5.15-rc2 (2021-09-19 17:28:22 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/kspp-misc-fixes-5.16-rc1

for you to fetch changes up to ebe4560ed5c8cbfe3759f16c23ca5a6df090c6b5:

  firewire: Remove function callback casts (2021-11-01 13:44:26 -0500)

----------------------------------------------------------------
Various hardening fixes and cleanups for 5.16-rc1

Hi Linus,

Please, pull the following hardening fixes and cleanups that I've
been collecting during the last development cycle. All of them have
been baking in linux-next.

Fix -Wcast-function-type error:

- firewire: Remove function callback casts (Oscar Carter)

Fix application of sizeof operator:

- firmware/psci: fix application of sizeof to pointer (jing yangyang)

Replace open coded instances with size_t saturating arithmetic helpers:

- assoc_array: Avoid open coded arithmetic in allocator arguments (Len Baker)
- writeback: prefer struct_size over open coded arithmetic (Len Baker)
- aio: Prefer struct_size over open coded arithmetic (Len Baker)
- dmaengine: pxa_dma: Prefer struct_size over open coded arithmetic (Len Baker)

Flexible array transformation:

- KVM: PPC: Replace zero-length array with flexible array member (Len Baker)

Use 2-factor argument multiplication form:

- nouveau/svm: Use kvcalloc() instead of kvzalloc() (Gustavo A. R. Silva)
- xfs: Use kvcalloc() instead of kvzalloc() (Gustavo A. R. Silva)

Thanks
--
Gustavo

----------------------------------------------------------------
Gustavo A. R. Silva (2):
      xfs: Use kvcalloc() instead of kvzalloc()
      nouveau/svm: Use kvcalloc() instead of kvzalloc()

Len Baker (5):
      assoc_array: Avoid open coded arithmetic in allocator arguments
      writeback: prefer struct_size over open coded arithmetic
      aio: Prefer struct_size over open coded arithmetic
      KVM: PPC: Replace zero-length array with flexible array member
      dmaengine: pxa_dma: Prefer struct_size over open coded arithmetic

Oscar Carter (1):
      firewire: Remove function callback casts

jing yangyang (1):
      firmware/psci: fix application of sizeof to pointer

 arch/powerpc/include/asm/kvm_host.h   |  2 +-
 arch/powerpc/kvm/book3s_64_vio.c      |  3 +--
 drivers/dma/pxa_dma.c                 |  3 +--
 drivers/firewire/core-cdev.c          | 32 ++++++++++++++++++++++++++------
 drivers/firmware/psci/psci_checker.c  |  2 +-
 drivers/gpu/drm/nouveau/nouveau_svm.c |  2 +-
 fs/aio.c                              |  3 +--
 fs/fs-writeback.c                     |  6 +++---
 fs/xfs/xfs_ioctl.c                    |  6 +++---
 include/linux/firewire.h              | 11 +++++++----
 lib/assoc_array.c                     | 22 ++++++++++------------
 11 files changed, 55 insertions(+), 37 deletions(-)

             reply	other threads:[~2021-11-01 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-01 21:43 Gustavo A. R. Silva [this message]
2021-11-02  0:51 ` [GIT PULL] Various hardening fixes and cleanups for 5.16-rc1 pr-tracker-bot

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=20211101214341.GA29478@embeddedor \
    --to=gustavoars@kernel.org \
    --cc=cgel.zte@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=keescook@chromium.org \
    --cc=len.baker@gmx.com \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oscar.carter@gmx.com \
    --cc=torvalds@linux-foundation.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).