Project

General

Profile

Actions

Bug #11120

closed

Bogus layout settings are accepted, crash fuse client

Added by John Spray about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Reproduce:

mkdir pool_cephfs01/
setfattr -n ceph.dir.layout.stripe_unit -v "65536" pool_cephfs01/
setfattr -n ceph.dir.layout.stripe_count -v "1" pool_cephfs01/
setfattr -n ceph.dir.layout.object_size -v "1310720" pool_cephfs01/
dd if=/dev/urandom of=pool_cephfs01/out.bin bs=4M count=10
dd: error writing ‘one.bin’: Software caused connection abort
dd: closing output file ‘one.bin’: Transport endpoint is not connected

Client crash:

2015-03-16 16:55:10.072484 7ffbb67fc700  3 client.4125 ll_flush 0x7ffb9801b470 10000000002
2015-03-16 16:55:10.072492 7ffbb67fc700 10 client.4125 _flush: 0x7ffb9801b470 on inode 10000000002.head(ref=3 ll_ref=1 cap_refs={} open={2=1} mode=100644 size=0/1310720 mtime=2015-03-16 16:55:10.068887 caps=pAsxLsXsxFsxcrwb(0=pAsxLsXsxFsxcrwb) objectset[10000000002 ts 0/0 objects 0 dirty_or_tx 0] parents=0x7ffb98019ea0 0x7ffbc8067f10) no async_err state
terminate called after throwing an instance of 'ceph::buffer::end_of_buffer'
  what():  buffer::end_of_buffer
*** Caught signal (Aborted) **

Actions #1

Updated by Zheng Yan about 9 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Zheng Yan about 9 years ago

  • Status changed from Fix Under Review to Resolved

by commit ad15f7d795c5eb5beb3fe85bb63912524dffbd8f

Actions

Also available in: Atom PDF