[LU-15181] wrong LASSERT in osd_declare_write_commit() Created: 31/Oct/21  Updated: 30/Nov/21  Resolved: 30/Nov/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Trivial
Reporter: Andrew Perepechko Assignee: Andrew Perepechko
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   
[13625.206311] UBSAN: Undefined behaviour in /mnt/ssdraid/xyratex/lustre-wc-rel3/lustre/osd-ldiskfs/osd_io.c:1404:2
[13625.206363] shift exponent 4096 is too large for 32-bit type 'int'

The following piece of code seems to contain a typo:

        LASSERT(extent_bytes >= (1 << osd_sb(osd)->s_blocksize));


 Comments   
Comment by Andrew Perepechko [ 31/Oct/21 ]

https://review.whamcloud.com/#/c/45423/

Comment by Gerrit Updater [ 30/Nov/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45423/
Subject: LU-15181 osd-ldiskfs: a typo in osd_declare_write_commit()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ca7783348421da7ce628c69da5d4298fb372dc2b

Comment by Peter Jones [ 30/Nov/21 ]

Landed for 2.15

Generated at Sat Feb 10 03:16:08 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.