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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240827024517.914100-1-lihongbo22@huawei.com>
Date: Tue, 27 Aug 2024 10:45:14 +0800
From: Hongbo Li <lihongbo22@...wei.com>
To: <kees@...nel.org>, <andy@...nel.org>, <akpm@...ux-foundation.org>,
	<trondmy@...nel.org>, <anna@...nel.org>, <gregkh@...uxfoundation.org>
CC: <linux-hardening@...r.kernel.org>, <linux-mm@...ck.org>,
	<linux-nfs@...r.kernel.org>, <lihongbo22@...wei.com>
Subject: [PATCH -next v3 0/3]  Add str_true_false()/str_false_true() helper

Add str_true_false()/str_false_true() helper to "true" or "false"
string literal. And we found more than 10 cases currently exist
in the tree. So these helpers can be used for these cases.

Patch 1: Introduce the str_true_false()/str_false_true() helper
Patch 2: Use case for str_true_false.
Patch 3: Use case for str_false_true.

v3:
 - Add use cases for these new helpers.

v2: https://lore.kernel.org/all/2024082407-shortlist-ultimate-2102@gregkh/T/#m0222c320c5395252b3f26f57d99b05509a58b74e
 - Squash into a single patch as Andy Shevchenko' suggesstion.

v1: https://lore.kernel.org/all/1deb2bc4-0cd1-41a0-9434-65c02eef77ed@huawei.com/T/

Hongbo Li (3):
  lib/string_choices: Add str_true_false()/str_false_true() helper
  mm: make use of str_true_false helper
  nfs make use of str_false_true helper

 fs/nfs/nfs4xdr.c               | 11 +++++------
 include/linux/string_choices.h |  6 ++++++
 mm/memory-tiers.c              |  3 +--
 3 files changed, 12 insertions(+), 8 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ