# git rev-parse -q --verify 8374cfe647a1f360be3228b949dd6d753c55c19c^{commit} 8374cfe647a1f360be3228b949dd6d753c55c19c already have revision, skipping fetch # git checkout -q -f -B kisskb 8374cfe647a1f360be3228b949dd6d753c55c19c # git clean -qxdf # < git log -1 # commit 8374cfe647a1f360be3228b949dd6d753c55c19c # Merge: c013d0af81f6 9dd1cd3220ec # Author: Linus Torvalds # Date: Tue Aug 2 14:21:25 2022 -0700 # # Merge tag 'for-6.0/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm # # Pull device mapper updates from Mike Snitzer: # # - Refactor DM core's mempool allocation so that it clearer by not being # split acorss files. # # - Improve DM core's BLK_STS_DM_REQUEUE and BLK_STS_AGAIN handling. # # - Optimize DM core's more common bio splitting by eliminating the use # of bio cloning with bio_split+bio_chain. Shift that cloning cost to # the relatively unlikely dm_io requeue case that only occurs during # error handling. Introduces dm_io_rewind() that will clone a bio that # reflects the subset of the original bio that must be requeued. # # - Remove DM core's dm_table_get_num_targets() wrapper and audit all # dm_table_get_target() callers. # # - Fix potential for OOM with DM writecache target by setting a default # MAX_WRITEBACK_JOBS (set to 256MiB or 1/16 of total system memory, # whichever is smaller). # # - Fix DM writecache target's stats that are reported through # DM-specific table info. # # - Fix use-after-free crash in dm_sm_register_threshold_callback(). # # - Refine DM core's Persistent Reservation handling in preparation for # broader work Mike Christie is doing to add compatibility with # Microsoft Windows Failover Cluster. # # - Fix various KASAN reported bugs in the DM raid target. # # - Fix DM raid target crash due to md_handle_request() bio splitting # that recurses to block core without properly initializing the bio's # bi_dev. # # - Fix some code comment typos and fix some Documentation formatting. # # * tag 'for-6.0/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: (29 commits) # dm: fix dm-raid crash if md_handle_request() splits bio # dm raid: fix address sanitizer warning in raid_resume # dm raid: fix address sanitizer warning in raid_status # dm: Start pr_preempt from the same starting path # dm: Fix PR release handling for non All Registrants # dm: Start pr_reserve from the same starting path # dm: Allow dm_call_pr to be used for path searches # dm: return early from dm_pr_call() if DM device is suspended # dm thin: fix use-after-free crash in dm_sm_register_threshold_callback # dm writecache: count number of blocks discarded, not number of discard bios # dm writecache: count number of blocks written, not number of write bios # dm writecache: count number of blocks read, not number of read bios # dm writecache: return void from functions # dm kcopyd: use __GFP_HIGHMEM when allocating pages # dm writecache: set a default MAX_WRITEBACK_JOBS # Documentation: dm writecache: Render status list as list # Documentation: dm writecache: add blank line before optional parameters # dm snapshot: fix typo in snapshot_map() comment # dm raid: remove redundant "the" in parse_raid_params() comment # dm cache: fix typo in 2 comment blocks # ... # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 8374cfe647a1f360be3228b949dd6d753c55c19c # < make -s -j 40 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- randconfig # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_GCC_PLUGIN_CYC_COMPLEXITY=n # Added to kconfig CONFIG_GCC_PLUGIN_SANCOV=n # Added to kconfig CONFIG_GCC_PLUGIN_LATENT_ENTROPY=n # Added to kconfig CONFIG_BPF_PRELOAD=n # Added to kconfig # < make -s -j 40 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 40 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig .config:7861:warning: override: reassigning to symbol STANDALONE .config:7862:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD .config:7867:warning: override: reassigning to symbol GCC_PLUGIN_LATENT_ENTROPY # make -s -j 40 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- /kisskb/src/drivers/infiniband/core/user_mad.c: In function 'ib_umad_write': /kisskb/src/drivers/infiniband/core/user_mad.c:564:50: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds] 564 | hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); | ^~ /kisskb/src/drivers/infiniband/core/user_mad.c:509:18: note: referencing an object of size 140 allocated by 'kzalloc.constprop' 509 | packet = kzalloc(sizeof *packet + IB_MGMT_RMPP_HDR, GFP_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/core/user_mad.c:566:42: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds] 566 | if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) | ^~ /kisskb/src/drivers/infiniband/core/user_mad.c:509:18: note: referencing an object of size 140 allocated by 'kzalloc.constprop' 509 | packet = kzalloc(sizeof *packet + IB_MGMT_RMPP_HDR, GFP_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/core/user_mad.c:618:25: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds] 618 | rmpp_mad->mad_hdr.tid = *tid; | ^~ /kisskb/src/drivers/infiniband/core/user_mad.c:509:18: note: referencing an object of size 140 allocated by 'kzalloc.constprop' 509 | packet = kzalloc(sizeof *packet + IB_MGMT_RMPP_HDR, GFP_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/infiniband/core/user_mad.c:622:44: warning: array subscript 'struct ib_rmpp_mad[0]' is partly outside array bounds of 'unsigned char[140]' [-Warray-bounds] 622 | && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) | ^~ /kisskb/src/drivers/infiniband/core/user_mad.c:509:18: note: referencing an object of size 140 allocated by 'kzalloc.constprop' 509 | packet = kzalloc(sizeof *packet + IB_MGMT_RMPP_HDR, GFP_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Completed OK # rm -rf /kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 # Build took: 0:03:38.528062