lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87wn9ddqdo.fsf@toke.dk>
Date:   Thu, 06 Oct 2022 15:37:55 +0200
From:   Toke Høiland-Jørgensen <toke@...e.dk>
To:     "Jason A. Donenfeld" <Jason@...c4.com>,
        linux-kernel@...r.kernel.org
Cc:     netdev@...r.kernel.org
Subject: Re: [PATCH v1 2/5] treewide: use get_random_{u8,u16}() when possible

"Jason A. Donenfeld" <Jason@...c4.com> writes:

> Rather than truncate a 32-bit value to a 16-bit value or an 8-bit value,
> simply use the get_random_{u8,u16}() functions, which are faster than
> wasting the additional bytes from a 32-bit value.
>
> Signed-off-by: Jason A. Donenfeld <Jason@...c4.com>
> ---
>  crypto/testmgr.c                                          | 8 ++++----
>  drivers/media/common/v4l2-tpg/v4l2-tpg-core.c             | 2 +-
>  drivers/media/test-drivers/vivid/vivid-radio-rx.c         | 4 ++--
>  .../net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c   | 2 +-
>  drivers/net/hamradio/baycom_epp.c                         | 2 +-
>  drivers/net/hamradio/hdlcdrv.c                            | 2 +-
>  drivers/net/hamradio/yam.c                                | 2 +-
>  drivers/net/wireguard/selftest/allowedips.c               | 4 ++--
>  drivers/scsi/lpfc/lpfc_hbadisc.c                          | 6 +++---
>  lib/test_vmalloc.c                                        | 2 +-
>  net/dccp/ipv4.c                                           | 4 ++--
>  net/ipv4/datagram.c                                       | 2 +-
>  net/ipv4/ip_output.c                                      | 2 +-
>  net/ipv4/tcp_ipv4.c                                       | 4 ++--
>  net/mac80211/scan.c                                       | 2 +-
>  net/netfilter/nf_nat_core.c                               | 4 ++--
>  net/sched/sch_cake.c                                      | 6 +++---
>  net/sched/sch_sfb.c                                       | 2 +-
>  net/sctp/socket.c                                         | 2 +-
>  19 files changed, 31 insertions(+), 31 deletions(-)

For sch_cake:

Acked-by: Toke Høiland-Jørgensen <toke@...e.dk>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ