| From | Subject | Date |
|---|---|---|
| Erez Zadok | [PATCH] 0/3 fs/ioctl.c coding style, rename vfs_ioctl/do_ioctl
This series of three proposed patches changes fs/ioctl.c and Unionfs as
follows. This series is against v2.6.24-rc1-192-gef49c32.
Patch 1: just applies coding standards to fs/ioctl.c (while I'm at it, I
figured it's worth cleaning VFS files one at a time).
Patch 2: does two things:
(a) Renames the old vfs_ioctl to do_ioctl, because the comment above the old
vfs_ioctl clearly indicates that it is an internal function not to be
exported to modules; therefore it should have a more tradi...
| Oct 27, 7:10 pm 2007 |
| Erez Zadok | [PATCH 2/3] VFS: swap do_ioctl and vfs_ioctl names
Rename old vfs_ioctl to do_ioctl, because the comment above it clearly
indicates that it is an internal function not to be exported to modules;
therefore it should have a more traditional do_XXX name. The new do_ioctl
is exported in fs.h but not to modules.
Rename the old do_ioctl to vfs_ioctl because the names vfs_XXX should
preferably be reserved to callable VFS functions which modules may call,
as many other vfs_XXX functions already do. Export the new vfs_ioctl to
modules so others can use it...
| Oct 27, 7:10 pm 2007 |
| Erez Zadok | [PATCH 1/3] VFS: apply coding standards to fs/ioctl.c
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
fs/ioctl.c | 164 +++++++++++++++++++++++++++++++-----------------------------
1 files changed, 84 insertions(+), 80 deletions(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index c2a773e..652cacf 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -12,8 +12,8 @@
#include <linux/fs.h>
#include <linux/security.h>
#include <linux/module.h>
+#include <linux/uaccess.h>
-#include <asm/uaccess.h>
#include <asm/ioctl...
| Oct 27, 7:10 pm 2007 |
| Erez Zadok | [PATCH 3/3] Unionfs: use vfs_ioctl
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
fs/unionfs/commonfops.c | 32 ++++++--------------------------
1 files changed, 6 insertions(+), 26 deletions(-)
diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index 50e5775..c99b519 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -661,31 +661,6 @@ out:
return err;
}
-/* pass the ioctl to the lower fs */
-static long do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
-{
- stru...
| Oct 27, 7:10 pm 2007 |
| Maarten Bressers | Re: [PATCH RESEND] SCSI not showing tray status correctly
This patch hasn't been tested at all, I'm sorry if I gave you that
impression, it isn't in Gentoo's patches, it's just been brought to our
attention in the bug I linked too.
I created another patch, based on your recommendations, and with a lot of
help from Daniel Drake (dsd@gentoo.org), that's included below. Some
changes are made to test_unit_ready() to be able to pass the sense data
to sr_drive_status(). Currently, sr_do_ioctl() swallows this data and
makes its own interpretations of sense codes...
| Oct 27, 6:58 pm 2007 |
| Al Viro | [PATCH] duplicate initializer in sound/pci/hda/patch_realtek.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index d9f78c8..1c50278 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -9299,7 +9299,6 @@ static struct alc_config_preset alc268_presets[] = {
.num_channel_mode = ARRAY_SIZE(alc268_modes),
.channel_mode = alc268_modes,
.input_mux = &alc268_capture_source,
- .input_mux = &alc268_capture_source,
.unsol_event = ...
| Oct 27, 4:20 pm 2007 |
| Al Viro | [PATCH] fix breakage in pegasos_eth (fallout from commit b45...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/include/linux/mv643xx_eth.h b/include/linux/mv643xx_eth.h
index 3f27239..8df230a 100644
--- a/include/linux/mv643xx_eth.h
+++ b/include/linux/mv643xx_eth.h
@@ -8,6 +8,9 @@
#define MV643XX_ETH_NAME "mv643xx_eth"
#define MV643XX_ETH_SHARED_REGS 0x2000
#define MV643XX_ETH_SHARED_REGS_SIZE 0x2000
+#define MV643XX_ETH_BAR_4 0x220
+#define MV643XX_ETH_SIZE_REG_4 0x224
+#define MV643XX_ETH_BASE_ADDR_ENABLE_REG 0x0290
st...
| Oct 27, 4:02 pm 2007 |
| Alexey Dobriyan | [PATCH] proc_fs.h redux
Remove proc_fs.h from headers that doesn't really need it. Typical overkill is
including full header when one can get away with just forward declaration of
"struct proc_dir_entry".
Number of files that are recompiled after touching proc_fs.h drops from 1100
to 513(!) on x86_64 allmodconfig.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
arch/powerpc/kernel/process.c | 1 +
arch/powerpc/kernel/prom.c | 1 +
arch/powerpc/mm/init_32.c ...
| Oct 27, 3:47 pm 2007 |
| Joe Perches | Re: [PATCH] proc_fs.h redux
Your code doesn't match your patch description.
You've got new includes of:
<linux/fs.h>
<linux/proc_fs.h>
<linux/err.h>
<linux/kref.h>
and forward declarations of
struct proc_dir_entry;
struct file_operations;
As a general rule, I think it better to use includes
than use naked forward declarations.
-
| Oct 27, 6:40 pm 2007 |
| Mikael Pettersson | Re: 2.6.24-rc1 sysctl table check failed on PowerMac
This eliminated the warning. Thanks.
-
| Oct 27, 3:37 pm 2007 |
| Al Viro | [PATCH] cirrusfb nonsense
(pointer > 0) is deeply weird; (pointer >= 0) is even dumber...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index f99cb77..f7e2d5a 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -2509,8 +2509,7 @@ static int cirrusfb_zorro_register(struct zorro_dev *z,
cinfo = info->par;
cinfo->btype = btype;
- assert(z > 0);
- assert(z2 >= 0);
+ assert(z);
assert(btype != BT_NO...
| Oct 27, 2:46 pm 2007 |
| Al Viro | [PATCH] scatterlist fallout: drivers/scsi/arm/
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/scsi/arm/scsi.h b/drivers/scsi/arm/scsi.h
index 21ba571..2d09fef 100644
--- a/drivers/scsi/arm/scsi.h
+++ b/drivers/scsi/arm/scsi.h
@@ -39,7 +39,7 @@ static inline int next_SCp(struct scsi_pointer *SCp)
SCp->buffer++;
SCp->buffers_residual--;
SCp->ptr = (char *)
- (page_address(SCp->buffer->page) +
+ (page_address(sg_page(SCp->buffer)) +
SCp->buffer->offset);
SCp->...
| Oct 27, 2:44 pm 2007 |
| Russell King | Re: [PATCH] scatterlist fallout: drivers/scsi/arm/
FYI, here's what I have queued (cut'n'pasted so probably won't apply):
diff --git a/drivers/scsi/arm/scsi.h b/drivers/scsi/arm/scsi.h
index 21ba571..bb6550e 100644
--- a/drivers/scsi/arm/scsi.h
+++ b/drivers/scsi/arm/scsi.h
@@ -38,9 +38,7 @@ static inline int next_SCp(struct scsi_pointer *SCp)
if (ret) {
SCp->buffer++;
SCp->buffers_residual--;
- SCp->ptr = (char *)
- (page_address(SCp->buffer->page) +
...
| Oct 27, 4:17 pm 2007 |
| Russell King | Re: [PATCH] scatterlist fallout: drivers/scsi/arm/
Already have this one queued for Linus in my tree.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
-
| Oct 27, 3:21 pm 2007 |
| Al Viro | [PATCH] scatterlist fallout: mmc
#include <scatterlist/scatterlist.h>
is an odd thing to do...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
drivers/mmc/host/au1xmmc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c
index b2104d4..c3926eb 100644
--- a/drivers/mmc/host/au1xmmc.c
+++ b/drivers/mmc/host/au1xmmc.c
@@ -40,7 +40,7 @@
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping...
| Oct 27, 2:40 pm 2007 |
| Al Viro | [PATCH] ide/arm/icside: fallout from commit 86f3a492bb09eee5...
struct device doesn't have ->dma; it's in struct expansion_card where
that struct device is embedded into.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/ide/arm/icside.c b/drivers/ide/arm/icside.c
index 410a0d1..93f71fc 100644
--- a/drivers/ide/arm/icside.c
+++ b/drivers/ide/arm/icside.c
@@ -316,13 +316,13 @@ static int icside_dma_end(ide_drive_t *drive)
drive->waiting_for_dma = 0;
- disable_dma(state->dev->dma);
+ disable_dma(ECARD_DEV(stat...
| Oct 27, 2:39 pm 2007 |
| Bartlomiej Zolnierki... | Re: [PATCH] ide/arm/icside: fallout from commit 86f3a492bb09...
Yeah, your fix is obviously correct, thanks!
Bart
-
| Oct 27, 2:58 pm 2007 |
| Al Viro | [PATCH] scatterlist fallout: frv
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/arch/frv/mb93090-mb00/pci-dma.c b/arch/frv/mb93090-mb00/pci-dma.c
index 671ce1e..662f7b1 100644
--- a/arch/frv/mb93090-mb00/pci-dma.c
+++ b/arch/frv/mb93090-mb00/pci-dma.c
@@ -15,6 +15,7 @@
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/highmem.h>
+#include <linux/scatterlist.h>
#include <asm/io.h>
void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *...
| Oct 27, 2:23 pm 2007 |
| Mikael Pettersson | 2.6.24-rc1 sysctl table check failed on PowerMac
Booting 2.6.24-rc1 on my PowerMac the kernel now spits
out a sysctl warning early in the boot sequence:
--- dmesg-2.6.23
+++ dmesg-2.6.24-rc1
...
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
+sysctl table check failed: /kernel .1 Writable sysctl directory
io sche...
| Oct 27, 1:57 pm 2007 |
| Alexey Dobriyan | Re: 2.6.24-rc1 sysctl table check failed on PowerMac
[PATCH] powerpc: fix sysctl whining re kernel.powersave-nap
kernel was marked with 0755. Everywhere else it's 0555.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
arch/powerpc/kernel/idle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/powerpc/kernel/idle.c
+++ b/arch/powerpc/kernel/idle.c
@@ -122,7 +122,7 @@ static ctl_table powersave_nap_sysctl_root[] = {
{
.ctl_name = CTL_KERN,
.procname = "kernel",
- .mode = 0755,
+ .mode = 0555,
...
| Oct 27, 2:34 pm 2007 |
| Alexey Dobriyan | [PATCH] Dump stack during sysctl registration failure
Speaking of...
[PATCH] Dump stack during sysctl registration failure
Let's make immediately obvious from where sysctl comes from and
messages itself more noticeable.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
kernel/sysctl_check.c | 1 +
1 file changed, 1 insertion(+)
--- a/kernel/sysctl_check.c
+++ b/kernel/sysctl_check.c
@@ -1432,6 +1432,7 @@ static void set_fail(const char **fail, struct ctl_table *table, const char *str
printk(KERN_ERR "sysctl table ch...
| Oct 27, 2:43 pm 2007 |
| Cyrill Gorcunov | [PATCH] SG: set names for numeric constants
This patch defines names for numeric constants that
used in scatter list for more convenient code reading.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
I'm not sure if it really needed but who knows ;)
Any comments are welcome.
include/linux/scatterlist.h | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h
index 4571231..fcc05a5 100644
--- a/include/linux/scatterlist.h
...
| Oct 27, 1:02 pm 2007 |
| Robert P. J. Day | Re: [PATCH] SG: set names for numeric constants
while you're at it, could you move all those macros to the top of the
file, rather than leaving them scattered across the first 100 lines or
so? it would just make them easier to find when you're perusing the
code.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
-
...
| Oct 27, 1:14 pm 2007 |
| Cyrill Gorcunov | Re: [PATCH] SG: set names for numeric constants
[Robert P. J. Day - Sat, Oct 27, 2007 at 01:14:22PM -0400]
| On Sat, 27 Oct 2007, Cyrill Gorcunov wrote:
|
| >
| > This patch defines names for numeric constants that
| > used in scatter list for more convenient code reading.
| >
| > Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
| ...
| > @@ -73,7 +76,7 @@ static inline void sg_set_page(struct scatterlist *sg, struct page *page,
| > sg->length = len;
| > }
| >
| > -#define sg_page(sg) ((struct pa...
| Oct 27, 1:46 pm 2007 |
| Andrey Borzenkov | [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute even if...
--Boundary-01=_H12IHT5Jl25MIH1
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I am not exactly sure about this one ... what other power_supply class driv=
ers=20
do? Should I fix HAL instead (but then, I do not know whether HAL is the on=
ly=20
application that is using this interface).
--Boundary-01=_H12IHT5Jl25MIH1
Content-Type: text/x-diff;
charset="us-ascii";
name="2.6.24-rc1_battery_present_property"
Content...
| Oct 27, 12:54 pm 2007 |
| Anton Vorontsov | Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve...
Well, PROP_PRESENT wasn't my idea, currently it's used by pmu and
olpc drivers becuase it's not trivial to register/unregister their
batteries on physical insertion/removal. I have some plans to teach
at least pmu batteries to not use PROP_PRESENT. I don't have any
OLPC, thus I can't convert it.
To sum this: the good way to handle "missing" batteries is to
unregister them, so they'll not show up in the /sys/class/power_supply.
Is that possible with the ACPI?
The good example is ds2760 batterie...
| Oct 27, 2:42 pm 2007 |
| David Woodhouse | Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve...
Actually it's not hard to do that. It was done this way in response to a
request from the userspace side. IIRC.
--
dwmw2
-
| Oct 27, 3:32 pm 2007 |
| Anton Vorontsov | Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve...
I didn't say it's hard. But we don't have any interrupts for the
Oh. Userspace tried to do something weird then, I think. Generally
it's just sane to unregister absent hardware.
--
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.net/bd2
-
| Oct 27, 3:50 pm 2007 |
| Alexey Starikovskiy | Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve...
Hm, do you need separate set of properties for that? You could register either
of existing two, and read function will not allow read of anything but "present".
IMHO, this is what other modules do (/drivers/power)
One remaining trick here, you need to call unregister/register for power_supply
if you change attributes -- so please check if your patched driver survives
insertion of the battery.
Regards,
Alex.
-
| Oct 27, 1:16 pm 2007 |
| Andrey Borzenkov | Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve...
Do they have different set of properties depending on underlying hardware t=
hat=20
you can't query unless hardware is present? I'd rather avoid adding fake=20
Neither does your code (nor kpowersave :) ) Remove battery and set of=20
attributes is "stuck" instead of being reset to only fixed set of power=20
device attributes (basically "info"). The only call to power_supply_registe=
r=20
is in acpi_battery_add and as far as I can tell this is executed on adding=
=20
*slot* not when content of ...
| Oct 27, 1:50 pm 2007 |
| Alexey Starikovskiy | Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve...
Point is -- it does not break :) If you start to play with shorter length of
attributes table and don't call unregister/register, power_supply may
go past the end of table.
-
| Oct 27, 2:18 pm 2007 |
| Bartlomiej Zolnierki... | [PATCH] isd200: don't include <linux/ide.h>
Now that commit 3794ade5b286cbd4551009dd341dbe9aeead2bc3 removed
incorrect dependency on CONFIG_IDE we can fix the driver to not
include <linux/ide.h>:
* add ATA_REG_{ERROR,LCYL,HCYL,STATUS}_OFFSET defines and use them
instead of IDE_{ERROR,LCYL,HCYL,STATUS}_OFFSET from <linux/ide.h>
* remove no longer needed <linux/ide.h> include
* remove incorrect comment added by the last commit:
- isd200.c is not the only user of struct hd_driveid besides IDE
(see drivers/block/...
| Oct 27, 12:01 pm 2007 |
| Roel Kluin | [PATCH] fix 'and' typo in drivers/block/paride/pt.c
Fix 'and' typo (PT_WRITE_OK is defined 2)
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c
index 9f4e67e..b91accf 100644
--- a/drivers/block/paride/pt.c
+++ b/drivers/block/paride/pt.c
@@ -664,7 +664,7 @@ static int pt_open(struct inode *inode, struct file *file)
goto out;
err = -EROFS;
- if ((!tape->flags & PT_WRITE_OK) && (file->f_mode & 2))
+ if ((!(tape->flags & PT_WRITE_OK)) &&...
| Oct 27, 11:32 am 2007 |
| Gabriel C | snd-rtctimer bugs ?
Hi,
I'm using rtc-class driver(s) on this system ( current git head ).
Modprobing snd-rtctimer results in the following :
..
sudo modprobe snd-rtctimer
WARNING: Error inserting rtc (/lib/modules/2.6.24-rc1-gec3b67c1/kernel/drivers/char/rtc.ko): Input/output error
FATAL: Error inserting snd_rtctimer (/lib/modules/2.6.24-rc1-gec3b67c1/kernel/sound/core/snd-rtctimer.ko): Unknown symbol in module, or unknown parameter (see dmesg) ...
| Oct 27, 11:06 am 2007 |
| Jan Engelhardt | Oct 27, 11:15 am 2007 | |
| Roel Kluin | [PATCH] fix 'and' typos in drivers/block/pktcdvd.c
Fix two 'and' typos
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index a8130a4..9cd6ba2 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -2202,11 +2202,11 @@ static int pkt_media_speed(struct pktcdvd_device *pd, unsigned *speed)
return ret;
}
- if (!buf[6] & 0x40) {
+ if (!(buf[6] & 0x40)) {
printk(DRIVER_NAME": Disc type is not CD-RW\n");
return 1;
}
- if (!buf[6] & 0x4...
| Oct 27, 10:50 am 2007 |
| Alexey Dobriyan | Re: [PATCH] fix 'and' typos in drivers/block/pktcdvd.c
Roel, many of this were fixed during
"+ fix-vm_can_nonlinear-check-in-sys_remap_file_pages.patch added to -mm tree"
thread. Please, check patches in there and send what was missed.
-
| Oct 27, 12:53 pm 2007 |
| Adrian Bunk | [2.6 patch] OSS msnd: fix array overflows
This patch fixes array overflows in the OSS msnd driver spotted by the
Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
97463a59dfb9ccb915d3b615225c98cb3e310c0a
diff --git a/sound/oss/msnd.h b/sound/oss/msnd.h
index 05cf786..d0ca582 100644
--- a/sound/oss/msnd.h
+++ b/sound/oss/msnd.h
@@ -233,8 +233,8 @@ typedef struct multisound_dev {
spinlock_t lock;
int nresets;
unsigned long recsrc;
- int left_levels[16];
- int right_levels[16];
+ int left_levels[32];
...
| Oct 27, 10:22 am 2007 |
| Gabriel C | BUG: lock held when returning to user space
Hi,
I found that today in dmesg after booting current git ( ec3b67c11df42362ccda81261d62829042f223f0 ) :
...
[ 592.752777]
[ 592.752781] ================================================
[ 592.753478] [ BUG: lock held when returning to user space! ]
[ 592.753880] ------------------------------------------------
[ 592.754262] hwclock/1452 is leaving the kernel with locks still held!
[ 592.754655] 1 lock held by hwclock/1452:
[ 592.755007] #0: (&rtc->char_lock){--..}, at: [<c0...
| Oct 27, 10:19 am 2007 |
| Jiri Kosina | Re: BUG: lock held when returning to user space
Yes, this is because rtc keeps a char_lock mutex locked as long as the
device is open, to avoid concurrent accessess.
It could be easily substituted by some counting -- setting and clearing
bit in struct rtc_device instead of using char_lock, but doing this just
to shut the lockdep off is questionable imho.
Peter, what is the preferred way to annotate these kinds of locking for
lockdep to express that it is intended?
--
Jiri Kosina
-
| Oct 27, 11:12 am 2007 |
| Arjan van de Ven | Re: BUG: lock held when returning to user space
On Sat, 27 Oct 2007 17:12:41 +0200 (CEST)
it's not about lockdep; what this code doing is not valid use of a
mutex:
A mutex is required to have a clear process as owner, and in this case
it doesn't have that... at all. This is a violation of the kernel mutex
the preferred method is to not use a mutex like this...
--
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
-
| Oct 27, 11:47 am 2007 |
| Peter Zijlstra | Re: BUG: lock held when returning to user space
Right, the fd could be transferred using unix sockets or fork(). That
would indeed seriously break a mutex.
-
| Oct 27, 12:09 pm 2007 |
| Arjan van de Ven | Re: BUG: lock held when returning to user space
On Sat, 27 Oct 2007 18:09:29 +0200
--
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
-
| Oct 27, 1:05 pm 2007 |
| Peter Zijlstra | Re: BUG: lock held when returning to user space
Not sure, I'd not thought that anyone would actually want to do this.
I'm also not sure how I stand on this, I'd prefer to say: don't do this!
I think, in this case, the lock is associated with a kernel object that
is properly cleaned up if the holding tasks gets a SIGKILL. But in
general I'd like to see this kind of thing go away.
Now I could probably come up with an annotation to hide it, but what do
other people think, Ingo, Linus, Andrew, do we want to keep kernel locks
held over userspac...
| Oct 27, 11:28 am 2007 |
| Jiri Kosina | Re: BUG: lock held when returning to user space
Yes, but the fact is that is really is invalid use of mutex -- because the
mutex owner could become seriously wrong after fork() or sending the
filedescriptor through unix socket ... this easily leads to broken
situation.
This seems to have been introduced in e824290e5d ... Alessandro, could you
convert this to test_and_set_bit()/clear_bit() semantics instead of a
mutex please?
Thanks,
--
Jiri Kosina
-
| Oct 27, 6:47 pm 2007 |
| Linus Torvalds | Re: BUG: lock held when returning to user space
Definitely not a sane thing to do. It should use ref-counting and/or a
single bit to say "busy".
Linus
-
| Oct 27, 12:35 pm 2007 |
| Andrew Morton | Re: BUG: lock held when returning to user space
It's a fairly daft thing to do. I think it'd be saner to teach rtc about
test_and_set_bit() personally..
-
| Oct 27, 11:46 am 2007 |
| Adrian Bunk | [2.6 patch] video/sis/: fix negative array index
This patch fixes the possible usage of a negative value as an array
index spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/video/sis/sis_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
9f63bf8c543710521e885b09d88271d1a308b158
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c
index bc7d236..37bd24b 100644
--- a/drivers/video/sis/sis_main.c
+++ b/drivers/video/sis/sis_main.c
@@ -1245,24 +1245,25 @@ si...
| Oct 27, 10:19 am 2007 |
| Adrian Bunk | [2.6 patch] fs/afs/vlocation.c: fix off-by-one
This patch fixes an off-by-one error spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
d88aac5aa6057a8d784934dc5035e9e853b16203
diff --git a/fs/afs/vlocation.c b/fs/afs/vlocation.c
index 7b4bbe4..849fc31 100644
--- a/fs/afs/vlocation.c
+++ b/fs/afs/vlocation.c
@@ -376,19 +376,19 @@ struct afs_vlocation *afs_vlocation_lookup(struct afs_cell *cell,
size_t namesz)
{
struct afs_vlocation *vl;
int ret;
_enter("{%s},{%x},%*.*s,%zu",
...
| Oct 27, 10:19 am 2007 |
| Adrian Bunk | [2.6 patch] lguest_user.c: fix memory leak
This patch fixes a memory leak spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/lguest/lguest_user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6/drivers/lguest/lguest_user.c.old 2007-10-27 04:48:14.000000000 +0200
+++ linux-2.6/drivers/lguest/lguest_user.c 2007-10-27 04:48:49.000000000 +0200
@@ -127,121 +127,121 @@ static int initialize(struct file *file,
lg = kzalloc(sizeof(*lg), GFP_KERNEL);
if (!lg) {
err ...
| Oct 27, 10:18 am 2007 |
| previous day | today | next day |
|---|---|---|
| October 26, 2007 | October 27, 2007 | October 28, 2007 |
| Hiten Pandya | Re: up? (emacs docbook xml ide) |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Linus Torvalds | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| Arjan van de Ven | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
