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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 12 Jan 2021 12:46:49 -0500
From:   "Martin K. Petersen" <>
To:     Johannes Thumshirn <>
Cc:     Feng Li <>,
        "Martin K. Petersen" <>,
        Li Feng <>, Jens Axboe <>,
        "open list:BLOCK LAYER" <>,
        open list <>
Subject: Re: [PATCH v2] blk: avoid divide-by-zero with zero granularity


>> I use the nvme-tcp as the host, the target is spdk nvme-tcp target,
>> and set a wrong block size(i.g. bs=8), then the host prints this oops:
> I think the better fix here is to reject devices which report a block size
> small than a sector.

Yep, Linux doesn't support logical block sizes < 512 bytes.

Also, the NVMe spec states:

	"A value smaller than 9 (i.e., 512 bytes) is not supported."

Martin K. Petersen	Oracle Linux Engineering

Powered by blists - more mailing lists