Skip to contentSkip to conversation

R: Re: R: Re: R: Re: CAN BIOS/UEFI DO WRITING OPERATIONS ON ATTACHED DRIVES BY MEANS OF INT 13 H INTERRUPT ?

DISCUSSION [email protected] 2 participants 2 messages Jul 24, 2017

lore
Share & tools
lore
#0 lore raw

Dear Colin,

You has been very clear about the GRUB design.

Please, let me pose another question, because i see you have a solid experience and you are precise.

Do you know if the Ubuntu kernel uses BIOS services, in particular the INT 13H interrupt, or if it is BIOS indipendent ? In this last case in which a way Ubuntu treats the low-level disk services ?

If I well understood Ubuntu should intercept the call and passes it to the operating system's native disk I/O mechanism, bypassing BIOS routines for the low-level disk reading/writing access.

Thanks in advance.

Your tips are welcome.

Best Regards.

Vincenzo.

Forensic Consultant
Tribunale di Lecce

Studio: Strada di Garibaldi - Contrada Paradisi
73010 Lequile (LE)

cell: 339.7968555
skype: vincenzo.di_salvo

----Messaggio originale----
Da: [email protected]
Data: 18-lug-2017 13.28
A: "[email protected]"<[email protected]>
Cc: <[email protected]>
Ogg: Re: R: Re: R: Re: CAN GRUB DO WRITING OPERATIONS ON ATTACHED DRIVES ?

Quoted 9 lines · On Tue, Jul 18, 2017 at 12:38:33PM +0200, [email protected] wrote:

I've read with interest your reply and i gave a look at the grub code.

You wrote an important assertion: "GRUB intentionally has no filesystem writing support".

So, the writing operations that grub can do, only be sent to a pre-allocated memory regions of the disk different in any case from that allocated by the OS for the filesystem, where the user data are stored.

This means that grub never can corrupt the user data.

Please, can you confirm if this my conclusion is right ? Because is this the crucial question i need to solve.

I would never want to rule out the possibility of strange bugs, but that is certainly the design.

Signature · 1 line
Colin Watson                                       [[email protected]]
#1 lore raw
Quoted 7 lines · On Mon, Jul 24, 2017 at 11:25:31AM +0200, [email protected] wrote:

You has been very clear about the GRUB design.

Please, let me pose another question, because i see you have a solid experience and you are precise.

Do you know if the Ubuntu kernel uses BIOS services, in particular the INT 13H interrupt, or if it is BIOS indipendent ? In this last case in which a way Ubuntu treats the low-level disk services ?

If I well understood Ubuntu should intercept the call and passes it to the operating system's native disk I/O mechanism, bypassing BIOS routines for the low-level disk reading/writing access.

I'm afraid that I'm not a kernel developer and can't answer this with any authority.

My understanding is that the Linux kernel typically doesn't use BIOS services for disk I/O since it's running in protected mode, but it's possible that there are some edge cases where this isn't true. You'd need to find an actual kernel developer to be authoritative about this, though.

Signature · 1 line
Colin Watson                                       [[email protected]]