Is computing majority element while doing secure two party computation for inner products ( input of the two parties ) an attack on the protocol?
As shown in the attack you described, computing the majority bit is not an attack in the malicious model. However, it is an attack in the semi-honest model.