While working with linux kernel sometimes it happens the only stable kernel is the currently running kernel, and this configuration is needed.

To exctract the current running kernel configuration use following command:

user % cat /proc/config.gz | gunzip > running_config

or a bit shorter, here using zcat:

user % zcat /proc/config.gz > running_config