“ Recently, I found a bug that causes a crash here”
I don't think you have described the bug in your post. If there is a bug then I would like to know!
“Is this a general rule, that critical section could not be used from interrupt handlers, or this is true only in Cortex-M3 architecture?”
It is an absolute rule for all architectures. The rule extends further than just critical sections "no API function that does not end in 'FromISR' should be called from an ISR". See point 3 on the following page: www.freertos.org/FAQHelp.html
As it happens, the CM3 port has an interrupt safe alternative. Look in queue.c to see how the macros portSET_INTERRUPT_MASK_FROM_ISR() and portCLEAR_INTERRUPT_MASK_FROM_ISR() are used.
Regards.