Andy Shevchenko fe8e3ee0d5 lib/test_scanf: Handle n_bits == 0 in random tests
UBSAN reported (via LKP)

[   11.021349][    T1] UBSAN: shift-out-of-bounds in lib/test_scanf.c:275:51
[   11.022782][    T1] shift exponent 32 is too large for 32-bit type 'unsigned int'

When n_bits == 0, the shift is out of range. Switch code to use GENMASK
to handle this case.

Fixes: 50f530e176ea ("lib: test_scanf: Add tests for sscanf number conversion")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210727150132.28920-1-andriy.shevchenko@linux.intel.com
2021-07-29 09:52:33 +02:00
2021-06-29 11:21:35 -07:00
2021-06-18 11:43:09 +02:00
2021-05-08 10:00:11 -07:00
2021-06-29 12:07:18 -07:00
2021-06-29 12:07:18 -07:00
2021-06-29 12:07:18 -07:00
2021-06-29 12:07:18 -07:00
2021-06-18 11:43:09 +02:00
2021-06-29 12:07:18 -07:00
2021-06-29 11:21:35 -07:00
2021-06-28 16:15:50 -07:00
2021-06-28 11:10:20 -07:00
2021-06-29 12:07:18 -07:00
2021-06-28 15:40:51 -07:00
2021-06-28 14:01:03 -07:00
2021-06-29 12:07:18 -07:00
2021-06-28 14:04:24 -07:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 5.7 GiB
Languages
C 97.6%
Assembly 1%
Shell 0.5%
Python 0.3%
Makefile 0.3%