lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 21 Oct 2008 08:27:06 +0200
From:	Alexey Fisher <bug-track@...her-privat.net>
To:	Suresh Siddha <suresh.b.siddha@...el.com>
Cc:	Kernel Testers List <kernel-testers@...r.kernel.org>,
	"mingo@...e.hu" <mingo@...e.hu>, linux-kernel@...r.kernel.org
Subject: Re: [saa7133] resource map sanity check conflict

Thanks, suresh! this patch working for me. dmesg is attached.

Alexey 


Am Montag, den 20.10.2008, 13:57 -0700 schrieb Suresh Siddha:
> On Sat, Oct 18, 2008 at 07:34:07AM -0700, Alexey Fisher wrote:
> > i get this message after your patch: "IO resources, x86: ioremap sanity
> > check to catch mapping requests exceeding"
> > 
> > so may be saa7133 not clean ;) dmesg is attached.
> > 
> > resource map sanity check conflict: 0xcfeff800 0xcff007ff 0xcfe00000
> > 0xcfefffff PCI Bus 0000:01
> > ------------[ cut here ]------------
> > WARNING: at arch/x86/mm/ioremap.c:226 __ioremap_caller+0x2f5/0x33c()
> > Modules linked in: saa7134(+) ir_common hid snd_hda_intel compat_ioctl32
> > videodev v4l1_compat v4l2_common videobuf_dma_sg videobuf_core tveeprom
> > snd_pcm_oss snd_mixer_oss evdev snd_pcm snd_timer snd_page_alloc
> > Pid: 2345, comm: modprobe Not tainted 2.6.27-slub-04260-g6b2ada8 #9
> > Call Trace:
> >  [<ffffffff80238459>] warn_on_slowpath+0x51/0x7e
> >  [<ffffffff8051d3ba>] printk+0x4e/0x5c
> >  [<ffffffff80490880>] pci_conf1_read+0xb1/0xdc
> >  [<ffffffff8023e135>] iomem_map_sanity_check+0x94/0x9b
> >  [<ffffffff80222a52>] __ioremap_caller+0x2f5/0x33c
> >  [<ffffffffa00d8f0c>] saa7134_initdev+0x32c/0x9b5 [saa7134]
> 
> Alexey, Appended patch should fix this conflict. Can you please test and
> ack it?
> 
> thanks,
> suresh
> ---
> From: Suresh Siddha <suresh.b.siddha@...el.com>
> Subject: saa7134: fix the hard coded size argument in ioremap()
> 
> Alexey Fisher reported:
> > resource map sanity check conflict: 0xcfeff800 0xcff007ff 0xcfe00000
> > 0xcfefffff PCI Bus 0000:01
> 
> BAR base is located in the middle of the 4K page and the hardcoded
> size argument makes the request span two pages causing the conflict.
> 
> Fix the hard coded size argument in ioremap()
> 
> Signed-off-by: Suresh Siddha <suresh.b.siddha@...el.com>
> ---
> 
> diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
> index b686bfa..cff3b99 100644
> --- a/drivers/media/video/saa7134/saa7134-core.c
> +++ b/drivers/media/video/saa7134/saa7134-core.c
> @@ -941,7 +941,8 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
>  		       dev->name,(unsigned long long)pci_resource_start(pci_dev,0));
>  		goto fail1;
>  	}
> -	dev->lmmio = ioremap(pci_resource_start(pci_dev,0), 0x1000);
> +	dev->lmmio = ioremap(pci_resource_start(pci_dev,0),
> +			     pci_resource_len(pci_dev,0));
>  	dev->bmmio = (__u8 __iomem *)dev->lmmio;
>  	if (NULL == dev->lmmio) {
>  		err = -EIO;

View attachment "dmesg" of type "text/plain" (29197 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ