grub_calloc issue

If none of the more specific forums is the right place to ask

Re: grub_calloc issue

Postby cuckooflew » 2020-08-02 01:49

by quixote » 2020-08-02 01:27
This is not an RTFM situation.

Maybe not but it is a "read the links posted" situation, and
Apparently you do not even read the material in the links you post. The first link is Ubuntu, and really has nothing to do with Debian, the second link, all though it is mostly about : RHEL and CentOS How ever there is a mention of a fix for Debian:
For Debian users, the
DEBIAN FIX is available in newly committed package grub2 (2.02+dfsg1-20+deb10u2).


by quixote »Fix? Pleeeeeeeeeeease?

As if asking Debian users to fix it would get it fixed, if you had read the pages you posted links to you would have known that it was fixed. So Please, do read the links you posted, or just the link to the Debian bug report. And thank you for sharing the links.
Last edited by cuckooflew on 2020-08-02 02:03, edited 1 time in total.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub_calloc issue

Postby cuckooflew » 2020-08-02 01:59

For those that do not want to read the entire, long discussion:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966554#70
Hello,

Bug #966554 in grub2 reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:https://salsa.debian.org/grub-team/grub/-/commit/36a0504012cf4bcc8575550e4eb2fc63ea895416Fix a regression caused by "efi: fix some malformed device path arithmetic errors"

Thanks, Chris Coulson and Steve McIntyre.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub_calloc issue

Postby cuckooflew » 2020-08-02 02:15

by quixote »
Edit: I know there's a fix here: https://bugs.debian.org/cgi-bin/bugrepo ... bug=966554 however it's not straightforward for those of us who need step-by-steps. Judging from that thread, at some point a fix is due to appear in our regular updates, but it's not there yet. Until it is, a step-by-step from the smart ones here that tells us how to apply it would really help!

Well again, if you read it more carefully, https://salsa.debian.org/grub-team/grub/-/commit/36a0504012cf4bcc8575550e4eb2fc63ea895416
authored 2 days ago by

The simple straight forward fix, is to just run a upadte/upgrade, like I did today, the fix is included in the up grade.
Re: grub_calloc issue

Postby shep » 2020-07-31 14:12
July 31, 2020 there was a second grub 2.02 update, 2.02+dfsg1-20+deb10u2, that fixed my dual boot issue.

I upgraded today, and it is fixed.https://security-tracker.debian.org/tracker/CVE-2020-10713
grub2 (PTS) stretch 2.02~beta3-5+deb9u2 vulnerable
buster, buster (security) 2.02+dfsg1-20+deb10u2 fixed

Well I guess, partial , if you are using Debian stretch, no, it is not fixed
Further detailed information can be found at https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot

For the stable distribution (buster), these problems have been fixed in version 2.02+dfsg1-20+deb10u1.

We recommend that you upgrade your grub2 packages.
For the stable distribution (buster), these problems have been fixed in version 2.02+dfsg1-20+deb10u1.

We recommend that you upgrade your grub2 packages.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub_calloc issue

Postby p.H » 2020-08-02 11:40

quixote wrote:A massive bug has been introduced trying to fix a vulnerability, and what we need right now is a fix.

What bug are you talking about ?

The UEFI multiboot chainloading bug has been fixed in the latest grub2 packages for buster.
Stretch does not support secure boot and is not affected.

The issue discussed in this thread is completely different and is not a GRUB bug, it is caused by a setup error. Please read carefully my first post and Colin Watson's quote at the link posted by Head_on_a_Stick's.
p.H
 
Posts: 1489
Joined: 2017-09-17 07:12

Re: grub_calloc issue

Postby quixote » 2020-08-03 07:01

cuckooflew, the part you don't seem to understand is I did read it. Carefully. I do not, however, have the background to understand it properly.

Since we're here on a user forum, perhaps share your understanding instead of your -- how should I say this politely -- amazement at my ignorance. And, possibly, if you had read my comment, you would have noticed that I bring up the ubuntu and redhat links as *examples* of the sort of step-by-step workarounds that would be welcome. Complete with attempt at humor about not using those instructions on debian.

This all reminds me a bit of the old debian forums in the late 1990s.

Re what bug am I talking about: the malfunction, whatever you want to call it, that makes a system unbootable. To me, that is a big malfunction / bug / problem / unpleasantness.

So, if there is anyone here who can answer the question, what steps should I go through to make sure grub is bootable? I'd like to be very sure I don't make anything worse. I'm not in a situation where I can afford any downtime.

I should add that I am using Debian 10, Buster.
User avatar
quixote
 
Posts: 102
Joined: 2009-10-15 02:51
Location: Sitooterie

Re: grub_calloc issue

Postby sickpig » 2020-08-03 08:25

The grub version 2.02+dfsg1-20+deb10u2 is available for upgrade. May be update cache? Also, take a backup of the /boot folder with /boot/efi and /boot(if on a separate partition) mounted before the upgrade. Worst case if you are unable to boot restore the backup from a live cd.
User avatar
sickpig
 
Posts: 575
Joined: 2019-01-23 10:34

Re: grub_calloc issue

Postby Head_on_a_Stick » 2020-08-03 18:32

quixote wrote:Fix? Pleeeeeeeeeeease?

Code: Select all
# dpkg-reconfigure grub-efi-amd64

Change amd64 to ia32 if you have a 32-bit UEFI implementation.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: grub_calloc issue

Postby cuckooflew » 2020-08-03 18:58

This all reminds me a bit of the old debian forums in the late 1990s.

Thank you so much, yea, don't you miss back when it was "the good old days", I do.
Have a good day,..
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub_calloc issue

Postby milomak » 2020-08-04 00:13

Head_on_a_Stick wrote:
quixote wrote:Fix? Pleeeeeeeeeeease?

Code: Select all
# dpkg-reconfigure grub-efi-amd64

Change amd64 to ia32 if you have a 32-bit UEFI implementation.

how do i employ this if i am running my distro from an external drive?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2063
Joined: 2009-06-09 22:20

Re: grub_calloc issue

Postby cuckooflew » 2020-08-04 21:59

I don't see any reason it would be any different then on a internal drive. The commands are the same on either. Unless the external drive does not have grub on it or something else different.
Code: Select all
# dpkg-reconfigure grub-efi-amd64
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: grub_calloc issue

Postby milomak » 2020-08-04 22:30

yeah i misinterpreted what was being said.

safe to say, chrooting into the box and reverting to grub from stable has resolved the issue for me.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2063
Joined: 2009-06-09 22:20

Re: grub_calloc issue

Postby beeshma123 » 2020-09-26 02:49

On one pc the arrangement gave by head on a stick had exactly the intended effect, presently on my principle workstation doesn't work, rather, to have the calloc issue I simply boot in a grub shell.

My primary pc is encoded with luks, yet the boot parcel isn't I don't have a clue whether this issue, I trust you can help me since I'm trapped
beeshma123
 
Posts: 1
Joined: 2020-09-26 02:44

Re: grub_calloc issue

Postby CwF » 2020-09-29 03:35

beeshma123 wrote:since I'm trapped

still trapped?
Does it boot to grub> or grub rescue> ?

You'll need to load luks to enter the key and open a slot, then run grub.cfg if you have the path...
...then when up update grub.

Post back if still stuck, I've done this one.
CwF
 
Posts: 790
Joined: 2018-06-20 15:16

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable