6+ hour interviews are common for senior-level+ engineering roles at big orgs. They fly you in for a day of interviewing. Some orgs will even break this up to a 2-3 day thing to even it out.
If you're a bay company that's taking a $250k+/yr risk on someone you typically rake them over the coals (for better or worse).