* cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
@ 2006-01-12 12:21 Thomas Maguin
2006-01-12 12:30 ` Matthias Andree
2006-01-12 12:32 ` Matthias Andree
0 siblings, 2 replies; 12+ messages in thread
From: Thomas Maguin @ 2006-01-12 12:21 UTC (permalink / raw)
To: linux-scsi
[-- Attachment #1: Type: text/plain, Size: 449 bytes --]
cdrecord 2.01.01_alpha04 without any patches is working fine as root.
As user cdrecord dev=ATA:1,0,0 blank=fast results in:
cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer
The user is in group burning, the rights are set as with 2.01.01_alpha01,
where user burning was possible. kernel is 2.6.14-nitro2.
--
-------------------------------------------
protect your privacy - encrypt your mails
my key is: 0x2AA933B6
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-12 12:21 cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer Thomas Maguin
@ 2006-01-12 12:30 ` Matthias Andree
2006-01-12 12:32 ` Matthias Andree
1 sibling, 0 replies; 12+ messages in thread
From: Matthias Andree @ 2006-01-12 12:30 UTC (permalink / raw)
To: T.Maguin; +Cc: linux-scsi
Thomas Maguin <T.Maguin@web.de> writes:
> cdrecord 2.01.01_alpha04 without any patches is working fine as root.
>
> As user cdrecord dev=ATA:1,0,0 blank=fast results in:
> cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer
>
> The user is in group burning, the rights are set as with 2.01.01_alpha01,
> where user burning was possible. kernel is 2.6.14-nitro2.
--
Matthias Andree
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-12 12:21 cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer Thomas Maguin
2006-01-12 12:30 ` Matthias Andree
@ 2006-01-12 12:32 ` Matthias Andree
2006-01-12 12:52 ` Thomas Maguin
1 sibling, 1 reply; 12+ messages in thread
From: Matthias Andree @ 2006-01-12 12:32 UTC (permalink / raw)
To: T.Maguin; +Cc: linux-scsi
Thomas Maguin <T.Maguin@web.de> writes:
> cdrecord 2.01.01_alpha04 without any patches is working fine as root.
>
> As user cdrecord dev=ATA:1,0,0 blank=fast results in:
> cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer
Consider using "sudo".
There are issues with some combinations of kernel and cdrecord
versions. setuid doesn't work, but sudo would (as would root access) --
and that's the symptom.
--
Matthias Andree
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-12 12:32 ` Matthias Andree
@ 2006-01-12 12:52 ` Thomas Maguin
2006-01-12 15:30 ` Matthias Andree
0 siblings, 1 reply; 12+ messages in thread
From: Thomas Maguin @ 2006-01-12 12:52 UTC (permalink / raw)
To: linux-scsi
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
On Thursday 12 January 2006 13:32, you wrote:
> Consider using "sudo".
and when I want to use k3b? Should I sudo k3b? This could possibly result in a
big security problem.
--
-------------------------------------------
protect your privacy - encrypt your mails
my key is: 0x2AA933B6
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-12 12:52 ` Thomas Maguin
@ 2006-01-12 15:30 ` Matthias Andree
2006-01-13 8:23 ` Thomas Maguin
0 siblings, 1 reply; 12+ messages in thread
From: Matthias Andree @ 2006-01-12 15:30 UTC (permalink / raw)
To: T.Maguin; +Cc: linux-scsi
Thomas Maguin <T.Maguin@web.de> writes:
> On Thursday 12 January 2006 13:32, you wrote:
>> Consider using "sudo".
>
> and when I want to use k3b? Should I sudo k3b? This could possibly result in a
> big security problem.
No, you could write a wrapper script that looks like
#! /bin/sh
exec /usr/bin/sudo /path/to/cdrecord "$@"
and point k3b to use that.
If it's a single-user desktop machine, /removing/ the setuid bit from
cdrecord might actually work, but runs counter to Jörg's
recommendations. No memory locking, no real-time priority will work, so
it stands a much higher chance of buffer underruns which are detrimental
to writing quality even in the light of burnproof, justlink and similar.
So in this case, the user needs to make absolutely sure the box is
absolutely idle. Better shut off the network so no messages come in and
run through the spam filter, don't browse, and at nighttime, shut down
cron, too.
I recall someone offering cdrecord patches to overcome part of this
problem, to the extent of it dropping its permissions too early,
apparently they haven't made 2.01.01a04 yet, if they are correct at all.
--
Matthias Andree
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-12 15:30 ` Matthias Andree
@ 2006-01-13 8:23 ` Thomas Maguin
2006-01-13 9:02 ` Jens Axboe
0 siblings, 1 reply; 12+ messages in thread
From: Thomas Maguin @ 2006-01-13 8:23 UTC (permalink / raw)
To: linux-scsi
[-- Attachment #1: Type: text/plain, Size: 110 bytes --]
This patch is working with alpha04 on my mashine:
http://de.geocities.com/linux_piewie/download/alpha04.txt
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-13 8:23 ` Thomas Maguin
@ 2006-01-13 9:02 ` Jens Axboe
2006-01-13 9:40 ` Matthias Andree
0 siblings, 1 reply; 12+ messages in thread
From: Jens Axboe @ 2006-01-13 9:02 UTC (permalink / raw)
To: Thomas Maguin; +Cc: linux-scsi
On Fri, Jan 13 2006, Thomas Maguin wrote:
> This patch is working with alpha04 on my mashine:
> http://de.geocities.com/linux_piewie/download/alpha04.txt
So any particular reason you think this is a kernel bug??
--
Jens Axboe
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-13 9:02 ` Jens Axboe
@ 2006-01-13 9:40 ` Matthias Andree
2006-01-13 9:52 ` Jens Axboe
2006-01-13 10:08 ` Thomas Maguin
0 siblings, 2 replies; 12+ messages in thread
From: Matthias Andree @ 2006-01-13 9:40 UTC (permalink / raw)
To: Jens Axboe; +Cc: Thomas Maguin, linux-scsi
Jens Axboe <axboe@suse.de> writes:
> On Fri, Jan 13 2006, Thomas Maguin wrote:
>> This patch is working with alpha04 on my mashine:
>> http://de.geocities.com/linux_piewie/download/alpha04.txt
>
> So any particular reason you think this is a kernel bug??
Perhaps because <http://de.geocities.com/linux_piewie/download/Readme.txt>
contains this text:
"3. solution for the root problem, not existent for kernel >= 2.6.14-rc2"
OTOH, if 2.6.14 and 2.6.15 are fixed, why would a kernel developer take
interest? 2.6.X isn't "stable" after all... as fiercely discussed on
linux-kernel@ a few weeks ago.
--
Matthias Andree
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-13 9:40 ` Matthias Andree
@ 2006-01-13 9:52 ` Jens Axboe
2006-01-13 10:08 ` Matthias Andree
2006-01-13 10:08 ` Thomas Maguin
1 sibling, 1 reply; 12+ messages in thread
From: Jens Axboe @ 2006-01-13 9:52 UTC (permalink / raw)
To: Matthias Andree; +Cc: Thomas Maguin, linux-scsi
On Fri, Jan 13 2006, Matthias Andree wrote:
> Jens Axboe <axboe@suse.de> writes:
>
> > On Fri, Jan 13 2006, Thomas Maguin wrote:
> >> This patch is working with alpha04 on my mashine:
> >> http://de.geocities.com/linux_piewie/download/alpha04.txt
> >
> > So any particular reason you think this is a kernel bug??
>
> Perhaps because <http://de.geocities.com/linux_piewie/download/Readme.txt>
>
> contains this text:
>
> "3. solution for the root problem, not existent for kernel >= 2.6.14-rc2"
Dunno if that is what you meant, but it states that >= 2.6.14-rc2 fixes
the root problem - your line states that a solution for kernel >=
2.6.14-rc2 is non-existant.
> OTOH, if 2.6.14 and 2.6.15 are fixed, why would a kernel developer take
> interest? 2.6.X isn't "stable" after all... as fiercely discussed on
Well there's nothing to fix if it works in newer kernels, is there? I
can't travel back in time and make sure that eg 2.6.10 works.
--
Jens Axboe
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-13 9:52 ` Jens Axboe
@ 2006-01-13 10:08 ` Matthias Andree
2006-01-13 10:14 ` Jens Axboe
0 siblings, 1 reply; 12+ messages in thread
From: Matthias Andree @ 2006-01-13 10:08 UTC (permalink / raw)
To: Jens Axboe; +Cc: Matthias Andree, Thomas Maguin, linux-scsi
Jens Axboe schrieb am 2006-01-13:
> On Fri, Jan 13 2006, Matthias Andree wrote:
> > Perhaps because <http://de.geocities.com/linux_piewie/download/Readme.txt>
> >
> > contains this text:
> >
> > "3. solution for the root problem, not existent for kernel >= 2.6.14-rc2"
>
> Dunno if that is what you meant, but it states that >= 2.6.14-rc2 fixes
> the root problem - your line states that a solution for kernel >=
> 2.6.14-rc2 is non-existant.
Usually the reference would "root problem": problem fixed as of 2.6.14-rc2.
I don't know if that's what the original author meant, but chances are
the problem was fixed in the kernel after being introduced between 2.6.7
and 2.6.10 somewhen. May have been 2.6.8[.1], but don't anyone quote me
on that figure.
> Well there's nothing to fix if it works in newer kernels, is there? I
> can't travel back in time and make sure that eg 2.6.10 works.
Let's not open this can of "stable kernel" worms here in -scsi@.
--
Matthias Andree
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-13 9:40 ` Matthias Andree
2006-01-13 9:52 ` Jens Axboe
@ 2006-01-13 10:08 ` Thomas Maguin
1 sibling, 0 replies; 12+ messages in thread
From: Thomas Maguin @ 2006-01-13 10:08 UTC (permalink / raw)
To: linux-scsi
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
On Friday 13 January 2006 10:40, you wrote:
> "3. solution for the root problem, not existent for kernel >= 2.6.14-rc2"
This relies only on q-check functions, like in qpxtool or readcd -cxscan
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
2006-01-13 10:08 ` Matthias Andree
@ 2006-01-13 10:14 ` Jens Axboe
0 siblings, 0 replies; 12+ messages in thread
From: Jens Axboe @ 2006-01-13 10:14 UTC (permalink / raw)
To: Thomas Maguin, linux-scsi
On Fri, Jan 13 2006, Matthias Andree wrote:
> > Well there's nothing to fix if it works in newer kernels, is there? I
> > can't travel back in time and make sure that eg 2.6.10 works.
>
> Let's not open this can of "stable kernel" worms here in -scsi@.
I deliberately ignored that bait, yet you continue. Bugs get introduced
and bugs get fixed. If you have some agenda on the "stable kernel",
please take it to the pub or some place else where we don't have to
listen to it. It's surely just about the worst way to try and get an
issue resolved.
You are free to use whatever you want, you know.
--
Jens Axboe
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-01-13 10:12 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-12 12:21 cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer Thomas Maguin
2006-01-12 12:30 ` Matthias Andree
2006-01-12 12:32 ` Matthias Andree
2006-01-12 12:52 ` Thomas Maguin
2006-01-12 15:30 ` Matthias Andree
2006-01-13 8:23 ` Thomas Maguin
2006-01-13 9:02 ` Jens Axboe
2006-01-13 9:40 ` Matthias Andree
2006-01-13 9:52 ` Jens Axboe
2006-01-13 10:08 ` Matthias Andree
2006-01-13 10:14 ` Jens Axboe
2006-01-13 10:08 ` Thomas Maguin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox