Skip to content
Snippets Groups Projects
Select Git revision
  • vf-250219
  • vf-250219-refactor
  • verifence default protected
  • verifence-v2
  • bpf-next-250227-refactor
  • verifence-v2-rc1
  • vf-baseline
  • vf-baseline-v6.14-rc4
  • vf-eval-v2
  • bpf-next-master
  • verifence-v1-rfc
  • verifence-v6.14-rc4
  • by-value-v6.14
  • verifence-v6.14-rc3
  • vf-eval-nosan
  • vf-eval-v6.14
  • master
  • by-value
  • verifence-eval-for-v6.14-rc1
  • archive-250219-1919
20 results

nilfs2

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Nikita Zhandarovich authored
    Since nilfs_bmap_lookup_contig() in nilfs_fiemap() calculates its result
    by being prepared to go through potentially maxblocks == INT_MAX blocks,
    the value in n may experience an overflow caused by left shift of blkbits.
    
    While it is extremely unlikely to occur, play it safe and cast right hand
    expression to wider type to mitigate the issue.
    
    Found by Linux Verification Center (linuxtesting.org) with static analysis
    tool SVACE.
    
    Link: https://lkml.kernel.org/r/20250124222133.5323-1-konishi.ryusuke@gmail.com
    
    
    Fixes: 622daaff ("nilfs2: fiemap support")
    Signed-off-by: default avatarNikita Zhandarovich <n.zhandarovich@fintech.ru>
    Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@gmail.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    6438ef38
    History
    Name Last commit Last update
    ..