What will happen if i flash a stock rom (for update) on a stock rom with a custom kernel?
Odin won't check pre-existing binaries on your device, instead it will do everything on your computer. MD5 checks, certificate checks, etc. If it fails the check (aka. bad download) then it would trip your KNOX and you may have a brick.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?